© Daniel S. Weld 1 Logistics Travel Wed class led by Mausam Week’s reading R&N ch17 Project meetings.

Slides:



Advertisements
Similar presentations
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
Advertisements

Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
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.
Top 5 Worst Times For A Conference Talk 1.Last Day 2.Last Session of Last Day 3.Last Talk of Last Session of Last Day 4.Last Talk of Last Session of Last.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
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 and Scheduling. 2 USC INFORMATION SCIENCES INSTITUTE Some background Many planning problems have a time-dependent component –  actions happen.
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.
AI – Week AI Planning – Plan Generation Algorithms: GraphPlan Lee McCluskey, room 2/09
OnT-A onT-B onT-C cl-A cl-C cl-B he Pick-A Pick-B Pick-C onT-A onT-B onT-C cl-A cl-C cl-B he h-A h-B h-C ~cl-A ~cl-B ~cl-C ~he st-A-B st-A-C st-B-A st-B-C.
Planning: Part 3 Planning Graphs COMP151 April 4, 2007.
Extending Graphplan to handle Resources Presenter: Pham Van Cuong Department of Computer Science New Mexico State University.
Planning CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanning Supervised.
Planning Graph-based Heuristics for Cost-sensitive Temporal Planning Minh B. Do & Subbarao Kambhampati CSE Department, Arizona State University
Constraint Satisfaction Problems
A: A Unified Brand-name-Free Introduction to Planning Subbarao Kambhampati 11 th Feb.
1001 Ways to Skin a Planning Graph for Heuristic Fun and Profit Subbarao Kambhampati Arizona State University (With tons of.
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.
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:
Jonathon Doran. The Planning Domain A domain describes the objects, facts, and actions in the universe. We may have a box and a table in our universe.
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
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.
Heuristics in Search-Space CSE 574 April 11, 2003 Dan Weld.
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.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
Graphplan.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Graphplan: Fast Planning through Planning Graph Analysis Avrim Blum Merrick Furst Carnegie Mellon University.
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.
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
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
Planning as Search State Space Plan Space Algorihtm Progression
Classical Planning via State-space search
Temporal Graphplan David E. Smith & Dan Weld.
Planning AIMA: 10.1, 10.2, Follow slides and use textbook as reference
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
Heuristic Planning with Time and Resources
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:

© Daniel S. Weld 1 Logistics Travel Wed class led by Mausam Week’s reading R&N ch17 Project meetings

© Daniel S. Weld 2 Weekly Course Outline 1.Overview, agents, problem spaces Learning 6.Planning (and CSPs) 7.Uncertainty 8.Planning under uncertainty 9.Reinforcement learning 10.Topics 11.Project Presentations & Contest Search Knowledge Representation }

© Daniel S. Weld 3 Previously Constraint satisfaction Backtracking policies & var-ordering heuristics The planning problem Simplifying assumptions Searching world states Regression Compilation to SAT, CSP, ILP, BDD Graphplan Basics …

© Daniel S. Weld 4 Graphplan Phase 1 - Graph Expansion Necessary (insufficient) conditions for plan existence Local consistency of plan-as-CSP Phase 2 - Solution Extraction Variables action execution at a time point Constraints goals, subgoals achieved no side-effects between actions

© Daniel S. Weld 5 The Plan Graph … … … level 0level 2level 4level 6 level 1level 3level 5 propositions actions propositions actions

© Daniel S. Weld 6 Mutual Exclusion Actions A,B exclusive (at a level) if A deletes B’s precond, or B deletes A’s precond, or A & B have inconsistent preconds Propositions P,Q inconsistent (at a level) if all ways to achieve P exclude all ways to achieve Q

© Daniel S. Weld 7 Searching for a solution If goals are present & non-mutex: Choose action to achieve each goal Add preconditions to next goal set Recurse!

© Daniel S. Weld 8 Immediate Outline Graphplan Example Relation to CSP Reachability analysis & heuristic generation Do you need the whole planning graph? Temporal planning Planning under uncertainty

© Daniel S. Weld 9 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))

© Daniel S. Weld 10 Planning Graph noGarb cleanH quiet dinner present carry dolly cook wrap cleanH quiet 0 Prop 1 Action 2 Prop 3 Action 4 Prop

© Daniel S. Weld 11 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

© Daniel S. Weld 12 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

© Daniel S. Weld 13 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

© Daniel S. Weld 14 Searching Backwards 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

© Daniel S. Weld 15 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

© Daniel S. Weld 16 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

© Daniel S. Weld 17 Graphplan Solution Extraction as a Constraint Network Present NoGarb Dinner Not carry & cook Not dolly & wrap

© Daniel S. Weld 18 Speed / Memory Ratios Do & Kambhampati

© Daniel S. Weld 19 Variable-Ordering Consider normal GP solution extraction Can you think of a good VO heuristic? P Q

© Daniel S. Weld 20 Level of Proposition DVO What if same number of supporting actions? Prefer props added latest Most constrained P Q

© Daniel S. Weld 21 Immediate Outline Graphplan Example Relation to CSP Reachability analysis & heuristic generation Do you need the whole planning graph? Temporal planning Planning under uncertainty

© Daniel S. Weld 22 Heuristics for World-Space Search Any ideas?

© Daniel S. Weld 23 Optimistic Projection of Achievability At(0,0) Key(0,1) Prop list Level 0 At(0,1) At(1,0) noop Action list Level 0 Move(0,0,0,1) Move(0,0,1,0) x At(0,0) key(0,1) Prop list Level 1 x At(0,0) Key(0,1) noop x Action list Level 1 x Prop list Level 2 Move(0,1,1,1) At(1,1) At(1,0) At(0,1) Move(1,0,1,1) noop x x x x x x …... x Pick_key(0,1) Have_key ~Key(0,1)x x x x x Mutexes Initial state Goal state Grid Problem Serial PG: PG where any pair of non-noop actions are marked mutex lev(S): index of the first level where all props in S appear non- mutexed. If there is no such level, then If the graph is grown to level off, then  Else k+1 (k is the current length of the graph)

© Daniel S. Weld 24 Cost of a Set of Literals lev(p) : index of the first level at which p comes into the planning graph lev(S): index of the first level where all props in S appear non- mutexed. If there is no such level, then If the graph is grown to level off, then  Else k+1 (k is the current length of the graph) SumSet-Level Partition-kAdjusted SumCombo Set-Level with memos h(S) =  p  S lev({p}) h(S) = lev(S) Admissible

© Daniel S. Weld 25 Adjusting the Sum Heuristic Start with Sum heuristic and adjust it to take subgoal interactions into account Negative interactions in terms of “degree of interaction” Positive interactions in terms of co-achievement links Ignore negative interactions when accounting for positive interactions (and vice versa) [Kambhampati AAAI 2000] HAdjSum2M(S) = length(RelaxedPlan(S)) + max p,q  S  (p,q) Where  (p,q) = lev({p,q}) - max{lev(p), lev(q)} /*Degree of –ve Interaction */

© Daniel S. Weld 26 McDermott’s Grid World

© Daniel S. Weld 27 Immediate Outline Graphplan Example Relation to CSP Reachability analysis & heuristic generation Do you need the whole planning graph? Temporal planning Planning under uncertainty

© Daniel S. Weld 28 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

© Daniel S. Weld 29 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

© Daniel S. Weld 30 Observation 3 Proposition mutex relationships monotonically decrease pqr…pqr… A pqr…pqr… pqr…pqr…

© Daniel S. Weld 31 Observation 4 Action mutex relationships monotonically decrease pq…pq… B pqrs…pqrs… pqrs…pqrs… A C B C A pqrs…pqrs… B C A

© Daniel S. Weld 32 New Representation Propositions Actions pqrs…pqrs… ABCD…ABCD…

© Daniel S. Weld 33 Mutex Relationships pqrs…pqrs… ABCD…ABCD…  7 8 Propositions Actions

© Daniel S. Weld 34 Plan Graph pqrs…pqrs… ABCD…ABCD…  7 6 Props & actions: start level  start time Mutex relations: end level  end time

© Daniel S. Weld 35 TGP: Doing Time Actions Real duration Parallel Effects occur at end Preconditions hold throughout Affected propositions undefined during A eff1 eff2 pre cond1 [Smith & Weld IJCAI-99]

© Daniel S. Weld 36 TGP Graph Expansion New Proposition New Action New Support Add New Prop Mutex Add New Action Mutex Terminate Prop Mutex Terminate Action Mutex pqrs…pqrs… ABCD…ABCD…  7 8

© Daniel S. Weld 37 Temporal Planning Graphplan too complex Can we modify state-space search? Suppose regression

© Daniel S. Weld 38 TP4: Search Space The initial state S 0 =? E={p i } p i is required to be true at t F= {(a i,  i )} action a i is planned to start at t-  i t: time stamp S 0 = (G, NULL) The final state S ? {S= (E, NULL)|E  I p } S = ( E, F, t) [Haslum & Geffner ECP 2001]

© Daniel S. Weld 39 TP4: Action Application S=(E,{(a j,  j )},t) A set of actions, A, is applicable in S if -- every action in A is compatible with each other; --  p  E,  a  A, p  add(a), a is compatible with  b  F E={p i } p i is required to be true at t F= {(a i,  i )} action a i is planned to start at t-  i t: time stamp

© Daniel S. Weld 40 TP4: branching rule Choose a set of actions SE applicable in S, define: F new = { (a, dur(a)| a  SE }  adv = min{ , a!=no-op} then  ’ = {pre(a) | (a,  )  F  F new } F ’ = { (a,  adv )| (a,  )  F  F new,  adv } S ’ = (E ’, F ’ )