Sei sulla pagina 1di 1

Suppose we need Optimize the function 𝑥 2 + 2𝑥 using genetic algorithm , produce three consecutive

cycle (the first (initial) generation, the second generation, the third generation ) in the optimization
process show the population size in each of the generation cycles

Assuming binary encoding, chromosome length 4,size of initial population 4,probability of mutation
Pm=0.1 and probability of cross over Pc=0.5

Using single point crossover, bit inversion mutation, and roulette-wheel selection mechanisms