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

MAINT: Ensure that total function calls is < 'maxfev' #12947

Closed
wants to merge 1 commit into from

Conversation

prince2110
Copy link

The count of total function calls were checked only after an iteration was completed. This led to an issue due to which the main purpose of option 'maxfev' was defeated. The current change would ensure that the total function evaluations is less than 'maxfev'.

Reference issue

See #12271

What does this implement/fix?

Ensures that the 'maxfev' option is not violated.

The count of total function calls were checked only after an iteration was completed. This led to an issue due to which the main purpose of option 'maxfev' was defeated. The current change would ensure that the total function evaluations is less than 'maxfev'.
@prince2110
Copy link
Author

Second commit solves the following issue

Reference issue

See #13011

What does this implement/fix?

This will ensure that all local minima data is passed to callback function including that of initial guess and further iterations.

@rgommers rgommers added the maintenance Items related to regular maintenance tasks label Nov 29, 2020
@rgommers
Copy link
Member

Any fix needs a test to verify correctness and avoid regressions. There's more to this story than this two-line fix - I commented on gh-12271.

@rgommers rgommers added the needs-work Items that are pending response from the author label Nov 29, 2020
@j-bowhay
Copy link
Member

Both issues that this pr set out to fixed have been fixed now so I think it is safe to close this but thank you for the contribution.

@j-bowhay j-bowhay closed this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks needs-work Items that are pending response from the author scipy.optimize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants