SlideShare a Scribd company logo
AI planning with evolutionary
computing
Planning and searching with A*
 Domain independent
Search with A* is problem independent. Once
one has the algorithm it can reuse it on different
problems
 Can exploit domain knowledge using a
heuristic
Domain knowledge can be exploited by
incorporating it in the heuristic.
 Gives an optimal solution if the heuristic is
admissible
If the heuristic never overestimates the cost of
reaching the goal, the algorithm is guaranteed to
give the solution with the lowest cost
However…
 It can take a lot of resources to get this optimal
solution. Especially when the number of possible
actions is large in each state.
 Not only will it cost a lot of memory, but it will also
take many iterations to reach the goal
 Sometimes we need a plan fast, even though it might
not be optimal
In comes: Evolutionary computing
 Evolutionary computing is a field of AI that studies a
certain family of search algorithms
 Like A*, it is an algorithm that searches to satisfy a
goal
 Inspired by evolution in nature
Advantages of EC
Anytime-behavior - allows the search to be
stopped at any time and the algorithm can still
present a, possibly suboptimal, solution.
Stopping the search at an earlier stage generally still gives a reasonable
result as you can see in below, because the best fitness of EAs typically
follows logarithmic curve. This roughly means that the time it takes for
an EA to find its best solution is double the time it requires to find a
solution of 90% of the quality of that best solution.
Advantages of EC
Better exploration EAs generally perform rather
well in exploring the search space because they work
with a population of solutions.
A search process is generally a trade-off between exploring the search
space and exploiting it. Exploration is about testing new areas of the
search space, hoping to find evidence for a peak in the neighborhood.
Exploitation is about investigating this evidence for peaks and see how
high the peak is.
So, what is Evolutionary Computing?
It is inspired by evolution in nature
 A dolphin cannot survive in a desert like a camel can.
 A camel cannot survive in the sea like a dolphin can
Both can be seen as a solution to a problem. One is a good
solution for the problem to survive in sea, where the other is a
good solution for surviving in a desert.
Evolutionary algorithms work in a similar way to
evolution.
They select ‘fit’ solutions and let these ‘have sex’ and
mutate to create fitter solutions.
What do we need?
 A representation – we could for example use a
STRIPS representation. Or a hierarchical task
network
 A fitness function – In the case of planning this
would be the cost function to get from an initial state
to the goal state. However, we could also incorporate
heuristics that help us identify promising plans
Step 1: Create a population of solutions
We need a population of solutions to work with.
Therefore we create a number of random solutions.
Each of these solutions must however be a valid
solution. The must hold a plan from the initial state to
the goal state. However, it doesn’t matter if the plan to
get from initial to goal state is very inefficient.
Population
Step 2: Evaluate each solution
 For this we use the fitness function (or cost function)
 We end up with each solution having a score
Step 3: Select parents
 Now we select those plans that are promising
 We can simply select the best solutions, but usually it
is better to also select a few bad solutions for
diversity.
Step 4: Apply variation operators
Variation operators are used to create new solutions from
existing solutions
 Crossover operator: This is where the sex happens.
We can combine the representation of two solutions to
create a whole new solution from the two parents.
 Mutation: We could also randomly modify a part of a
plan. In the touring Romania problem, we could for
example replace one city with another.
 Fixing operators: Often when we apply crossover
and mutation, we break the solution. We can only work
with valid solutions, so often we need fixing operators
that will ‘fix’ a solution to be a valid plan again.
Step 4: Apply variation operators
Step 5: Survivor selection
 Now we first apply the fitness function to the
offspring created with the variation operators
 Then, we select the poorest performing solutions and
delete/kill them.
 Like with parent selection, it is a good idea to not just kill the
worst solutions
Repeat!
Now, we repeat step 3 again
Initialize
Evaluate
population
Select
Parents
Apply
variation
operators
Select
survivors
Population
Parents
Offspring

More Related Content

What's hot

Max flow problem and push relabel algorithem
Max flow problem and push relabel algorithemMax flow problem and push relabel algorithem
Max flow problem and push relabel algorithem
8neutron8
 
Probabilistic data structure
Probabilistic data structureProbabilistic data structure
Probabilistic data structure
Thinh Dang
 
Internship Project Report - Vaibhav
Internship Project Report - VaibhavInternship Project Report - Vaibhav
Internship Project Report - Vaibhav
Vaibhav Dhattarwal
 
Crisp sets
Crisp setsCrisp sets
Crisp sets
DEEPIKA T
 
Fuzzy logic and its applications
Fuzzy logic and its applicationsFuzzy logic and its applications
Fuzzy logic and its applications
Tarek Kalaji
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
Dinesh Kumar
 
Hetro associative memory
Hetro associative memoryHetro associative memory
Hetro associative memory
DEEPENDRA KORI
 
Graph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptxGraph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptx
Home
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
Amey Kerkar
 

What's hot (9)

Max flow problem and push relabel algorithem
Max flow problem and push relabel algorithemMax flow problem and push relabel algorithem
Max flow problem and push relabel algorithem
 
Probabilistic data structure
Probabilistic data structureProbabilistic data structure
Probabilistic data structure
 
Internship Project Report - Vaibhav
Internship Project Report - VaibhavInternship Project Report - Vaibhav
Internship Project Report - Vaibhav
 
Crisp sets
Crisp setsCrisp sets
Crisp sets
 
Fuzzy logic and its applications
Fuzzy logic and its applicationsFuzzy logic and its applications
Fuzzy logic and its applications
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
 
Hetro associative memory
Hetro associative memoryHetro associative memory
Hetro associative memory
 
Graph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptxGraph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptx
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 

Similar to Ai planning with evolutionary computing

Optimised random mutations for
Optimised random mutations forOptimised random mutations for
Optimised random mutations for
ijaia
 
Lect 8 learning types (M.L.).pdf
Lect 8 learning types (M.L.).pdfLect 8 learning types (M.L.).pdf
Lect 8 learning types (M.L.).pdf
HassanElalfy4
 
Are Evolutionary Algorithms Required to Solve Sudoku Problems
Are Evolutionary Algorithms Required to Solve Sudoku ProblemsAre Evolutionary Algorithms Required to Solve Sudoku Problems
Are Evolutionary Algorithms Required to Solve Sudoku Problems
csandit
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
grinu
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
anurag singh
 
Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...
Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...
Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...
IOSR Journals
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Jay Nagar
 
Unit V.pdf
Unit V.pdfUnit V.pdf
UNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptUNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).ppt
TvVignesh3
 
T01732115119
T01732115119T01732115119
T01732115119
IOSR Journals
 
Artificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path PlanningArtificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path Planning
iosrjce
 
Nature-Inspired Mateheuristic Algorithms: Success and New Challenges
Nature-Inspired Mateheuristic Algorithms: Success and New Challenges  Nature-Inspired Mateheuristic Algorithms: Success and New Challenges
Nature-Inspired Mateheuristic Algorithms: Success and New Challenges
Xin-She Yang
 
Moea introduction by deb
Moea introduction by debMoea introduction by deb
Moea introduction by deb
Carlos Domingo Delgado
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptx
MghooolMasier
 
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk AlgorithmReview of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
Xin-She Yang
 
24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx
ManiMaran230751
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu
 
Machine learning
Machine learningMachine learning
Machine learning
business Corporate
 
Two-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionTwo-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential Evolution
Xin-She Yang
 
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdfBio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Neha Jain jain
 

Similar to Ai planning with evolutionary computing (20)

Optimised random mutations for
Optimised random mutations forOptimised random mutations for
Optimised random mutations for
 
Lect 8 learning types (M.L.).pdf
Lect 8 learning types (M.L.).pdfLect 8 learning types (M.L.).pdf
Lect 8 learning types (M.L.).pdf
 
Are Evolutionary Algorithms Required to Solve Sudoku Problems
Are Evolutionary Algorithms Required to Solve Sudoku ProblemsAre Evolutionary Algorithms Required to Solve Sudoku Problems
Are Evolutionary Algorithms Required to Solve Sudoku Problems
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...
Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...
Optimizing Mobile Robot Path Planning and Navigation by Use of Differential E...
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Unit V.pdf
Unit V.pdfUnit V.pdf
Unit V.pdf
 
UNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptUNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).ppt
 
T01732115119
T01732115119T01732115119
T01732115119
 
Artificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path PlanningArtificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path Planning
 
Nature-Inspired Mateheuristic Algorithms: Success and New Challenges
Nature-Inspired Mateheuristic Algorithms: Success and New Challenges  Nature-Inspired Mateheuristic Algorithms: Success and New Challenges
Nature-Inspired Mateheuristic Algorithms: Success and New Challenges
 
Moea introduction by deb
Moea introduction by debMoea introduction by deb
Moea introduction by deb
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptx
 
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk AlgorithmReview of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
 
24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
 
Machine learning
Machine learningMachine learning
Machine learning
 
Two-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionTwo-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential Evolution
 
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdfBio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
 

Recently uploaded

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Ai planning with evolutionary computing

  • 1. AI planning with evolutionary computing
  • 2. Planning and searching with A*  Domain independent Search with A* is problem independent. Once one has the algorithm it can reuse it on different problems  Can exploit domain knowledge using a heuristic Domain knowledge can be exploited by incorporating it in the heuristic.  Gives an optimal solution if the heuristic is admissible If the heuristic never overestimates the cost of reaching the goal, the algorithm is guaranteed to give the solution with the lowest cost
  • 3. However…  It can take a lot of resources to get this optimal solution. Especially when the number of possible actions is large in each state.  Not only will it cost a lot of memory, but it will also take many iterations to reach the goal  Sometimes we need a plan fast, even though it might not be optimal
  • 4. In comes: Evolutionary computing  Evolutionary computing is a field of AI that studies a certain family of search algorithms  Like A*, it is an algorithm that searches to satisfy a goal  Inspired by evolution in nature
  • 5. Advantages of EC Anytime-behavior - allows the search to be stopped at any time and the algorithm can still present a, possibly suboptimal, solution. Stopping the search at an earlier stage generally still gives a reasonable result as you can see in below, because the best fitness of EAs typically follows logarithmic curve. This roughly means that the time it takes for an EA to find its best solution is double the time it requires to find a solution of 90% of the quality of that best solution.
  • 6. Advantages of EC Better exploration EAs generally perform rather well in exploring the search space because they work with a population of solutions. A search process is generally a trade-off between exploring the search space and exploiting it. Exploration is about testing new areas of the search space, hoping to find evidence for a peak in the neighborhood. Exploitation is about investigating this evidence for peaks and see how high the peak is.
  • 7. So, what is Evolutionary Computing? It is inspired by evolution in nature  A dolphin cannot survive in a desert like a camel can.  A camel cannot survive in the sea like a dolphin can Both can be seen as a solution to a problem. One is a good solution for the problem to survive in sea, where the other is a good solution for surviving in a desert. Evolutionary algorithms work in a similar way to evolution. They select ‘fit’ solutions and let these ‘have sex’ and mutate to create fitter solutions.
  • 8. What do we need?  A representation – we could for example use a STRIPS representation. Or a hierarchical task network  A fitness function – In the case of planning this would be the cost function to get from an initial state to the goal state. However, we could also incorporate heuristics that help us identify promising plans
  • 9. Step 1: Create a population of solutions We need a population of solutions to work with. Therefore we create a number of random solutions. Each of these solutions must however be a valid solution. The must hold a plan from the initial state to the goal state. However, it doesn’t matter if the plan to get from initial to goal state is very inefficient. Population
  • 10. Step 2: Evaluate each solution  For this we use the fitness function (or cost function)  We end up with each solution having a score
  • 11. Step 3: Select parents  Now we select those plans that are promising  We can simply select the best solutions, but usually it is better to also select a few bad solutions for diversity.
  • 12. Step 4: Apply variation operators Variation operators are used to create new solutions from existing solutions  Crossover operator: This is where the sex happens. We can combine the representation of two solutions to create a whole new solution from the two parents.  Mutation: We could also randomly modify a part of a plan. In the touring Romania problem, we could for example replace one city with another.  Fixing operators: Often when we apply crossover and mutation, we break the solution. We can only work with valid solutions, so often we need fixing operators that will ‘fix’ a solution to be a valid plan again.
  • 13. Step 4: Apply variation operators
  • 14. Step 5: Survivor selection  Now we first apply the fitness function to the offspring created with the variation operators  Then, we select the poorest performing solutions and delete/kill them.  Like with parent selection, it is a good idea to not just kill the worst solutions
  • 15. Repeat! Now, we repeat step 3 again Initialize Evaluate population Select Parents Apply variation operators Select survivors Population Parents Offspring