How to optimize of percentage inputs #1301
-
When I optimize three inputs (X_bounds = [0-100, 0-100, 0-100]), Please let me know, one or two example codes and reference links. I have to write code applying both of single- and Multi-objects. And this case was used before, I'd like to know the possibility. Thank you for your kindness. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @taikichi-pc. In your case, the constraint is quite simple, so you could do define a simple wrapper (a sub-class in this case) around the acquisition function, which takes in 2-dimensional inputs and appends the last input before evaluating the acquisition function. You'd then optimize this via
|
Beta Was this translation helpful? Give feedback.
Hi @taikichi-pc.
optimize_acqf
takes in anequality_constraints
argument, though there seems to be a bug with this: #1227.In your case, the constraint is quite simple, so you could do define a simple wrapper (a sub-class in this case) around the acquisition function, which takes in 2-dimensional inputs and appends the last input before evaluating the acquisition function. You'd then optimize this via
optimize_acqf
, using the bounds for the first two dimensions and using aninequality_constraint
that makes sure that the sum of the two is<= 100
. Something like: