Replies: 1 comment
-
The main challenge with your constraint is that it's non-convex, so it can't be expressed an intersection of half spaces (or linear inequality constraints). The "good" news is that the acquisition function optimization is already non-convex so this doesn't necessarily make things a lot harder from an optimization perspective. You can use the (experimental) support for non-linear inequality constraints for this: https://github.com/pytorch/botorch/blob/main/botorch/optim/optimize.py#L438-L445 Basically the callable that you need to provide will need be positive when outside the infeasible region - so you could use e.g. the distance to the infeasible set. |
Beta Was this translation helpful? Give feedback.
-
I am trying to perform constrained Bayesian optimization using Botorch.
There is an inequality constraint like Case 1 in the attached file. In fact, an inequality constraint like Case 2 can be expressed using "inequality constraint" among the acquisition function commands.
However, when it is difficult to express with a linear inequality constraint, such as case 1, I am not sure how to express it.
I think it is an inequality nonlinear constraint. Do you have any examples?
** Code snippet to reproduce **
Expected Behavior
System information
Please complete the following information:
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions