Question about constraints
FelixNeutatz opened this issue · 1 comments
FelixNeutatz commented
Hi everybody,
I have a question about this line
If I have a constraint x <= 10. Then, I should implement the function:
def fc(x):
return float(10.0-x)
Is this correct? I did not find any documentation on whether the constraint value is maximized or minimized.
Thank you for your help.
Best regards,
Felix
apaleyes commented
Hello! This particular loop is built with Probability Of Feasibility acquisition, which assumes c(x) <= 0
, see here: https://github.com/EmuKit/emukit/blob/main/emukit/bayesian_optimization/acquisitions/probability_of_feasibility.py#L18
I do agree though the documentation shall be much clearer, we'll look into improving the docs of UnknownConstraintBO classes. Thanks to bringing this up!