Parameter constraints #1823
-
Hello, I am adding parameter constraints to my problem as Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @nikitrian. The constraint in ConstrainedEI refers to the outcome constraints. Parameter constraints only affect how you optimize the acquisition function (i.e., how |
Beta Was this translation helpful? Give feedback.
Parameter constraints should not be specified while constructing the acquisition function. You need to pass them to
optimize_acqf
using the syntax described in https://github.com/pytorch/botorch/blob/main/botorch/optim/optimize.py#L451-L456If your goal is to optimize a given objective with several different acquisition functions, I'd highly recommend using Ax, which has a very convenient API for specifying constraints: https://ax.dev/tutorials/gpei_hartmann_service.html
We also have a tutorial showing how to use a custom BoTorch acquisition function with Ax: https://botorch.org/tutorials/custom_acquisition