Professional Documents
Culture Documents
04 - en - GA. Recombinare
04 - en - GA. Recombinare
Evolutionary programing
and genetic algorithms
GA – general recombination scheme
Multiple recombination
GA – recombination. Binary strings
Single point
pr
1 position
Multiple points
pr
n positions
Uniform
pr
Every position
GA – recombination. Integer strings
Discrete recombination
Same as binary / integer strings
Does not produce new alleles
d( p(1):p(2) ) = x(p(1):p(2))
where = p(2)+1
for i = [p(2):m 1:p(2)-1]
if y(i) d
if where > m
where=1
d(where) = y(i)
where = where+1
GA – recombination. Permutations. PMX
22 55 77
6 9 3
d( p(1):p(2) ) = x( p(1):p(2) )
for k = p(1):p(2)
if y(k) d k=7 y(k)=5 d
i = position of d(k) in y d(k)=8
while d(i) 0 i=5
i = position of d(i) in y d(i)=10
d(i)=y(k) i=9
for i=1:m d(9)=0
if y(i) d d(9)=y(7)
j = first free position in d
d(j)=y(i)
GA – recombination. Permutations. CX
CX (cycle crossover)
Saves as much as possible the information regarding the absolute position of an allele in
parent chromosomes.
Cycle: alleles in the same gene in the two parents are part of the same cycle
Two steps
▪ Compute cycles
▪ Build descendants, by alternatively copying alleles from cycles
GA – recombination. Permutations. CX
CX (cycle crossover)
GA – recombination. Permutations. ECX
Creates descendants by copying pairs of consecutive alleles that are present in at least
one parent.
Tipuri de operatori
▪ Bazați pe frecvența alelelor – generalizare a încrucișării uniforme
▪ Bazați pe segmentare și recombinarea secvențelor – generalizare a recombinării multipunct
▪ Bazați pe operații asupra alelelor – recombinare de tip baricentru, generalizare a operatorilor de
recombinare aritmetică
References and homework
References
Manual: chapter 3.4
Homework
Implement all operators (a function for each of them)
▪ I: parents, recombination probability, other parameters (weight etc.)
▪ E: two descendants
?? ?
?
Spor la învăţat!