SlideShare a Scribd company logo
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

Machine learning
Machine learningMachine learning
Machine learning
business Corporate
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computing
SakshiMahto1
 
0101.genetic algorithm
0101.genetic algorithm0101.genetic algorithm
0101.genetic algorithm
Ahmad Almubarrok
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
DurgeshPratapSIngh8
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
Raktim Halder
 
Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Genetic algorithm_raktim_IITKGP
Genetic algorithm_raktim_IITKGP Raktim Halder
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
Bhushan Mohite
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.ppt
SherazAhmed103
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
Fatemeh Karimi
 
Data Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic AlgorithmsData Science - Part XIV - Genetic Algorithms
Data Science - Part XIV - Genetic Algorithms
Derek Kane
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SEKHARREDDYAMBATI
 
GA of a Paper 2012.pptx
GA of a Paper 2012.pptxGA of a Paper 2012.pptx
GA of a Paper 2012.pptx
waqasjavaid26
 
Genetic Algorithms in Artificial Intelligence
Genetic Algorithms in Artificial IntelligenceGenetic Algorithms in Artificial Intelligence
Genetic Algorithms in Artificial Intelligence
ritwijkp2
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
Genetic algorithms mahyar
Genetic algorithms   mahyarGenetic algorithms   mahyar
Genetic algorithms mahyar
Mahyar Teymournezhad
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
Respa 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].pdf
Thninh2
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
Nipun85
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.ppt
HotTea
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.ppt
Fitnessfreaksfam
 

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 in Artificial Intelligence
Genetic Algorithms in Artificial IntelligenceGenetic Algorithms in Artificial Intelligence
Genetic Algorithms in Artificial Intelligence
 
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-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.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 methods
SantiagoGarridoBulln
 
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
SantiagoGarridoBulln
 
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
SantiagoGarridoBulln
 
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
SantiagoGarridoBulln
 
OptimumEngineeringDesign-Day2a.pdf
OptimumEngineeringDesign-Day2a.pdfOptimumEngineeringDesign-Day2a.pdf
OptimumEngineeringDesign-Day2a.pdf
SantiagoGarridoBulln
 
OptimumEngineeringDesign-Day-1.pdf
OptimumEngineeringDesign-Day-1.pdfOptimumEngineeringDesign-Day-1.pdf
OptimumEngineeringDesign-Day-1.pdf
SantiagoGarridoBulln
 
CI_L01_Optimization.pdf
CI_L01_Optimization.pdfCI_L01_Optimization.pdf
CI_L01_Optimization.pdf
SantiagoGarridoBulln
 
Lecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfLecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdf
SantiagoGarridoBulln
 
OptimumEngineeringDesign-Day7.pdf
OptimumEngineeringDesign-Day7.pdfOptimumEngineeringDesign-Day7.pdf
OptimumEngineeringDesign-Day7.pdf
SantiagoGarridoBulln
 
CI L11 Optimization 3 GlobalOptimization.pdf
CI L11 Optimization 3 GlobalOptimization.pdfCI L11 Optimization 3 GlobalOptimization.pdf
CI L11 Optimization 3 GlobalOptimization.pdf
SantiagoGarridoBulln
 
optmizationtechniques.pdf
optmizationtechniques.pdfoptmizationtechniques.pdf
optmizationtechniques.pdf
SantiagoGarridoBulln
 
complete-manual-of-multivariable-optimization.pdf
complete-manual-of-multivariable-optimization.pdfcomplete-manual-of-multivariable-optimization.pdf
complete-manual-of-multivariable-optimization.pdf
SantiagoGarridoBulln
 
slides-linear-programming-introduction.pdf
slides-linear-programming-introduction.pdfslides-linear-programming-introduction.pdf
slides-linear-programming-introduction.pdf
SantiagoGarridoBulln
 
bv_cvxslides (1).pdf
bv_cvxslides (1).pdfbv_cvxslides (1).pdf
bv_cvxslides (1).pdf
SantiagoGarridoBulln
 
Optim_methods.pdf
Optim_methods.pdfOptim_methods.pdf
Optim_methods.pdf
SantiagoGarridoBulln
 

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

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 

Recently uploaded (20)

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 

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.