foxes_opt.core.FarmOptProblem.add_objective(objective, varmap_int=None, varmap_float=None, verbosity=0)

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