Invalid constraint: {complex affine} >= {convex}

Invalid constraint: {complex affine} >= {convex}
出错 >= (line 21)
b = newcnstr( evalin( ‘caller’, ‘cvx_problem’, ‘[]’ ), x, y, ‘>=’ );
It obeys the rules,and why it appears the error?

No it doesn’t obey the rules. Both sides of inequality constraints need to be real.

If you apply real(...) to the LHS of the constraint, CVX will accept it. Whether that is the constraint you want is for you to determine. This is an adequate thing to do if the LHS has only roundoff level imaginary term, which will be eliminated by applying real(...).