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

Add sanity checks to Jacobian / Hessian indices #216

Merged
merged 3 commits into from
Sep 23, 2023

Conversation

chrhansk
Copy link
Contributor

If the indices are not correct, then ipopt seems to segfault, so the errors should be caught earlier in the interface.

@moorepants
Copy link
Collaborator

Can you add some unit tests for these error messages?

@chrhansk chrhansk force-pushed the master branch 2 times, most recently from 0626939 to 8a5bc80 Compare September 15, 2023 20:23
@chrhansk
Copy link
Contributor Author

I added tests for the Hessian. There is apparently a problem with the error handling in Ipopt itself (see coin-or/Ipopt/pull/697) which so far prevents error messages from the Jacobian evaluation being handled within Ipopt.

@chrhansk
Copy link
Contributor Author

Edit: coin-or/Ipopt#697 has been merged, so the bug in Ipopt should be fixed starting from version 3.14.13. I added corresponding skipping conditions.

@moorepants
Copy link
Collaborator

Thanks for this contribution. LGTM.

@moorepants moorepants merged commit 674414b into mechmotum:master Sep 23, 2023
34 checks passed
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

Successfully merging this pull request may close these issues.

2 participants