Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started