How can i reformulate a convex == affine constraint

I’m trying to use CVX to solve a problem and one of my constraints is unfortunately of the form convex == affine.
How can I reformulate it into something that cvx would recognize?


In general, you simply cannot. CVX is for convex programs, and nonlinear equality constraints rarely describe convex sets.