TOPICS
Search

Rastrigin Function


The Rastrigin function is a nonconvex test function used in global optimization theory. In d dimensions, its usual form is

 f(x)=Ad+sum_(i=1)^d[x_i^2-Acos(2pix_i)],

where A=10 is conventional. It has global minimum f(0)=0 and many regularly spaced local minima produced by the cosine terms.

The separability and large number of local minima make the function a common benchmark for comparing global optimization algorithms. Benchmark domains are often restricted to a box such as [-5.12,5.12]^d, but the formula itself is defined on all of R^d.


See also

Ackley Function, Global Minimum, Optimization Theory

Explore with Wolfram|Alpha

References

Jamil, M. and Yang, X.-S. "A Literature Survey of Benchmark Functions for Global Optimisation Problems." Int. J. Math. Model. Numer. Optim. 4, 150-194, 2013. https://doi.org/10.1504/IJMMNO.2013.055204.

Cite this as:

Weisstein, Eric W. "Rastrigin Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RastriginFunction.html

Subject classifications