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

Add an objective to the problem.

ParametersΒΆ

objective: iwopy.Objective

The objective

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