Skip to content

configurable Constraints for each sample #970

Answered by Balandat
SimonHerter asked this question in Q&A
Discussion options

You must be logged in to vote

We currently don't have support for nonlinear inequality constraints like these built out, but it should not be too hard to pass them into the optimizer and have scipy deal with them. Essentially, what one would do is to, in addition to equality and inequality constraints, also allow other generic callables as an input to https://github.com/pytorch/botorch/blob/main/botorch/optim/optimize.py#L40, and then properly pass it through the stack to gen_candidates_scipy and ultimately scipy.optimize.minimize in

res = minimize(
.

We'd be happy to accept a PR for this. A couple of words of warning though:

  1. This can make the opt…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by SimonHerter
Comment options

You must be logged in to vote
1 reply
@Balandat
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