Solution of Algebraic Equations Whose Independent Variables Are of CVX Type

Hello. Matlab has the ability of solving equations consisting variables of type syms. The same as follows:
syms a b c x
eqn = ax^2 + bx + c == 0;
solx = solve(eqn, x)
which has the following solutions:
solx =
-(b + (b^2 - 4ac)^(1/2))/(2a)
-(b - (b^2 - 4
I want to ask if it is possible to do the same thing to equations consisting of CVX variables. This equation is one of the constraints of my CVX program and I want to find the infimum of the maximum root of this equation.

Nonlinear equalites (constraints) are not convex. So the only algebraic equations (equalities) allowed in CVX are linear. However, there are may nonlinear convex inequality constrains supported by CVX.

Thanks. Is it possible to use polyhedral approximation to linearize the constraints? If yes, how is that possible in CVX?

Any linearization you need to do on your own, outside of CVX. When you have determined your linear constraints, you enter them in CVX, per the CVX User’s Guide. You might get some ideas for a mixed-integer formulation in chapter 9 of If you need more guidance, I suggest .You can easily spend a lot of effort and end up with a pile of garbage if you don’t really know what you’re doing.

However, you may be better off using a nonlinear optimizer, available for instance, under YALMIP.