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)
cma
: CMA-ES Java object, created with cmaNew
d
: a parameter of type doublep
: a parameter of type longIf 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 |
cmaSetDimension
, cmaNew
, cmaInit
Useful links