CADETProcess.optimization.OptimizationProblem.evaluate_callbacks

CADETProcess.optimization.OptimizationProblem.evaluate_callbacks#

OptimizationProblem.evaluate_callbacks(population: Population | Individual | ArrayLike, current_iteration: int = 0, parallelization_backend: ParallelizationBackendBase | None = None, force: bool = False) None[source]#

Evaluate callback functions for each individual x in population X.

Parameters:
populationPopulation | Individual | npt.ArrayLike

Population to be evaluated. If an Individual is passed, a new population will be created. If a numpy array is passed, a new population will be created, assuming the values are independent values in untransformed space.

current_iterationint, optional

Current iteration step. This value is used to determine whether the evaluation of callbacks should be skipped according to their evaluation frequency. The default is 0, indicating the callbacks will be evaluated regardless of the specified frequency.

parallelization_backendParallelizationBackendBase, optional

Adapter to backend for parallel evaluation of population. By default, the individuals are evaluated sequentially.

forcebool

If True, do not use cached results. The default is False.

See also

add_callback
_evaluate_population
_evaluate_individual
_evaluate