Skip to content
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

Allowing xtol and ftol stopping criteria in OptimisationController #1508

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MichaelClerx
Copy link
Member

@MichaelClerx MichaelClerx commented Nov 21, 2023

Closes #1502

@MichaelClerx
Copy link
Member Author

@martinjrobins @chonlei @mirams can you have a look and see if this makes sense, before I add tests?

@@ -5,8 +5,9 @@ All notable changes to this project will be documented in this file.
## Unreleased

### Added
- [#1508](https://github.com/pints-team/pints/pull/1508) Added a method `OptimisationController.set_max_unmoved_iterations` that allows methods to stop after 1 or more iterations with no significant movement in parameter space.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"unmoved/unchanged" is a bit vague and not immediately obvious to me in terms of whether it refers to xtol or ftol? unmoved parameters, unchanged objective?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree! But can't think of anything better that doesn't involve deprecating set_max_unchanged_iterations which is probably one of the most used methods of the controller class

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmm, given all the different names that exist already, inventing another set that are pints specific doesn't seem great anyway - and even more so if they are vague!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "xtol" and "ftol" stopping criteria for optimisers
2 participants