Question: ( a ) ( 1 5 points ) Consider the function f ( x 1 , x 2 ) = c - ( x 1

(a)(15 points) Consider the function f(x1,x2)=c-(x1-a)2-(x2-b)2.
where a,b,c are digits from your student id. Run one cycle of a genetic algorithm to
maximize this function. Show and explain how and what do you compute at each step of
the genetic algorithm:
*Assume that the features are real-valued.
*You can choose the simplest fitness/selection criteria to choose two points. You can choose
simple crossover (e.g. average) and mutation (random noise ) methods as well.
*Start by choosing four random points in the domain of the function. E.g.[0,0],[a,0],dots,
?,?(Do not choose a,b). Be careful to bracket the maximum in a rectangle.
Initial population:
Fitness function:
Selection:
Crossover:
Mutation:
New population:
(b)(5 points) If you did not bracket the optimal point (meaning your initial points did not
enclose the optimal point), your run might not converge to the global maximum. Com-
ment on which of our simplifications might have contributed to this outcome and discuss
strategies to avoid local minima.
 (a)(15 points) Consider the function f(x1,x2)=c-(x1-a)2-(x2-b)2. where a,b,c are digits from

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!