Skip to content

Commit

Permalink
Adjust tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Mar 7, 2024
1 parent 51d39d4 commit a1a05c3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions python/egobox/tests/test_egor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a1a05c3

Please sign in to comment.