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

iRow and JCol values should be checked after TNLP::eval_jac_g call #350

Closed
mottelet opened this issue Oct 24, 2019 · 0 comments
Closed

iRow and JCol values should be checked after TNLP::eval_jac_g call #350

mottelet opened this issue Oct 24, 2019 · 0 comments

Comments

@mottelet
Copy link

When TNLP::eval_jac_g is called with values==NULL (constraints Jacobian pattern is expected) there is no verification that the indices returned in iRow and jCol are compatible with n and m. For example if the sparsity pattern is recovered from another language (e.g. Scilab), indices start from 1 and if you forget to substract 1 from all values, then Ipopt crashes and the cause is very hard to debug (even with valgrind or ASAN).

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

1 participant