RoutineBase.addConstrs#

RoutineBase.addConstrs(name: str, e_str: str, info: str | None = None, is_eq: str | None = False)[source]#

Add Constraint to the routine. to the routine.

Parameters:
namestr

Constraint name. One should typically assigning the name directly because it will be automatically assigned by the model. The value of name will be the symbol name to be used in expressions.

e_strstr

Constraint expression string.

infostr, optional

Descriptive information

is_eqstr, optional

Flag indicating if the constraint is an equality constraint. False indicates an inequality constraint in the form of <= 0.