rastrigin_func {EmiR} | R Documentation |
Rastrigin Function
Description
Implementation of n-dimensional Rastrigin function.
Usage
rastrigin_func(x)
Arguments
x |
numeric or complex vector. |
Details
On an n-dimensional domain it is defined by:
\[f(\vec{x}) = 20n + \sum_{i=1}^n \left( x_{i}^2 - 20\cos(2\pi x_{i}) \right),\]and is usually evaluated on \(x_{i} \in [ -5.12, 5.12 ]\), for all \(i=1,...,n\). The function has one global minimum at \(f(\vec{x})=0\) for \(x_{i}=0\) for all \(i=1,...,n\).
Value
The value of the function.
References
Rastrigin LA (1974). “Systems of extremal control.” Nauka.
[Package EmiR version 1.0.4 Index]