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

DOC: optimize: add notes for max function evaluation constraint violation #14857

Merged
merged 2 commits into from
Nov 12, 2021

Conversation

AtsushiSakai
Copy link
Member

Reference issue

Fix #14818
Ref #14805 (comment)

What does this implement/fix?

As discussed and reported in #14805 (comment) and #14818,
"TNC" and "L-BFGS-B" support max function evaluation constraint, but these may violate the limit because of evaluating gradients by numerical differentiation.
So, I improved the docs for clarifying the limitation.

@AtsushiSakai AtsushiSakai added the Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org label Oct 14, 2021
Copy link
Member

@tupui tupui left a comment

Choose a reason for hiding this comment

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

LGTM, the description is clear, thanks @AtsushiSakai.

Before merging, I am still wondering if we should not stop before then. If we do numerical differentiation, we should know how many evaluation is done each time no? @andyfaff what do you think?

@andyfaff andyfaff merged commit 416e129 into scipy:master Nov 12, 2021
@andyfaff
Copy link
Contributor

This PR looks ok to me. There's always going to be this sort of issue, and I don't think it's really all that solvable short of a harsh abort, which has the potential to lose minimiser progress. I force pushed after a rebase because of the privatisation refactor.

@AtsushiSakai AtsushiSakai deleted the add_maxfev_limitation_doc branch November 12, 2021 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org scipy.optimize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

b'STOP: TOTAL NO. of f AND g EVALUATIONS EXCEEDS LIMIT
3 participants