Genetic Algorithm
Objective: AIM: Write a code in MATLAB to optimise the stalagmite function and find the global maxima of the function. SOLUTION: Genetic Alogorithm: Genetic algorithm is the way of developing the different random solutions at first and takes the random samples as the parents for the new genration and develops…