Skip to content

Correctly pass on maxiter argument to inner minimizer when basinhopping#43

Merged
jessegrabowski merged 1 commit intomainfrom
basinhopping-maxiter-fix
Aug 4, 2025
Merged

Correctly pass on maxiter argument to inner minimizer when basinhopping#43
jessegrabowski merged 1 commit intomainfrom
basinhopping-maxiter-fix

Conversation

@jessegrabowski
Copy link
Owner

No description provided.

@jessegrabowski jessegrabowski requested a review from Copilot August 4, 2025 07:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the basinhopping optimization function where the maxiter argument was being removed from minimizer_kwargs by the determine_maxiter function but not properly restored, preventing the maximum iteration limit from being passed to the inner minimizer.

  • Restores the maxiter parameter to minimizer_kwargs after it's extracted by determine_maxiter
  • Adds explanatory comment about why the parameter needs to be restored

@jessegrabowski jessegrabowski merged commit cac6069 into main Aug 4, 2025
7 checks passed
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.

1 participant

Comments