Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Language for planning problems
CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
Planning III Introduction to Artificial Intelligence CS440/ECE448 Lecture 16.
Chapter 5 Plan-Space Planning.
1 Planning Chapter CMSC 471 Adapted from slides by Tim Finin and Marie desJardins. Some material adopted from notes by Andreas Geyer-Schulz,
Planning II: Partial Order Planning
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
CLASSICAL PLANNING What is planning ?  Planning is an AI approach to control  It is deliberation about actions  Key ideas  We have a model of the.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Constraint operations: Simplification, Optimization and Implication.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
Time Constraints in Planning Sudhan Kanitkar
First Order Logic Resolution
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
1 Complexity of domain-independent planning José Luis Ambite.
Probabilistic Planning Jim Blythe November 6th. 2 CS 541 Probabilistic planning A slide from August 30th: Assumptions (until October..) Atomic time All.
Chapter 4 - Planning 4.1 State Space Planning 4.2 Partial Order Planning 4.3Planning in the Real World Part II: Methods of AI.
Probabilistic Planning Jim Blythe. 2 CS 541 Probabilistic planning Some ‘classical planning’ assumptions Atomic time All effects are immediate Deterministic.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Artificial Intelligence 2005/06
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
CS 460, Session 20 1 Planning Search vs. planning STRIPS operators Partial-order planning.
Artificial Intelligence Chapter 11: Planning
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Planning: Part 3 Planning Graphs COMP151 April 4, 2007.
Inference and Resolution for Problem Solving
CS 561, Session Planning Search vs. planning STRIPS operators Partial-order planning.
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Local Search Techniques for Temporal Planning in LPG Paper by Gerevini, Serina, Saetti, Spinoni Presented by Alex.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
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.
Classical Planning Chapter 10.
For Wednesday Read chapter 12, sections 3-5 Program 2 progress due.
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.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
For Friday No reading Homework: –Chapter 11, exercise 4.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Partial Order Planning Based on slides by: Carmel.
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Automated Planning Dr. Héctor Muñoz-Avila. What is Planning? Classical Definition Domain Independent: symbolic descriptions of the problems and the domain.
Partial Order Planning 1 Brian C. Williams J/6.834J Sept 16 th, 2002 Slides with help from: Dan Weld Stuart Russell & Peter Norvig.
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.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
Graphplan CSE 574 April 4, 2003 Dan Weld. Schedule BASICS Intro Graphplan SATplan State-space Refinement SPEEDUP EBL & DDB Heuristic Gen TEMPORAL Partial-O.
Temporal Planning with Continuous Change J.Scott Penbrethy Daniel S. Weld Presented by - Parag.
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
CSE573 Autumn /11/98 Planning Administrative –PS3 due 2/23 –Midterm Friday Last time –regression planning algorithm –introduction to plan-space.
Planning as Search State Space Plan Space Algorihtm Progression
Planning as model checking, (OBDDs)
For Wednesday Read Chapter 18, sections 1-3 Homework:
Planning Search vs. planning STRIPS operators Partial-order planning
Planning Search vs. planning STRIPS operators Partial-order planning
Planning Search vs. planning STRIPS operators Partial-order planning
AI Planning.
Planning José Luis Ambite.
Planning CSE 573 A handful of GENERAL SEARCH TECHNIQUES lie at the heart of practically all work in AI We will encounter the SAME PRINCIPLES again and.
Causal-link planning 2 Jim Blythe.
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
GraphPlan Jim Blythe.
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

Causal-link Planning II José Luis Ambite

2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP NodesWorld StatesPartial Plans Edges/ Transitions Actions For example, in BW:  move-A-from-B-to-C  move-B-from-A-to-Table  move-C-from-B-to-A  … Plan refinements:  Step addition  Step reuse  Demotion  Promotion

3 CS 541 Causal Link Planning II POP algorithm POP((A, O, L), agenda, actions) If agenda = () then return (A, O, L) Pick (Q, a need ) from agenda a add = choose(actions) s.t. Q  effects(a add ) If no such action a add exists, fail. L’ := L  (a add, Q, a need ) ; O’ := O  (a add < a need ) agenda’ := agenda - (Q, a need ) If a add is new, then A := A  a add and  P  preconditions(a add ), add (P, a add ) to agenda’ For every action a t that threatens any causal link (a p, Q, a c ) in L’ choose to add a t < a p or a c < a t to O. If neither choice is consistent, fail. POP((A’, O’, L’), agenda, actions) Termination Action Selection Update goals Protect causal links - Demotion: a t < a p - Promotion: a c < a t Goal Selection Demotion Promotion Step Addition Step Reuse

4 CS 541 Causal Link Planning II More expressive action representation  Actions with variables  Conditional effects  Disjunctive preconditions  Universal quantification -> UCPOP [Penberthy & Weld 92]

5 CS 541 Causal Link Planning II Propositional STRIPS Move-C-from-A-to-Table: precondition: (and (on C A) (clear C)) effects: (and (on C Table) (not (on C A)) (clear A))  With n blocks => O(n 3 ) actions!  Many actions not relevant for goal

6 CS 541 Causal Link Planning II Action schemata Move ?b from ?x to ?y parameters: ?b, ?x, ?y preconds: (and (on ?b ?x) (clear ?b) (clear ?y) (≠ ?b ?x) (≠ ?b ?y) (≠ ?x ?y) (≠ ?y Table)) effects: (and (on ?b ?y) (not (on ?b ?x)) (clear ?x) (not (clear ?y)))

7 CS 541 Causal Link Planning II Modifications to POP to handle actions with variables (1)  Plan = (A, O, L, B), where  A: set of actions in the plan  O: temporal orderings between actions (a < b)  L: causal links linking actions via a literal  B: binding constraints (co-designation and non co- designation)  Unification (instead of matching)  To satisfy (Q, a need ) we can use an action a add such that P  effects(a add ) and MGU(P, Q, B) ≠   For example, use a new action move(?b ?x ?y) to satisfy on(A C), since MGU(on(?b ?y), on(A C), B)= ((?b = A) (?y = C)) ≠ 

8 CS 541 Causal Link Planning II Modifications to POP to handle actions with variables (2)  Distinct variables for new action instances  Move(?b1 ?x1 ?y1), Move(?b2 ?x2 ?y2), …  Add codesignation constrains in the preconditions of a new action to the bindings B  After adding move(?b ?x ?y) to satisfy on(A C), B := B  ((?b ≠ ?x) (?x ≠ ?y) (?b = A) (?y = C)) [(?b ≠ ?y) and (?y ≠ Table) are already satisfied since ?b and ?y are bound to constants]

9 CS 541 Causal Link Planning II Modifications to POP to handle actions with variables (3)  Threat resolution:  Delay threat checks until ground values are known for variables, or  “Separation”: add (inequality) binding that ensures condition does not unify.  Ensure all actions eventually grounded  Require ground initial state (no variables)  “Safe” operators: vars(effects)  vars (precs)

10 CS 541 Causal Link Planning II POP with variables A0 (on C A)(on-table A)(on-table B)(clear C)(clear B) Ainf (on A B)(on B C) ((?b1= B) (?y1 = C) (?b1 ≠ ?x1) (?x1 ≠ ?y1) (?y1 ≠ Table)) A1: move ?b1 from ?x1 to ?y1 (on ?b1 ?y1)-(on ?b1 Table)-(clear ?y1) (clear ?b1)(clear ?y1)(on ?b1 ?x1) Step addition (on ?b2 ?y2) A2: move ?b2 from ?x2 to ?y2 (clear ?b2)(clear ?y2)(on ?b2 ?x2) -(on ?b2 Table)-(clear ?y2) ((?b2 A) (?y2 B) … ) Step addition Step reuse

11 CS 541 Causal Link Planning II Conditional effects Move ?b from ?x to ?y parameters: ?b, ?x, ?y preconds: (and (on ?b ?x) (clear ?b) (clear ?y) (≠ ?b ?x) (≠ ?b ?y) (≠ ?x ?y)) effects: (and (on ?b ?y) (not (on ?b ?x)) (clear ?x) (when (≠ ?y Table) (not (clear ?y)))) CE Antecedent: State before action execution CE Consequent: State after action execution

12 CS 541 Causal Link Planning II Conditional Effects (when P Q)  means if P holds in the state before the action is applied, then Q will hold in the state resulting from the application of the action  In the situation calculus: P(x, s)  Q(y, do(a,s))

13 CS 541 Causal Link Planning II Modifications to POP to handle conditional effects  Allow conditional effects to be used for causal links  Add the antecedent of conditional effect to the agenda.  Threat resolution by “confrontation”:  Add the negation of the antecedent of the conditional effect to the agenda.  Handle negated goals  Same as positive goals  Closed world assumption for initial state

14 CS 541 Causal Link Planning II Disjunctive preconditions  Ex: (and (on ?x ?y) (or (clear ?x) (big-and-flat ?x)))  Modifications to POP:  Put (or Q1 Q2) on the agenda when the action is selected.  When (or Q1 Q2) is picked from the agenda, choose either Q1 or Q2 to work on.  Note: No disjunctive effects

15 CS 541 Causal Link Planning II Universal quantification in preconditions and effects Move-briefcase(?b ?loc1 ?loc2) preconds: (and (briefcase ?b) (at ?b ?loc1) (forall ((padlock ?p)) (not (locked ?b ?p))) (≠ ?loc1 ?loc2)) effects: (and (at ?b ?loc2) (not (at ?b ?loc1)) (forall ((object ?x)) (when (in ?x ?b) (and (at ?x ?loc2) (not (at ?x ?loc1))))

16 CS 541 Causal Link Planning II Universal quantification restricted to finite, static types  Assume a finite, static set of typed objects  No object creation  No object destruction  Example:  Extension[(briefcase ?b)] = {B1}  Extension[(padlock ?p)] = {P1, P2}  Extension[(object ?x)] = {B1, P1, P2, O1, O2, O3, …}

17 CS 541 Causal Link Planning II Approach: Replace quantified expressions with ground literals  Since quantification is over a finite set (type), replace “forall” goals with the conjunction of all the ground formulas obtained from the instances of the type.  Universal base: Y(  t1 x  (x)) = Y(  (c 1 ))  …  Y(  (c n )) where the instances of t1 are (c 1,.., c n )  Example: if Extension[(padlock ?x)] = {p1, p2}, then (forall ((padlock ?x)) (not (locked ?x ?b)))  (and (not (locked p1 ?b)) (not (locked p2 ?b)))

18 CS 541 Causal Link Planning II Modifications to POP to handle quantification  Replace a universally quantified goal with its universal base.  Use ground literals from the universal base of a quantified effect as needed for causal links.  Consider threats when their bindings refer to universally quantified variables.

19 CS 541 Causal Link Planning II Briefcase example A0 Ainf (briefcase B)(at B home)(in P B)(at P home) (at B office)(at P home)

20 CS 541 Causal Link Planning II Briefcase example: No threats yet A0 Ainf (briefcase B)(at B home)(in P B)(at P home) (at B office)(at P home) move B ?l office (at ?o1 office)(not (at ?o1 ?l)) (briefcase B)(at B ?l) (at B office)(not (at B ?l)) (in ?o1 B)

21 CS 541 Causal Link Planning II Briefcase example: (?l = home) => threat to (at P home) A0 Ainf (briefcase B)(at B home)(in P B)(at P home) (at B off)(at P home) move B home office (not (at B home)) (briefcase B)(at B home)(in ?o1 B) (at B office) (at ?o1 office)(not (at ?o1 home))

22 CS 541 Causal Link Planning II Briefcase example: Solve threat by confrontation A0 Ainf (briefcase B)(at B home)(in P B)(at P home) (at B off)(at P home) move B home office (not (at B home)) (briefcase B)(at B home)(in ?o1 B) (at B office) (at ?o1 office)(not (at ?o1 home)) (not (in P B))

23 CS 541 Causal Link Planning II Briefcase example: Final Plan A0 Ainf (briefcase B)(at B home)(in P B)(at P home) (at B off)(at P home) take-out P B move B home office (not (at B home)) (briefcase B)(at B home)(in ?o1 B) (at B office) (at ?o1 office)(not (at ?o1 home)) (not (in P B)) (in P B) (not (in P B))

24 CS 541 Causal Link Planning II Quantified goal example

25 CS 541 Causal Link Planning II Quantified goal example

26 CS 541 Causal Link Planning II Quantified goal example

27 CS 541 Causal Link Planning II