Skip to content

Commit a1a05c3

Browse files
committed
Adjust tolerance
1 parent 51d39d4 commit a1a05c3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

python/egobox/tests/test_egor.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,7 @@ def six_humps(x):
6666
x1 = x[:, 0]
6767
x2 = x[:, 1]
6868
print(x)
69-
sum1 = (
70-
4 * x1**2
71-
- 2.1 * x1**4
72-
+ 1.0 / 3.0 * x1**6
73-
+ x1 * x2
74-
- 4 * x2**2
75-
+ 4 * x2**4
76-
)
69+
sum1 = 4 * x1**2 - 2.1 * x1**4 + 1.0 / 3.0 * x1**6 + x1 * x2 - 4 * x2**2 + 4 * x2**4
7770
print(np.atleast_2d(sum1).T)
7871
return np.atleast_2d(sum1).T
7972

@@ -123,7 +116,7 @@ def test_g24(self):
123116
n_cstr = 2
124117
egor = egx.Egor(
125118
egx.to_specs([[0.0, 3.0], [0.0, 4.0]]),
126-
cstr_tol=np.array([1e-3, 1e-3]),
119+
cstr_tol=np.array([1e-3, 2e-3]),
127120
n_cstr=n_cstr,
128121
seed=42,
129122
n_doe=n_doe,

0 commit comments

Comments
 (0)