Skip to content
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

Non-converging QP #12

Open
mkatliar opened this issue Jul 5, 2016 · 2 comments
Open

Non-converging QP #12

mkatliar opened this issue Jul 5, 2016 · 2 comments

Comments

@mkatliar
Copy link

mkatliar commented Jul 5, 2016

C code to reproduce the problem: failed_qp.c.zip
test_qp.c.zip

hpmpc returns code 2.

mkatliar pushed a commit to mkatliar/hpmpc that referenced this issue Jul 5, 2016
mkatliar pushed a commit to mkatliar/hpmpc that referenced this issue Jul 6, 2016
mkatliar pushed a commit to mkatliar/hpmpc that referenced this issue Jul 6, 2016
Merge branch 'master' of github.com:mkotlyar/hpmpc
@mkatliar
Copy link
Author

mkatliar commented Jul 6, 2016

The original QP has terminal equality constraints of a form x[7]..x[12] == 0. If this constraint is relaxed, the solver converges and return code is 0. The relaxed version of the problem: https://github.com/mkotlyar/hpmpc/blob/master/test/data/test_qp/qp0012_relaxed.c

Is hpmpc meant to deal with equality constraints? If no, I suggest to add argument checking, and return an error if lb < ub and lbg < ubg are not satisfied.

@giaf
Copy link
Owner

giaf commented Jul 21, 2016

In the HPMPC IPM equality constraints are handled as inequality constraints at the moment: this usually works but it makes the problem harder for the IPM, that sometimes may fail to converge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants