Illegal operation: {complex affine} + {convex}

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

please how to write this statement in CVX
i tray

(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.


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.