Professional Documents
Culture Documents
Dr.B.K.Tripathy
DEAN
School of Information Technology and Engineering
VIT, Vellore-632014
E-mail: tripathybk@vit.ac.in
SYLLABUS
• Optimization techniques
• Evolutionary Algorithms
• Genetic algorithms
• Traditional Algorithms vs Genetic Algorithms
• Classification of Genetic Algorithms
OPTIMIZATION- INTRODUCTION
• The nearest upper and lower values for each of the program
variables are to be computed at the end, which leads to the
computation of a total number of such values comes to
• Two options checked for each variable may not guarantee the
forming of the optimal combination with respect to other
variables
• All these difficulties can be eliminated if only feasible values
of the variables are allowed during the optimization process
BIO INSPIRED ALGORITHMS
Edgar Frank
Codd
(1923-2003)
Kalyanmoy Deb David E. Goldberg
John Henry Holland
(1953- )
(1929 -2015)
• Holland published a book in 1975 titled:
• ADAPTATION IN NATURAL AND ARTIFICIAL SYSTEMS
• The contents are based upon his own work and by some of
his colleagues
REQUIREMENTS FOR EVOLUTION
• ENVIRONMENTAL VARIATION:
• There are two factors
• Climate
• Culture
• These factors affect organisms
AN EXAMPLE
Parents
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0
0
Children
1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1
MULTI POINT CROSS OVER
Before Crossing
After Crossing
MULTI POINT CROSS OVER CONTD…
Child 1
Child 2
UNIFORM CROSS OVER
With Mask 1 0 0 1 0 1 1 1 0 0 1 0 1 0 0 1 0 0
Parent 1 1 0 0 1 1 0 0 0 1 0 1 0 1 1 0 0 1 1
Parent 2 0 0 0 1 0 0 1 1 0 0 1 1 0 0 1 0 0 1
1 0 0 1 0 0 0 0 0 0 1 1 1 0 1 0 0 1
Child 1
Child 2 0 0 0 1 0 0 0 0 0 0 1 1 1 0 1 0 0 1
If in the mask the bit is 1, bit from the first parent is selected. Else, from parent 2 to
generate the first child. For the second child the roles of parents are interchanged
MUTATION
BEGIN
INITIALIZE POPULATION
t=0
t=t+1 COND?
REPRODUCTION
CROSSOVER
MUTATION
CONVERGENCE CONDITION
• The contents are based upon his own work and by some of
his colleagues
GENETIC ALGORITHMS CONTD…
• Crossover
• Mutation
• Selection
• in diverse areas as
• stock market prediction and portfolio planning
• aerospace engineering
• microchip design
• biochemistry and molecular biology
• scheduling at airports and assembly lines
GENETIC ALGORITHMS CONTD…
• In a genetic algorithm
• Some individuals are chosen as the parents
• Selection is based on their fitness
• Individuals with higher fitness are more likely to be selected
• The parents are then allowed to produce offspring
• By applying reproductive operators
• Reproductive operators are
• Crossover
• Mutation
• Crossover operators recombine the chromosomes of the
parents
• The most common type is called single point crossover
GENETIC ALGORITHMS CONTD…
• The first part of the first parent is then combined with the
second part of the second parent to create a child
• Mutation is rarer
• It occurs with a probability between 0.01% and 0.02%
• When it happens, one bit changes from 0 to 1 or vice
versa
• Mutation assures that the population doesn’t become
too static and therefore incapable of reproduction
GENETIC ALGORITHMS CONTD…
• The off springs form a new generation and the process starts
from the beginning
• Again, fitness is evaluated for each individual of this new
population
• The selected ones reproduce until a certain number of new
generations have been produced and analyzed
• The problem is then satisfied
GENETIC ALGORITHMS CONTD…
• Roulette-wheel selection
• Boltzmann selection
• Tournament selection
• Rank selection
• Steady-state selection
ROULETTE-WHEEL SELECTION
F
j 1
j
ROULETTE-WHEEL SELECTION CONTD…
• If both confess, they will both serve two years in a plea for the
major crime
2. Conditional statements
IF y is very cool THEN stop
IF A is high THEN B is low ELSE B is not low
IF temperature is high THEN climate is hot
3. Unconditional statements
Goto A
STOP
Turn the pressure low
FORMATION OF RULES CONTD…
• Then as we know 𝜇𝐴𝑚 (𝑥) = min{𝜇𝐴1 (𝑥), 𝜇𝐴2 (𝑥), . . . . 𝜇𝐴𝑛 (𝑥)
• The compound rule may be rewritten as
• IF Am THEN Bm
• Multiple disjunctive antecedents
• IF x is A1 OR x is A2 OR……OR x is An THEN y is Bm
• Taking 𝐴𝑚 = 𝐴1 ∪ 𝐴2 ∪. . . .∪ 𝐴𝑛 we have
• IF x is Am THEN y is Bm
• Then we know that
• 𝜇𝐴𝑚 (𝑥) = max{𝜇𝐴1 (𝑥), 𝜇𝐴2 (𝑥), . . . . 𝜇𝐴𝑛 (𝑥)
DECOMPOSITION OF COMPOUND RULES
• Symbolically,
𝑦 = 𝑦1 ∩ 𝑦2 ∩. . . .∩ 𝑦𝑛
The aggregated output can be defined by the membership
function
𝜇𝑦 (𝑥) = min{𝜇𝑦1 (𝑥), 𝜇𝑦2 (𝑥), . . . . 𝜇𝑦𝑛 (𝑥) , ∀𝑥
Disjunctive system of rules:
• In this case the satisfaction of at least one rule is enough. The
rules are connected by “or” connectives.
• Here, the fuzzy union of all individual rule contributions
determine the aggregated output as
AGGREGATION OF FUZZY RULES
• y = y1 or y2 or…..or yn
• Symbolically,
• 𝑦 = 𝑦1 ∪ 𝑦2 ∪. . . . . .∪ 𝑦𝑛
• Again it can be defined by the membership function
• 𝜇𝑦 (𝑥) = max{𝜇𝑦1 (𝑥), 𝜇𝑦2 (𝑥), . . . . 𝜇𝑦𝑛 (𝑥)
SOME SUGGESTIONS FOR REVIEW 3