Objective and Constraints are complex

Uncategorized
Dec 24, 2021
A

Hello, I have a convex optimization problem that the objective function and constraints are complex. I get an error when I run this problem and I don’t know what the matter is.
Capture

J

You cann’t compare between complex numbers.

A
Replying to #2

Thank you for your reply
But when I delete the constraint, there is still an error.

J
Replying to #3

show the error please

A

cvx

J
Replying to #5

You cann’t minimize complex number, of course. And the error told you that.

M

Objective function must evaluate to real scalar.

CVX allows complex equality constraints. it does not allow complex inequality constraints. Please read http://cvxr.com/cvx/doc/dcp.html#constraints . Actually, you should carefully read the entire CVX Users’ Guide.

A
Replying to #8

Thank you very much for your response