-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce the constaint "x1*x2=32" #265
Comments
Can you just re-parameterize things on your end then? Like get rid of |
@Balandat Hmm, I kinda simplified it so this won't work in my problem. My problem is more like an optimization of |
@Balandat Hi there, I'm following up to see if there's any update on this thread. Thanks! |
Unfortunately, that setup isn't something we can easily support on the Ax frontend. In principle, you could specify these constraints for the optimization algorithm algorithm when generating new candidates, but that would have to happen on the lower level in botorch, essentially by passing the constraint according to scipy convention here: https://github.com/pytorch/botorch/blob/master/botorch/gen.py#L120-L128 This probably works ok if you have a decent model. My concern is that if you use this to generate candidates then your data will live on some lower-dimensional manifold defined by your constraints, and as a result my suspicion is that the model will have a very hard time getting reasonable fits. I think doing this properly will require more sophisticated methods than we currently support. |
This issue is a duplicate of #153, closing. |
Hi there, following the last issue, is there a convenient way to have a constraint like "x1*x2=32" using the outcome variable or "metric"? In particular, I want to add this to https://github.com/pytorch/botorch/blob/master/tutorials/custom_botorch_model_in_ax.ipynb and need a strict equal instead of GEQ or LEQ. Thanks!
The text was updated successfully, but these errors were encountered: