| cmaSetStopFitness | R Documentation |
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 |
d |
a parameter of type double |
p |
a parameter of type long |
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 |
cmaSetDimension, cmaNew, cmaInit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.