cmaSetStopFitness function

rCMA Stop Conditions.

rCMA Stop Conditions.

Set various stop conditions of CMA-ES Java object cma (only prior to cmaInit).

cmaSetStopFitness sets the stop condition: fitness function below d (default: DOUBLE.MinValue)

cmaSetStopMaxFunEvals sets the stop condition: max number of fitness function evaluations

cmaSetStopTolFun sets the stop condition: delta of fitness function below d (default: 1e-12)

cmaSetStopFitness(cma, d) cmaSetStopMaxFunEvals(cma, p) cmaSetStopTolFun(cma, d)

Arguments

  • cma: CMA-ES Java object, created with cmaNew
  • d: a parameter of type double
  • p: a parameter of type long

Note

If your fitness can become negative, you need to set cmaSetStopFitness to a value different from the default to prevent premature stopping.

The properties file (read by cmaNew) can be used to set further stop conditions. If they are not set, the following defaults are active:

namedefault settingmeaning
stopTolFunHist1e-13similar to stopTolFun, see CMA-ES Javadoc for details
stopTolX0.0stop if seacrh steps become smaller than stopTolX
stopTolXfactor0.0stop if search steps become smaller than stopTolXFactor * initial step size
stopMaxIter+Infstop if number of iterations (generations) are greater

See Also

cmaSetDimension, cmaNew, cmaInit

  • Maintainer: Wolfgang Konen
  • License: GPL (>= 3)
  • Last published: 2022-06-24

Useful links