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: optimize.differential_evolution: clarify that bounds must be finite #18958

Merged
merged 1 commit into from Jul 25, 2023

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented Jul 25, 2023

Reference issue

closes gh-18953

What does this implement/fix?

When differential evolution is passed infinite bounds, the error message did not mention that the bounds need to be finite. This PR resolves the issue by adding the word "finite" to the error message.

Additional information

The requirement for bounds to be finite is already present in the documentation.

@mdhaber mdhaber added scipy.optimize maintenance Items related to regular maintenance tasks labels Jul 25, 2023
@mdhaber mdhaber requested a review from andyfaff as a code owner July 25, 2023 00:51
@andyfaff
Copy link
Contributor

Lgtm, merge when green.

@andyfaff andyfaff merged commit f37e08f into scipy:main Jul 25, 2023
25 checks passed
@j-bowhay j-bowhay added this to the 1.12.0 milestone Jul 25, 2023
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 scipy.optimize
Projects
None yet
3 participants