Real Coding Crossover Survery (Amgad)

Embed Size (px)

Citation preview

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    1/24

    Real coding Crossover survey

    methodsAmgad. M. Mohammed

    Department of operations research

    Menofia University

    For more information or interest research Area in Genetic Evolution and

    Quantum Evolutionary algorithms. Dont hesitate please send mail

    [email protected]

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    2/24

    Genetic Algorithms

    An Example Genetic Algorithm

    Procedure GA{

    t = 0;

    Initialize P(t);

    Evaluate P(t);

    While (Not Done)

    {

    Parents(t) = Select_Parents(P(t));

    Offspring(t) = Procreate(Parents(t));

    Evaluate(Offspring(t));P(t+1)= Select_Survivors(P(t),Offspring(t));

    t = t + 1;

    }

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    3/24

    Genetic Algorithms

    Representation of Candidate Solutions

    GAs on primarily two types of representations:

    Binary-Coded

    Real-Coded

    Permutation Representations (TSP) each n occurs exactly once

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    4/24

    Genetic Algorithms:

    Binary-Coded Representations

    For Example, lets say that we are trying to optimize the

    following function,

    f(x) = x2

    for 2 u x u 1

    If we were to use binary-coded representations we would

    first need to develop a mapping function form our

    genotype representation (binary string) to our phenotype

    representation (our CS). This can be done using thefollowing mapping function:

    d(ub,lb,l,chrom) = (ub-lb) decode(chrom)/2l-1 + lb

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    5/24

    Genetic Algorithms:

    Binary Coded Representations

    Individual

    Chromosome: 00101

    Fitness = ?????

    d(2,1,5,00101) = 1.16 f(1.16) = 1.35

    Individual

    Chromosome: 00101

    Fitness = 1.35

    The Fitness Assignment Process for Binary Coded

    Chromosomes (ub=2, lb=1, l=5)

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    6/24

    Genetic Algorithms:

    Real-Coded Representations

    Individual

    Chromosome: 1.16

    Fitness = ?????

    f(1.16) = 1.35

    Individual

    Chromosome: 1.16

    Fitness = 1.35

    The Fitness Assignment Process for Real Coded Chromosomes

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    7/24

    Genetic Algorithms:

    Parent Selection Methods

    An Example Genetic Algorithm

    Procedure GA{

    t = 0;

    Initialize P(t);

    Evaluate P(t);

    While (Not Done)

    {

    Parents(t) = Select_Parents(P(t));

    Offspring(t) = Procreate(Parents(t));

    Evaluate(Offspring(t));P(t+1)= Select_Survivors(P(t),Offspring(t));

    t = t + 1;

    }

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    8/24

    Crossover OR Mutation

    Exploration: Discovering promising areas in the

    search space

    Exploitation: Optimising within a promising area

    Crossover is explorative, it makes a bigjump to

    an area in search space

    Mutation is exploitative, it creates random small

    diversions, thereby staying near

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    9/24

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    10/24

    Cont

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    11/24

    1) Simulated Binary Crossover (SBX)

    SBX was designed with respect to the one-point

    crossover properties in binary-coded GA.

    Average Property:

    The average of the decoded parameter values is the same

    before and after the crossover operation.

    Spread Factor Property:

    The probability of occurrence of spread factor 1 is more

    likely than any other value.

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    12/24

    SBX cont..

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    13/24

    2) Arithmetical crossover

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    14/24

    Arithmetical crossover cont..

    Arithmetic crossover is better when the set is convex ,

    because I'm sure that Individuals will be feasible

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    15/24

    Arithmetical crossover cont..

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    16/24

    Arithmetical Crossover cont

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    17/24

    Other names and techniques for Arithmetic

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    18/24

    Other names and techniques for Arithmetic

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    19/24

    Other names and techniques for Arithmetic

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    20/24

    3) Heuristic crossover

    which was applied to produce one offspring from A pair

    of parents with a bias towards the better one

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    21/24

    4) Flat Crossover

    in which an offspring was generated randomly between

    the genes of the parents

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    22/24

    5) Blend Crossover (BLX-)

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    23/24

    Blend Crossover (BLX-) cont

    If I measure distance between x1 & x2 and take half distance

    Then subtract half distance from x1

    And Add half distance to x2

  • 8/3/2019 Real Coding Crossover Survery (Amgad)

    24/24

    6) Laplace crossover