osqp / OSQP.jl

Julia interface for OSQP: The Operator Splitting QP Solver
https://osqp.org/
Other
68 stars 25 forks source link

Constraints relaxation #46

Closed jebouchat closed 5 years ago

jebouchat commented 5 years ago

Hello!

I have an optimization problem with variables belonging to [0,1] and an objective whose convexity depends on the non-negativity of the aforementioned variables. Unfortunately, it seems that the solver relaxes the constraints resulting in an error since the objective becomes non-convex.

Is there a way to prevent this from happening? to force the solver to respect some constraints?

bstellato commented 5 years ago

OSQP is proven to work only with positive semidefinite matrix P. In other cases it can fail. Could you please write a minimal working example that we could run?

In many cases like yours (not all!) you can reformulate your problem to avoid nonconvexities.

bstellato commented 5 years ago

I would close this due to inactivity. Feel free to reopen it here or in the main OSQP repo if you have more concerns. Since it is a formulation question, I would suggest you to use the OSQP forum.