The Rastrigin function is depicted as:

Rastrigin Function
The Rastrigin function is depicted as:
Dimensions: d
The Rastrigin function has several local minima. It is highly multimodal, but locations of the minima are regularly distributed. It is shown in its two-dimensional form in the preceding plot.
The function is usually evaluated on the xi ∈ [-5.12, 5.12] hypercube, for all i = 1, …, d.