Questions
Questions
introduction
Artem Eremin,
j. researcher, IMMI KSU
Motivation
Motivation
Motivation
experimental data
Wavelet transform
TOF
d
c
TOF
Np
min F ?
Cij
F : (cg , j cg , j )2
j 1
Optimization
Optimization is the process of making something better
Optimization
Minimum-seeking algorithms
1. Exhaustive Search = Brute Force
2. Analytical Optimization
2 f
f (x) 0,
?
x
Minimum-seeking algorithms
Genetic algorithms
(Holland, 1975)
Evolutionary algorithms
(Schwefel, 1995)
+
Genetic Algorithms: an introduction
GA main features
Optimizes with continuous or discrete variables
Doesnt require derivative information
Simultaneously searches from a wide sampling of the cost surface
To start with
f ( x, y ) y sin 4 x 1.1x sin 2 y
0 x, y 10
Phenotype space
Genotype space =
{0,1}L
Encoding
(representation)
10
10010001
10010010
010001001
011101001
x 10
Decoding
(inverse representation)
To start with
Gene a single encoding of part of the solution space, i.e. either
single bits or short blocks of adjacent bits that encode an element of
the candidate solution
1 0 0 1
4.1
x
Chromosome a string of genes that represents a solution
0 1 1 0
1 0 0 1
Chromosomes
Chromosomes can be:
Bit strings (0110, 0011, 1101, )
Real numbers (33.2, -12.11, 5.32, )
Permutations of elements (1234, 3241, 4312, )
Lists of rules (R1, R2, R3, Rn)
Program elements(genetic programming)
cost f (chromosome)
N pop chromosomes
Genetic Algorithms: an introduction
selection
parents
modification
modified
offspring
initiate &
evaluate
population
evaluation
evaluated offspring
deleted
members
Or so
discard
pi ai random[0,1] (bi ai )
i 1, Nvar
Coding: 4.25 01101101...
Ex.
Npop=6
s1 = 1111010101
s2 = 0111000101
s3 = 1110110101
s4 = 0100010011
s5 = 1110111101
s6 = 0100110000
Genetic Algorithms: an introduction
f (s1) = 7
f (s2) = 5
f (s3) = 7
f (s4) = 4
f (s5) = 8
f (s6) = 3
Selection
We are kind!
Lets save everybody!
or
i, fi ftr save!
Mating pool
Genetic Algorithms: an introduction
Selection
N keep , N pop N keep
1. Pairing from top to bottom
2. Random pairing
1 N keep
2 N keep 1
...
sc ,1 random[1, N keep ]
sc ,2 random[1, N keep ]
Selection
The roulette wheel method:
Individual i will have a probability
f (i )
f (i ) to be chosen
i
1
n
Area is
proportional to
fitness value
3
4
Selection
4. Tournament selection
1. Zenit
2. CSKA
50
48
14
Mating (Crossover)
Simple 1-point crossover
Choose a random
point on
the two parents
Performance
with 1 Point
Crossover
depends
Split parents at this crossover point
on the order that variables occur in the
Create children by exchanging tails
representation
P typically in range (0.6, 0.9)
c
Mating (Crossover)
n-point crossover
Mating (Crossover)
Uniform crossover
Uniform crossover looks at each bit in the parents and randomly
assigns the bit from one parent to one offspring and the bit from
the other parent to the other offspring
Mutation
Alter each gene (or, bit) independently with a probability pm
bi ai L 1
(a1 ,..., aL ) ai L
( aL j 2 j ) [ ai , bi ]
2 1 j 0
Only 2L values out of infinite are represented
L determines possible maximum precision of solution
High precision long chromosomes (slow evolution)
Uniform mutation:
x1 , ..., xk , yk (1 ) xk , ..., xn
x , ..., x , y
(1 ) x
, ..., y (1 ) x
1
k
k 1
k 1
n
n
a x (1 a) y
micro-GA
First generation (random values)
Tournament selection
SBX crossover
Select fittest
individual
Start new
generation
Good results?
Enough iterations?
No
Genetic Algorithms: an introduction
Yes
result
Benefits of GA
Concept is easy to understand
Modularseparate from application (representation);
building blocks can be used in hybrid applications
Supports multi-objective optimization
Good for noisyenvironment
Issues with GA
Choosing parameters:
Population size
Crossover and mutation probabilities
Selection, deletion policies
Crossover, mutation operators, etc.
Termination criteria
Performance:
Can be too slow but covers a large search space
Is only as good as the fitness function
Examples
Experimental specimens
4 CFRPplates
H 2, 25mm
[0o , 0o , 0o , 0o ]
H 2,35mm
[0o ,90o ,90o , 0o ]
V f 60%
V f 58%
Genetic Algorithms: an introduction
Material properties
Ex 107 2% GPa;
E y Ez 8.9 2% GPa
7.0
7.0
C
0
0
7.0
7.0
13.8
8.2
8.2
0
13.8
0
0
2.8
0
0
4.37
0
0
GPa
0
0
4.37
0
Comparison of results
a0 mode
90o
Comparison of results
s0 mode
90o
Comparison of results
a0 mode
s0 mode
GA for Permutations
n cities
A vector v = (i1 i2 in) represents a tour (v is a
permutation of {1,2,,n})
Fitness f of a solution is the inverse cost of the
corresponding tour
Initialization: use either some heuristics, or a
random sample of permutations of {1,2,,n}
We shall use the fitness proportionate selection
Genetic Algorithms: an introduction
p1 = (1 2 3 4 5 6 7 8 9) and
p2 = (4 5 2 1 8 7 6 9 3)
First, the segments between cut points are copied into offspring
o1 = (x x x 4 5 6 7 x x) and
o2 = (x x x 1 8 7 6 x x)
Genetic Algorithms: an introduction
o2 = (3 4 5 1 8 7 6 9 2)
Thank you