Matlab code to optimize the Stalagmite function using genetic algorithm
Objective: 1. In your own words, describe how Genetic Algorithm Works. Ans- The following flowchart summerarizes how the genetic algorithm works. EncodingEncoding is a way to represent individual solutions in evolutionary algorithms. Typically,individual solutions are coded as a finite fixed length string. Binary numbers are usuallyused…