Constraints¶
- class ionworkspipeline.Constraint(fun, constraint_type)¶
A constraint is a function that takes the a dictionary of inputs and returns a value. For equality constraints, the function should evaluate to 0. For inequality constraints, the function should evaluate to a value greater than or equal to 0.
Parameters¶
- funcallable
The constraint function. Should take a dictionary of inputs and return a value.
- constraint_typestr
The type of constraint. Must be “eq” for equality constraints or “ineq” for inequality constraints.