-
Notifications
You must be signed in to change notification settings - Fork 404
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
Adding constraints to Multi-fidelity BO with discrete fidielities #1100
Comments
Hmm since this is KG it is a high dim optimization problem so it might be that the SLSQP solver is just too slow here. But your constraint is a simple bound constraint so you can just edit the bounds you pass to the optimization instead of adding this as an inequality constraint. |
I see. I actually have a more complicated constraint: x1+x2<1, the above is more of a test for the constraint capability. Do you think it might not be feasible to optimize with KG over this constraint? If so, is there any better way to incorporate constraints for multi-fidelity BO? |
I wonder if this is related to #938. Though, as I found out in #939, that should not be an issue with qMFKG. I think the real issue is SLSQP as @Balandat pointed out above. Here's an old comment that talks about how SLSQP tries to allocate 128gb memory when optimizing qKG. The reason for this is the time and space complexity of SLSQP is cubic in the effective dimension of the solution tensor, which in the case of qKG / qMFKG is |
Issue description
I was following the page of Multi-fidelity BO with discrete fidelities: https://botorch.org/tutorials/discrete_multi_fidelity_bo, and try to add inequality parameter constraints to the optimizer. I only modified the optimize_acqf_mixed() and optimize_acqf() functions as below, where I tried to implement the constraint 'x[5]<0.2'. But the code ran forever and failed to output any candidates or observations. It was working well without the two constraints. Did I mess up anything here? Thank you.
Code example
note that the discrete fidelities were slightly modified from the original page.
System Info
Please provide information about your setup, including
The text was updated successfully, but these errors were encountered: