-
Notifications
You must be signed in to change notification settings - Fork 323
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
Passing parameter_constraint
-s with bounds other than [0,1] while passing model_gen_kwargs: model_gen_options: optimizer_kwargs: inequality_constraints
violates parameter constraints
#1635
Comments
Thanks for the repro! I think the fundamental issues with the non-
If the constraints are passed to Ax at the level of the search space, then we automatically transform them under the hood and therefore can make sure that they're applied correctly (this is also the reason why you get the error of duplicate kwargs in #1430 - we're already passing the (transformed) constraints to the optimizer). In the case of passing them in via the |
@Balandat, thanks for this! It's good to get some confirmation, and what you said makes sense. I get that there's a lot of considerations that have to be made to hook up this kind of functionality, so in the meantime, the reparameterization as an inequality constraint (make one variable "hidden") still seems like the best way to go. |
@sgbaird it seems to me that your question was answered, so I'm closing this issue. Please feel free to follow up on it, but if you do, please reopen the issue as we might not see your comment on a closed one. |
As part of the root problem in #1430 (cc @bernardbeckerman), where I'm trying to implement an optimization with the following features:
Models.FULLYBAYESIANMOO
(i.e., multi-objective SAASBO) https://ax.dev/tutorials/saasbo_nehvi.htmlget_next_trials
)AxClient
instances.Colab Reproducer
Trying out different configurations
Relevant variables
loose_parameters
tight_parameters
parameter_constraints
equality_constraints
Configurations
Loose parameters only ([0, 1] bounds)
Tight parameters only (not [0, 1] bounds)
Loose parameters and parameter_constraints
Tight parameters and parameter_constraints
Takeaways
tight_parameters
always violates the equality constraint.model_gen_kwargs
:model_gen_options
:optimizer_kwargs
:inequality_constraints
) #1430 (comment) aboutparameter_constraints
getting violated, it seems that theparameter_constraints
are obeyed in both cases that properly pass inparameter_constraints
.The text was updated successfully, but these errors were encountered: