Genetic Algorithm
Objective: close all clear all clc %search space x=linspace(0,1,150); y=linspace(0,1,150); %evaluating the stalagmite function %f=get_stalagmite(x,y); [xx, yy]=meshgrid(x,y); options = optimoptions(\'ga\'); options = optimoptions(options,\'Populationsize\',200); for i=1:length(xx) for j=1:length(yy) input_vector(1)=xx(i,j); input_vector(2)=yy(i,j);…