iwopy.core.Problem.add_constraint(constraint, varmap_int=None, varmap_float=None, verbosity=0)[source]

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