pub enum Termination {
NoEffectAxis,
NoEffectCoord,
ConditionCov,
EqualFunValues,
Stagnation,
TolXUp,
TolFun,
TolX,
}Expand description
A CMA-ES termination criterion (Hansen 2016, Appendix B.3).
Variants§
NoEffectAxis
Adding a 0.1-standard deviation vector along a principal axis of C does not change the mean.
NoEffectCoord
Adding 0.2 standard deviations in a coordinate does not change the mean.
ConditionCov
The condition number of C exceeds Config::max_condition.
EqualFunValues
The best costs of the last 10 + ⌈30 n / λ⌉ generations are all equal.
Stagnation
Over a long window, the median of the most recent 30 % of both the best and the median costs is not better than the median of the first 30 %.
TolXUp
σ · max(diag(D)) grew by more than Config::tol_x_up: σ was far
too small initially, or the run diverges.
TolFun
The best costs of the last 10 + ⌈30 n / λ⌉ generations and all costs of the current
one lie within a range below Config::tol_fun.
TolX
Every coordinate’s standard deviation and every component of σ p_c is below
Config::tol_x.