Skip to content

Commit 6df9246

Browse files
Make CMAES fail if problem is bounded (#100)
1 parent d995b97 commit 6df9246

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/evotorch/algorithms/cmaes.py

+3
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ def __init__(
217217
# Ensure that the problem is numeric
218218
problem.ensure_numeric()
219219

220+
# CMAES can't handle problem bounds. Ensure that it is unbounded
221+
problem.ensure_unbounded()
222+
220223
# Store the objective index
221224
self._obj_index = problem.normalize_obj_index(obj_index)
222225

0 commit comments

Comments
 (0)