-
foxes_opt.core.FarmOptProblem.add_constraint(constraint, varmap_int=
None
, varmap_float=None
, verbosity=0
) Add a constraint to the problem.
Parameters¶
- constraint: iwopy.Constraint
The constraint
- varmap_int: dict, optional
Mapping from objective variables to problem variables. Key: str or int, value: str or int
- varmap_float: dict, optional
Mapping from objective variables to problem variables. Key: str or int, value: str or int
- verbosity: int
The verbosity level, 0 = silent