Causal-link planning 2 Jim Blythe.

Slides:



Advertisements
Similar presentations
Planning.
Advertisements

Language for planning problems
CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
Planning
Planning III Introduction to Artificial Intelligence CS440/ECE448 Lecture 16.
Artificial Intelligence 2005/06 Partial Order Planning.
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
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
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.
Plan Generation & Causal-Link Planning 1 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.
Planning Search vs. planning STRIPS operators Partial-order planning.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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.
Artificial Intelligence 2005/06
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Planning: Part 2 Partial Order Planning COMP151 April 2, 2007.
CS 460, Session 20 1 Planning Search vs. planning STRIPS operators Partial-order planning.
Artificial Intelligence Chapter 11: Planning
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.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
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.
Planning, page 1 CSI 4106, Winter 2005 Planning Points Elements of a planning problem Planning as resolution Conditional plans Actions as preconditions.
Planning (Chapter 10)
For Monday Read chapter 12, sections 1-2 Homework: –Chapter 10, exercise 3.
For Friday Finish chapter 10 No homework. Program 2 Any questions?
For Friday No reading Homework: –Chapter 11, exercise 4.
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.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
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.
Planning I: Total Order Planners Sections
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning.
ADVANCED PLANNING TECHNIQUES Dr. Adam Anthony Lecture 22.
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.
An Introduction to Artificial Intelligence CE 40417
Planning as Search State Space Plan Space Algorihtm Progression
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
Classical Planning via Plan-space search
For Wednesday Read Chapter 18, sections 1-3 Homework:
Planning (Chapter 10)
02/09/98 Planning Note on first item: will tend to put administrative matters first on the slide just for quick reference. Organization: look at the.
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.
GraphPlan Jim Blythe.
Presentation transcript:

Causal-link planning 2 Jim Blythe

Useful bells and whistles Last class: state-space and plan-space planning, the POP algorithm, principle of least commitment. This class: improving the action representation. Variablised actions Disjunctive preconditions Conditional effects Universal quantifiers

Reminder: blocks world (Sussman anomaly) Initial: Goal: A C B A B C State I: (on-table A) (on C A) (on-table B) (clear B) (clear C) Goal: (on A B) (on B C)

STRIPS representation for actions: Move-C-from-A-to-Table: precondition: (and (on C A) (clear C)) effects: (and (on C Table) (not (on C A)) (clear A)) The explicit effects are the only changes to the state.

POP algorithm 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 Choose to add At < Ap or Ac < At to O. If neither choice is consistent, fail. POP((A, O, L), agenda, PossibleActions) Q Ap Ac Q

1. ‘Operators’ --- 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)))

Modifications to POP Keep a list of bindings with a partial plan (A, O, L, B) Choose action Ad adding E, with MGU(Q, E, B) defined. When adding an action, add bindings preconditions to B. Delay threat checks until ground values are known for variables. (why do we know they eventually will be?)

Work on open precondition (on B C) Spot the threat! A0 (on C A) (on-table A) (on-table B) (clear C) (clear B) (clear ?b2) (clear ?y2) (on ?b2 Table) A2: move ?b2 from Table to ?y2 (clear ?b1) (clear ?y1) (on ?b1 Table) -(on ?b2 Table) -(clear ?y2) (on ?b2 ?y2) A1: move ?b1 from Table to ?y1 [[?b2 A] [?y2 B]] -(on ?b1 Table) -(clear ?y1) (on ?b1 ?y1) [[?b1 B] [?y1 C]] (on A B) (on B C) Ainf

2. Disjunctive preconditions Preconditions: (and (on ?x ?y) (or (clear ?x) (big-and-flat ?x))) Put (or Q1 Q2) on the agenda when the action is selected. When it’s picked from the agenda, choose either Q1 or Q2 to work on. (Must try all choices for completeness).

3. 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))))

Modifications to planning algorithm Allow conditional effects to be used for causal links. Add the condition to the agenda. Allow threat resolution by “confrontation”: if the threat is from a conditional effect, add its negation to the agenda.

4. Universal quantification Move-briefcase: preconds: (and (briefcase ?b) (at ?b ?loc) (forall ((padlock ?p)) (not (locked ?b ?p))) (≠ ?dest ?loc)) effects: (and (at ?b ?dest) (not (at ?b ?loc)) (forall ((object ?x)) (when (in ?x ?b) (and (at ?x ?dest) (not (at ?x ?loc)))) Assume a finite, static set of typed objects.

Approach: replace with ground literals Replace “forall” goals with the conjunction of all the implied ground goals. “Universal base” where the instances of t1 are (C1, .., Cn) and so (forall ((padlock ?x)) (not (locked ?x ?b)))  (and (not (locked p1 ?b)) (not (locked p2 ?b)) …)

Modifications to planner Replace a universally quantified goal with its universal base. Only use ground literals from the universal base of a quantified effect as they are needed for causal links. Consider threats when their bindings refer to universally quantified variables.

Briefcase example A0 move B ?l office Ainf (briefcase B) (at B home) (in P B) (at P home) (briefcase B) (at B ?l) (in ?o1 B) move B ?l office (at B off) (not (at B ?l)) (at ?o1 off) (not (at ?o1 ?l)) (at B off) (at P home) Ainf

Briefcase 2 A0 move B ?l office Ainf (briefcase B) (at B home) (in P B) (at P home) (briefcase B) (at B home) (in ?o1 B) move B ?l office (at B off) (not (at B home)) (at ?o1 off) (not (at ?o1 home)) (at B off) (at P home) Ainf

Briefcase 3 A0 move B ?l office Ainf (briefcase B) (at B home) (in P B) (at P home) (briefcase B) (at B home) (in ?o1 B) (not (in P B)) move B ?l office (at B off) (not (at B home)) (at ?o1 off) (not (at ?o1 home)) (at B off) (at P home) Ainf

Briefcase 4 A0 take-out P B move B ?l office Ainf (briefcase B) (at B home) (in P B) (at P home) take-out P B (briefcase B) (at B home) (in ?o1 B) (not (in P B)) move B ?l office (at B off) (not (at B home)) (at ?o1 off) (not (at ?o1 home)) (at B off) (at P home) Ainf