Question: Python code and Algorithm using the genetic algorithm to maximize the function f(x1,x2) = 16 + x 1 *sin(8x 1 )+x 2 *sin(40x 2 )
Python code and Algorithm using the genetic algorithm to maximize the function f(x1,x2) = 16 + x1*sin(8x1)+x2*sin(40x2) for -16.0 x1 16.0 and -12.0 x2 12.0
Run GA 10 times at least for each run, using a different random seed. Track evolution progress over time, by measuring the mean and standard deviation over time of the average and maximum fitness of a 1000-individual population (call this PE). In addition, record the co-ordinates of the most fitting individual (x) with it with its fitness value f(x) (call this FF).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
