opytimizer.functions.multi_objective.weighted

Multi-objective weighted functions.

class opytimizer.functions.multi_objective.weighted.MultiObjectiveWeightedFunction(functions: List[callable], weights: List[float])

A MultiObjectiveWeightedFunction class used to hold multi-objective weighted functions.

__init__(functions: List[callable], weights: List[float]) → None

Initialization method.

Parameters:
  • functions – Pointers to functions that will return the fitness value.
  • weights – Weights for weighted-sum strategy.
__call__(x: numpy.ndarray) → float

Callable to avoid using the pointer property.

Parameters:x – Array of positions.
Returns:Multi-objective weighted function fitness.
Return type:(float)
weights

Functions’ weights.