SlideShare a Scribd company logo
1 of 36
GENETIC AND
EVOLUTIONARY
ALGORITHMS
DPTO DE INGENIERÍA DE SISTEMAS Y AUTOMÁTICA
UC3M
Genetic algorithms
• John Holland, (1975). "Adaptation in natural and
artificial systems.”
• Algorithms that manage populations consisting of
coded solutions of problems.
• The search for good solutions is made in the space of
codified solutions.
• Manipulation of populations: selection, crossing and
mutation.
Features
• They do not work with the objects, but with a coding of
them.
• The AG carry out a search through a whole generation of
objects, they do not look for a single element.
• They use a health function that gives us information on
how adapted they are.
• The transition rules are non-deterministic probabilistic.
Genetic search
Terminology of Genetic Algorithms
Cycle of Genetic Algorithms
• Key idea: Give
preference to the
best individuals,
allowing them to
pass their genes to
the next generation.
Selection operator
The goodness of an individual is calculated with the
fitness function.
Selection methods
Selection example for f(x)=x2
Crossover operator
• Two individuals of the population
are chosen through the selection
operator.
• A crossing place is randomly chosen.
• The values of the two chains are
exchanged at this point.
• By recombining portions of good
individuals, even better individuals
are created.
Types of crossing
Operation of the crossing by a point
• Once the parents are
selected, with a Pc
probability, a crossing point
in the parents' chains is
chosen and the two children
are obtained
Mutation
• Mutation operator:
• With a certain low
probability, a certain
portion of the new
individuals can mutate their
bits.
• Its purpose is to maintain
diversity within the
population and prevent
premature convergence.
• Mutation and selection (no
crossover) create a
maximum slope and noise
tolerant optimization
algorithm.
Dominance
•In nature, most of the species associate a genotype with
a pair of chromosomes, where certain alleles dominate
over others (recessive), so that the phenotype is
determined by the combination of these two
chromosomes and by predominance of alleles .
Domination map
• Hollstein developed a system of trialélico
domination including a third allele to have a
dominant 1 and a recessive 1.
Classical Algorithms Genetic algorithms
They generate a single
point in each iteration.
The sequence of points
approximates the optimal
solution.
GThere will be a
population of points in
each iteration. The best
point of the population
approximates the optimal
solution.
Select the next point in
the sequence for a
deterministic computation.
Select the next population
by means of a computer
that uses a random
number generator.
¿Por qué funcionan los Algoritmos Genéticos?
• Are the AG bits exchanged only?
• What is behind them?
• Holland created a theorem, called
• "Holland's schemes theorem".
• There are some other theorems, some based
in the analysis of Markov chains:
• Is there a chain of different solutions that allows
reaching the optimal solution?
Holland’s Theorem
•Basic principle:
• A scheme represents
several points in space.
• A point is represented by
several schemes.
Operations of the GA and Schemes
• Two definitions:
• Schema order: (1,1,0, *, *, *, 1, *, *) => order 4
• Length of the scheme: (1,1,0, *, *, *, 1, *, *) => length 6
• The order of a scheme is the number of fixed positions
• (the number of zeros and ones).
• The length of the scheme is the distance between the first and
the last specific position of the chain.
Operations of the GA and Schemes
• Selection: good survival for schemes that represent
good individuals.
• Crossing: good survival for short length schemes.
• Mutation: good survival for low order schemes.
Conclusion of the scheme theorem
•Short schemes, low order get
better average.
• The schemes receive an
exponentially increasing number
of individuals
Computational aspects
• A large number of health assessments can be
computationally expensive.
• They are completely parallel by nature.
• There are several good schemes for parallel
computing.
Parallel schemes
Genetic Algorithms with continuous
parameters
• One of the problems with binary coding in genetic
algorithms is that you do not normally take advantage
of all the precision of the computer.
• What can be done if you want to use all the possible
precision?
• The answer is to represent the parameters in floating
point.
• When the variable is continuous, this is the most
natural way to represent the numbers. It also has the
advantage that a smaller memory size is required than
for binary storage.
Genetic Algorithms with continuous
parameters
• Operators do not usually work at the bit level as in the
binary case, but work at the level of the whole floating-
point number:
• Selection: The chromosomes are ordered according to their
health and we are left with the best members of the
population.
• Crossing: In the simplest methods, one or more points are
chosen on the chromosome to mark the crossing points.
Then the parameters between these points are simply
exchanged between the two parents.
Genetic Algorithms with continuous
parameters
• Mutation: With a certain probability, which is usually
between 1% and 20%, the chromosomes that are going to
be mutated are selected.
• Next, the parameters of the chromosome that are to be
mutated are randomly selected.
• Finally, each parameter to be mutated is replaced by
another new random parameter or another new random
parameter is added.
Some Genetic Algorithm
Terminology
• Fitness Functions
• The fitness function is the function you want to
optimize. For standard optimization algorithms, this is
known as the objective function.
• The toolbox tries to find the minimum of the fitness
function. You can write the fitness function as an M-file
and pass it as a function handle input argument to the
main genetic algorithm function.
Some Genetic Algorithm
Terminology
• Individuals
• An individual is any point to which you can apply the
fitness function. The value of the fitness function for an
individual is its score.
• For example, if the fitness function is the vector (2, 3, 1),
whose length is the number of variables in the problem,
is an individual. The score of the individual (2, 3, 1) is f(2,
-3, 1) = 51. An individual is sometimes referred to as a
genome and the vector entries of an individual as genes.
Some Genetic Algorithm
Terminology
• Populations and Generations
• A population is an array of individuals. For example, if the size of
the population is 100 and the number of variables in the fitness
function is 3, you represent the population by a 100-by-3 matrix.
• The same individual can appear more than once in the
population. For example, the individual (2, 3, 1) can appear in
more than one row of the array.
• At each iteration, the genetic algorithm performs a series of
computations on the current population to produce a new
population. Each successive population is called a new generation.
Some Genetic Algorithm
Terminology
• Diversity
• Diversity refers to the average distance between individuals in a
population. A population has high diversity if the average distance
is large; otherwise it has low diversity. In the figure, the population
on the left has high diversity, while the population on the right has
low diversity.
• Diversity is essential to the genetic algorithm because it enables
the algorithm to search a larger region of the space.
Some Genetic Algorithm
Terminology
• Fitness Values and Best Fitness Values
• The fitness value of an individual is the value of the
fitness function for that individual.
• Because the toolbox finds the minimum of the
fitness function, the best fitness value for a
population is the smallest fitness value for any
individual in the population.
Some Genetic Algorithm
Terminology
• Parents and Children
• To create the next generation, the genetic
algorithm selects certain individuals in the current
population, called parents, and uses them to create
individuals in the next generation, called children.
• Typically, the algorithm is more likely to select
parents that have better fitness values.
Differential Evolution
• Differential Evolution (DE) is a stochastic function optimizer, based on
populations, that uses the difference vector to disturb the population.
• DE shows advantages of speed and performance over conventional
genetic algorithms.
• DE was originally proposed by Kenneth Price and Rainer Storn [1997].
• The crucial idea behind DE is the scheme for generating vectors of test
parameters in which the difference (with weight) between vectors is
added to a selected vector.
Differential Evolution
CI_L11_Optimization_ag2_eng.pptx
CI_L11_Optimization_ag2_eng.pptx

More Related Content

Similar to CI_L11_Optimization_ag2_eng.pptx

Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computingSakshiMahto1
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktimRaktim Halder
 
Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Raktim Halder
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.pptSherazAhmed103
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsDerek Kane
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptxwaqasjavaid26
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmRespa Peter
 
AI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdfAI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdfThninh2
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.pptNipun85
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptHotTea
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .pptneelamsanjeevkumar
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptneelamsanjeevkumar
 

Similar to CI_L11_Optimization_ag2_eng.pptx (20)

Machine learning
Machine learningMachine learning
Machine learning
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computing
 
0101.genetic algorithm
0101.genetic algorithm0101.genetic algorithm
0101.genetic algorithm
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
 
Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.ppt
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 
Genetic algorithms mahyar
Genetic algorithms   mahyarGenetic algorithms   mahyar
Genetic algorithms mahyar
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
AI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdfAI.3-Evolutionary Computation [15-18].pdf
AI.3-Evolutionary Computation [15-18].pdf
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.ppt
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .ppt
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.ppt
 

More from SantiagoGarridoBulln

Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.
Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.
Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.SantiagoGarridoBulln
 
Optimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methodsOptimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methodsSantiagoGarridoBulln
 
Optimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methodsOptimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methodsSantiagoGarridoBulln
 
Optimum engineering design - Day 5. Clasical optimization methods
Optimum engineering design - Day 5. Clasical optimization methodsOptimum engineering design - Day 5. Clasical optimization methods
Optimum engineering design - Day 5. Clasical optimization methodsSantiagoGarridoBulln
 
Optimum Engineering Design - Day 4 - Clasical methods of optimization
Optimum Engineering Design - Day 4 - Clasical methods of optimizationOptimum Engineering Design - Day 4 - Clasical methods of optimization
Optimum Engineering Design - Day 4 - Clasical methods of optimizationSantiagoGarridoBulln
 
OptimumEngineeringDesign-Day2a.pdf
OptimumEngineeringDesign-Day2a.pdfOptimumEngineeringDesign-Day2a.pdf
OptimumEngineeringDesign-Day2a.pdfSantiagoGarridoBulln
 
OptimumEngineeringDesign-Day-1.pdf
OptimumEngineeringDesign-Day-1.pdfOptimumEngineeringDesign-Day-1.pdf
OptimumEngineeringDesign-Day-1.pdfSantiagoGarridoBulln
 
Lecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfLecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfSantiagoGarridoBulln
 
CI L11 Optimization 3 GlobalOptimization.pdf
CI L11 Optimization 3 GlobalOptimization.pdfCI L11 Optimization 3 GlobalOptimization.pdf
CI L11 Optimization 3 GlobalOptimization.pdfSantiagoGarridoBulln
 
complete-manual-of-multivariable-optimization.pdf
complete-manual-of-multivariable-optimization.pdfcomplete-manual-of-multivariable-optimization.pdf
complete-manual-of-multivariable-optimization.pdfSantiagoGarridoBulln
 
slides-linear-programming-introduction.pdf
slides-linear-programming-introduction.pdfslides-linear-programming-introduction.pdf
slides-linear-programming-introduction.pdfSantiagoGarridoBulln
 

More from SantiagoGarridoBulln (16)

Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.
Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.
Genetic Algorithms. Algoritmos Genéticos y cómo funcionan.
 
Optimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methodsOptimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methods
 
Optimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methodsOptimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methods
 
Optimum engineering design - Day 5. Clasical optimization methods
Optimum engineering design - Day 5. Clasical optimization methodsOptimum engineering design - Day 5. Clasical optimization methods
Optimum engineering design - Day 5. Clasical optimization methods
 
Optimum Engineering Design - Day 4 - Clasical methods of optimization
Optimum Engineering Design - Day 4 - Clasical methods of optimizationOptimum Engineering Design - Day 4 - Clasical methods of optimization
Optimum Engineering Design - Day 4 - Clasical methods of optimization
 
OptimumEngineeringDesign-Day2a.pdf
OptimumEngineeringDesign-Day2a.pdfOptimumEngineeringDesign-Day2a.pdf
OptimumEngineeringDesign-Day2a.pdf
 
OptimumEngineeringDesign-Day-1.pdf
OptimumEngineeringDesign-Day-1.pdfOptimumEngineeringDesign-Day-1.pdf
OptimumEngineeringDesign-Day-1.pdf
 
CI_L01_Optimization.pdf
CI_L01_Optimization.pdfCI_L01_Optimization.pdf
CI_L01_Optimization.pdf
 
Lecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfLecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdf
 
OptimumEngineeringDesign-Day7.pdf
OptimumEngineeringDesign-Day7.pdfOptimumEngineeringDesign-Day7.pdf
OptimumEngineeringDesign-Day7.pdf
 
CI L11 Optimization 3 GlobalOptimization.pdf
CI L11 Optimization 3 GlobalOptimization.pdfCI L11 Optimization 3 GlobalOptimization.pdf
CI L11 Optimization 3 GlobalOptimization.pdf
 
optmizationtechniques.pdf
optmizationtechniques.pdfoptmizationtechniques.pdf
optmizationtechniques.pdf
 
complete-manual-of-multivariable-optimization.pdf
complete-manual-of-multivariable-optimization.pdfcomplete-manual-of-multivariable-optimization.pdf
complete-manual-of-multivariable-optimization.pdf
 
slides-linear-programming-introduction.pdf
slides-linear-programming-introduction.pdfslides-linear-programming-introduction.pdf
slides-linear-programming-introduction.pdf
 
bv_cvxslides (1).pdf
bv_cvxslides (1).pdfbv_cvxslides (1).pdf
bv_cvxslides (1).pdf
 
Optim_methods.pdf
Optim_methods.pdfOptim_methods.pdf
Optim_methods.pdf
 

Recently uploaded

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 

Recently uploaded (20)

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 

CI_L11_Optimization_ag2_eng.pptx

  • 1. GENETIC AND EVOLUTIONARY ALGORITHMS DPTO DE INGENIERÍA DE SISTEMAS Y AUTOMÁTICA UC3M
  • 2. Genetic algorithms • John Holland, (1975). "Adaptation in natural and artificial systems.” • Algorithms that manage populations consisting of coded solutions of problems. • The search for good solutions is made in the space of codified solutions. • Manipulation of populations: selection, crossing and mutation.
  • 3. Features • They do not work with the objects, but with a coding of them. • The AG carry out a search through a whole generation of objects, they do not look for a single element. • They use a health function that gives us information on how adapted they are. • The transition rules are non-deterministic probabilistic.
  • 6. Cycle of Genetic Algorithms
  • 7. • Key idea: Give preference to the best individuals, allowing them to pass their genes to the next generation. Selection operator The goodness of an individual is calculated with the fitness function.
  • 10. Crossover operator • Two individuals of the population are chosen through the selection operator. • A crossing place is randomly chosen. • The values of the two chains are exchanged at this point. • By recombining portions of good individuals, even better individuals are created.
  • 12. Operation of the crossing by a point • Once the parents are selected, with a Pc probability, a crossing point in the parents' chains is chosen and the two children are obtained
  • 13. Mutation • Mutation operator: • With a certain low probability, a certain portion of the new individuals can mutate their bits. • Its purpose is to maintain diversity within the population and prevent premature convergence. • Mutation and selection (no crossover) create a maximum slope and noise tolerant optimization algorithm.
  • 14. Dominance •In nature, most of the species associate a genotype with a pair of chromosomes, where certain alleles dominate over others (recessive), so that the phenotype is determined by the combination of these two chromosomes and by predominance of alleles .
  • 15. Domination map • Hollstein developed a system of trialélico domination including a third allele to have a dominant 1 and a recessive 1.
  • 16. Classical Algorithms Genetic algorithms They generate a single point in each iteration. The sequence of points approximates the optimal solution. GThere will be a population of points in each iteration. The best point of the population approximates the optimal solution. Select the next point in the sequence for a deterministic computation. Select the next population by means of a computer that uses a random number generator.
  • 17. ¿Por qué funcionan los Algoritmos Genéticos? • Are the AG bits exchanged only? • What is behind them? • Holland created a theorem, called • "Holland's schemes theorem". • There are some other theorems, some based in the analysis of Markov chains: • Is there a chain of different solutions that allows reaching the optimal solution?
  • 18. Holland’s Theorem •Basic principle: • A scheme represents several points in space. • A point is represented by several schemes.
  • 19. Operations of the GA and Schemes • Two definitions: • Schema order: (1,1,0, *, *, *, 1, *, *) => order 4 • Length of the scheme: (1,1,0, *, *, *, 1, *, *) => length 6 • The order of a scheme is the number of fixed positions • (the number of zeros and ones). • The length of the scheme is the distance between the first and the last specific position of the chain.
  • 20. Operations of the GA and Schemes • Selection: good survival for schemes that represent good individuals. • Crossing: good survival for short length schemes. • Mutation: good survival for low order schemes.
  • 21. Conclusion of the scheme theorem •Short schemes, low order get better average. • The schemes receive an exponentially increasing number of individuals
  • 22. Computational aspects • A large number of health assessments can be computationally expensive. • They are completely parallel by nature. • There are several good schemes for parallel computing.
  • 24. Genetic Algorithms with continuous parameters • One of the problems with binary coding in genetic algorithms is that you do not normally take advantage of all the precision of the computer. • What can be done if you want to use all the possible precision? • The answer is to represent the parameters in floating point. • When the variable is continuous, this is the most natural way to represent the numbers. It also has the advantage that a smaller memory size is required than for binary storage.
  • 25. Genetic Algorithms with continuous parameters • Operators do not usually work at the bit level as in the binary case, but work at the level of the whole floating- point number: • Selection: The chromosomes are ordered according to their health and we are left with the best members of the population. • Crossing: In the simplest methods, one or more points are chosen on the chromosome to mark the crossing points. Then the parameters between these points are simply exchanged between the two parents.
  • 26. Genetic Algorithms with continuous parameters • Mutation: With a certain probability, which is usually between 1% and 20%, the chromosomes that are going to be mutated are selected. • Next, the parameters of the chromosome that are to be mutated are randomly selected. • Finally, each parameter to be mutated is replaced by another new random parameter or another new random parameter is added.
  • 27. Some Genetic Algorithm Terminology • Fitness Functions • The fitness function is the function you want to optimize. For standard optimization algorithms, this is known as the objective function. • The toolbox tries to find the minimum of the fitness function. You can write the fitness function as an M-file and pass it as a function handle input argument to the main genetic algorithm function.
  • 28. Some Genetic Algorithm Terminology • Individuals • An individual is any point to which you can apply the fitness function. The value of the fitness function for an individual is its score. • For example, if the fitness function is the vector (2, 3, 1), whose length is the number of variables in the problem, is an individual. The score of the individual (2, 3, 1) is f(2, -3, 1) = 51. An individual is sometimes referred to as a genome and the vector entries of an individual as genes.
  • 29. Some Genetic Algorithm Terminology • Populations and Generations • A population is an array of individuals. For example, if the size of the population is 100 and the number of variables in the fitness function is 3, you represent the population by a 100-by-3 matrix. • The same individual can appear more than once in the population. For example, the individual (2, 3, 1) can appear in more than one row of the array. • At each iteration, the genetic algorithm performs a series of computations on the current population to produce a new population. Each successive population is called a new generation.
  • 30. Some Genetic Algorithm Terminology • Diversity • Diversity refers to the average distance between individuals in a population. A population has high diversity if the average distance is large; otherwise it has low diversity. In the figure, the population on the left has high diversity, while the population on the right has low diversity. • Diversity is essential to the genetic algorithm because it enables the algorithm to search a larger region of the space.
  • 31. Some Genetic Algorithm Terminology • Fitness Values and Best Fitness Values • The fitness value of an individual is the value of the fitness function for that individual. • Because the toolbox finds the minimum of the fitness function, the best fitness value for a population is the smallest fitness value for any individual in the population.
  • 32. Some Genetic Algorithm Terminology • Parents and Children • To create the next generation, the genetic algorithm selects certain individuals in the current population, called parents, and uses them to create individuals in the next generation, called children. • Typically, the algorithm is more likely to select parents that have better fitness values.
  • 33. Differential Evolution • Differential Evolution (DE) is a stochastic function optimizer, based on populations, that uses the difference vector to disturb the population. • DE shows advantages of speed and performance over conventional genetic algorithms. • DE was originally proposed by Kenneth Price and Rainer Storn [1997]. • The crucial idea behind DE is the scheme for generating vectors of test parameters in which the difference (with weight) between vectors is added to a selected vector.