1 Logistics z1 Handout yCopies of my slides zReading yRecent Advances in AI Planning, sections 1-2.

Slides:



Advertisements
Similar presentations
Language for planning problems
Advertisements

CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
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.
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.
Action Cook Prec: CleanHands Effects: Dinner Action Wrap Prec: Quiet Effects: Present Action Carry Prec: Effects: ~Garbage AND ~CleanHands Action Dolly.
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.
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.
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
AI – Week AI Planning – Plan Generation Algorithms: GraphPlan Lee McCluskey, room 2/09
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Artificial Intelligence Chapter 11: Planning
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.
Artificial Intelligence 2005/06 Planning: STRIPS.
Knowledge Representation II CSE 573. © Daniel S. Weld 2 Logistics Reading for Monday ??? Office Hours No Office Hour Next Monday (10/25) Bonus Office.
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.
1 CSE 574 Automated Planning Daniel S. Weld. 2 Agent Control: The Problem Environment Percepts Actions What action next?
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.
1 Planning as Logic: Why logic? zFlexible language yRange of expressive power/tractability yClear semantics and syntax zGood solution processes yMature.
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:
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.
For Monday Read chapter 12, sections 1-2 Homework: –Chapter 10, exercise 3.
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.
© Daniel S. Weld 1 Logistics PS3 Project Additional problem Reading Planning & CSP for “today” SAT plan paper review for Wed.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
Graphplan.
Outline for 4/23 Logistics Planning Review of last week Incorporating Dynamics Model-Based Reactive Planning.
© 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.
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
Outline for 4/11 Bayesian Networks Planning. 2 Sources of Uncertainty Medical knowledge in logic? –Toothache Cavity Problems –Too many exceptions to any.
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)
An Introduction to Artificial Intelligence CE 40417
Class #17 – Thursday, October 27
Planning José Luis Ambite.
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.
Class #19 – Monday, November 3
Chapter 6 Planning-Graph Techniques
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
GraphPlan Jim Blythe.
An Introduction to Planning Graph
Graph-based Planning Slides based on material from: Prof. Maria Fox
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

1 Logistics z1 Handout yCopies of my slides zReading yRecent Advances in AI Planning, sections 1-2

2 2 Approaches to Agent Control zReactive Control ySet of situation-action rules yE.g. x1) if dog-is-behind-me then run-forward x2)if food-is-near then eat zPlanning yReason about effect of combinations of actions y“Planning ahead” yAvoiding “painting oneself into a corner”

3 Different Planning Approaches zGenerative Planning yReason from first principles (knowledge of actions) to generate plan yRequires formal model of actions zCase-Based Planning yRetrieve old plan which worked for similar problem yRevise retrieved plan for this problem zSee also yPolicy Iteration / Markov-Decision Processes yReinforcement Learning

4 Generative Planning zInput yDescription of initial state of world (in some KR) yDescription of goal (in some KR) yDescription of available actions (in some KR) zOutput ySequence of actions

5 Input Representation zDescription of initial state of world ySet of propositions:  ((block a) (block b) (block c) (on-table a) (on-table b) (clear a) (clear b) (clear c) (arm-empty)) zDescription of goal (i.e. set of desired worlds) yLogical conjunction yAny world that satisfies the conjunction is a goal  (and (on a b) (on b c))) zDescription of available actions

6 Representing Actions STRIPS UWL ADL SADL TractableExpressive Situation Calculus

7 How Represent Actions? zSimplifying assumptions yAtomic time yAgent is omniscient (no sensing necessary). yAgent is sole cause of change yActions have deterministic effects zSTRIPS representation yWorld = set of true propositions yActions: xPrecondition: (conjunction of literals) xEffects (conjunction of literals) a a a north11 north12 W0W0 W2W2 W1W1

8 STRIPS Actions zAction =function from world-state  world-state zPrecondition says where function defined zEffects say how to change set of propositions a a north11 W0W0 W1W1 precond: (and (agent-at 1 1) (agent-facing north)) effect: (and (agent-at 1 2) (not (agent-at 1 1))) Note: strips doesn’t allow derived effects; you must be complete!

9 Action Schemata (:operator pick-up :parameters ((block ?ob1)) :precondition (and (clear ?ob1) (on-table ?ob1) (arm-empty)) :effect (and (not (clear ?ob1)) (not (on-table ?ob1)) (not (arm-empty)) (holding ?ob1))) zInstead of defining: pickup-A and pickup-B and … zDefine a schema: Note: strips doesn’t allow derived effects; you must be complete! }

10 Planning as Search zNodes zArcs zInitial State zGoal State World states Actions The state satisfying the complete description of the initial conds Any state satisfying the goal propositions

11 Forward-Chaining World-Space Search A C B C B A Initial State Goal State

12 Backward-Chaining Search Thru Space of Partial World-States D C B A E D C B A E D C B A E * * * zProblem: Many possible goal states are equally acceptable. zFrom which one does one search? A C B Initial State is completely defined D E

13 “Causal Link” Planning zNodes zArcs zInitial State zGoal State Partially specified plans Adding + deleting actions or constraints (e.g. <) to plan The empty plan (Actually two dummy actions…) A plan which when simulated achieves the goal Need efficient way to evaluate quality (percentage of preconditions satisfied) of partial plan … Hence causal link datastructures

14 Plan-Space Search pick-from-table(C) pick-from-table(B) pick-from-table(C) put-on(C,B) zHow represent plans? zHow test if plan is a solution?

15 Planning as Search 3 Graphplan zPhase 1 - Graph Expansion yNecessary (insufficient) conditions for plan existence yLocal consistency of plan-as-CSP zPhase 2 - Solution Extraction yVariables xaction execution at a time point yConstraints xgoals, subgoals achieved xno side-effects between actions

16 Planning Graph Proposition Init State Action Time 1 Proposition Time 1 Action Time 2

17 Constructing the planning graph… zInitial proposition layer yJust the initial conditions zAction layer i yIf all of an action’s preconds are in i-1 yThen add action to layer I zProposition layer i+1 yFor each action at layer i yAdd all its effects at layer i+1

18 Mutual Exclusion zActions A,B exclusive (at a level) if yA deletes B’s precond, or yB deletes A’s precond, or yA & B have inconsistent preconds zPropositions P,Q inconsistent (at a level) if yall ways to achieve P exclude all ways to achieve Q

19 Graphplan zCreate level 0 in planning graph zLoop yIf goal  contents of highest level (nonmutex) yThen search graph for solution xIf find a solution then return and terminate yElse Extend graph one more level A kind of double search: forward direction checks necessary (but insufficient) conditions for a solution,... Backward search verifies...

20 Searching for a Solution zFor each goal G at time t yFor each action A making G xIf A isn’t mutex with a previously chosen action, select it xIf no actions work, backup to last G (breadth first search) zRecurse on preconditions of actions selected, t- 1 Proposition Init State Action Time 1 Proposition Time 1 Action Time 2

21 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))

22 Planning Graph noGarb cleanH quiet dinner present carry dolly cook wrap cleanH quiet 0 Prop 1 Action 2 Prop 3 Action 4 Prop

23 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

24 Do we have a solution? noGarb cleanH quiet dinner present carry dolly cook wrap cleanH quiet 0 Prop 1 Action 2 Prop 3 Action 4 Prop

25 Extend the Planning Graph noGarb cleanH quiet dinner present carry dolly cook wrap carry dolly cook wrap cleanH quiet noGarb cleanH quiet dinner present 0 Prop 1 Action 2 Prop 3 Action 4 Prop

26 One (of 4) possibilities noGarb cleanH quiet dinner present carry dolly cook wrap carry dolly cook wrap cleanH quiet noGarb cleanH quiet dinner present 0 Prop 1 Action 2 Prop 3 Action 4 Prop