-
Notifications
You must be signed in to change notification settings - Fork 227
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
Intermittent assertion error in HagerZhang #802
Comments
Something went wrong with the bracketing. Did you try MoreThuente instead? They're sort of "related". You can also try BackTracking. |
Do you have any feeling for when this error occurs? Is it my problem that has numerical problems? Too non-smooth etc? |
Is your objective not smooth? |
In theory it's smooth, but it solves an inner optimization problem the is subject to some numerical tolerance etc. so in practice it might not be perfectly smooth. |
Okay, if that means that the objective is noisy then this can certainly be a problem in terms of line search. I know because we've had that same issue in Pumas.jl where some fit methods have separate fits on the inside. We had only finite difference gradients in some places and were able to replace these with AD, but it also helped to solve the interior models to an ever so slightly more accurate tolerance... |
I'm getting some occasional assertion errors that are not really telling me what's wrong with my problem, example:
https://travis-ci.org/github/baggepinnen/SpectralDistances.jl/jobs/672377449#L934
The call to
optimize
occurs hereThe text was updated successfully, but these errors were encountered: