tpa_mutation

modcma.modularcmaes.tpa_mutation(fitness_func: Callable, parameters: modcma.parameters.Parameters) → None

Helper function for applying the tpa mutation step.

The code was mostly taken from the ModEA framework, and there a slight differences with the procedure as defined in: Nikolaus Hansen. CMA-ES with two-point step-size adaptation.CoRR, abs/0805.0231,2008. The function should not be used outside of the ModularCMAES optimizer

Parameters
  • fitness_func (typing.Callable) – A fitness function to be optimized

  • parameters (Parameters) – A modcma Parameters object

  • x (list) – A list of new individuals

  • y (list) – A list of new mutation vectors

  • f (list) – A list of fitnesses