1.10 Langermann's function 11 | Contents | 1.12 Branins's rcos function |
The Michalewicz function [Mic92] is a multimodal test function (n! local optima). The parameter m defines the "steepness" of the valleys or edges. Larger m leads to more difficult search. For very large m the function behaves like a needle in the haystack (the function values for points in the space outside the narrow peaks give very little information on the location of the global optimum).
f12(x)=-sum(sin(x(i))·(sin(i·x(i)^2/pi))^(2·m)),
i=1:n, m=10;
0<=x(i)<=pi
.
f(x)=-4.687 (n=5); x(i)=???,
i=1:n
.f(x)=-9.66 (n=10); x(i)=???, i=1:n
.
This function is implemented in objfun12.
The first two graphics below represent a global and a local view to Michalewicz's function, both for the first two variables. The third graphic on the right side displays the function using the third and fourth variable, the first two variables were set top 0. By comparing the left and the right graphic the increasing difficulty of the function can be seen. As higher the dimension as more values are introduced into the function.