SlideShare uma empresa Scribd logo
1 de 15
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

Mais conteúdo relacionado

Semelhante a Ai planning with evolutionary computing

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.).pdfHassanElalfy4
 
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 Problemscsandit
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligencegrinu
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationanurag 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 IntelligenceJay Nagar
 
UNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptUNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptTvVignesh3
 
Artificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path PlanningArtificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path Planningiosrjce
 
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
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptxMghooolMasier
 
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 AlgorithmXin-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.pptxManiMaran230751
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsDr. C.V. Suresh Babu
 
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 EvolutionXin-She Yang
 
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdfBio-Inspired Optimization Algorithms_BasicAlgorithms.pdf
Bio-Inspired Optimization Algorithms_BasicAlgorithms.pdfNeha Jain jain
 

Semelhante a Ai planning with evolutionary computing (20)

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
 
Artificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path PlanningArtificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path Planning
 
T01732115119
T01732115119T01732115119
T01732115119
 
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
 
AI Lesson 10
AI Lesson 10AI Lesson 10
AI Lesson 10
 

Último

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Último (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

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