Chapter 5 Plan-Space Planning.

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Solving Systems of Linear Equations Graphically and Numerically
1
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (Parallel Algorithms) Robin Pomplun.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Create an Application Title 1A - Adult Chapter 3.
Process a Customer Chapter 2. Process a Customer 2-2 Objectives Understand what defines a Customer Learn how to check for an existing Customer Learn how.
Human Service Providers and Referrals Chapter 5. Human Service Providers and Referrals 5-2 Objectives Demonstrate the process for entering a Human Service.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Turing Machines.
PP Test Review Sections 6-1 to 6-6
Chapter 17 Linked Lists.
Chapter 24 Lists, Stacks, and Queues
EU market situation for eggs and poultry Management Committee 20 October 2011.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
2 |SharePoint Saturday New York City
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
VOORBLAD.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Adding Up In Chunks.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Note to the teacher: Was 28. A. to B. you C. said D. on Note to the teacher: Make this slide correct answer be C and sound to be “said”. to said you on.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
10 -1 Chapter 10 Amortized Analysis A sequence of operations: OP 1, OP 2, … OP m OP i : several pops (from the stack) and one push (into the stack)
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
CSE Lecture 17 – Balanced trees
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
CINAHL Keyword Searching. This presentation will take you through the procedure of finding reliable information which can be used in your academic work.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Profile. 1.Open an Internet web browser and type into the web browser address bar. 2.You will see a web page similar to the one on.
1 Plan-Space Planning Dr. Héctor Muñoz-Avila Sources: Ch. 5 Appendix A Slides from Dana Nau’s lecture.
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:
Dana S. Nau University of Maryland 3:10 AM September 12, 2018
Dana S. Nau University of Maryland 1:50 AM September 14, 2018
Causal-link planning 2 Jim Blythe.
Presentation transcript:

Chapter 5 Plan-Space Planning

Motivation Problem with state-space search In some cases we may try many different orderings of the same actions before realizing there is no solution Least-commitment strategy: don’t commit to orderings, instantiations, etc., until necessary dead end … a b c dead end … b a dead end … b a goal b dead end … a c dead end … b c a dead end … c b

Total Order Plans: Partial Order Plans: Start Start Start Start Start Right Sock Right Sock Left Sock Left Sock Right Sock Left Sock Left Sock Right Sock Left Sock Left Sock Right Sock Right Sock Right Shoe Left Shoe Left Sock on Right Sock on Left Shoe Right Shoe Right Shoe Left Sock Right Shoe Left Shoe Left Sock Right Sock Right Shoe on Left Shoe on Right Shoe Left Shoe Right Shoe Left Shoe Right Shoe Left Shoe Finish Finish Finish Finish Finish Finish Finish

Outline Basic idea Open goals Threats The PSP algorithm Long example Comments

Plan Space

Plan-Space Planning - Basic Idea Backward search from the goal Each node of the search space is a partial plan A set of partially-instantiated actions A set of constraints Make more and more refinements, until we have a solution Types of constraints: precedence constraint: a must precede b binding constraints: inequality constraints, e.g., v1 ≠ v2 or v ≠ c equality constraints (e.g., v1 = v2 or v = c) or substitutions causal link: use action a to establish the precondition p needed by action b How to tell we have a solution: no more flaws in the plan Will discuss flaws and how to resolve them b(y) Precond: p(y) Effects: … x ≠ y a(x) Precond: … Effects: p(x) c(x) Precond: p(x) Effects: … p(x)

Open Goal Flaw: An action a has a precondition p that we haven’t decided how to establish Resolving the flaw: Find an action b (either already in the plan, or insert it) that can be used to establish p can precede a and produce p Instantiate variables Create a causal link c(x) Precond: p(x) Effects: … a(y) Precond: … Effects: p(y) c(x) Precond: p(x) Effects: … a(x) Precond: … Effects: p(x) p(x)

Threat Flaw: a deleted-condition interaction Action a establishes a condition (e.g., p(x)) for action b Another action c is capable of deleting this condition p(x) Resolving the flaw: impose a constraint to prevent c from deleting p(x) Three possibilities: Make b precede c Make c precede a Constrain variable(s) to prevent c from deleting p(x) a(x) Precond: … Effects: p(x) b(x) Precond: p(x) Effects: … p(x) c(y) Precond: … Effects: p(y)

The PSP Procedure PSP is both sound and complete

Example Similar (but not identical) to an example in Russell and Norvig’s Artificial Intelligence: A Modern Approach (1st edition) Operators: Start Precond: none Effects: At(Home), sells(HWS,Drill), Sells(SM,Milk), Sells(SM,Banana) Finish Precond: Have(Drill), Have(Milk), Have(Banana), At(Home) Go(l,m) Precond: At(l) Effects: At(m), At(l) Buy(p,s) Precond: At(s), Sells(s,p) Effects: Have(p)

Example (continued) Initial plan At(Home), Sells(HWS,Drill), Sells(SM,Milk), Sells(SM,Bananas) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) The only possible ways to establish the “Have” preconditions At(s1), Sells(s1,Drill) At(s2), Sells(s2,Milk) At(s3), Sells(s3,Bananas) Buy(Drill, s1) Buy(Milk, s2) Buy(Bananas, s2) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) The only possible way to establish the “Sells” preconditions At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) The only ways to establish At(HWS) and At(SM) Note the threats At(l2) At(x) At(l1) Go(l1,HWS) Go(l2, SM) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) To resolve the third threat, make Buy(Drill) precede Go(SM) This resolves all three threats At(l2) At(x) At(l1) Go(l1,HWS) Go(l2, SM) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) Establish At(l1) with l1=Home At(l2) At(Home) At(x) At(Home) Go(Home,HWS) Go(l2, SM) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) Establish At(l2) with l2=HWS At(HWS) At(Home) At(x) At(Home) Go(Home,HWS) Go(HWS,SM) At(HWS), Sells(HWS,Drill) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) Establish At(Home) for Finish At(HWS) At(Home) At(x) At(Home) Go(Home,HWS) Go(HWS,SM) At(HWS), Sells(HWS,Drill) At(l3) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Go(l3, Home) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Example (continued) Constrain Go(Home) to remove threats to At(SM) At(HWS) At(x) At(Home) Go(Home,HWS) Go(HWS,SM) At(HWS), Sells(HWS,Drill) At(l3) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Go(l3, Home) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Final Plan Establish At(l3) with l3=SM At(HWS) At(Home) Go(HWS,SM) At(x) At(Home) Go(Home,HWS) Go(HWS,SM) At(HWS), Sells(HWS,Drill) At(SM) At(SM), Sells(SM,Milk) At(SM), Sells(SM,Bananas) Buy(Drill,HWS) Buy(Milk,SM) Buy(Bananas,SM) Go(SM,Home) Have(Drill), Have(Milk), Have(Bananas), At(Home)

Comments a b c b a PSP doesn’t commit to orderings and instantiations until necessary Avoids generating search trees like this one: Problem: how to prune infinitely long paths? Loop detection is based on recognizing states we’ve seen before In a partially ordered plan, we don’t know the states Can we prune if we see the same action more than once? b a goal b a c b c a c b 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)

Example 3-digit binary counter starts at 000, want to get to 110 s0 = {d3=0, d2=0, d1=0} g = {d3=1, d2=1, d1=0} Operators to  increment the counter by 1: incr0 Precond: d1=0 Effects: d1=1 incr01 Precond: d2=0, d1=1 Effects: d2=1, d1=0 incr011 Precond: d3=0, d2=1, d1=1 Effects: d3=1, d2=0, d1=0

A Weak Pruning Technique Can prune all paths of length > n, where n = |{all possible states}| This doesn’t help very much There’s not yet a good pruning technique for plan-space planning Iterative deepening depth first search

POP algorithm Q Q POP((A, O, L), agenda, PossibleActions): If agenda is empty, return (A, O, L) Pick (Q, An) from agenda Ad = choose an action that adds Q. If no such action exists, fail. Add the link Ad Ac to L and the ordering Ad < Ac to O If Ad is new, add it to A. Remove (Q, An) from agenda. If Ad is new, for each of its preconditions P add (P, Ad) to agenda. For every action At that threatens any link Ap Ac Choose to add At < Ap or Ac < At to O. If neither choice is consistent, fail. POP((A, O, L), agenda, PossibleActions) Q Q

POP in the Blocks world

POP in the Blocks world

POP in the Blocks world

POP in the Blocks world

Conditional Effects & Disjunctions

Universal Quantification

Building Universal Base

Building Universal Base (Cont.)

An Example of Confrontation

Final Plan

An Example of Universal Quantification

Final Plan