optimas-org / optimas

Optimization at scale, powered by libEnsemble
https://optimas.readthedocs.io
Other
22 stars 13 forks source link

Add support for constraints in Ax generators using the Service API #170

Closed AngelFP closed 7 months ago

AngelFP commented 7 months ago

Adds the possibility of providing parameter_constraints and outcome_constraints in the generators that use the Ax Service API.

Example:


var1 = VaryingParameter("x0", -50.0, 5.0)
var2 = VaryingParameter("x1", -5.0, 15.0)
obj = Objective("f", minimize=False)
p1 = Parameter("p1")

gen = AxSingleFidelityGenerator(
    varying_parameters=[var1, var2],
    objectives=[obj],
    analyzed_parameters=[p1],
    parameter_constraints=["x0 + x1 <= 10"],
    outcome_constraints=["p1 <= 30"]
)