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

Check whether tnlp is null in GetIpoptCurrentIterate #645

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

Robbybp
Copy link
Contributor

@Robbybp Robbybp commented Feb 13, 2023

Fixes #644

The C interface currently segfaults when GetIpoptCurrentIterate or GetIpoptCurrentViolations are called before or after IpoptSolve. Checking tnlp allows these functions to do nothing and return false in these cases, which is the behavior I would expect.

@CLAassistant
Copy link

CLAassistant commented Feb 13, 2023

CLA assistant check
All committers have signed the CLA.

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.

GetIpoptCurrentViolations segfaults when called before solve
3 participants