Illegal operation: {complex affine} + {convex}


(امواج المحيط) #1

please how to write this statement in CVX
(norm(x1))^2+(norm(x2))^2-100<=0
i tray
real(quad_form(x1,I)+quad_form(x2,I))-100<=0


(Mark L. Stone) #2

Do you mean deltaw2,deltat and deltaw1 are complex variables? If so, you have complex terms on the left-hand side of the inequaliity, for instance deltat*abs(trace(w22*Gs)) That is not allowed.

Per http://cvxr.com/cvx/doc/dcp.html#constraints

One or both sides of an equality constraint may be complex; inequality constraints, on the other hand, must be real.

You have only provided an extract of your program, so we don’t know what you are really trying to do, and therefore whether it can be done in CVX, and if so, how.