From 4329df352bd356f7ecad78d7766e806164b971e0 Mon Sep 17 00:00:00 2001 From: Joel Date: Sun, 28 Dec 2025 14:35:01 -0500 Subject: [PATCH] Fix flaky holder table test by increasing max function calls The test was failing ~5-10% of the time with 200 evaluations because find_min_global occasionally converges to a local minimum. Increasing to 300 evaluations eliminates flakiness while keeping the test fast. --- tools/python/test/test_global_optimization.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/python/test/test_global_optimization.py b/tools/python/test/test_global_optimization.py index ec320909f2..cea0b2d190 100644 --- a/tools/python/test/test_global_optimization.py +++ b/tools/python/test/test_global_optimization.py @@ -62,8 +62,8 @@ def holder_table(x0,x1): return -abs(sin(x0)*cos(x1)*exp(abs(1-sqrt(x0*x0+x1*x1)/pi))) def test_on_holder_table(): - x,y = find_min_global(holder_table, - [-10,-10], - [10,10], - 200) + x,y = find_min_global(holder_table, + [-10,-10], + [10,10], + 300) assert (y - -19.2085025679) < 1e-7