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

To increase usability of minimizer it should be possible to set the tolerance and the max number of iteration #84

Conversation

andped10
Copy link
Contributor

On the Fitter object it is now possible to set

  • the maximal evaluations (LMFit and DFO function evaluations / Bumps steps)
  • the tolerance (LMFit and Bumps change in function value / Bumps change in new parameters / DFO: size of trust region)

@andped10 andped10 added the feature PR label label Oct 30, 2024
…crease-usability-of-minimizer-it-should-be-possible-to-set-the-tolerance-and-the-max-number-of-iteration
@AndrewSazonov AndrewSazonov self-requested a review November 11, 2024 12:25
minimizer_kwargs.update(engine_kwargs)

if tolerance is not None:
if 0.1 < tolerance:
Copy link
Member

Choose a reason for hiding this comment

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

Why is 0.1 chosen as the maximum possible tolerance value?

if max_evaluations is not None:
kwargs['maxfun'] = max_evaluations # max number of function evaluations
if tolerance is not None:
if 0.1 < tolerance:
Copy link
Member

Choose a reason for hiding this comment

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

Why is 0.1 chosen as the maximum possible tolerance value?

Copy link
Member

@AndrewSazonov AndrewSazonov left a comment

Choose a reason for hiding this comment

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

Looks good to me

@andped10 andped10 merged commit 9791889 into develop Nov 13, 2024
32 checks passed
@andped10 andped10 deleted the 81-to-increase-usability-of-minimizer-it-should-be-possible-to-set-the-tolerance-and-the-max-number-of-iteration branch November 13, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature PR label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants