Topic 3B - Implementing Genetic Algorithm v0
Topic 3B - Implementing Genetic Algorithm v0
Implementing Genetic
Algorithms
generated chromosomes
● Repeat:
–Evaluate each solution (with a fitness function)
–Keep fitter solutions, eliminate poorer ones (selection)
–Generate new solutions (crossover)
–Add small random variances (mutation)
●Stop when your solution is satisfactory (convergence) or
you run out of time (termination condition)
programs or genetic
programming
Example of convergence
Truncation selection
●
bounded
● Negative values also work with rank selection
evolution)
●Less sophisticated than the other methods discussed here
(except random selection) and not often used in practice
out (die) and which are kept (elitism) in the next generation
● Survivor selection strategies:-
–Fitness based – this is traditional elitism
–Age based – each individual is allowed to remain for a
finite number of generations before it is kicked out
●This allows for multiple ‘tries’ at reproduction, increasing the
chance of passing on good genes
●The two offspring are then put into the next generation of
the population
Shuffle crossover
●
Ring Crossover
●
Easy to understand
● Inherently parallel and easily
●
distributed
Optimizes both continuous and
●
optimal) and solution gets better over very large and there are a large
time number of parameters involved.
●Faster and more efficient as Has substantial history and range of
●
Basic implementation
● ●Performance (how fast is a
decisions solution needed)
–Representation/encoding Scalability (how big is the
●