-
Notifications
You must be signed in to change notification settings - Fork 46
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
"nlopt failure" should be recoverable #14
Comments
I agree (I just ran into this myself). One can work around this by keeping track of the current best variable in the objective function, but it's a bit ugly. |
Which exception in particular are you thinking of as being recoverable? In general, the underlying nlopt library may not save the final value best of the optimum on failures. |
At least NLOPT_ROUNDOFF_LIMITED should be recoverable, since the documentation specifically states that "the optimization still typically returns a useful result" in this case. |
Looking at the code, I see that in fact chk() already handles the NLOPT_ROUNDOFF_LIMITED case, so that's good. |
Closing as stale. We graceful handle Please re-open if you're still interested in this and have a different error code that you'd like to be recoverable. |
In the function "chk", you often throw which causes the final value of the optimum to be unavailable. In some cases, the optimum is still useful. It would be better to have access to this.
The text was updated successfully, but these errors were encountered: