You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to YALMIP
I have a strange switch quantifier error. I am currently using the SCIP solver
Not enough input arguments.
Error in constraint
switch quantifier
when I write the program in this manner, the error message will keep popping up
clc;clearall;%Number of Antena at BSL=2;h11=[2+2i;2+2i];h21=[1+1i;1+1i];%Noise Power calculationNoisePowerLinearBW=3;%Transmit PowerPbsMaxdb=22;%dbMPbsMaxLinear=10.^(PbsMaxdb/10);w11=sdpvar(L,1,'full','complex');w21=sdpvar(L,1,'full','complex');alpha=sdpvar(1,1,'full','real');tau=sdpvar(1,1,'full','real');beta=sdpvar(1,1,'full','real');
w = [w11' w21']';
objective = 0 ;
option = sdpsettings('verbose','0','solver','scip','cachesolvers','1');
contraint = [(norm(w)^2) <= PbsMaxLinear ...
0 <= alpha <= 1 ...
norm(h11'*w21)^2 <= tau ...
(1-alpha)*tau + NoisePowerLinearBW <= (norm(h11'*w11)^2)*beta ...
(norm(h21'*w11)^2) + NoisePowerLinearBW <= (norm(h21'*w21)^2)*beta ...
(norm(h11'*w11)^2) + NoisePowerLinearBW <= (norm(h21'*w21)^2)*beta/alpha ...
tau >= 0 ...
beta >= 0];
sol = optimize(constraint,objective,option);
But when I fix the constraint part a little bit. That is declaring the last two constraints through concatenation instead of putting it directly inside the constraint part