CMA-ES is a derivative-free optimiser. It samples a Gaussian population, keeps the strongest candidates, then adapts both the scale and the shape of the next search distribution.
SEARCH DISTRIBUTION · TEXTBOOKx = m + σ C1/2 z, z ~ N(0, I)
WEIGHTED RECOMBINATION · TEXTBOOKm′ = Σ wᵢ xᵢ:λ
EVOLUTION PATHS · TEXTBOOKpσ′ = (1−cσ)pσ + √[cσ(2−cσ)μeff] C⁻¹ᐟ² ȳ
p꜀′ = (1−c꜀)p꜀ + hσ√[c꜀(2−c꜀)μeff] ȳ
COVARIANCE ADAPTATION · TEXTBOOKC′ = [1−c₁−cμ+c₁(1−hσ)c꜀(2−c꜀)]C
+ c₁p꜀p꜀ᵀ + cμ Σwᵢ yᵢyᵢᵀμ = floor(λ/2); logarithmic positive recombination weights.
STEP-SIZE CONTROL · TEXTBOOKσ′ = σ exp[(cσ/dσ)(‖pσ‖/χ₂ − 1)]
TEST LANDSCAPE · ILLUSTRATIVEf(x) = 1 + u₁² + κu₂²
u = R(−θ)xExact minimum: f(0,0) = 1 · textbook benchmarkInverse-Hessian shape target: axis ratio √κ · textbook
What is simplified
- Two dimensions, a stationary noise-free objective, and a fixed population size per run.
- The covariance matrix is updated with the standard rank-one and rank-μ CMA-ES terms; its symmetric eigensystem is solved directly.
- Coordinates are scaled teaching units, not physical distances. The covariance inset is normalised to show shape rather than absolute search radius.
- The finite run is stochastic; the exact minimum is a deterministic reference, not a promise of finite-time convergence.
Illustrative educational model, not affiliated with any real institution or manufacturer.