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

More Related Content

What's hot

Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)xSawyer
 
Security and trust in semantic web
Security  and trust in semantic webSecurity  and trust in semantic web
Security and trust in semantic webMostafa Arjmand
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
AI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issuesAI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issuesKhushali Kathiriya
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representationSajan Sahu
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardAnimesh Chaturvedi
 
Api documentation using slate, markdown
Api documentation using slate, markdownApi documentation using slate, markdown
Api documentation using slate, markdownSebin Benjamin
 
4.component of expert system
4.component of expert system4.component of expert system
4.component of expert systemMdFazleRabbi18
 
Ai sem1 2012-13-w2-representation
Ai sem1 2012-13-w2-representationAi sem1 2012-13-w2-representation
Ai sem1 2012-13-w2-representationAzimah Hashim
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 
Prolog Programming Language
Prolog Programming  LanguageProlog Programming  Language
Prolog Programming LanguageReham AlBlehid
 
I. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AII. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AIvikas dhakane
 

What's hot (19)

Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)
 
Security and trust in semantic web
Security  and trust in semantic webSecurity  and trust in semantic web
Security and trust in semantic web
 
Planning
PlanningPlanning
Planning
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
AI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issuesAI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issues
 
Prolog
PrologProlog
Prolog
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
Derivative free optimizations
Derivative free optimizationsDerivative free optimizations
Derivative free optimizations
 
Api documentation using slate, markdown
Api documentation using slate, markdownApi documentation using slate, markdown
Api documentation using slate, markdown
 
4.component of expert system
4.component of expert system4.component of expert system
4.component of expert system
 
Ai sem1 2012-13-w2-representation
Ai sem1 2012-13-w2-representationAi sem1 2012-13-w2-representation
Ai sem1 2012-13-w2-representation
 
Machine reasoning
Machine reasoningMachine reasoning
Machine reasoning
 
Kr using rules
Kr using rulesKr using rules
Kr using rules
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Intelligent agents
Intelligent agentsIntelligent agents
Intelligent agents
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
Prolog Programming Language
Prolog Programming  LanguageProlog Programming  Language
Prolog Programming Language
 
I. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AII. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AI
 

Similar to Ai planning with evolutionary computing

Optimised random mutations for
Optimised random mutations forOptimised random mutations for
Optimised random mutations forijaia
 
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
 

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
 
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
 

Recently uploaded

Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

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