GENETIC ALGORITHM
GENETIC ALGORITHM: Basically,the genetic algorithm is inspired by the natural process that belongs to larger scale of evolutionary algorithm. It used to generate a high quality solution for optimation and search type problem. It relying on biologically operation like mutation,cross over and selection. Generates a population of points at each iteration. The best point in the population approaches an optimal solution. EXAMPLE; Automatically solve suduko puzzle, hyperparameter optimization....etc... SYNTEX: call the genetic algorithm function ga with the syntax [x fval] = ga(@fitnessfun, nvars, options) where , @fitnessfun is a handle to the fitness function. nvars is the number of independent variables for the fitness function. options is a structure containing options for the genetic algorithm. WRITE A FUNCTION CODE: for genetic algorithm,we wrote a function program by this formula as given below, f1x=(sin(5.1*pi*x+0.5))^6; f2y=...