Professional Documents
Culture Documents
Optimization SGA
Optimization SGA
Genetic Algorithms
2000. 9. 27
Cho, Dong-Yeon
(dycho@scai.snu.ac.kr)
Function Optimization Problem
Example
max f ( x, y ) 21.5 x sin( 4x) y sin( 20y )
3.0 x 12.1
4.1 y 5.8
Representation Binary String
Code length
( xmax xmin ) 10 4 (12.1 (3.0)) 10 4 151000
217 151000 218 , l x 18
( ymax ymin ) 10 4 (5.8 4.1) 10 4 17000
214 17000 215 , l y 15
l l x l y 18 15 33
| 33bit |
00000101010010100110 1111011111 110
| 18bit || 15bit |
Mapping from a binary string to real number
xmax xmin
x xmin decimal ( substring x )
2l x 1
12.1 (3.0)
x 3.0 5417 2.687960
2 1
18
5.8 4.1
y 4.1 24318 15 5.361653
2 1
Framework of Simple GA
Generate Initial Population
Fitness Function
Evaluate Fitness
Yes
Termination Condition? Best Individual
No
Select Parents
Crossover, Mutation
pk qk
1 0.111180 0.111180
2 0.097515 0.208695
3 0.053839 0.262534
4 0.165077 0.427611
5 0.088057 0.515668
6 0.066806 0.582475
7 0.100815 0.683290
8 0.110945 0.794234
9 0.148211 0.942446
10 0.057554 1.000000
Genetic Operations
Crossover
One point crossover
Crossover rate pc
Procedure: Crossover
Select two parents.
Generate a random number rc from the range [0,1].
If rc < pc then perform undergo crossover.
Mutation
Mutation alters one or more genes with a probability
equal to the mutation rate pm.
v f [1001101101 0010110100 0000010111 001]
vm [0010110101 0000110001 0110011001 100]
1 x2 y 2
max f ( x, y ) 20 exp exp cos(2x) cos(2y ) 20 e
5 2 2
32.768 x 32.768
32.768 y 32.768
Schwefels (sine root) function
:
.