CADETProcess.optimization.ParallelizationBackendBase.evaluate

CADETProcess.optimization.ParallelizationBackendBase.evaluate#

abstract ParallelizationBackendBase.evaluate(function: callable, population: Iterable) list[source]#

Evaluate the function at all individuals in the population-list.

This method must be implemented by subclasses to evaluate the provided function at each individual in the given population. The evaluation can be performed sequentially or in parallel, depending on the concrete implementation.

Parameters:
functioncallable

The function of interest to be evaluated for the population.

populationIterable

A collection of individuals at which the function is to be evaluated.

Returns:
list

List of results of function evaluations.