Skip to content

Conversation

@GermanHeim
Copy link

This pull request updates the minimize function and related types to include the number of function evaluations in its return values.

Introduces minimize_with_nevals to return both optimization results and the number of function evaluations. The original minimize function now omits evaluation count for backwards compatibility.
Copy link
Owner

@relf relf left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution (I know why you want to do this! 😄).

I think I prefer the breaking change of adding a fourth return value instead of introducing a minimize_with_nevals which name is a bit ambiguous and somehow "double" the API surface.

@GermanHeim
Copy link
Author

Does the first commit (4576a23) seem fine or would you like some other changes?

@relf
Copy link
Owner

relf commented Oct 24, 2025

Yes, the first commit is ok.

@GermanHeim
Copy link
Author

Hello, I no longer need this for my use case. Would you like me to revert to the first commit anyway to be able to merge, or should I close this PR?

@relf
Copy link
Owner

relf commented Nov 9, 2025

It 's ok, without any requirement, I prefer to keep it simple. Thanks!

@relf relf closed this Nov 9, 2025
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.

2 participants