-
Notifications
You must be signed in to change notification settings - Fork 311
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
Setting parameter constraints of the form x - y >= 1 #178
Comments
Using the ParameterConstraint class,
Will work. Constraints of this form cannot currently be parsed from strings expressions. |
@dqii, it seems that you are using the Service or Loop APIs? For those, only addition is supported at the moment, but I will flag this as something we need to add. To use the answer Jacob provided above, you would need to use the Developer API. Also, one solution could be simply changing your problem setup such that you convert y to -y in your evaluation procedure –– that might be the fastest way to get your constraint working for now. |
Correct, I'm using the Loop API currently. Thanks for the response! |
@dqii, this functionality is now available on |
This functionality is now part of the latest stable version, 0.1.8! |
It seems like parameter restraints are very strict, so x - y >= 1 does not work. Is it possible to support this in the future or does something prevent it?
"Parameter constraint should be of form <parameter_name> >= <other_parameter_name> for order constraints or
<parameter_name> + <other_parameter_name> >= x, where any number of parameters can be summed up and
x` is a float bound. Acceptable comparison operators are ">=" and "<=".'The text was updated successfully, but these errors were encountered: