Illegal operation: {convex} + {complex affine} error

it is not possible to determine the convexity (curvature) of that. If part of an expression is not affine, the entire expression must evaluate to real in order for CVX to have any possibility of dealing with it.

Your first step is to prove that your optimization problem is convex.

1 Like