-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quadform objective does not work with OSQP #709
Labels
Comments
What is the output of |
A smaller example: julia> begin
using Convex, OSQP
x = Variable(2)
p = minimize(quadform(x, [1 0; 0 1]))
solve!(p, OSQP.Optimizer)
end
ERROR: UnsupportedConstraint: `MathOptInterface.VectorAffineFunction{Float64}`-in-`MathOptInterface.SecondOrderCone` constraints are not supported by the
solver you have chosen, and we could not reformulate your model into a
form that is supported.
To fix this error you must choose a different solver. I expected this to work. I haven't looked at the details yet. |
I think this is the thing where Convex unconditionally reformulates things, here quadratic to SOC instead of letting MOI do it so it can be appropriate to the solver |
I see, it is a duplicate. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to solve the following QP using OSQP:
but I get the error
Both of the constraints can be written in the form required by OSQP but it seems that Convex.jl is unable to do this. It would be nice if this could be fixed.
The text was updated successfully, but these errors were encountered: