Skip to content

Commit d1a8349

Browse files
committed
updated optuna
1 parent 8227550 commit d1a8349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deephyper_benchmark/search/_mpi_doptuna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def objective_wrapper(trial):
283283
# Constraints which are considered feasible if less than or equal to zero.
284284
constraints = []
285285
for i, lbi in enumerate(self._moo_lower_bounds):
286-
if lbi is not None:
286+
if lbi is not None and type(output["objective"][i]) is not str:
287287
ci = -(output["objective"][i] - lbi) # <= 0
288288
constraints.append(ci)
289289
trial.set_user_attr("constraints", tuple(constraints))

0 commit comments

Comments
 (0)