Question: Question ( 2 ) : [ 1 0 Marks ] The genetic algorithm is used to maximize the function f ( x ) = exp

Question (2):
[10 Marks]
The genetic algorithm is used to maximize the function f(x)=exp(-(x-1)2) in the region
-3,2. Each variable is encoded as a real number.
a- Generate randomely 10 individuals for as the first generation. You will use the real
number encoding scheme.
b- Calculate the fitness function value for each chromosome.
c- Carry out a tournament selection round to generate 5 pairs of individuals.
d- Crossover the selected pairs.
e- Mutate the resulting chromosomes.
f- Decode and calculate the fitness function corresponding to the new
chromosomes.
Repeat steps (b) to (f) until you get optima point.
 Question (2): [10 Marks] The genetic algorithm is used to maximize

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!