Genetic Algorithms: by Fatih BAYIR
Genetic Algorithms: by Fatih BAYIR
Algorithms
by
Fatih BAYIR
1
Outline
Definition
History
Pros and Cons
Basic Terminology
Operators
Structure
2
Definition
It is an optimization technique
3
Definition
Genetic Algorithms aim to:
5
Advantages
Does not require any derivative information.
6
Disadvantages /
Limitations
Not suited for all problems, especially problems
which are simple and for which derivative
information is available.
7
Basic Terminology
Population It is a subset of all the possible
(encoded) solutions to the given problem. The
population for a GA is analogous to the population
for human beings except that instead of human
beings, we have Candidate Solutions representing
human beings.
Chromosomes A chromosome is one such
solution to the given problem.
Gene A gene is one element position of a
chromosome.
Allele It is the value a gene takes for a particular
chromosome.
8
Basic Terminology
9
Basic Terminology
Fitness Function A fitness function
simply defined is a function which takes the
solution as input and produces the suitability
of the solution as the output. In some cases,
the fitness function and the objective
function may be the same, while in others it
might be different based on the problem.
Genetic Operators Operations applied to
the population during the algorithms work.
10
Genetic Operators
1. Selection (Reproduction): Selection is the
process of selecting parents which mate and
recombine to create off-springs for the next
generation.
Parent selection is taking good members to
produce new members, according to results of
fitness functions.
11
Genetic Operators
2. Cross-Over: Crossover is the
process of taking more than one
parent solutions (chromosomes) and
producing a child solution from them.
By recombining portions of good
solutions, the genetic algorithm is
more likely to create a better solution.
12
Genetic Operators
3. Mutation: Itis agenetic operatorused
to maintaingenetic diversityfrom one
generation of a population ofgenetic
algorithmchromosomesto the next.
13
How mutation works
A common method of implementing the
mutation operator involves generating
arandom variablefor each bit in a
sequence. This random variable tells
whether or not a particular bit will be
modified.
This mutation procedure, based on the
biologicalpoint mutation, is called single
point mutation. Other types are inversion
and floating point mutation.
14
Structure of Algorithm
1. We start with an initial population which may be
generated randomly.
16
Thank you
For listening with interest
Any question?
17