1.4 Rosenbrock's valley (De Jong's function 2) | Contents | 1.6 Schwefel's function 7 |
Rastrigin's function is based on function 1 with the addition of cosine modulation to produce many local minima. Thus, the test function is highly multimodal. However, the location of the minima are regularly distributed.
f6(x)=10·n+sum(x(i)^2-10·cos(2·pi·x(i))),
i=1:n;
-5.12<=x(i)<=5.12
.
f(x)=0; x(i)=0, i=1:n
.
This function is implemented in objfun6.