Conversion of QCQP to QP with MOSEK and optimizer object #1367
Unanswered
Melanie-G
asked this question in
Possible bug or missing functionality
Replies: 1 comment 2 replies
-
You probably have to code the quadratic constraints using conic constraints, i.e. norm(chol(P)*x)<=1. since YALMIP cannot be sure that the constraint will remain a quadratic (and thus require cones) when parameters are fixed |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have encountered a problem when using MOSEK in combination with YALMIP for solving a quadratically constrained quadratic program in MATLAB. When calling optimize, the code works as expected, but when using the optimizer object, the quadratic constraints are ignored and the problem is converted into a quadratic program instead of a QCQP or conic program. I have attached a test script with a quadratic constraint, calling both optimize and the optimizer object. The quadratic constraint is violated using the latter method.
I have traced the code and noticed that in '\YALMIP\extras@optimizer\optimizer.m' lines 171-177 a + is added to the user solver setting to enforce the selected solver, which is not done in the optimize call. This leads to LP/QP Mosek solvers in '\YALMIP\extras\selectsolver.m' lines 296-302 not being pruned and remaining in first place in the solvers struct, above the conic solvers, and thus being selected as solver in l.513.
The conversion to a QP can be prevented by not specifying the solver or by adding a constraint of the type (norm(x,2) <= a).
Beta Was this translation helpful? Give feedback.
All reactions