-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Abort iterations upon a condition on the cost function #318
Comments
Are you using one of the available solvers or are you implementing your own? The default implementation of You can set the target cost via the let res = Executor::new(cost, solver)
.configure(|state| state.param(init_param).max_iters(10).target_cost(0.0))
.run()?; EDIT: If you are implementing your own solver you will get this feature "for free" unless you overwrite |
Thank you for your answer. |
I added a little note about |
Hello
I am trying to figure out the
terminate
function so as to abort the optimization if the cost function returns a certain value.Is this possible? I couldn't find an example in the doc or on the git examples folder.
Thanks!
The text was updated successfully, but these errors were encountered: