-
Notifications
You must be signed in to change notification settings - Fork 129
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
hpipm_dense_qp_solver fails with only equality constraints #93
Comments
The issue could be in the problem being badly/ill conditioned, or a bug in the solver. |
Because it's current research, it's pretty hard to share more detailed data. However, I tried the following formulation:
This problem is solved successfully. Therefore I'd guess, that there is an error in the implementation of the equality constraints. Are all variables named like in the publication? I sadly can't find a reference on how the names of the publication relate to the names in MATLAB (or more precisely, in the get and set functions)? Also, an explanation of the terminal output would be great, e.g. the meaning of idxb, d_mask, ... |
Hi, I think I am facing as similar issue. With the following formulation:
The solver returns with status 0, while the vector v of the solution is: As comparison, when I run the same problem with OSQP, I get A reformulation of the equality constraint as an inequality constraint with equal upper and lower limits did also not solve the issue for me. The problem occurs on both the "master" and "stable" branch. |
Hi, maybe there is an issue with the problem setup.
Could you double-check that this is the QP that you intend to solve? |
Maybe an hint: double-check that A is what you intend it to be, and keep in mind that the matrices passed to HPIPM are expected to be in column-major by default. |
Hi, my problem was indeed caused by the fact that haven't the used column-major format, now it works as expected. Thanks very much for your help! |
Hello,
I intend to use HPIPM for solving a quadratic static constrained optimization problem. I use the MATLAB API, more accurate, the
hpipm_dense_qp_solver
function. My problem looks as followsmin_x 1/2x'Hx
s.t. Ax=b
According to the publication https://arxiv.org/abs/2003.02547 I set the following arguments
The solver exits with status 0 but the values of the solution are all
NaN
. If I try to solve the same problem with quadprog from MATLAB, I get a valid solution, hence, the problem is solvable. Where could the problem be?The text was updated successfully, but these errors were encountered: