GENETIC ALGORITHM
Objective: Genetic algorithm: Is search methods based on principles of natural selection and genetics. It\'s based on the principle of natural selection. 2 generations mutate,crossover creating new generations which is assumed to be better. A genetic algorithm (GA) is a method for solving both linear and nonlinear optimization…