From a1a05c3846b503f746c692d3d1e5c0ea324c9844 Mon Sep 17 00:00:00 2001 From: relf Date: Thu, 7 Mar 2024 17:00:12 +0100 Subject: [PATCH] Adjust tolerance --- python/egobox/tests/test_egor.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/python/egobox/tests/test_egor.py b/python/egobox/tests/test_egor.py index 15af5fcd..7ac123d4 100644 --- a/python/egobox/tests/test_egor.py +++ b/python/egobox/tests/test_egor.py @@ -66,14 +66,7 @@ def six_humps(x): x1 = x[:, 0] x2 = x[:, 1] print(x) - sum1 = ( - 4 * x1**2 - - 2.1 * x1**4 - + 1.0 / 3.0 * x1**6 - + x1 * x2 - - 4 * x2**2 - + 4 * x2**4 - ) + sum1 = 4 * x1**2 - 2.1 * x1**4 + 1.0 / 3.0 * x1**6 + x1 * x2 - 4 * x2**2 + 4 * x2**4 print(np.atleast_2d(sum1).T) return np.atleast_2d(sum1).T @@ -123,7 +116,7 @@ def test_g24(self): n_cstr = 2 egor = egx.Egor( egx.to_specs([[0.0, 3.0], [0.0, 4.0]]), - cstr_tol=np.array([1e-3, 1e-3]), + cstr_tol=np.array([1e-3, 2e-3]), n_cstr=n_cstr, seed=42, n_doe=n_doe,