Planning CSE 473 Chapters 10.3 and 11. © D. Weld, D. Fox 2 Planning Given a logical description of the initial situation, a logical description of the.

Slides:



Advertisements
Similar presentations
REVIEW : Planning To make your thinking more concrete, use a real problem to ground your discussion. –Develop a plan for a person who is getting out of.
Advertisements

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 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Planning with Constraints Graphplan & SATplan Yongmei Shi.
Graph-based Planning Brian C. Williams Sept. 25 th & 30 th, J/6.834J.
Planning Graphs * Based on slides by Alan Fern, Berthe Choueiry and Sungwook Yoon.
For Monday Finish chapter 12 Homework: –Chapter 13, exercises 8 and 15.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
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.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Planning: Part 3 Planning Graphs COMP151 April 4, 2007.
Planning CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanning Supervised.
1 Approaches to Agent Control zAgent senses world, acts to affect world zReactive Control ySet of situation-action rules yE.g. x1) if dog-is-behind-me.
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
1 Logistics z1 Handout yCopies of my slides zReading yRecent Advances in AI Planning, sections 1-2.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Dynamic Bayesian Networks CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanningLearning.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
An Introduction to Artificial Intelligence CE Chapter 11 – Planning Ramin Halavati In which we see how an agent can take.
Classical Planning Chapter 10.
GraphPlan Alan Fern * * Based in part on slides by Daniel Weld and José Luis Ambite.
For Wednesday Read chapter 12, sections 3-5 Program 2 progress due.
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:
Feng Zhiyong Tianjin University Fall planning.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CSE 473 Automated Planning Dan Weld (With slides by UW AI faculty & Dana Nau I have a plan - a plan that cannot possibly fail. - Inspector Clousseau.
Computer Science CPSC 322 Lecture 18 Heuristics for Forward Planning.
For Monday Read chapter 12, sections 1-2 Homework: –Chapter 10, exercise 3.
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.
CSE 473 Automated Planning Dan Weld (With slides by UW AI faculty & Dana Nau I have a plan - a plan that cannot possibly fail. - Inspector Clousseau.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
CSE 573: Artificial Intelligence Autumn2012 Heuristics & Pattern Databases for Search With many slides from Dan Klein, Richard Korf, Stuart Russell, Andrew.
Introduction to Artificial Intelligence Class 1 Planning & Search Henry Kautz Winter 2007.
Intro to Planning Or, how to represent the planning problem in logic.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Graphplan.
© Daniel S. Weld 1 Logistics Travel Wed class led by Mausam Week’s reading R&N ch17 Project meetings.
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.
Graphplan CSE 574 April 4, 2003 Dan Weld. Schedule BASICS Intro Graphplan SATplan State-space Refinement SPEEDUP EBL & DDB Heuristic Gen TEMPORAL Partial-O.
Consider the task get milk, bananas, and a cordless drill.
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
Computer Science CPSC 322 Lecture 12 SLS wrap up, Forward Planning, Planning as CSP (Ch 8.2, 8.4) Slide 1.
1 Chapter 6 Planning-Graph Techniques. 2 Motivation A big source of inefficiency in search algorithms is the branching factor  the number of children.
Planning Chapter11 Bayesian Networks (Chapters 14,15)
Introduction Contents Sungwook Yoon, Postdoctoral Research Associate
Consider the task get milk, bananas, and a cordless drill
Review for the Midterm Exam
Class #17 – Thursday, October 27
Graph-based Planning Slides based on material from: Prof. Maria Fox
Graphplan/ SATPlan Chapter
Planning CSE 473 AIMA, 10.3 and 11.
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.
Planning Problems On(C, A)‏ On(A, Table)‏ On(B, Table)‏ Clear(C)‏
Class #19 – Monday, November 3
Chapter 6 Planning-Graph Techniques
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
GraphPlan Jim Blythe.
Graph-based Planning Slides based on material from: Prof. Maria Fox
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

Planning CSE 473 Chapters 10.3 and 11

© D. Weld, D. Fox 2 Planning Given a logical description of the initial situation, a logical description of the goal conditions, and a logical description of a set of possible actions, find a sequence of actions (a plan of action) that brings us from the initial situation to a situation in which the goal conditions hold.

© Daniel S. Weld 3 Example: BlocksWorld A C B C B A

Planning Input: State Variables/Propositions Types: block --- a, b, c (on-table a) (on-table b) (on-table c) (clear a) (clear b) (clear c) (arm-empty) (holding a) (holding b) (holding c) (on a b) (on a c) (on b a) (on b c) (on c a) (on c b) (on-table ?b); clear (?b) (arm-empty); holding (?b) (on ?b1 ?b2) © D. Weld, D. Fox 4 No. of state variables =16 No. of states = 2 16 No. of reachable states = ?

Planning Input: Actions pickup a b, pickup a c, … place a b, place a c, … pickup-table a, pickup-table b, … place-table a, place-table b, … © D. Weld, D. Fox 5 pickup ?b1 ?b2 place ?b1 ?b2 pickup-table ?b place-table ?b Total: = 18 “ground” actions Total: 4 action schemata

Planning Input: Actions (contd) :action pickup ?b1 ?b2 :precondition (on ?b1 ?b2) (clear ?b1) (arm-empty) :effect (holding ?b1) (not (on ?b1 ?b2)) (clear ?b2) (not (arm-empty)) © D. Weld, D. Fox 6 :action pickup-table ?b :precondition (on-table ?b) (clear ?b) (arm-empty) :effect (holding ?b) (not (on-table ?b)) (not (arm-empty))

Planning Input: Initial State (on-table a) (on-table b) (arm-empty) (clear c) (clear b) (on c a) All other propositions false not mentioned  false © D. Weld, D. Fox 7 A C B

Planning Input: Goal (on-table c) AND (on b c) AND (on a b) Is this a state? In planning a goal is a set of states © D. Weld, D. Fox 8 C B A

9 Planning Input Representation Description of initial state of world Set of propositions Description of goal: i.e. set of worlds E.g., Logical conjunction Any world satisfying conjunction is a goal Description of available actions

© D. Weld, D. Fox 10 Planning vs. Problem-Solving Basic difference: Explicit, logic-based representation States/Situations: descriptions of the world by logical formulae  agent can explicitly reason about and communicate with the world. Goal conditions as logical formulae vs. goal test (black box)  agent can reflect on its goals. Operators/Actions: Axioms or transformation on formulae in a logical form  agent can gain information about the effects of actions by inspecting the operators.

© D. Weld, D. Fox 11 Complexity of Planning Problems Environment Percepts Actions What action next? Static vs. Dynamic Fully Observable vs. Partially Observable Deterministic vs. Stochastic Full vs. Partial satisfaction Perfect vs. Noisy

© D. Weld, D. Fox 12 Classical Planning Environment Percepts Actions What action next? Static Fully Observable Deterministic Full Perfect

© D. Weld, D. Fox 13 Actions in Classical Planning Simplifying assumptions Atomic time Agent is omniscient (no sensing necessary). Agent is sole cause of change Actions have deterministic effects STRIPS representation World = set of true propositions (conjunction) Actions: Precondition: (conjunction of positive literals, no functions) Effects (conjunction of literals, no functions) Goal = conjunction of positive literals Is Blocks World in STRIPS? Goals = conjunctions (Rich ^ Famous)

© Daniel S. Weld 14 Forward World-Space Search A C B C B A Initial State Goal State A C BA C B

© D. Weld, D. Fox 15 Forward State-Space Search Initial state: set of positive ground literals (CWA: literals not appearing are false) Actions: applicable if preconditions satisfied add positive effect literals remove negative effect literals Goal test: checks whether state satisfies goal Step cost: typically 1

© D. Weld, D. Fox 16 Heuristics for State-Space Search Count number of false goal propositions in current state Admissible? NO Subgoal independence assumption: Cost of solving conjunction is sum of cost of solving each subgoal independently Optimistic: ignores negative interactions Pessimistic: ignores redundancy Admissible? No Can you make this admissible?

CSE Heuristics for State Space Search (contd) Delete all preconditions from actions, solve easy relaxed problem, use length Admissible? YES Delete negative effects from actions, solve easier relaxed problem, use length Admissible? YES (if Goal has only positive literals, true in STRIPS)

Complexity of Planning Size of Search Space size of world state space Size of World state space exponential in problem representation What to do? Informative heuristic that can be computed in polynomial time! © D. Weld, D. Fox 18

© D. Weld, D. Fox 19 Planning Graph: Basic idea Construct a planning graph: encodes constraints on possible plans Use this planning graph to constrain search for a valid plan (GraphPlan Algorithm): If valid plan exists, it’s a subgraph of the planning graph Use this planning graph to compute an informative heuristic (Forward A*) Planning graph can be built for each problem in polynomial time

© D. Weld, D. Fox 20 The Planning Graph … … … level P0level P1level P2level P3 level A1level A2level A3 propositions actions propositions actions Note: a few noops missing for clarity

© D. Weld, D. Fox 21 Graph Expansion Proposition level 0 initial conditions Action level i no-op for each proposition at level i-1 action for each operator instance whose preconditions exist at level i-1 Proposition level i effects of each no-op and action at level i … … … … i-1ii+10

© D. Weld, D. Fox 22 Mutual Exclusion Two actions are mutex if one clobbers the other’s effects or preconditions they have mutex preconditions Two proposition are mutex if one is the negation of the other all ways of achieving them are mutex p pp p pp p pp

© D. Weld, D. Fox 23 Dinner Date Initial Conditions: (:and (cleanHands) (quiet)) Goal: (:and (noGarbage) (dinner) (present)) Actions: (:operator carry :precondition :effect (:and (noGarbage) (:not (cleanHands))) (:operator dolly :precondition :effect (:and (noGarbage) (:not (quiet))) (:operator cook :precondition (cleanHands) :effect (dinner)) (:operator wrap :precondition (quiet) :effect (present))

© D. Weld, D. Fox 24 Planning Graph noGarb cleanH quiet dinner present carry dolly cook wrap cleanH quiet 0 Prop 1 Action 2 Prop 3 Action 4 Prop

© D. Weld, D. Fox 25 Are there any exclusions? noGarb cleanH quiet dinner present carry dolly cook wrap cleanH quiet 0 Prop 1 Action 2 Prop 3 Action 4 Prop

© D. Weld, D. Fox 26 Observation 1 Propositions monotonically increase (always carried forward by no-ops) p ¬q ¬r p q ¬q ¬r p q ¬q r ¬r p q ¬q r ¬r A A B A B

© D. Weld, D. Fox 27 Observation 2 Actions monotonically increase p ¬q ¬r p q ¬q ¬r p q ¬q r ¬r p q ¬q r ¬r A A B A B

© D. Weld, D. Fox 28 Observation 3 Proposition mutex relationships monotonically decrease pqr…pqr… A pqr…pqr… pqr…pqr…

© D. Weld, D. Fox 29 Observation 4 Action mutex relationships monotonically decrease pq…pq… B pqrs…pqrs… pqrs…pqrs… A C B C A pqrs…pqrs… B C A

© D. Weld, D. Fox 30 Observation 5 Planning Graph ‘levels off’. After some time k all levels are identical Because it’s a finite space, the set of literals never decreases and mutexes don’t reappear.

Properties of Planning Graph If goal is absent from last level Goal cannot be achieved! If there exists a path to goal goal is present in the last level If goal is present in last level there may not exist any path still extend the planning graph further © D. Weld, D. Fox 31

Heuristics based on Planning Graph Construct planning graph starting from s h(s) = level at which goal appears non-mutex Admissible? YES Relaxed Planning Graph Heuristic Remove negative preconditions build plan. graph Use heuristic as above Admissible? YES More informative? NO Speed: FASTER © D. Weld, D. Fox 32