Constraint of the real and imaginary part of a complex vector

23 views
Skip to first unread message

JackJack

unread,
May 8, 2020, 1:34:39 AM5/8/20
to YALMIP
Dear fellow YALMIP user,
I have run into a problem as follow 

w = sdpvar(2,1, 'full', 'complex' )

Linear matrix variable 2x1 (full, complex, 4 variables)
Coeffiecient range: 1 to 1


I think that w is presented in the form of w = [a +b*i ; where a,b,c,d are the variables . Currently, I need to constraint  these variable to be like this  
                                                                        c+ d*i ];


 Lower bound <=a<= Upper bound,
 Lower bound <=b<= Upper bound , 
Lower bound <=c<= Upper bound, 
Lower bound <=d<= Upper bound,

Or the real part of all vector component is upper bounded and lower bounded,   the imaginary part of all vector component is upper bounded and lower bounded is also ok 

My Matlab version is R2019a and I am using SCIP as my solver

Could you please help me with this ?

Thank you very much !

Johan Löfberg

unread,
May 8, 2020, 1:39:58 AM5/8/20
to YALMIP
you use real and imag

JackJack

unread,
May 8, 2020, 2:06:16 AM5/8/20
to YALMIP
Oh so just                  Lower bound <= real(w) <= Upper bound 
would have the effect of setting  
 Lower bound <=a<= Upper bound and Lower bound <=c<= Upper bound ? 
Does my understanding is correct ?

Johan Löfberg

unread,
May 8, 2020, 2:08:48 AM5/8/20
to YALMIP
yes
Reply all
Reply to author
Forward
0 new messages