Genetic Algorithm
Objective: clear all close all clc x= linspace(0,0.6,150); %Work space of x y= linspace(0,0.6,150); %Work space of y num_cases= 50; f= get_stalagmite(x,y); tic %Study 1: Unbounded Inputs for i= 1:num_cases [inputs,fopt(i)]= ga(@stalagmitemax,2); xopt(i)= inputs(1); yopt(i)= inputs(2); end study1_time= toc figure(1) subplot(2,1,1)…