SlideShare a Scribd company logo
1 of 31
Download to read offline
Artificial Intelligence Techniques
applied to Engineering
Part 2. Genetic Fuzzy Systems
Enrique Onieva Caracuel
@EnriqueOnieva
1.Fuzzy Logic
2.Genetic Algorithms
3.Genetic Fuzzy Systems
4.Applications to Intelligent
Transportation Systems: My Experience
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 2
Optimization
Is the process of looking for the best solution over
a set of feasible solutions
Applications:
 Routes calculation
 Process planning
 Resource assignment
 Pattern classification
Can be formulated as:
 𝒎𝒊𝒏{𝒇(𝒙)│𝒙∈𝑿, 𝑿⊆𝑺 }
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 3
Example
Traveling Salesman Problem (TSP)
 A set of nodes
 To visit all the notes
 One time in each node
 Each arc (i-j) has a distance or cost associated
1
0 200 400 600 800 1000 1200 1400 1600 1800 2000
400
600
800
1000
1200
1400
1600
1800
2000
2200
2400
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 4
Example
Traveling Salesman Problem (TSP)
 A set of nodes
 To visit all the notes
 One time in each node
 Each arc (i-j) has a distance or cost associated
2
0 200 400 600 800 1000 1200 1400 1600 1800 2000
400
600
800
1000
1200
1400
1600
1800
2000
2200
2400
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
29! Feasible routes
(8,8418·1030
)
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 5
Example
Traveling Salesman Problem (TSP)
 A set of nodes
 To visit all the notes
 One time in each node
 Each arc (i-j) has a distance or cost associated
3
29! Feasible routes
(8,8418·1030
)
0 200 400 600 800 1000 1200 1400 1600 1800 2000
400
600
800
1000
1200
1400
1600
1800
2000
2200
2400
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 6
Representation
 It has to be defined how genetic characteristics of the
individuals in the population are represented
 Very important in the GA definition
 It affects to the definition of genetic operators
(selection, crossover, mutation)
 Types:
 Bit string
 Floating point
 integer
 LISP, Expressions, …
1
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 7
Representation
Requirements:
 To allow to represent any solution
 Not allowing to represent infeasible solutions
 Adjusted to the problem
Small changes in the individual must represent small changes
in the solution
 Easy to decode
2
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 8
Representation
1. Binary coding:
 Selection problems
Back packing problems
2. Real coding:
 Real optimization problems:
Find solution to:
𝑥1 + 10 · 𝑥2 + (𝑥3 · 𝑥4) + 𝑠𝑒𝑛(𝑥5 + 𝑥6) + cos⁡(
𝑥7
𝑥8
) = 0
Distribution of 4 Gaussian
membership function in a fuzzy
system
3
0 2 4 6 8
0
0.5
1
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 9
Representation
3. Integer coding:
 Grouping problems
Clustering
4. Permutation coding:
 Sequencing problems:
Traveling salesman problem
Task to realize in a industrial chain
4
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 10
Evaluation
 Evaluation (fitness):
 Measures the quality of each individual
 Allows to distinguish among good and bad individuals
 Problem dependent
 Fast execution (if possible)
 Key: it decides the individuals to be selected
 In general:
 Is the most time consuming process in a real application
 Can be a routine, a simulation or any external process
 Approximate function can be used to reduce the execution
time
1
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 11
Genetic Algorithm 2
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 12
Genetic Algorithm
Generational Model Steady-State Model
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 13
Initialization
Uniform over the search space:
 Can generate ANY individual
Binary string: [0,1] with equal probability
Real coding: uniform value in the interval
Integer coding: all the values have the same probability
Permutation coding: random permutation
Choose the initial population according with an
heuristic
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 14
Selection
Best individuals have higher chances of being
selected
Bad individuals must have any chance of being
selected
Selective Pressure: degree in which reproduction
is directed to best individuals
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 15
Selection Operators
Roulette: probability of being selected is
proportional to the fitness
 𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 =⁡
𝐹𝑖𝑡𝑛𝑒𝑠𝑠 𝑖
𝐹𝑖𝑡𝑛𝑒𝑠𝑠
Linear order: probability of
being selected is proportional to the order of the
individual
Tournament: K individuals are selected randomly,
the best of them is picked
Individual Fitness Probability
1 26 0,302
2 17 0,197
3 6 0,069
4 16 0,186
5 21 0,244
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 16
Crossover
 Offspring has to inherit some characteristics from
each parent
 It has to be designed according with the
representation
 Must produce feasible individuals
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 17
Crossover Operators
One Point Crossover
N-Points Crossover
Uniform Crossover
1
Parents
Offspring
Offspring
Offspring
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 18
Crossover Operators
Real Coding
 𝑋 = 𝑥1, 𝑥2, 𝑥3, … 𝑥 𝑛 𝑌 = {𝑦1, 𝑦2, 𝑦3, … 𝑦𝑛}
 Arithmetic crossover
𝐴 = {
𝑥1+𝑦1
2
,
𝑥2+𝑦2
2
,
𝑥3+𝑦3
2
, …
𝑥 𝑛+𝑦 𝑛
2
}
 BLX-α Crossover
𝐴 = {𝑎1, 𝑎2, 𝑎3, … 𝑎 𝑛} B = 𝑏1, 𝑏2, 𝑏3, … 𝑏 𝑛
where
 {𝒂𝒊, 𝒃𝒊}⁡∈ 𝑪 𝒎𝒊𝒏 − 𝜶 · 𝑰, 𝑪 𝒎𝒂𝒙 + 𝜶 · 𝑰
 𝐼 = 𝐶 𝑚𝑎𝑥 − 𝐶 𝑚𝑖𝑛
 𝐶 𝑚𝑖𝑛 = min⁡{ 𝑎𝑖, 𝑏𝑖} 𝐶 𝑚𝑎𝑥 = max⁡{ 𝑎𝑖, 𝑏𝑖}
2
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 19
Crossover Operators
Permutation Coding
3
Parent 1 Parent 2
Child 1 Child 2
Order
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 20
Mutation
Must allow to reach any point at the search space
Variation size must be controlled
Must produce feasible solutions
Is applied with low probability over each individual
in the offspring obtained after the crossover
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 21
Mutation Operators
 Uniform Mutation
 Interchange (“any” codification):
 Gaussian Mutation (real coding):
 𝑥′
= 𝑥 + 𝑁(0, 𝜎)
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 22
Replacement
 The way in which individuals are replaced by new
offspring affects the selective pressure
 Deterministic or randomized replacement
methods can be used
 It can be decided that the best individual (or
individuals) are not replaced  Elitism
1
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 23
Replacement
 In a Steady-State Model, it can be replaced
 The worst individual in the population
 The most similar (from N) individual
 The worst individual among a the set of the N most
similar
 The most similar parent
2
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 24
Stopping Criteria
When the optimum is reached
Limited CPU resources:
 Maximum number of generations
 Limited amount of execution time
After a certain number of generations without
improvements found
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 25
Considerations
Execute more than one time
 Use statistical measures (mean, deviation,…)
Easy to parallelize
Every search method needs equilibrium among:
 Exploring the search space
 Explode promising zones in the search space
Genetic Algorithms are general purpose search
methods. Genetic operators are used to maintain
this equilibrium
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 26
Considerations
Two opposite factors:
 Convergence: to focus the search in promising regions
by selective pressure
 Diversity: to avoid premature convergence
Selective Pressure: allow best individuals to be
selected to be crossed.
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 27
Considerations
Diversity
 It is associated with differences between individuals in
the population
Low diversity: all the individuals are quite similar between
them
Low diversity  premature convergence
Solutions:
 To include diversity mechanisms in the process
 To reinitialize once premature convergence is reached
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 28
Considerations
Diversity
 With Mutation operator
Probability adaptation
 To reduce it as the process run
 Apply high probability to bad solutions and low probability to good
solutions
 With the pairing for Crossover operator
Not cross individuals with themselves, their parents,
children,…
Incest prohibition  to cross only if the are different enough
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 29
Considerations
Diversity
 With the Crossover operator
Crossover operators with multiple parents
Crossover operators with multiple childs
Técnicas de Inteligencia Artificial aplicadas a la Ingeniería
@EnriqueOnieva 2014/2015 30
Extensions
Multimodal problems
 Multiple solutions must be returned
 Niching technique to converge to diverse local optima
Multi-objective problems
 Multiple objectives must be satisfied
 Mutually excluyent objectives
Quality – Prize
Power – Consumption
Accuracy - Complexity
 There is not unique solution
Thank you very much
Any Question?

More Related Content

Similar to 2015 Artificial Intelligence Techniques at Engineering Seminar - Chapter 2 - Part 2: Genetic Algorithms

Artificial intelligence use cases for International Dating Apps. iDate 2018. ...
Artificial intelligence use cases for International Dating Apps. iDate 2018. ...Artificial intelligence use cases for International Dating Apps. iDate 2018. ...
Artificial intelligence use cases for International Dating Apps. iDate 2018. ...Lluis Carreras
 
Eeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | PresentationEeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | PresentationChristos Papalitsas
 
Intelligent Software Engineering: Synergy between AI and Software Engineering...
Intelligent Software Engineering: Synergy between AI and Software Engineering...Intelligent Software Engineering: Synergy between AI and Software Engineering...
Intelligent Software Engineering: Synergy between AI and Software Engineering...Tao Xie
 
Topic_6
Topic_6Topic_6
Topic_6butest
 
Artificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdfArtificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdfJayanti Prasad Ph.D.
 
Symposium 2019 : Gestion de projet en Intelligence Artificielle
Symposium 2019 : Gestion de projet en Intelligence ArtificielleSymposium 2019 : Gestion de projet en Intelligence Artificielle
Symposium 2019 : Gestion de projet en Intelligence ArtificiellePMI-Montréal
 
Imtiaz khan data_science_analytics
Imtiaz khan data_science_analyticsImtiaz khan data_science_analytics
Imtiaz khan data_science_analyticsimtiaz khan
 
The Incredible Disappearing Data Scientist
The Incredible Disappearing Data ScientistThe Incredible Disappearing Data Scientist
The Incredible Disappearing Data ScientistRebecca Bilbro
 
Envelopment Analysis In Economics
Envelopment Analysis In EconomicsEnvelopment Analysis In Economics
Envelopment Analysis In EconomicsAmber Rodriguez
 
Machine Learning Overview.pptx
Machine Learning Overview.pptxMachine Learning Overview.pptx
Machine Learning Overview.pptxRushikeshChikane2
 
Human-centered AI: how can we support lay users to understand AI?
Human-centered AI: how can we support lay users to understand AI?Human-centered AI: how can we support lay users to understand AI?
Human-centered AI: how can we support lay users to understand AI?Katrien Verbert
 
Predictive analytics in mobility
Predictive analytics in mobilityPredictive analytics in mobility
Predictive analytics in mobilityEktimo
 
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...Andrea Barraza-Urbina
 

Similar to 2015 Artificial Intelligence Techniques at Engineering Seminar - Chapter 2 - Part 2: Genetic Algorithms (20)

real life application in numerical method
real life application in numerical methodreal life application in numerical method
real life application in numerical method
 
Artificial intelligence use cases for International Dating Apps. iDate 2018. ...
Artificial intelligence use cases for International Dating Apps. iDate 2018. ...Artificial intelligence use cases for International Dating Apps. iDate 2018. ...
Artificial intelligence use cases for International Dating Apps. iDate 2018. ...
 
Eeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | PresentationEeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | Presentation
 
What is Data Analysis and Machine Learning?
What is Data Analysis and Machine Learning?What is Data Analysis and Machine Learning?
What is Data Analysis and Machine Learning?
 
Intelligent Software Engineering: Synergy between AI and Software Engineering...
Intelligent Software Engineering: Synergy between AI and Software Engineering...Intelligent Software Engineering: Synergy between AI and Software Engineering...
Intelligent Software Engineering: Synergy between AI and Software Engineering...
 
Topic_6
Topic_6Topic_6
Topic_6
 
50120140504022
5012014050402250120140504022
50120140504022
 
Artificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdfArtificial Intelligence - Anna Uni -v1.pdf
Artificial Intelligence - Anna Uni -v1.pdf
 
Symposium 2019 : Gestion de projet en Intelligence Artificielle
Symposium 2019 : Gestion de projet en Intelligence ArtificielleSymposium 2019 : Gestion de projet en Intelligence Artificielle
Symposium 2019 : Gestion de projet en Intelligence Artificielle
 
Ai in finance
Ai in financeAi in finance
Ai in finance
 
Imtiaz khan data_science_analytics
Imtiaz khan data_science_analyticsImtiaz khan data_science_analytics
Imtiaz khan data_science_analytics
 
The Incredible Disappearing Data Scientist
The Incredible Disappearing Data ScientistThe Incredible Disappearing Data Scientist
The Incredible Disappearing Data Scientist
 
Envelopment Analysis In Economics
Envelopment Analysis In EconomicsEnvelopment Analysis In Economics
Envelopment Analysis In Economics
 
1-introduction.ppt
1-introduction.ppt1-introduction.ppt
1-introduction.ppt
 
Machine Learning Overview.pptx
Machine Learning Overview.pptxMachine Learning Overview.pptx
Machine Learning Overview.pptx
 
Resume
ResumeResume
Resume
 
Ml ppt at
Ml ppt atMl ppt at
Ml ppt at
 
Human-centered AI: how can we support lay users to understand AI?
Human-centered AI: how can we support lay users to understand AI?Human-centered AI: how can we support lay users to understand AI?
Human-centered AI: how can we support lay users to understand AI?
 
Predictive analytics in mobility
Predictive analytics in mobilityPredictive analytics in mobility
Predictive analytics in mobility
 
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
 

Recently uploaded

priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organizationchnrketan
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Javier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptxJavier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptxJavier Fernández Muñoz
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
Forming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptForming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptNoman khan
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labsamber724300
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSsandhya757531
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 

Recently uploaded (20)

priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Javier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptxJavier_Fernandez_CARS_workshop_presentation.pptx
Javier_Fernandez_CARS_workshop_presentation.pptx
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
Forming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptForming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).ppt
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 

2015 Artificial Intelligence Techniques at Engineering Seminar - Chapter 2 - Part 2: Genetic Algorithms

  • 1. Artificial Intelligence Techniques applied to Engineering Part 2. Genetic Fuzzy Systems Enrique Onieva Caracuel @EnriqueOnieva 1.Fuzzy Logic 2.Genetic Algorithms 3.Genetic Fuzzy Systems 4.Applications to Intelligent Transportation Systems: My Experience
  • 2. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 2 Optimization Is the process of looking for the best solution over a set of feasible solutions Applications:  Routes calculation  Process planning  Resource assignment  Pattern classification Can be formulated as:  𝒎𝒊𝒏{𝒇(𝒙)│𝒙∈𝑿, 𝑿⊆𝑺 }
  • 3. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 3 Example Traveling Salesman Problem (TSP)  A set of nodes  To visit all the notes  One time in each node  Each arc (i-j) has a distance or cost associated 1 0 200 400 600 800 1000 1200 1400 1600 1800 2000 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  • 4. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 4 Example Traveling Salesman Problem (TSP)  A set of nodes  To visit all the notes  One time in each node  Each arc (i-j) has a distance or cost associated 2 0 200 400 600 800 1000 1200 1400 1600 1800 2000 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 29! Feasible routes (8,8418·1030 )
  • 5. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 5 Example Traveling Salesman Problem (TSP)  A set of nodes  To visit all the notes  One time in each node  Each arc (i-j) has a distance or cost associated 3 29! Feasible routes (8,8418·1030 ) 0 200 400 600 800 1000 1200 1400 1600 1800 2000 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  • 6. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 6 Representation  It has to be defined how genetic characteristics of the individuals in the population are represented  Very important in the GA definition  It affects to the definition of genetic operators (selection, crossover, mutation)  Types:  Bit string  Floating point  integer  LISP, Expressions, … 1
  • 7. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 7 Representation Requirements:  To allow to represent any solution  Not allowing to represent infeasible solutions  Adjusted to the problem Small changes in the individual must represent small changes in the solution  Easy to decode 2
  • 8. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 8 Representation 1. Binary coding:  Selection problems Back packing problems 2. Real coding:  Real optimization problems: Find solution to: 𝑥1 + 10 · 𝑥2 + (𝑥3 · 𝑥4) + 𝑠𝑒𝑛(𝑥5 + 𝑥6) + cos⁡( 𝑥7 𝑥8 ) = 0 Distribution of 4 Gaussian membership function in a fuzzy system 3 0 2 4 6 8 0 0.5 1
  • 9. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 9 Representation 3. Integer coding:  Grouping problems Clustering 4. Permutation coding:  Sequencing problems: Traveling salesman problem Task to realize in a industrial chain 4
  • 10. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 10 Evaluation  Evaluation (fitness):  Measures the quality of each individual  Allows to distinguish among good and bad individuals  Problem dependent  Fast execution (if possible)  Key: it decides the individuals to be selected  In general:  Is the most time consuming process in a real application  Can be a routine, a simulation or any external process  Approximate function can be used to reduce the execution time 1
  • 11. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 11 Genetic Algorithm 2
  • 12. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 12 Genetic Algorithm Generational Model Steady-State Model
  • 13. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 13 Initialization Uniform over the search space:  Can generate ANY individual Binary string: [0,1] with equal probability Real coding: uniform value in the interval Integer coding: all the values have the same probability Permutation coding: random permutation Choose the initial population according with an heuristic
  • 14. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 14 Selection Best individuals have higher chances of being selected Bad individuals must have any chance of being selected Selective Pressure: degree in which reproduction is directed to best individuals
  • 15. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 15 Selection Operators Roulette: probability of being selected is proportional to the fitness  𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 =⁡ 𝐹𝑖𝑡𝑛𝑒𝑠𝑠 𝑖 𝐹𝑖𝑡𝑛𝑒𝑠𝑠 Linear order: probability of being selected is proportional to the order of the individual Tournament: K individuals are selected randomly, the best of them is picked Individual Fitness Probability 1 26 0,302 2 17 0,197 3 6 0,069 4 16 0,186 5 21 0,244
  • 16. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 16 Crossover  Offspring has to inherit some characteristics from each parent  It has to be designed according with the representation  Must produce feasible individuals
  • 17. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 17 Crossover Operators One Point Crossover N-Points Crossover Uniform Crossover 1 Parents Offspring Offspring Offspring
  • 18. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 18 Crossover Operators Real Coding  𝑋 = 𝑥1, 𝑥2, 𝑥3, … 𝑥 𝑛 𝑌 = {𝑦1, 𝑦2, 𝑦3, … 𝑦𝑛}  Arithmetic crossover 𝐴 = { 𝑥1+𝑦1 2 , 𝑥2+𝑦2 2 , 𝑥3+𝑦3 2 , … 𝑥 𝑛+𝑦 𝑛 2 }  BLX-α Crossover 𝐴 = {𝑎1, 𝑎2, 𝑎3, … 𝑎 𝑛} B = 𝑏1, 𝑏2, 𝑏3, … 𝑏 𝑛 where  {𝒂𝒊, 𝒃𝒊}⁡∈ 𝑪 𝒎𝒊𝒏 − 𝜶 · 𝑰, 𝑪 𝒎𝒂𝒙 + 𝜶 · 𝑰  𝐼 = 𝐶 𝑚𝑎𝑥 − 𝐶 𝑚𝑖𝑛  𝐶 𝑚𝑖𝑛 = min⁡{ 𝑎𝑖, 𝑏𝑖} 𝐶 𝑚𝑎𝑥 = max⁡{ 𝑎𝑖, 𝑏𝑖} 2
  • 19. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 19 Crossover Operators Permutation Coding 3 Parent 1 Parent 2 Child 1 Child 2 Order
  • 20. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 20 Mutation Must allow to reach any point at the search space Variation size must be controlled Must produce feasible solutions Is applied with low probability over each individual in the offspring obtained after the crossover
  • 21. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 21 Mutation Operators  Uniform Mutation  Interchange (“any” codification):  Gaussian Mutation (real coding):  𝑥′ = 𝑥 + 𝑁(0, 𝜎)
  • 22. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 22 Replacement  The way in which individuals are replaced by new offspring affects the selective pressure  Deterministic or randomized replacement methods can be used  It can be decided that the best individual (or individuals) are not replaced  Elitism 1
  • 23. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 23 Replacement  In a Steady-State Model, it can be replaced  The worst individual in the population  The most similar (from N) individual  The worst individual among a the set of the N most similar  The most similar parent 2
  • 24. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 24 Stopping Criteria When the optimum is reached Limited CPU resources:  Maximum number of generations  Limited amount of execution time After a certain number of generations without improvements found
  • 25. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 25 Considerations Execute more than one time  Use statistical measures (mean, deviation,…) Easy to parallelize Every search method needs equilibrium among:  Exploring the search space  Explode promising zones in the search space Genetic Algorithms are general purpose search methods. Genetic operators are used to maintain this equilibrium
  • 26. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 26 Considerations Two opposite factors:  Convergence: to focus the search in promising regions by selective pressure  Diversity: to avoid premature convergence Selective Pressure: allow best individuals to be selected to be crossed.
  • 27. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 27 Considerations Diversity  It is associated with differences between individuals in the population Low diversity: all the individuals are quite similar between them Low diversity  premature convergence Solutions:  To include diversity mechanisms in the process  To reinitialize once premature convergence is reached
  • 28. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 28 Considerations Diversity  With Mutation operator Probability adaptation  To reduce it as the process run  Apply high probability to bad solutions and low probability to good solutions  With the pairing for Crossover operator Not cross individuals with themselves, their parents, children,… Incest prohibition  to cross only if the are different enough
  • 29. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 29 Considerations Diversity  With the Crossover operator Crossover operators with multiple parents Crossover operators with multiple childs
  • 30. Técnicas de Inteligencia Artificial aplicadas a la Ingeniería @EnriqueOnieva 2014/2015 30 Extensions Multimodal problems  Multiple solutions must be returned  Niching technique to converge to diverse local optima Multi-objective problems  Multiple objectives must be satisfied  Mutually excluyent objectives Quality – Prize Power – Consumption Accuracy - Complexity  There is not unique solution
  • 31. Thank you very much Any Question?