Question: Question ( 2 ) : [ 1 0 Marks ] The genetic algorithm is used to maximize the function f ( x ) = exp
Question :
Marks
The genetic algorithm is used to maximize the function exp in the region
Each variable is encoded as a real number.
a Generate randomely 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 pairs of individuals.
d Crossover the selected pairs.
e Mutate the resulting chromosomes.
Decode and calculate the fitness function corresponding to the new
chromosomes.
Repeat steps b to f until you get optima point.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
