Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Overview
Genetic Algorithms: a gentle introduction
What are GAs How do they work/ Why? Critical issues
Natural Genetics to AI
Computational models inspired by biological evolution
survival of the fittest reproduction through cross-breeding
Genetic Algorithms
simultaneous search from multiple points in search space useful in complex, unstructured search spaces (less prone to local failures)
Genetic Algorithms
Search objective
Fitness score for population members (fitness function)
Selection
String1 (f1) String2 (f2) String3 (f3) String4 (f4) ... ... StringN (fN)
Generation t
Generation t+1
Hill climber
Binary representation?
Population members as bit strings
F( p,q,r,s,t) as: 10011010110110011010
(schema
Convergence
progression towards uniformity in population premature convergence? (local optima)
Typical GA Run
Fitness Best
Average
Generations
Operators: Selection
Fitness proportionate selection (fi/f ) number of reproductive trials for individuals
Selection
Roulette-wheel selection
(stochastic sampling with replacement) wheel spaced in proportion to fitness values N (pop size) spins of the wheel
Selection
Operators: Crossover
Parent 1: axpsqvqbtpihd Parent 2: qzxxaycgbtphw
crossover sites
Operators: Mutation
alters each gene with small probability
x1yx0y0yy0x yxy x1yx0y1yy0x xxy
Non-Binary Representations
Integer, real-number, order-based, rules, ... Binary or Real-valued?
real representations give faster, more consistent, more accurate results
High-level representation
intuitive, can utilize specialized operators effective search over complex spaces
Real-valued representation
Parent1: Parent2: 3.45 0.56 6.78 0.976 2.5 0.98 1.06 4.20 0.34 1.8
Offspring1: 3.22 0.56 6.78 0.65 2.12 Offspring2: 1.43 1.06 4.20 0.41 1.93
(Arithmetic crossover)
High-level representation
Parent1: Parent2:
{(1.2 x1 3.4)(5.8 x2 6.0)(0.2 x7 0.61)}
Offspring1: Offspring2:
High-level representation
Generalize/Specialize
{(03 x3 11) (2.2 x9 2.7)} . .
{(03 x3 11) (2.2 x9 2.7) (51 x4 62)} . . . .
log
y x 5 (x log(y))/5)
Tree-structured representation
Representing complex patterns
if If (y<7) and (x>2) then 0 else 2x+y
Using GAs ?
When to use a GA? GA and traditional techniques How long does it take? Will it perform better?
Using GAs
population size mutation, crossover rates how many generations multiple runs
Is it a black-box?
?
Data characteristics Fitness function GA parameters
Huh?
GA Application Examples
Function optimizers
difficult, discontinuous, multi-modal, noisy functions
Combinatorial optimization
layout of VLSI circuits, factory scheduling, traveling salesman problem
GA Application Examples
Machine learning
classification rules, economic modeling, scheduling strategies Portfolio design, optimized trading models, direct marketing models, sequencing of TV advertisements, adaptive agents, data mining, etc.