cmaSetStopFitness: rCMA Stop Conditions.

View source: R/cmaGetters.R

cmaSetStopFitnessR Documentation

rCMA Stop Conditions.

Description

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)

Usage

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:

name default setting meaning
stopTolFunHist 1e-13 similar to stopTolFun, see CMA-ES Javadoc for details
stopTolX 0.0 stop if seacrh steps become smaller than stopTolX
stopTolXfactor 0.0 stop if search steps become smaller than stopTolXFactor * initial step size
stopMaxIter +Inf stop if number of iterations (generations) are greater

See Also

cmaSetDimension, cmaNew, cmaInit


rCMA documentation built on June 24, 2022, 5:06 p.m.