-
Notifications
You must be signed in to change notification settings - Fork 0
Rastrigin
The Rastrigin function is a widely used benchmark for testing optimization algorithms due to its high dimensionality and large number of local minima. It is defined mathematically as:
The default Rastrigin.ndim) is 2.
Here is a link to an interactive Desmos version: https://www.desmos.com/3d/btojwoqonz
Rastrigin().visualize()
- Multimodality: The function has a large number of local minima, making it challenging for optimization algorithms to find the global minimum.
-
Global minimum: The global minimum is located at
$f(x^*=<0,...,0>) = 0$ . -
Search space: Typically, the function is evaluated over the bounded region
$[-5.12, 5.12]$ for each dimension, which is also the default value. - Periodic nature: The cosine term introduces a periodic aspect to the function, contributing to its complexity and numerous local minima.
The Rastrigin function is useful for evaluating the performance of optimization algorithms in terms of their ability to handle high-dimensional, multimodal search spaces with periodicity. Its landscape presents a significant challenge for many optimization techniques, especially those that rely on local search heuristics. Algorithms that can effectively navigate the Rastrigin function's terrain are likely to perform well on a variety of real-world optimization problems.
The Rastrigin function was introduced by L. A. Rastrigin in his paper titled Systems of extremal control, published in 1974. His work has since been widely referenced in the field of optimization and has become a standard benchmark for testing optimization algorithms.
An accessible reference is simply its Wikipedia page : https://en.wikipedia.org/wiki/Rastrigin_function