I have an OPF problem running excellent when I have continuous variables. Every time when I add “variable x(3) integer” I receive the error below. Would you please provide me any help or assistance.
Mosek can solve mixed-integer conic problems, yes, but with the exception of semidefinite. If that is what you want to do then maybe have a look at YALMIP with its own branch and bound mechanisms for that.
If you would look at the log output then everything should be clear (turn maximal verbosity on in cvx).
I think the page you linked predates SDP in Mosek.
The CVX Users’ Guide is misleading. CVX 2.x accepts mixed-integer problems having senidefinite constraints, but currently has no available solver which can solve them. Hence the error message when CVX tries calling Mosek to solve the problem.
Regarding YALMIP, specify BNB (included with YALMIP) as solver. If you have Mosek installed under MATLAB, YALMIP will call Mosek to solve LMI (SDP) continuous relaxation subproblems spawned by the Branch and Bound algorithm of BNB.