Skip to content

Commit ff087a0

Browse files
authored
Update acquisition function scaling for constrained optimization
1 parent 33b99ec commit ff087a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayes_opt/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def to_minimize(x):
6969
if target < 0:
7070
return target * p_constraint
7171
else:
72-
return target / (0.5 + p_constraint)
72+
return target / (0.5 + 0.5 * p_constraint)
7373
else:
7474
to_minimize = lambda x: -ac(x.reshape(1, -1), gp=gp, y_max=y_max)
7575

0 commit comments

Comments
 (0)