Chapter 4 - Planning 4.1 State Space Planning 4.2 Partial Order Planning 4.3Planning in the Real World Part II: Methods of AI.

Slides:



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

Chapter 5 Plan-Space Planning.
Planning II: Partial Order Planning
Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
TWEAK solving the Sussman anomaly ON(A,B) ON(B,C) ON(C,A) ONTABLE(A) ONTABLE(B) CLEAR(C) CLEAR(B) ARMEMPTY STACK(A,B) STACK(B,C) Two step additions to.
Planning Planning is fundamental to “intelligent” behaviour. E.g.
All rights reserved ©L. Manevitz Lecture 61 Artificial Intelligence Planning System L. Manevitz.
Sussman anomaly - analysis The start state is given by: ON(C, A) ONTABLE(A) ONTABLE(B) ARMEMPTY The goal by: ON(A,B) ON(B,C) This immediately leads to.
Planning Russell and Norvig: Chapter 11 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/ home.htm.
Artificial Intelligence II S. Russell and P. Norvig Artificial Intelligence: A Modern Approach Chapter 11: Planning.
1 CSC 8520 Spring Paula Matuszek On the syllabus page there are links to two Prolog programs: a simple Prolog planner and an ADT library. Download.
Planning Some material adapted from slides by Tim Finin,Jean-Claude Latombe, Lise Getoor, and Marie desJardins.
Planning Russell and Norvig: Chapter 11. Planning Agent environment agent ? sensors actuators A1A2A3.
1 Planning Adapted from Tim Finin, UMBC, Marie desJardins Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
1 Lecture 12 example (from slides prepared by Prof. J. Rosenchein)
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.
An Introduction to Artificial Intelligence CE Chapter 11 – Planning Ramin Halavati In which we see how an agent can take.
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.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
Planning Chapter Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
For Friday Finish Chapter 18 Homework: –Chapter 18, exercises 1-2.
1 CMSC 671 Fall 2010 Class #12/13 – Wednesday, October 13/ Monday, October 18 Some material adapted from slides by Jean-Claude Latombe / Lise Getoor.
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)
CPS 270: Artificial Intelligence Planning Instructor: Vincent Conitzer.
For Friday Finish chapter 10 No homework. Program 2 Any questions?
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.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Partial Order Planning Based on slides by: Carmel.
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.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Planning Chapter 10 Some material adopted from notes by Tim Finin, Marie desJardins Andreas Geyer-Schulz, and Chuck Dyer.
1 Planning Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
Planning Chapter Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
CMSC 471 Spring 2014 Class #24 Thursday, April 24, 2014 Planning
An Introduction to Artificial Intelligence CE 40417
Planning Chapter 16.
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 and Chuck Dyer
Planning (Chapter 10)
Introduction Contents Sungwook Yoon, Postdoctoral Research Associate
Dana S. Nau University of Maryland 3:10 AM September 12, 2018
Planning (Chapter 10)
CSC 8520 Spring Paula Matuszek
Dana S. Nau University of Maryland 1:50 AM September 14, 2018
CMSC 471 Fall 2011 Class #16 Tuesday, October 25, 2011 Planning
Planning Chapter and Chuck Dyer
AI Planning.
Planning Chapter and Chuck Dyer
Planning Chapter
© James D. Skrentny from notes by C. Dyer, et. al.
Course Outline Advanced Introduction Expert Systems Topics Problem
Causal-link planning 2 Jim Blythe.
CS344 : Introduction to Artificial Intelligence
Class #15 / 16 – Tuesday, October 20 / Thursday, October 22
Russell and Norvig: Chapter 11 CS121 – Winter 2003
CMSC 471 Fall 2002 Class #20/21/23 – Wednesday, November 6 / Monday, November 11 / Monday, November 18.
Prof. Pushpak Bhattacharyya, IIT Bombay
Presentation transcript:

Chapter 4 - Planning 4.1 State Space Planning 4.2 Partial Order Planning 4.3Planning in the Real World Part II: Methods of AI

Partial Order Planning (POP) See: Russell, Norvig, AI; chapter 11

Partial Plans ► Partial plan: a partially ordered set of operator instances The partial order gives only some constraints on the order in which the operations have to be performed ► Start a dummy operator ► Finish another dummy operator Start pickup(b) unstack(?x, a) putdown(?y) pickup(a) stack(b, c) stack(a, b)Finish c b a a b c

Partial Plans clear(a) ?x = ?y, ?y = c ► Partial plans can also contain the following information: ?x = ?y, ?y = c ♦ causal links often called protected conditions Start pickup(b) unstack(?x, a) putdown(?y) pickup(a) stack(b, c) stack(a,b)Finish ♦ variable binding constraints clear(a) unstack(?x, a) pickup(a)

Transform Partial Order Plan into Total-order Plan: Start Left Sock Left Shoe Right Shoe Right Sock Finish LeftSockOnRightSockOn LeftShoeOn, RightShoeOn Start Left Shoe RightS hoe Left Sock Finish Left Sock Right Sock Left Sock Right Shoe Right Sock Left Shoe Left Sock RightS hoe RightS ock RightS hoe Left Shoe Left Shoe Right Shoe Finish

A - actions O - order constraints L – links agenda - set of goals Q - preconds of A The Poplan Algorithm POP(, agenda) 2. Goal selection: Let be a pair on the agenda 3. Action selection: Let A add = choose an action that adds Q if no such action exists, then return failure Let L’= L  {A add → A need }, and let O’ = O  {A add < A need }. If A add is newly instantiated, then A’ = A  {A add } and O’ = O  {A 0 < A add < A  } (otherwise, A’ = A) 4. Updating of goal set: Let agenda’ = agenda -{ }. If A add is newly instantiated, then for each conjunction, Q i, of its precondition, add to agenda’ 5. Causal link protection: For every action A t that might threaten a causal link A p → A c, add a consistent ordering constraint, either (a)Demotion: Add A t < A p to O’ (b)Promotion: Add A c < A t to O’ (c)Inequality constraints If neither constraint is consistent, then return failure 6. Recursive invocation: POP( (, agenda’,  ) 1. Termination: If agenda is empty return

THREATS THREATS DEFINITION: Let  s  t  be a causal link with condition c in a partial plan P. Suppose P also contains a step r with an effect q such that  consistent P (s  r ) and consistent P ( r  t ) i.e., P’s ordering constraints allow putting r between s and t  Suppose q is unifiable with ~c, and P ’s variable-binding constraints do not prevent us from unifying it either Then r is a threat to the causal link  s  t 

Threats: Example Threats: Example r = stack( b,?z) below is a threat to the causal link clear (a) ?x = ?y ?y = c  Threats “threaten” correctness! clear(a) Start unstack(?x,a) putdown(?y) pickup(a) stack(b,?z) Finish

Threat Detection and Removal (1) Detection: for each causal link  s  t  and for each step r, check positive and negative threats Threat removal: (i) demotion, (ii) promotion and (iii) separation (i) Demotion: order r before s ?x=?y, ?y=c putdown(?y) stack(b,?z) pickup(a) Start Finish unstack(?x,a) clear(a)

Threat Detection and Removal  (ii) Promotion: order r after t  (iii) Separation: introduce a variable-binding constraint ?x=?y, ?y=c putdown(?y) pickup(a) Start Finish unstack(?x,a) clear(a) stack(b,?z) ?x = ?y ?y = c ?z  a clear(a) Start unstack(?x,a) putdown(?y) pickup(a) stack(b,?z) Finish

POPLAN Search Space (1) on(c,a) ontable(a) clear(c) ontable(b) clear(b) handempty A C B A B C StartFinish on(b,c) on(a,b) clear(a)

Poplan Search Space (2) Start Finish Start unstack(c,a) putdown(c) unstack(c,a) putdown(c) pickup(b) stack(b,c) stack(a,b) Finish pickup(a) stack(b,c)...

Plan Space Search Move B to C Move A to B Move A to Table, Move A to B Move C to Table, Move B to C Move A to B

State-Space Search C A B C B A A B C B A C A C B B C A A B C B C A A C B A B C A C B B C A A B C Initial state Goal

Another Example At(Home) Sells(SM, Banana) Sells(HS, Drill) Have(Drill) Have(Milk) Have(Banana) SM: Super Market HS: Hardware Store

Partial Order Planning Start End Buy(Banana) Buy(Milk) Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) Causal links At(Home)

Refining the Plan (1) Start End Buy(Banana) Buy(Milk)Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) At(s) Sells(s,Drill)Sells(s,Milk)Sells(s,Banana) NB: all causal links are also ordering links Ordering links Causal links At(Home)

Refining the Plan (2) Start End Buy(Banana) Buy(Milk)Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) At(SM) At(HWS)Sells(HWS,Drill)Sells(SM,Milk)Sells(SM,Banana) NB: all causal links are also ordering links Causal links At(Home)

Refining the Plan (3) Start End Buy(Banana) Buy(Milk)Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) Go(SM) Go(HWS) At(s) At(SM) At(HWS)Sells(HWS,Drill)Sells(SM,Milk)Sells(SM,Banana) At(Home)

Refining the Plan (4) Start End Buy(Banana) Buy(Milk)Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) Go(SM) Go(HWS) At(Home) At(SM) At(HWS)Sells(HWS,Drill)Sells(SM,Milk)Sells(SM,Banana) At(Home)

Threats to Causal Links Start End Buy(Banana) Buy(Milk)Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) Go(SM) Go(HWS) At(Home) At(SM) At(HWS)Sells(HWS,Drill)Sells(SM,Milk)Sells(SM,Banana) At(Home)

Threats to Causal Links: Demotion Start End Buy(Banana) Buy(Milk)Buy(Drill) At(Home)Have(Banana)Have(Milk)Have(Drill) Go(SM) Go(HWS) At(HWS) At(Home) At(SM) At(HWS)Sells(HWS,Drill)Sells(SM,Milk)Sells(SM,Banana) Go(Home) At(SM) At(Home)