Programming to optimise the stalagmite function and find the Global Maxima of the function
Objective: Aim: Write a code in MATLAB to optimise the stalagmite function and find the global maxima of the function. Theory behind GA (Genetic Algorithm): Five phases are considered in a genetic algorithm. 1) Initial population 2) Fitness function 3) Selection 4) Crossover 5) Mutation Genetic Algorithms are a method…