Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:

Slides:



Advertisements
Similar presentations
Artificial Intelligence 2005/06 Partial Order Planning.
Advertisements

Chapter 5 Plan-Space Planning.
Planning II: Partial Order Planning
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Iterative Deepening A* & Constraint Satisfaction Problems Lecture Module 6.
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Chapter 4 - Planning 4.1 State Space Planning 4.2 Partial Order Planning 4.3Planning in the Real World Part II: Methods of AI.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence Chapter 11: Planning
Planning Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
For Wednesday Read chapter 12, sections 3-5 Program 2 progress due.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Plan-Space Planning Dr. Héctor Muñoz-Avila Sources: Ch. 5 Appendix A Slides from Dana Nau’s lecture.
1 07. The planning problem 2  Inputs: 1. A description of the world state 2. The goal state description 3. A set of actions  Output: A sequence of actions.
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
Complexity of Classical Planning Megan Smith Lehigh University CSE 497, Spring 2007.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Planning Chapter Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
For Friday Finish Chapter 18 Homework: –Chapter 18, exercises 1-2.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
For Monday Read chapter 12, sections 1-2 Homework: –Chapter 10, exercise 3.
Planning, Executing, Sensing, and Replanning for Information Gathering Presented by Hector Gonzalez (Based on slides from Craig Knoblock and L. Joskowicz)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
For Friday No new reading Logic and Resolution Homework.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
For Friday Finish chapter 10 No homework. Program 2 Any questions?
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
For Friday No reading Homework: –Chapter 11, exercise 4.
1 Planning Chapter 10 Some material adopted from notes by Tim Finin, Marie desJardins Andreas Geyer-Schulz, and Chuck Dyer.
Planning (Chapter 10)
Lecture 3-1CS251: Intro to AI/Lisp II Planning to Learn, Learning to Plan.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Partial Order Planning 1 Brian C. Williams J/6.834J Sept 16 th, 2002 Slides with help from: Dan Weld Stuart Russell & Peter Norvig.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Partial Order Plan Execution 1 Brian C. Williams J/6.834J Sept. 16 th, 2002 Slides with help from: Dan Weld Stuart Russell & Peter Norvig.
Problem Reduction So far we have considered search strategies for OR graph. In OR graph, several arcs indicate a variety of ways in which the original.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Consider the task get milk, bananas, and a cordless drill.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Planning Chapter Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
CSE573 Autumn /11/98 Planning Administrative –PS3 due 2/23 –Midterm Friday Last time –regression planning algorithm –introduction to plan-space.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
For Wednesday Read Chapter 18, sections 1-3 Homework:
Planning (Chapter 10)
Dana S. Nau University of Maryland 3:10 AM September 12, 2018
Planning (Chapter 10)
Dana S. Nau University of Maryland 1:50 AM September 14, 2018
Consider the task get milk, bananas, and a cordless drill
Review for the Midterm Exam
AI Planning.
L11. Planning Agents and STRIPS
Planning Chapter and Chuck Dyer
Dana S. Nau University of Maryland 9:01 AM December 6, 2018
Course Outline Advanced Introduction Expert Systems Topics Problem
Chapter 6 Planning-Graph Techniques
Presentation transcript:

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 1 Chapter 5 Plan-Space Planning Dana S. Nau CMSC 722, AI Planning University of Maryland, Fall 2004 Lecture slides for Automated Planning: Theory and Practice

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 2 l Problem with state-space search u In some cases we may try many different orderings of the same actions before realizing there is no solution l Least-commitment strategy: don’t commit to orderings, instantiations, etc., until necessary Motivation a b c b a b a b a c b c a c b goal … … … … … … dead end

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 3 Outline l Basic idea l Open goals l Threats l The PSP algorithm l Long example l Comments

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 4 Plan-Space Planning - Basic Idea l Backward search from the goal l Each node of the search space is a partial plan »A set of partially-instantiated actions »A set of constraints u Make more and more refinements, until we have a solution l Types of constraints: u precedence constraint: a must precede b u binding constraints: »inequality constraints, e.g., v 1 ≠ v 2 or v ≠ c »equality constraints (e.g., v 1 = v 2 or v = c) or substitutions u causal link: »use action a to establish the precondition p needed by action b l How to tell we have a solution: no more flaws in the plan u Will discuss flaws and how to resolve them a(x) Precond: … Effects: p(x) b(y) Precond:  p(y) Effects: … c(x) Precond: p(x) Effects: … p(x) x ≠ y

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 5 l Flaw: u An action a has a precondition p that we haven’t decided how to establish l Resolving the flaw: u Find an action b (either already in the plan, or insert it) u that can be used to establish p can precede a and produce p u Instantiate variables u Create a causal link a(y) Precond: … Effects: p(y) c(x) Precond: p(x) Effects: … a(x) Precond: … Effects: p(x) c(x) Precond: p(x) Effects: … p(x) Open Goal

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 6 Threat l Flaw: a deleted-condition interaction u Action a establishes a condition (e.g., p(x)) for action b u Another action c is capable of deleting this condition p(x) l Resolving the flaw: u impose a constraint to prevent c from deleting p(x) l Three possibilities: u Make b precede c u Make c precede a u Constrain variable(s) to prevent c from deleting p(x) a(x) Precond: … Effects: p(x) c(y) Precond: … Effects:  p(y) b(x) Precond: p(x) Effects: … p(x)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 7 The PSP Procedure l PSP is both sound and complete

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 8 Example l Similar (but not identical) to an example in Russell and Norvig’s Artificial Intelligence: A Modern Approach (1st edition) l Operators: u Start Precond: none Effects: At(Home), sells(HWS,Drill), Sells(SM,Milk), Sells(SM,Banana) u Finish Precond: Have(Drill), Have(Milk), Have(Banana), At(Home) u Go(l,m) Precond: At(l) Effects: At(m),  At(l) u Buy(p,s) Precond: At(s), Sells(s,p) Effects: Have(p)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 9 Example (continued) l Initial plan Sells(SM,Milk), Sells(SM,Bananas) At(Home), Sells(HWS,Drill), Have(Bananas), At(Home) Have(Drill), Have(Milk),

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 10 Example (continued) l The only possible ways to establish the “Have” preconditions At(s 1 ), Sells(s 1,Drill) At(s 2 ), Sells(s 2,Milk)At(s 3 ), Sells(s 3,Bananas) Buy(Drill, s 1 ) Buy(Milk, s 2 ) Buy(Bananas, s 2 ) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 11 Example (continued) l The only possible way to establish the “Sells” preconditions Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill)At(SM), Sells(SM,Bananas) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 12 At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) At(x) Buy(Milk,SM)Buy(Bananas,SM) At(l 2 ) Go(l 2, SM) At(l 1 ) Go(l 1,HWS) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home) Example (continued) l The only ways to establish At(HWS) and At(SM) u Note the threats

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 13 l To resolve the third threat, make Buy(Drill) precede Go(SM) u This resolves all three threats Example (continued) At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) At(x) Buy(Milk,SM)Buy(Bananas,SM) At(l 2 ) Go(l 2, SM) At(l 1 ) Go(l 1,HWS) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 14 Example (continued) l Establish At(l 1 ) with l 1 =Home At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) At(x) Buy(Milk,SM)Buy(Bananas,SM) At(l 2 ) Go(l 2, SM) At(Home) Go(Home,HWS) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 15 Example (continued) l Establish At(l 2 ) with l 2 =HWS Buy(Milk,SM)Buy(Bananas,SM) At(x) At(HWS) Go(HWS,SM) At(Home) Go(Home,HWS) At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 16 Example (continued) l Establish At(Home) for Finish Buy(Milk,SM)Buy(Bananas,SM) At(x) At(HWS) Go(HWS,SM) At(Home) Go(Home,HWS) At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home) At(l 3 ) Go(l 3, Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 17 Example (continued) l Constrain Go(Home) to remove threats to At(SM) Buy(Milk,SM)Buy(Bananas,SM) At(x) At(HWS) Go(HWS,SM) At(Home) Go(Home,HWS) At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home) At(l 3 ) Go(l 3, Home)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 18 Final Plan l Establish At(l 3 ) with l 3 =SM Buy(Milk,SM)Buy(Bananas,SM) At(x) At(HWS) At(Home) Go(Home,HWS) At(SM), Sells(SM,Milk) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Have(Drill), Have(Milk), Have(Bananas), At(Home) At(SM) Go(SM,Home) Go(HWS,SM)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 19 Comments l PSP doesn’t commit to orderings and instantiations until necessary u Avoids generating search trees like this one: l Problem: how to prune infinitely long paths? u Loop detection is based on recognizing states we’ve seen before u In a partially ordered plan, we don’t know the states l Can we prune if we see the same action more than once? a b c b a b a b a c b c a c b goal go(b,a)go(a,b) go(b,a)at(a) No. Sometimes we might need the same action several times in different states of the world (see next slide)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 20 Example l 3-digit binary counter starts at 000, want to get to 110 s 0 = {d3=0, d2=0, d1=0} g = {d3=1, d2=1, d1=0} l Operators to increment the counter by 1: incr0 Precond: d 1 =0 Effects: d 1 =1 incr01 Precond: d 2 =0, d 1 =1 Effects: d 2 =1, d 1 =0 incr011 Precond: d 3 =0, d 2 =1, d 1 =1 Effects: d 3 =1, d 2 =0, d 1 =0

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 21 A Weak Pruning Technique l Can prune all paths of length > n, where n = |{all possible states}| u This doesn’t help very much l I’m not sure whether there’s a good pruning technique for plan- space planning