Let's consider the following simple problem:
\( \min \qquad f= x^2_{1} + x^2_{2} \)
The solution is obviously \(x_1 = 0 \) and \( x_2 = 0 \). Let's use CMA-ES to find this.
Change the covariance matrix using the sliders to see how the sampled distribution changes.
Note that the scale for covariances \( C_{12} \) and \( C_{21} \) is updated such that the range corresponds to a correlation between \(-1 \) to \( 1\). This is because, there exists an upper limit for covariance of two variables given by \( \lceil C_{12} \rceil = \sqrt{C_{11} C_{22}} \).
By using the fitness values at the sampled points, the CMA-ES algorithm makes clever adaptations to the covariance matrix and mean values, and thereby performs effective optimisation. For more details on the adaptation procedures, one may refer to the following resources.