Challenge

Week 5 - Genetic Algorithm

x=linspace(0,1,100);

y=linspace(0,1,100);

[xx,yy]=meshgrid(x,y);

for i=1:length(xx);

for j=1:length(yy);

input(1)=xx(i,j);

input(2)=yy(i,j);

f(i,j)=stalagmite_func(input);

end

end

F=-f;

surface(xx,yy,F);

x_max=output(:,1);

y_max=output(:,2);

f_max=-fval;

plot3(x_max,y_max,f_max);

xlabel(Xaxis);

ylabel(Yaxis);

legend(stalagmite,global maximum)

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.