Skip to content

Parameter constraints #1823

Answered by saitcakmak
nikitrian asked this question in Q&A
May 10, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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-L456

If 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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nikitrian
Comment options

@saitcakmak
Comment options

Answer selected by nikitrian
@nikitrian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants