Are there any restrictions on using gurobi in yalmip? #1408
Answered
by
johanlofberg
ellensonny
asked this question in
General discussion
-
Beta Was this translation helpful? Give feedback.
Answered by
johanlofberg
May 26, 2024
Replies: 1 comment 9 replies
-
Gurobi does not support semidefinite programming. Most likely you've defined a symmetric matrix and by mistake constrained it to be positive semidefinite instead of elementwise non-negative https://yalmip.github.io/tutorial/basics/. You see that if you display the object con |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you're still going to have to massage the model though
the cubic expression xV^2 should be written as Q^2 where you want Q=xV which you most likely do best by logic linearization, i.e implies(x,Q==V) + implies(1-x,Q==0)
in the same way, xV1V2cos(a) you write as Qcos(a) where Q is xQ1V2 which you do by Q==Q2V2 where Q2 is the logic linearization of xV1