For the function F(x) = x^2 - 2x + 1, find out the maximum value of F(x) when the domain of x is [0,15].

icon
Related questions
Question
Question 5
For the function F(x) = x^2 - 2x + 1, find out the maximum value of F(x) when the domain of x is [0,15]. You need to perform the following 5 steps.
a) Create a population of 4 chromosomes randomly. You need to use a binary encoding approach.
b) Calculate the fitness score of each chromosome.
c) Select 2 fittest parents for mating
d) Perform crossover at any value ranging from 1 to 3. The positions of the 4 bit chromosomes are 0,1,2 and 3.
e) Perform mutation on the offspring which were produced by crossover at position 2 and then recompute the fitness score of the mutated children
Transcribed Image Text:Question 5 For the function F(x) = x^2 - 2x + 1, find out the maximum value of F(x) when the domain of x is [0,15]. You need to perform the following 5 steps. a) Create a population of 4 chromosomes randomly. You need to use a binary encoding approach. b) Calculate the fitness score of each chromosome. c) Select 2 fittest parents for mating d) Perform crossover at any value ranging from 1 to 3. The positions of the 4 bit chromosomes are 0,1,2 and 3. e) Perform mutation on the offspring which were produced by crossover at position 2 and then recompute the fitness score of the mutated children
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer