-
Notifications
You must be signed in to change notification settings - Fork 68
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
LBFGSB returns parameters outside of bounds #439
Comments
Thanks for the report @javier-garcia-tilburg ! Is it significantly outside the bounds or only barely, such that it could be a numerics issue? If it's not a numerics issue, I suspect it could be because zoom linesearch, the default, doesn't apply a max stepsize. L-BFGS-B has a default max stepsize of 1 for the linesearch, which is passed to the other linesearch methods and would keep the result in bounds. Could you try it with |
CC @vroulet |
I think it is significant; the boundaries are
You are right, I'm using the default linesearch method, zoom. Regarding the other methods,
The information returned by The variable Line 500 in d40b6d7
jax.debug.print("new_stepsize {new_stepsize}", new_stepsize=new_stepsize) |
Using |
Thanks, I'll work on a fix. @javier-garcia-tilburg are you synced past d40b6d7? I would have expected that to fix the issue with Hager-Zhang not terminating. |
I'm working on revamping the zoom linesearch see #438. A max_stepsize will be incorporated. I'm fixing last bugs due to the optimizer potentially getting stuck too close to a solution and I hope to be done asap. |
Nope, I am using jax 0.7 |
Hi, thank you for the amazing effort put into this library. For your information. Although i am using the current developement version, I am getting parameters that are out of bounds using LBFGS-B + Hager Zhang line search. |
Hello! We have reimplemented the zoom linesearch to take a max_stepsize. Could you pull the most recent version and see if it still does not work? If not, could you send us a reproducible code such that we can investigate that a bit better? |
@vroulet , I just tried the new version and I the problem is gone. The solution returned by LBFGSB ( Thank you for your work and effort |
The algorithm
jaxopt.LBFGSB
sometimes returns parameters outside of the specified bounds.If you are interested in a minimal example to reproduce the bug, I can share it in private. Just tell me where to upload or send the file (~250 lines of code).
The text was updated successfully, but these errors were encountered: