Invalid constraint: {real affine} == {convex}

Nonlinear equality constraints are non-convex.