-
Notifications
You must be signed in to change notification settings - Fork 3
Small Fix #120
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
Small Fix #120
Conversation
Bug Fix: exit if too many unsuccessful iterations in a row
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @nrummel ! There are still improvements that can be made to this algorithm, so thank you for testing and contributing.
I made some comments, but overall it looks good.
@@ -148,8 +148,8 @@ function SolverCore.solve!( | |||
[Int64, T, T, T, String, T, T, T], | |||
) | |||
verbose > 0 && @info log_row(Any[iter, ft, norm_∇f, 0.0, "First iteration", α]) | |||
|
|||
callback(nlp, solver, stats) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can actually access the nlp_at_x by solver.stp.nlp_at_x , so I prefer callback(nlp, solver, stats)
I still am not seeing the remote/main having these changes. It would be nice if this was merged into main, so I don't have to dev this repo anymore. Thanks again. Nic |
Hi @nrummel ! As you can see here, I made some comments that you need to adress before the PR is being merged. |
Thanks for doing this. Apologies, I have been pushing this small task down my to do list for a while now. |
Hello JSO Team,
I wanted to use your ARCqK algorithm in my work, but it was cycling when my cost function was misbehaving. I think the algorithm is supposed to exit when there are too many unsuccessful iterations in a row, but instead it got stuck in an infinite loop until time controls hit.
Also, I want to pass the nlp_at_x the callback so that I have access to the current x at each iteration.
Finally, I think the counter for very successful iterations was in the wrong place.
Thanks for making your algorithm available in Julia.
Nic