Skip to content

Commit 8b359d7

Browse files
remove redundant kwargs
1 parent 33d68b3 commit 8b359d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_ellipsoid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_run_d40_ellipsoid():
2020
allowable_evals = (8.8 + 0.5*3) * 1e3 # 2 sigma
2121
iteration_number = int(allowable_evals / lamb) + 1
2222

23-
cr = CRFMNES(dim, ellipsoid, mean, sigma, lamb, use_constraint_violation=False)
23+
cr = CRFMNES(dim, ellipsoid, mean, sigma, lamb)
2424
x_best, f_best = cr.optimize(iteration_number)
2525
print("f_best:{}".format(f_best))
2626
assert f_best < 1e-12
@@ -35,7 +35,7 @@ def test_run_d80_ellipsoid():
3535
allowable_evals = (17.5 + 0.6*3) * 1e3 # 2 sigma
3636
iteration_number = int(allowable_evals / lamb) + 1
3737

38-
cr = CRFMNES(dim, ellipsoid, mean, sigma, lamb, use_constraint_violation=False)
38+
cr = CRFMNES(dim, ellipsoid, mean, sigma, lamb)
3939
x_best, f_best = cr.optimize(iteration_number)
4040
print("f_best:{}".format(f_best))
4141
assert f_best < 1e-12

tests/test_rastrigin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_run_d40_rastrigin():
2121
allowable_evals = (148 + 8.8*3) * 1e3 # 2 sigma
2222
iteration_number = int(allowable_evals / lamb) + 1
2323

24-
cr = CRFMNES(dim, rastrigin, mean, sigma, lamb, use_constraint_violation=False)
24+
cr = CRFMNES(dim, rastrigin, mean, sigma, lamb)
2525
x_best, f_best = cr.optimize(iteration_number)
2626
print("f_best:{}".format(f_best))
2727
assert f_best < 1e-12
@@ -36,7 +36,7 @@ def test_run_d80_rastrigin():
3636
allowable_evals = (296 + 8.0*3) * 1e3 # 2 sigma
3737
iteration_number = int(allowable_evals / lamb) + 1
3838

39-
cr = CRFMNES(dim, rastrigin, mean, sigma, lamb, use_constraint_violation=False)
39+
cr = CRFMNES(dim, rastrigin, mean, sigma, lamb)
4040
x_best, f_best = cr.optimize(iteration_number)
4141
print("f_best:{}".format(f_best))
4242
assert f_best < 1e-12

0 commit comments

Comments
 (0)