1 / 57

Temporal Planning

Temporal Planning. action models Using PDDL2.1 standard how to model the search Progression; Regression; PO planning how to extract good heuristics. Done. Essence of Temporal Planning. s. o. e. A [d]. s. e. Essence of Temporal Planning. B. *. D. *. *. C. A. *.

renate
Download Presentation

Temporal Planning

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Temporal Planning • action models • Using PDDL2.1 standard • how to model the search • Progression; Regression; PO planning • how to extract good heuristics Done

  2. Essence of Temporal Planning s o e A [d] s e

  3. Essence of Temporal Planning B * D * * C A * No Temporal Gap  Classical + Scheduling • Forbidding temporal gap implies • All effects at one time • Before-conditions meet effects • After-conditions meet effects • Unique transition per action pre A [d] * eff

  4. Approaches for MTP • In theory, pretty much every one of the approaches we saw for classical planning can be (and have been) extended to MTP (with varying degrees of scalability) • There are some interesting tradeoffs • PO planners are easiest to extend to support the concurrency needed for durative actions • Have harder time handling resources (because resource consumption depends on exactly what actions occurred before this time point) • Progression planners easiest to extend to support resource consuming actions • But harder time handling concurrency (need to consider “advancing clock” as a separate option in addition to applying one of the actions)

  5. Temporal Planning via Plan Space Planning • Instead of constraints w.r.t steps (s<s’ or P@s), we will have constraints on time points (t – t’ = 4 etc.).

  6. At_fusebox Have_light@t1 t1 I Cross_cellar G t2 at_fuse_box@G} Have_light@<t1,t2> t2-t1 =10 t1 < tG tI < t1

  7. The ~have_light effect at t4 can violate the <have_light, t3,t1> causal link! Resolve by Adding T4<t3 V t1<t4 ~have-light t3 t4 Burn_match At_fusebox Have_light@t1 t1 I Cross_cellar G t2 at_fuse_box@G} Have_light@<t1,t2> t2-t1 =10 t1 < tG tI < t1 T4<tG T4-t3=15 T3<t1 T4<t3 V t1<t4

  8. Notice that zeno allows arbitrary slack between the two actions ~have-light t3 t4 Burn_match At_fusebox Have_light@t1 t1 I Cross_cellar G t2 at_fuse_box@G} Have_light@<t1,t2> t2-t1 =10 t1 < tG tI < t1 t4<tG t4-t3=15 t3<t1 t4<t3 V t1<t4 t3<t2 t4<t3 V t2<t4 To work on have_light@<t1,t2>, we can either --support the whole interval directly by adding a causal link <have-light, t3,<t1,t2>> --or first split <t1,t2> to two subintervals <t1,t’> <t’,t2> and work on supporting have-light on both intervals

  9. PO (Partial Order) Search Involves LPsolving over Linear constraints (temporal constraints Are linear too); Waits for nonlinear constraints To become linear. Involves Posting temporal Constraints, and Durative goals Split the Interval into Multiple overlapping intervals [Zeno; 1994]

  10. More on Temporal planningby plan-space planners (Zeno) • The “accommodation” to complexity that Zeno makes by refusing to handle nonlinear constraints (waiting instead until they become linear) is sort of hilarious given it doesn’t care much about heuristic control otherwise • Basically Zeno is trying to keep the “per-node” cost of the search down (and if you do nonlinear constraint consistency check, even that is quite hard) • Of course, we know now that there is no obvious reason to believe that reducing the per-node cost will, ipso facto, also lead to reduction in overall search. • The idea of “goal reduction” by splitting a temporal subgoal to multiple sub-intervals is used only in Zeno, and helps it support a temporal goal over a long duration with multiple actions. Neat idea. • Zeno doesn’t have much of a problem handling arbitrary concurrency—since we are only posting constraints on temporal variables denoting the start points of the various actions. In particular, Zeno does not force either right or left alignment of actions. • In addition to Zeno, IxTeT is another influential metric temporal planner that uses plan-space planning idea.

  11. Temporal Planning with Progression? • All the progression planners we looked at were able to produce sequential plans. • Can progression be used to produce concurrent plans? • Sub Question: Can progression be used to produce parallel plans?

  12. Producing parallel plans with progression? • The naïve idea is to project over subsets of non-interfering actions (rather than single actions). • Problem: Exponential branching factor • A better idea: Consider “fattening” as well as “lengthening” the current partial plan as two options. • We start by representing the state of a partial plan prefix as [S, {A1…Ak}] where S is the current state, and {A1..Ak} are the mutually non-interfering actions that we have already committed to applying at S. • Notice that this is just a generalization of the normal progression state, in which the action set {A1..Ak} will be a singleton • Given a state [S,{A1..Ak}] to expand, we have (backtrackable) choices: • Fatten: Consider applying another action B in state S [One branch for each possible action B] • For this to be feasible, B should be applicable in Si and B should not be interfering with A1..Ak. The resulting state will be {S; {A1…Ak}+B} • Advance: Consider advancing the state. If S’ is the state resulting from application of {A1..Ak} to S, then generate the state {S’; {}} • Notice that • Fattening is only done at the current state (once advancing is done, the current state changes. So any new fattening will be done at the new state. • Normal progression does an automatic advance after each fatten (which means you will have only one action at each step)

  13. Generating concurrent plans is similar to generating parallel plans…almost.. • We will continue to consider fattening at the current state, and advancing to the next state • Several issues: • Actions have durations. So the state information should include the actions we committed to (but haven’t completed) • How much do we advance? • Worst case: Advance time to the “next time point” (could be bad news if we have dense time!) • Clever idea: Advance time to the “next happening” –where the state changes

  14. Set <pi,ti> of predicates pi and the time of their last achievement ti < t. Set of protected persistent conditions (could be binary or resource conds). Time stamp of S. Set of functions represent resource values. Event queue (contains resource as well as binary fluent events). State-Space Search:Search is through time-stamped states Search states should have information about -- what conditions hold at the current time slice (P,M below) -- what actions have we already committed to put into the plan (,Q below) S=(P,M,,Q,t) In the initial state, P,M, non-empty Q non-empty if we have exogenous events

  15. Search Algorithm (cont.) • Goal Satisfaction: S=(P,M,,Q,t)  G if <pi,ti> G either: •  <pi,tj>  P, tj < ti and no event in Q deletes pi. •  e  Q that adds pi at time te < ti. • Action Application: Action A is applicable in S if: • All instantaneous preconditions of A are satisfied by P and M. • A’s effects do not interfere with  and Q. • No event in Q interferes with persistent preconditions of A. • A does not lead to concurrent resource change • When A is applied to S: • P is updated according to A’s instantaneous effects. • Persistent preconditions of A are put in  • Delayed effects of A are put in Q. S=(P,M,,Q,t) [TLplan; Sapa; 2001—talk given 9/12/01]

  16. Decision Epochs: Limiting the places where clock can be advanced To support concurrency, we need to consider advancing the clock How far to advance the clock? One popular strategy is to advance the clock to the time of the next earliest event in the event queue; since this is the least advance needed to make changes to P and M of S. At this point, all the events happening at that time point are transferred from Q to P and M (to signify that they have happened) In the cellar plan above, the clock, If advanced, will be advanced to 15, Where an event (~have-light will occur) This means cross-cellar can either be done At 0 or 15 (and the latter makes no sense) ~have-light Light-match Cross-cellar Cross-cellar 15 10

  17. Interference  Clearly an overkill

  18. Light-match Let current state S be P:{have_light@0; at_steps@0}; Q:{~have_light@15} t: 0 (presumably after doing the light-candle action) Applying cross_cellar to this state gives S’= P:{have_light@0; crossing@0}; :{have_light,<0,10>} Q:{at_fuse-box@10;~have_light@15} t: 0 Time-stamp Light-match Cross-cellar 15 10

  19. !!! Short matches Wow! • No epoch available • “middle of nowhere” • Decision Epoch Planning is incomplete!

  20. Salvaging DEP light-match [8] fix-fuse [4] Decision Epoch Planning: DEP A [3] • Only start actions after events • Choose • Start an action • Advance epoch • Temporally Simple • Complete, suboptimal • Temporally Expressive • Incomplete, suboptimal B [2]

  21. Salvaging DEP Generalized DEP: DEP+ • Also end actions after events • Choose • Start an action • End an action • Advance epoch • Temporally Simple • Complete, optimal • Temporally Expressive • Incomplete, suboptimal A [3] B [2]

  22. !!! Wow! • Temporally Simple  Classical + Scheduling • Winners incomplete for all Temporally Expressive Languages • Most/all benchmarks are classical!

  23. !!! State of the Art: Incomplete or Slow • Metric-FF, MIPS, SGPlan, SAPA, TP4, TPG, HSP*, ... • Guarantees only for temporally simple languages • Can solve some concurrent problems • Light-match, but not short-match • Difficult to detect • ZENO, IxTeT, VHPOP, LPGP, ... • Complete • Slow

  24. Salvaging State-space Temporal Planning Interleaving-Space: TEMPO • Delay dispatch decisions until afterwards • Choose • Start an action • End an action • Make a scheduling decision • Solve temporal constraints • Temporally Simple • Complete, Optimal • Temporally Expressive • Complete, Optimal match light fuse fix fix light fix fuse light fix fuse match fix light

  25. Slides beyond this not explicitly discussed in the class

  26. Regression Search is similar… We can either work On R at tinf or R and Q At tinf-D(A3) R W X y • In the case of regression over durative actions too, the main generalization we need is differentiating the “advancement of clock” and “application of a relevant action” • Can use same state representation S=(P,M,,Q,t) with the semantics that • P and M are binary and resource subgoals needed at current time point • Q are the subgoals needed at earlier time points •  are subgoals to be protected over specific intervals • We can either add an action to support something in P or Q, or push the clock backward before considering subgoals • If we push the clock backward, we push it to the time of the latest subgoal in Q • TP4 uses a slightly different representation (with State and Action information) Q A3:W A2:X A1:Y To work on have_light@<t1,t2>, we can either --support the whole interval directly with one action --or first split <t1,t2> to two subintervals <t1,t’> <t’,t2> and work on supporting have-light on both intervals [TP4; 1999]

  27. Let current state S be P:{at_fuse_box@0} t: 0 Regressing cross_cellar over this state gives S’= P:{}; :{have_light,< 0 , -10>} Q:{have_light@ -10;at_stairs@-10} t: 0 Cross_cellar Have_light Notice that in contrast to progression, Regression will align the end points of Concurrent actions…(e.g. when we put in Light-match to support have-light)

  28. Notice that in contrast to progression, Regression will align the end points of Concurrent actions…(e.g. when we put in Light-match to support have-light) Cross_cellar S’= P:{}; :{have_light,< 0 , -10>} Q:{have_light@-10;at_stairs@-10} t: 0 If we now decide to support the subgoal in Q Using light-match S’’=P:{} Q:{have-match@-15;at_stairs@-10} :{have_light,<0 , -10>} t: 0 Have_light Cross_cellar Have_light Light-match

  29. Tradeoffs: Progression/Regression/PO Planning for metric/temporal planning • Compared to PO, both progression and regression do a less than complete job of handling concurrency (e.g. slacks may have to be handled through post-processing). • Progression planners have the advantage that the exact amount of a resource is known at any given state. So, complex resource constraints are easier to verify. PO (and to some extent regression), will have to verify this by posting and then verifying resource constraints. • Currently, SAPA (a progression planner) does better than TP4 (a regression planner). Both do oodles better than Zeno/IxTET. However • TP4 could be possibly improved significantly by giving up the insistence on admissible heuristics • Zeno (and IxTET) could benefit by adapting ideas from RePOP.

  30. When is Temporal Planning Really Temporal? William Cushing Subbarao Kambhampati Mausam Daniel Weld Special thanks to: J. Benton, Menkes van den Briel

  31. Introduction start-pre over-pre end-pre name [duration] start-eff end-eff Temporal Planning • Plan-space • Extended planning graph • Reduction to ILP • State-space • Competition winners • Reachability heuristics • Infinite number of time points • Decision Epochs • Restrict start times to events M - match L - light F - fuse light-match [8] fix-fuse [4]

  32. What do/should the IPCs measure? Essence of Temporal Planning Required Concurrency Temporally Simple Temporally Expressive Can Decision Epoch Planning be fixed? No. But! DEP+ “Less” incomplete TEMPO Reachability heuristics Overview Troubling Questions ≈ Classical ≈ Harder

  33. Essence of Temporal Planning Required Concurrency • Temporally Simple Languages • Concurrency never necessary • …but can be exploited for quality • Temporally Expressive Languages • Can specify problems such that concurrency is needed

  34. Essence of Temporal Planning Start-pre Over-pre End-pre name [duration] Start-eff End-eff Temporal Action Languages Over-pre name [duration] End-eff

  35. Essence of Temporal Planning s o e A [d] s e Temporal Action Languages • Temporally Simple • Rescheduling is possible • MIPS, SGPlan, LPG, … • Sequential planning is complete – “optimal” ? • TGP, yes • In general, yes • Temporally Expressive • Temporal Gap

  36. Essence of Temporal Planning (Minimal) Temporally Expressive Languages • Temporal Gap • Before-condition and effect • After-condition and effect • Two effects • Temporally Simple  No Temporal Gap

  37. Essence of Temporal Planning B * D * * C A * No Temporal Gap  Classical + Scheduling • Forbidding temporal gap implies • All effects at one time • Before-conditions meet effects • After-conditions meet effects • Unique transition per action • Theorem: Every concurrent plan is an O(n) rescheduling of a sequential plan • And vice versa pre A [d] * eff

  38. Conclusions • Required concurrency is the essence of temporal planning • Otherwise classical planner + O(n) scheduling suffices • Simple test for required concurrency: Temporal gap • Decision epoch planning is fundamentally incomplete • But DEP+ may solve most real-world problems • Complete state-space temporal planning: TEMPO • Allows leveraging of state-based reachability heuristics • !!!!!

  39. Evaluating Temporal Planning Domains William Cushing Subbarao Kambhampati Kartik Talamadupula Daniel Weld Mausam

  40. L fix-fuse F M light-match -L -M L ^ Competition winners are incomplete • How incomplete? • What should the IPC measure? • Epoch • A time at which an event happens • Decision Epoch Planning • Only start actions after epochs Temporal Planning Required Concurrency

  41. How deep is the problem? • Required Concurrency • Languages • Incomplete for temporally expressive languages • Complete for temporally simple languages

  42. (Minimal) Temporally Expressive Languages • Temporal Gap • Before-condition and effect • After-condition and effect • Two effects • Temporally Simple  No Temporal Gap

  43. Required Concurrency • Inherently sequential is easy • Timestamps (with support for arithmetic) • Loose integration with a PERT scheduler • TGP, LPG-td, SGPlan, MIPS, … • Required concurrency is hard • The plan space is larger • The scheduling sub-problem is harder • Sub-problem optimality principle • State of the art is VHPOP, LPGP, CRIKEY • TEMPO, reduction to CSP

  44. The International Planning Competition • Benchmarks must not require (much) concurrency • How much? • None at all • How do we show it? • Use temporal gap? • Problem: “every” action has temporal gap

  45. Solution: Decompile temporal gap • (navigate ?rover ?alpha ?omega) • Pre: (at start (at ?rover ?alpha)) • Eff: (and • (at start (not (at ?rover ?alpha))) • (at end (at ?rover ?omega))) • (navigate ?rover ?alpha ?omega) • (over all (=> (at ?rover) ?alpha ?omega))

  46. Causal Structure and Concurrency light-match * B * C A * fix-fuse * D light-match D C A B fix-fuse Inherently Sequential Inherently Concurrent

  47. Navigate’s sequential structure navigate navigate ?? ?? communicate

  48. Technique: Start-time Sequentialization • Do not want to enumerate plans! • Nor every sequentialization! • Start-time sequentialization • Fixed attempt • Suffices for benchmarks (not necessary) • End-time sequentialization • Critical-time sequentialization • Start times of containing actions in same order as all dependencies A light-match A B B fix-fuse

  49. Element Safety • Y < X • S(A(Y)) > S(A(X)) • Threat-free • X supports Z, • Y threatens Z • Interaction-free • Z supports Y • X threatens Y • Link-free • Y supports X A B A B B A

More Related