Optimization of Genetic algorithm
Objective: Genetic algorithm Genetic algorithms are an optimization technique used to solve nonlinear or non-differentiable optimization problems. They use concept from evolutionary biology to search for a global minimum to an optimization problem (in this case we need to find global maximum and for that I have modified the code…