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

made sure to use njev only when available in scipy optimize results #542

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

zaccharieramzi
Copy link
Contributor

This should fix #536 and #531

Basically makes the nfev (function eval), njev (jacobian eval) and nhev (hessian eval) counts 0 if they are not present in the scipy results.

This was already the behaviour for the hessian.

@mblondel
Copy link
Collaborator

mblondel commented Oct 3, 2023

Thanks a lot for the fix @zaccharieramzi. Can you add a non-regression test, for example using "TNC" as in #536.

@zaccharieramzi
Copy link
Contributor Author

Sure! Will do

@zaccharieramzi
Copy link
Contributor Author

@mblondel : added nonregression tests, made sure that they fail without the fix and they are green now

@copybara-service copybara-service bot merged commit 5b9b62c into google:main Nov 13, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ScipyMinimize(method="TNC") is broken
2 participants