Objective and Constraints are complex

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.

You cann’t compare between complex numbers.

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

show the error please


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

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.

Thank you very much for your response