Skip to content

Commit

Permalink
fix bug in nchoosek_constraints_as_bounds (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Osburg authored Jan 24, 2024
1 parent 307ff65 commit 64f6240
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bofire/strategies/doe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ def nchoosek_constraints_as_bounds(
for i in range(n_experiments):
ind_vanish = ind[i % len(ind)]
bounds[ind_vanish + i * len(domain.inputs), :] = [0, 0]
if i % len(ind) == len(ind) - 1:
np.random.shuffle(ind)
else:
pass

Expand Down

0 comments on commit 64f6240

Please sign in to comment.