Source code for iwopy.core.objective
from abc import abstractmethod
from .function import OptFunction
[docs]
class Objective(OptFunction):
"""
Abstract base class for objective functions.
:group: core
"""
[docs]
@abstractmethod
def maximize(self):
"""
Returns flag for maximization of each component.
Returns
-------
flags: np.array
Bool array for component maximization,
shape: (n_components,)
"""
pass