Skip to content

Use the C++ tests' tolerance in the Holder table Python test - #3163

Merged
davisking merged 1 commit into
davisking:masterfrom
reunanen:use-the-cpp-tolerance-in-the-holder-table-python-test
Oct 1, 2026
Merged

davisking merged 1 commit into
davisking:masterfrom
reunanen:use-the-cpp-tolerance-in-the-holder-table-python-test

Conversation

@reunanen

Copy link
Copy Markdown
Contributor

test_on_holder_table can fail even when find_min_global finds a global minimum. In a failed run it returned -19.2084981, which is 4.5e-6 above the minimum, while the test allowed 1e-7. The C++ tests of the Holder table functions allow 1e-4. The Python test now allows 1e-4 as well. Other than near the global minima, the function stays above -18.03 in the search box, so this still checks that a global minimum was found.

test_on_holder_table can fail even when find_min_global finds a global
minimum. In a failed run it returned -19.2084981, which is 4.5e-6 above
the minimum, while the test allowed 1e-7. The C++ tests of the Holder
table functions allow 1e-4. The test now allows 1e-4 as well. Other than
near the global minima, the function stays above -18.03 in the search
box, so this still checks that a global minimum was found.
@davisking

Copy link
Copy Markdown
Owner

Thanks for the PR.

@davisking
davisking merged commit 7a63829 into davisking:master Oct 1, 2026
4 checks passed
@reunanen
reunanen deleted the use-the-cpp-tolerance-in-the-holder-table-python-test branch October 1, 2026 14:16
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