GENETIC ALGO
Objective: Explanation Initial Steps The 0-0.6 values are divided 150 times and stored into the arrays x and y. xx and yy 2 dimensional matrices are created using meshgrid function. The total number of cases to be evaluated is decided to be 50 and stored into num_cases variable. To find out the z value in the 3d graph we are using…