

























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of the genetic algorithms process, focusing on parent selection, crossover, and mutation. It covers the disadvantages of proportionate selection, the concept of linear rank selection, and the use of single-point and uniform crossover. Additionally, it discusses various mutation operators for binary-coded and symbolic expressions.
Typology: Slides
1 / 65
This page cannot be seen from the preview
Don't miss anything!


























































GA{ t^ =^ 0; Initialize
P(t); Evaluate
P(t); While^
(Not^ Done) {^ Parents(t)
=^ Select_Parents(P(t)); Offspring(t)
=^ Procreate(Parents(t)); Evaluate(Offspring(t)); P(t+1)=
Select_Survivors(P(t),Offspring(t)); t^ =^ t^
+^ 1; }
child in the next generation.
Fit(#1)Fit(#2)Fit(#3)Fit(#4)Fit(#5)
-^ If the fitness value is very close, theparents will be chosen with equalprobability, and the function will ceaseto optimize. •^ Roulette selection is very sensitive tothe problem being solved andgenerally requires modifications towork at all.
Fit(#1)Fit(#2)Fit(#3)Fit(#4)Fit(#5)
Another Reason Not to Use the Roulette Wheel
docsity.com
Genetic Algorithms: Proportionate Selection •^ In Proportionate Selection, individuals are assigned aprobability of being selected based on their fitness:^ •^ p
= f/^ Σi i^ fj
-^ Where p
is the probability that individual i will be selected,i
-^ fis the fitness of individual i, andi^ •^ Σfrepresents the sum of all the fitnesses of the individualsj^ with the population. • This type of selection is similar to using a roulettewheel where the fitness of an individual is representedas proportionate slice of wheel. The wheel is then spunand the slice underneath the wheel when it stopsdetermine which individual becomes a parent.
= (P-ri )(max-min)/(P-1) + mini
-^ Where r
is the rank of indvidual i,i
-^ P is the population size, •^ Max represents the fitness to assign to the best individual, •^ Min represents the fitness to assign to the worst individual. • p= sf/i^ i^
ΣsfRoulette Wheel Selection can be performedj^ using^
the subjective fitnesses.
-^ One disadvantage associated with linear rank selection isthat the population must be sorted on each cycle.
1 7.^1 rank
Fit(#1)Fit(#2)Fit(#3)Fit(#4)Fit(#5) Fit(#1)Fit(#2)Fit(#3)Fit(#4)Fit(#5) docsity.com
GA{ t^ =^ 0; Initialize
P(t); Evaluate
P(t); While^
(Not^ Done) {^ Parents(t)
=^ Select_Parents(P(t)); Offspring(t)
=^ Procreate(Parents(t)); Evaluate(Offspring(t)); P(t+1)=
Select_Survivors(P(t),Offspring(t)); t^ =^ t^
+^ 1; }
Parent 2:
Offspring 1:
Offspring 2:
X docsity.com
A^ a B^ b C^ c D^ d E^ e F^ f G^ g H^ h
A B C D E F g h
Param. 1 (eyes)^ Param. 2^ (nose)
mom dad child^ In this case the childwill have a new nosethat is not the same^ as mom’s or dad’s.
Genetic Algorithms: Two-Point Crossover •^ Two-Point crossover is very similar to single-point crossover exceptthat two cut-points are generated instead of one. Example:^ Parent 1: