image thumbnail
from Global maximum point for 3D surface using GA by Ali Talib Oudah
Finding the global maximum height for 3D multiple peak surface using genetic algorithm

multipeak(pop)
function f= multipeak(pop)
x=pop(:,1);y=pop(:,2);
r=sqrt(x.^2+y.^2);
s=sqrt((x-0.5).^2+y.^2);
ss=sqrt((x-0.8).^2+y.^2);
f=exp(-2*r.^2)+2*exp(-1000*s.^2)+3*exp(-1000*ss.^2);

Contact us at files@mathworks.com