Applying nonlinear inequality constraints depending on categorical values #3074
Unanswered
mvincent-ethzBA
asked this question in
Q&A
Replies: 1 comment
-
|
Hi, there's a lot to look over here -- would you be able produce a more minimal reproducible example that comes as close as you can get to isolating the issue with a small number of lines of code? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm kinda new and currently using Botorch for a university project. I've run into a problem I can't seem to fix on my own, and would like some help/clarification.
I have 1 categorical and 4 continuous input features, and want to apply to a continuous feature a constraint which is different depending on the value of the categorical feature. I've tried multiple different approaches, but everytime I run it I get the same error "ValueError:
batch_initial_conditionsmust satisfy the non-linear inequality constraints". Every attempt I've made with a ic_generator that satisfies the constraint has also always eventually ended up with the same error. I'll paste the full code and traceback below, and I'd really be grateful for any help or tips you could send my way.Here's the code (the constraint function is near the bottom):
And here's the Traceback:
Beta Was this translation helpful? Give feedback.
All reactions