Skip to main content

SelectionStrategy

Module: opytimizer.hyperheuristics.selection_strategy

Abstract base class for selection strategies.

Constructor​

SelectionStrategy() -> None

Methods​

select​

select(self, optimizers: List[Any], performance_history: Dict[str, List[float]]) -> Any

Select an optimizer based on the strategy.

Returns: (Any): Selected optimizer.

Parameters​

ParameterTypeDefaultDescription
optimizersList[Any]List of available optimizers.
performance_historyDict[str, List[float]]Performance history for each optimizer.