원시데이터 수집 시스템
선정목록으로

COLIN: Planning with Continuous Linear Numeric Change

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Coles, Amanda J.
  2. Coles, Andrew I.
  3. Fox, Maria
  4. Long Derek
DOI
10.48550/arxiv.1401.5857
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1401.5857
토픽
Polymer crystallization and properties
OpenAlex ID
W6929214960

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this paper we describe COLIN, a forward-chaining heuristic search planner, capable of reasoning with COntinuous LINear numeric change, in addition to the full temporal semantics of PDDL. Through this work we make two advances to the state-of-the-art in terms of expressive reasoning capabilities of planners: the handling of continuous linear change, and the handling of duration-dependent effects in combination with duration inequalities, both of which require tightly coupled temporal and numeric reasoning during planning. COLIN combines FF-style forward chaining search, with the use of a Linear Program (LP) to check the consistency of the interacting temporal and numeric constraints at each state. The LP is used to compute bounds on the values of variables in each state, reducing the range of actions that need to be considered for application. In addition, we develop an extension of the Temporal Relaxed Planning Graph heuristic of CRIKEY3, to support reasoning directly with continuous change. We extend the range of task variables considered to be suitable candidates for specifying the gradient of the continuous numeric change effected by an action. Finally, we explore the potential for employing mixed integer programming as a tool for optimising the timestamps of the actions in the plan, once a solution has been found. To support this, we further contribute a selection of extended benchmark domains that include continuous numeric effects. We present results for COLIN that demonstrate its scalability on a range of benchmarks, and compare to existing state-of-the-art planners.

본문 299,876자

본문 펼치기
Journal of Artificial Intelligence Research 44 (2012) 1–96 Submitted 01/12; published 05/12 # COLIN : Planning with Continuous Linear Numeric Change Amanda Coles AMANDA.COLES@KCL.AC.UK Andrew Coles ANDREW.COLES@KCL.AC.UK Maria Fox MARIA.FOX@KCL.AC.UK Derek Long DEREK.LONG@KCL.AC.UK _Department of Informatics, King’s College London,_ _Strand, London WC2R 2LS, UK_ Abstract In this paper we describe COLIN, a forward-chaining heuristic search planner, capable of reasoning with COntinuous LINear numeric change, in addition to the full temporal semantics of PDDL2.1. Through this work we make two advances to the state-of-the-art in terms of expressive reasoning capabilities of planners: the handling of continuous linear change, and the handling of duration-dependent effects in combination with duration inequalities, both of which require tightly coupled temporal and numeric reasoning during planning. COLIN combines FF-style forward chaining search, with the use of a Linear Program (LP) to check the consistency of the interacting temporal and numeric constraints at each state. The LP is used to compute bounds on the values of variables in each state, reducing the range of actions that need to be considered for application. In addition, we develop an extension of the Temporal Relaxed Planning Graph heuristic of CRIKEY3, to support reasoning directly with continuous change. We extend the range of task variables considered to be suitable candidates for specifying the gradient of the continuous numeric change effected by an action. Finally, we explore the potential for employing mixed integer programming as a tool for optimising the timestamps of the actions in the plan, once a solution has been found. To support this, we further contribute a selection of extended benchmark domains that include continuous numeric effects. We present results for COLIN that demonstrate its scalability on a range of benchmarks, and compare to existing state-of-the-art planners. 1. Introduction There has been considerable progress in the development of automated planning techniques for domains involving independent temporal and metric conditions and effects (Eyerich, Mattm¨uller, & R¨oger, 2009; Coles, Fox, Long, & Smith, 2008a; Gerevini, Saetti, & Serina, 2006; Edelkamp, 2003; Coles, Fox, Long, & Smith, 2008b). The development of powerful heuristics for propositional planning has been shown to offer benefits in the solution of extended planning problems, including planning under uncertainty (Palacios & Geffner, 2009), planning with numbers and planning with time. However, the combination and integration of metric and temporal features, in which metric quantities change in time-dependent ways, remains a challenge that has received relatively little attention. Interaction between time and numbers in planning problems can occur in many ways. In the simplest case, using PDDL2.1 (Fox & Long, 2003), the numeric effects of actions are only updated instantaneously, and only at the start or end points of actions which are known (and fixed) at the point of action execution. The corpus of domains from past International Planning Competitions adhere to these restrictions. Time and numbers can interact in at least two more complex ways. First, actions can have variable, possibly constrained, durations and the (instantaneous) effects of these _⃝_ c 2012 AI Access Foundation. All rights reserved. COLES, COLES, FOX & LONG actions can depend on the values of the durations. This allows domain models to capture the effects of processes as discretised step effects, but adjusted according to the demands of specific problem instances. Second, the effects of actions can be considered to be continuous across their execution, so that the values of metric variables at any time point depend on how long the continuous effects have been acting on them. For example, a problem in which sand is loaded into a lorry can be modelled so that the amount of sand loaded depends on the time spent loading. The first approach is to capture the increase in the quantity of loaded sand as a step function applied at the end of the loading action. In the second approach, the process of loading sand is modelled as a continuous and linear function of the time spent loading, so that the amount of sand in the lorry can be observed at any point throughout the loading process. If a safety device must be engaged before the lorry is more than three-quarters full, then only the second of these models will allow a planner to have the necessary access to the underlying process behaviour to make good planning choices about how to integrate this action into solutions. There are alternative models exploiting duration-dependent effects to split the loading action into two parts around the time point at which the safety device must be engaged, but these alternatives become very complicated with relatively modest changes to the domain. Continuous change in both of these forms is common in many important problems. These include: energy management, the consumption and replenishment of restricted continuous resources such as fuel, tracking the progress of chemicals through storage tanks in chemical plants, choreographing robot motion with the execution of tasks, and managing the efficient use of time. In some cases, a model using discrete time-independent change is adequate for planning. However, discretisation is not always practical: to find a reasonable solution (or, indeed, to find one at all) identifying the appropriate granularity for discretisation is non-trivial, perhaps requiring a range of choices that are so fine-grained as to make the discrete model infeasibly large. In other cases, the numeric change cannot be appropriately discretised, where it is unavoidably necessary to have access to the values of numeric variables during the execution of actions, in order to manage interactions between numeric values. In this paper we present a planner, COLIN, capable of reasoning with both variable, durationdependent, linear change and linear continuous numeric effects. The key advance that COLIN makes is to be able to reason about time-dependent change through the use of linear programs that combine metric and temporal conditions and effects into the same representation. COLIN is a satisficing planner that attempts to build good quality solutions to this complex class of problems. Since COLIN is a forward-searching planner it requires a representation of states, a means to compute the progression of states and a heuristic function to guide the search for a path from the initial to the goal state. COLIN is built on the planner CRIKEY3 (Coles, Fox, Long et al., 2008a). However, CRIKEY3 requires numeric change to be discrete and cannot reason with continuous numeric change, or duration dependent change (where the duration of actions is not fixed in the state in which the action begins). Being able to reason successfully with problems characterised by continuous change, coping efficiently with a wide range of practical problems that are inspired by real applications, is the major contribution made by COLIN. The organisation of the paper is as follows. In Section 2 we explain the features of PDDL2.1 that COLIN can handle, and contrast its repertoire with that of CRIKEY3. In Section 4 we define the problem that is addressed by COLIN. In Section 5 we outline the background in temporal and metric planning that supports COLIN, before, in Section 6, describing the details of the foundations of COLIN that lie in CRIKEY3. COLIN inherits its representation of states from CRIKEY3, 2 COLIN: PLANNING WITH CONTINUOUS CHANGE as well as the machinery for confirming the temporal consistency of plans and the basis for the heuristic function. In Section 7 we describe systems in the literature that have addressed similar hybrid discrete-continuous planning problems to those that COLIN is designed to handle. Section 8 explains how state progression is extended in COLIN to handle linear continuous change, and Section 9 describes the heuristic that guides the search for solutions. In Section 10 we consider several elements of COLIN that improve both efficiency and plan quality, without affecting the fundamental behaviour of the planner. Since time-dependent numeric change has been so little explored, there are few benchmarks in existence that allow a full quantitative evaluation. We therefore present a collection of continuous domains that can be used for such analysis, and we show how COLIN fares on these. An appendix containing some explanations of technical detail and some detailed summaries of background work on which COLIN depends, ensures that the paper is complete and self-contained. 2. Language Features in CRIKEY3 and C OLIN COLIN builds on CRIKEY3 by handling the continuous features of PDDL2.1. CRIKEY3 was restricted to management of discrete change, while COLIN can handle the full range of linear continuous numeric effects. The only metric functions of PDDL2.1 that are not in the repertoire of COLIN are scale-up and scale-down, which are non-linear updates, and the general form of plan metrics. Managing plan metrics defined in terms of domain variables remains a challenge for planning that has not yet been fully confronted by any contemporary planner. COLIN does handle a restricted form of quality metric, which exploits an instrumented variable called total-cost. This allows COLIN to minimise the overall cost of the shortest plan it can find using total-time (the default metric used by most temporal planners). In common with CRIKEY3, COLIN can cope with Timed Initial Literals, an important feature that was introduced in PDDL2.2 (Hoffmann & Edelkamp, 2005). PDDL2.1 is backward compatible with McDermott’s PDDL (McDermott, 2000) and therefore supports ADL (Pednault, 1989). COLIN does not handle full ADL, but it can deal with a restricted form of conditional effect as seen in the airplane-landing problem described in section 11. This restricted form allows the cost of an action to be dependent on the state in which it is applied. More general forms of conditional effect cannot be handled. With this collection of features, COLIN is able to fully manage both the discrete and continuous numeric change that occur directly as a result of its actions. PDDL+ (Fox & Long, 2006) further supports the modelling of continuous change brought about by exogenous processes and events. These are triggered by actions, but they model the independent continuous behaviour brought about by the world rather than by the planner’s direct action. The key additional features of PDDL+ that support this are processes and events. COLIN does not handle these features but is restricted to the management of continuous change as expressed through the durative action device. For detailed explanations of the syntaxes and semantics of PDDL2.1 and PDDL+, including the semantics on which implementations of state representation and state progression must be constructed, readers should refer to the work of Fox and Long (2003, 2006). 3 COLES, COLES, FOX & LONG <u>Language</u> <u>Language Feature</u> <u>CRIKEY3</u> <u>COLIN</u> <u>Comment</u> <u>Section</u> PDDL2.1 Numeric conditions and effects yes yes Basic treatment follows Metric-FF Appendix B PDDL2.1 Continuous numeric effects no yes Modification to state representation Section 8 Modification to heuristic Section 9 PDDL2.1 General plan metrics no no PDDL2.1 Use of total-cost no yes Limited form Section 10 PDDL2.1 Assign (to discrete variables) yes yes Treatment follows Metric-FF PDDL2.1 Scale-up/down no no PDDL2.1 #t no yes As continuous effects PDDL2.1 Durative actions yes yes Includes required concurrency Section 6 and Appendix C PDDL2.1 Duration inequalities limited yes COLIN handles Sections 8 and 9 duration-dependent effects PDDL2.2 TILs yes yes Section 6 PDDL Conditional Effects no partial Only for limited effects Section 10 PDDL <u>Other ADL</u> <u>no</u> <u>no</u> Table 1: Language features handled by CRIKEY3 and COLIN. 3. Motivation There are a number of accounts of planning having been successfully applied to real problems, and the frequency with which applications are reported is increasing. The following examples involve domains with hybrid discrete-continuous dynamics. These dynamics are typically being dealt with by discretising time, packaging continuous numeric effects into step functions, or integrating propositional planning techniques with specialised solvers. They are all examples in which hybrid discrete-continuous reasoning could be exploited to improve plan quality or solution time. _•_ Operations of refineries (Boddy & Johnson, 2002; Lamba, Dietz, Johnson, & Boddy, 2003) or chemical plants (Penna, Intrigila, Magazzeni, & Mercorio, 2010), where the continuous processes reflect flows of materials, mixing and chemical reactions, heating and cooling. _•_ Management of power and thermal energy in aerospace applications in which power management is critical, such as management of the solar panel arrays on the International Space Station (Knight, Schaffer, & B.Clement, 2009; Reddy, Frank, Iatauro, Boyce, K¨urkl¨u, AiChang, & J´onsson, 2011). For example, Knight et al. (2009) rely on a high-fidelity power model (TurboSpeed) to provide support for reasoning about the continuous power supply in different configurations of the solar panels. Power management is a critical problem for most space applications (including planetary rovers and landers, inspiring the temporal-metriccontinuous Rovers domain used as one of our benchmark evaluation domains in Section 11). Chien et al. (2010) describe the planner used to support operations on Earth Observing 1 (EO1), where the management of thermal energy generated by instruments is sufficiently important that the on-board planner uses some of its (highly constrained) CPU cycles to model and track its value. EO-1 inspires the temporal-metric-continuous Satellite benchmark described in Section 11. _•_ Management of non-renewable power in other contexts, such as for battery powered devices. The battery management problem described by Fox et al. (2011) relies on a non-linear model, 4 COLIN: PLANNING WITH CONTINUOUS CHANGE which COLIN must currently reduce to a discrete or linear approximation, coupled with iterated validation and solution refinement, in order to optimise power use. Battery management is an example of a continuous problem that cannot be solved if the continuous dynamics are removed. _•_ Assignment of time-dependent costs as in the Aircraft Landing domain (Dierks, 2005), in which continuous processes govern the changing costs of the use of the runway as the landing time deviates from the optimal landing time for each aircraft. This problem inspires the Aircraft-Landing benchmark domain described in Section 11. _•_ Choreography of mobile robotic systems: in many cases, operations of robotic platforms involve careful management of motion alongside other tasks, where the continuous motion of the robot constrains the accessibility of specific tasks, such as inspection or observation. Existing examples of hybrid discrete-continuous planning models and reasoning for problems of this kind include work using flow tubes to capture the constraints on continuous processes (L´eaut´e & Williams, 2005; Li & Williams, 2008). Problems involving autonomous underwater vehicles (AUVs) inspired the temporal-metric-continuous AUV benchmark presented in Section 11. 4. Problem Definition COLIN is designed to solve a class of problems that are temporal and metric, and that feature linear continuous metric change. We refer to this as the class of temporal-metric-continuous problems, and it contains a substantial subset of the problems that can be expressed in PDDL2.1. As a step towards the class of temporal-metric-continuous problems, we recall the definition of a simple temporal-metric planning problem - one in which there is no time-dependent metric change. Simple temporal-metric problems can be represented as a tuple _⟨I, A, G, M_ _⟩_, where: _•_ _I_ is the initial state: a set of propositions and an assignment of values to a set of numeric variables. Either of these sets may be empty. For notational convenience, we refer to the vector of numeric values in a given state as v . _•_ _A_, a set of actions, each _⟨dur_ _, pre_ _⊢, eff ⊢, pre_ _↔, pre_ _⊣, eff ⊣⟩_, where: – _pre_ _⊢_ ( _pre_ _⊣_ ) are the _start_ ( _end_ ) conditions of _a_ : at the state in which _a_ starts (ends), these conditions must hold (for a detailed account of some of the subtleties in the semantics of action application, see Fox & Long, 2003). – _eff ⊢_ ( _eff ⊣_ ) are the _start_ ( _end_ ) effects of _a_ : starting (ending) _a_ updates the world state according to these effects. A given collection of effects _eff x_, _x ∈{⊢, ⊣}_, consists of: _∗_ _eff_ <sup>_−_</sup> _x_ _∗_ _eff_ <sup>_−_</sup> _x_ <sup>, propositions to be deleted from the world state;</sup> _∗_ _eff_ <sup>+</sup> _x_ <sup>, propositions to be added to the world state;</sup> _∗_ _eff_ <sup>+</sup> _x_ <sup>, propositions to be added to the world state;</sup> _∗_ _eff_ <sup>_n_</sup> _x_ <sup>, effects acting upon numeric variables.</sup> _∗_ _eff_ <sup>_n_</sup> _x_ <sup>, effects acting upon numeric variables.</sup> – _pre_ _↔_ are the invariant conditions of _a_ : these must hold at every point in the open interval between the start and end of _a_ . – _dur_ are the _duration constraints_ of _a_, calculated on the basis of the world state in which _a_ is started, and constraining the length of time that can pass between the start and end of _a_ . They each refer to the special parameter ?duration, denoting the duration of _a_ . 5 COLES, COLES, FOX & LONG _•_ _G_, a goal: a set of propositions and conditions over numeric variables. _•_ optionally _M_, a metric optimisation function, defined as a function of the values of numeric variables at the end of the plan, and the special variable total-time, denoting the makespan of the plan. A solution to such a problem is a time-stamped sequence of actions, with associated durations, that transforms the initial state into a state satisfying the goal, respecting all the conditions imposed. The durations of the actions must be specified explicitly, since it is possible that the action specifications can be satisfied by different duration values. PDDL2.1 numeric conditions used in _pre_ _⊢_, _pre_ _⊣_, _pre_ _↔_, _dur_ and _G_ can be expressed in the form: _⟨f_ ( v ) _, op, c⟩,_ such that _op ∈{≤, <,_ = _, >, ≥}, c ∈ℜ_ where v is the vector of metric fluents in the planning problem, _f_ ( v ) is a function applied to the vector of numeric fluents and _c_ is an arbitrary constant. Numeric effects used in _eff ⊢_ and _eff ⊣_ are expressed as: _⟨v, op, f_ ( v ) _⟩,_ such that _op ∈{×_ = _,_ += _,_ = _,_ -= _, ÷_ = _}_ A restricted form of numeric expressions is the set of expressions in Linear Normal Form (LNF). These are expressions in which _f_ ( v ) is a weighted sum of variables plus a constant, expressible in the form w _·_ v + _c_, for a vector of constants, w . A notable consequence of permitting _dur_ to take the form of a set of LNF constraints over ?duration is that ?duration need not evaluate to a single fixed value. For instance, it may constrain the value of ?duration to lie within a range of values, e.g. (?duration _≥_ _v_ 1) _∧_ (?duration _≤_ _v_ 2), for some numeric variables _v_ 1 and _v_ 2. Restricting conditions and effects to use only LNFs allows the metric expressions to be captured in a linear program model, a fact that we exploit in COLIN. The class of temporal-metric problems is extended to temporal-metric-continuous problems by two additions: 1. Each action _a_ _∈_ _A_ is described with an additional component: a set of linear continuous numeric effects, _cont_, of the form _⟨v, k⟩, k_ _∈ℜ_, denoting that _a_ increases _v_ at the rate of _k_ per unit of time. This corresponds to the PDDL2.1 effect (increase (v) (* #t k)). 2. The start or end effects of actions ( _eff_ <sup>_n_</sup> _⊢_ <sup>and</sup> <sup>_eff n_</sup> _⊣_ <sup>may,</sup> <sup>additionally,</sup> <sup>include</sup> <sup>the</sup> <sup>parameter</sup> ?duration, denoting the duration of the action, and hence are written: _⟨v, op,_ w _·_ v + _k._ (?duration) + _c⟩_ s.t. _op ∈{_ += _,_ = _,_ -= _}, c, k_ _∈ℜ_ In temporal-metric-continuous problems the relationship between time and numbers is more complex than in temporal-metric problems. The first extension allows the value of a variable _v_ to depend on the length of time elapsed since the continuous effect acting upon it began. The second extension implies that, if ?duration is not fixed, then the value of variables can depend on the duration assigned to the action. In fact, very few planners allow the literal ?duration to appear in effects, even in actions where the value of the parameter is constrained to take a single fixed value by the duration constraint (e.g. (= ?duration 10)). A typical idiom is to name the intended value of the duration with a metric fluent in the initial state (e.g. (= (durationOfAction) 10)) and then use this fluent in the effects. 6 COLIN: PLANNING WITH CONTINUOUS CHANGE (:durative-action saveHard :parameters () :duration (= ?duration 10) :condition (and (at start (canSave)) (over all (>= (money) 0))) :effect (and (at start (not (canSave))) (at end (canSave)) (at start (saving)) (at end (not (saving))) (increase (money) (* #t 1)))) (:durative-action takeMortgage :parameters (?m - mortgage) :duration (= ?duration (durationFor ?m)) :condition (and (at start (saving)) (:durative-action lifeAudit :parameters () :duration (= ?duration (patience)) :condition (and (at start (saving)) (at end (boughtHouse)) (at end (>= (money) 0))) :effect (and (at end (happy))))) (at start (>= (money) (depositFor ?m))) (over all (<= (money) (maxSavings ?m)))) :effect (and (at start (decrease (money) (depositFor ?m))) (decrease (money) (* #t (interestRateFor ?m))) (at end (boughtHouse)))) Figure 1: Actions for the Borrower Domain. Temporal-metric-continuous problems form a significant subset of problems expressible in the PDDL+ language (Fox & Long, 2006), including those with linear continuous change within durative actions. The problems do not include non-linear continuous change, nor do they explicitly represent events or processes, although the use of certain modelling tricks can capture similar behaviours. 4.1 An Example Problem As a running example of a temporal-metric-continuous domain we use the problem shown in Figure 1. In this, the Borrower Domain, a borrower can use a mortgage to buy a house. The domain is simplified in order to focus attention on some key aspects of continuous reasoning and is not proposed as a realistic application. Furthermore, the domain does not exploit variable duration actions, even though the ability to handle these is a key feature of COLIN. The example illustrates required concurrency, by means of interesting interactions between multiple actions affecting a single continuous variable, and allows us to demonstrate the differences between alternative heuristics described in Section 9. Management of required concurrency is also a key feature of COLIN, and domains with variable durations are discussed later in the paper. In this domain, to obtain a mortgage it is necessary to have an appropriate active savings plan and to be able to lay down a deposit. These conditions are both achieved by saving hard, an action that cannot be applied in parallel with itself, preventing the borrower from building up capital at an arbitrarily high rate by multiple parallel applications of saveHard. For the sake of the example we restrict the saving periods to durations of 10 years to produce interesting interactions with the 7 COLES, COLES, FOX & LONG (:objects shortMortgage longMortgage - mortgage) (:init (= (money) 0) (canSave) (= (patience) 4) (= (depositFor shortMortgage) 5) (= (durationFor shortMortgage) 10) (= (interestRateFor shortMortgage) 0.5) (= (maxSavings shortMortgage) 6) (= (depositFor longMortgage) 1) (= (durationFor longMortgage) 12) (= (interestRateFor longMortgage) 0.75) (= (maxSavings longMortgage) 6)) (:goal (and (happy))) (:metric minimize (total-time)) Figure 2: An example problem for the Borrower Domain. durations of the mortgages in the sample problem. Once a person starts saving he or she is tied into a 10-year savings plan. The constraint on being able to start a mortgage leads to required concurrency between saving and taking a mortgage. The effects of saving and repaying interest therefore combine to yield different linear effects on the value of the money variable, while the saving action requires this variable to remain non-negative throughout the duration of the saveHard action. Furthermore, in order to qualify for tax relief, each mortgage carries a maximum allowed level of savings throughout the mortgage (which prevents the mortgage being taken too late in the savings plan). Finally, the lifeAudit action places a constraint on the gap between the end of the saving action and the point at which the mortgage is completed (and also ensures that the borrower does not end up in debt). This action acknowledges that borrowers will only be happy if they manage to complete their mortgages within short periods (limited by their patience) of having to save hard. The simple problem instance we will consider is shown in Figure 2. Two possible solutions to this are shown in Figure 3. In the first solution the borrower takes the longer mortgage, which has the advantage that it can start earlier because it requires a lower deposit. Money rises at rate 1 over the first part of the saving action, then decreases by 1 when the mortgage starts. It then rises at rate 0.25 (the difference between the saving and mortgage rates) until the saving action concludes, when it continues to decrease at rate 0.75 until the mortgage ends. The life audit action must start during a saving action and cannot end until after the end of a mortgage action. In the second solution the borrower takes the shorter mortgage, but that cannot start as early because it requires a much larger deposit. As a consequence, the life audit cannot start during the first saving action: the mortgage finishes too late to be included inside a life audit beginning within the first saving action. To meet the initial condition of the life audit, the borrower must therefore perform a second saving action to follow the first. Clearly the first solution is preferable since we are interested in minimising the makespan. 8 COLIN: PLANNING WITH CONTINUOUS CHANGE money <u>12 units</u> 1 unit takeMortgage longMortgage <u>10 units</u> saveHard lifeAudit <u>4 units</u> money 10 units takeMortgage shortMortgage 5 units <u>10 units</u> saveHard <u>10 units</u> saveHard lifeAudit <u>4 units</u> Figure 3: Possible solutions to the Borrower problem. 5. Background in Metric and Temporal Planning Most recent work on discrete numeric planning is built on the ideas introduced in the planner MetricFF (Hoffmann, 2003). A discrete numeric planning problem introduces numeric variables into the planning domain that can hold any real numeric value (or be undefined, if they have not yet been given a value). Actions can have conditions expressed in terms of these variables, and have effects that act upon them. To provide heuristic guidance, Metric-FF introduced an extension of the relaxed planning graph (RPG) heuristic (Hoffmann & Nebel, 2001), the Metric RPG heuristic, supporting the computation of a relaxed plan for a problems involving discrete numeric change. As with the propositional RPG heuristic, it performs a forwards-reachability analysis in which the delete effects of actions are relaxed (ignored). For numeric effects, ignoring decrease effects does not always relax the problem, as conditions can require that a variable hold a value _less_ than a given constant. Thus, as the reachability analysis extends forwards, upper- and lower- bounds on the values of numeric variables are computed: decrease effects have no effect upon the upper bound and increase effects have no effect upon the lower bound, while assignment effects replace the value of the upper (lower) bound if the incumbent has a lower (greater) value (respectively) than that which would be assigned. Deciding whether a precondition is satisfied in a given layer is performed (optimistically) 9 COLES, COLES, FOX & LONG on the basis of these: for a condition w _·_ v _≥_ _c_ <sup>1</sup>, then an optimistically high value for w _·_ v can be computed by using the upper bound on each fluent _v_ assigned a value in v if its corresponding weight in w is positive, or, otherwise, using its lower bound. An alternative to the use of a Metric RPG is proposed in LPRPG (Coles, Fox, Long et al., 2008b), where a linear program is constructed incrementally to capture the interactions between actions. This approach is restricted to actions with linear effects, so is not as general as Metric-FF, but it provides a more accurate heuristic guidance in handling metric problems and can perform significantly better in problems where metric resources must be exchanged for one another in order to complete a solution. Numeric planning also gives the opportunity to define metric optimisation functions in terms of metric variables within the problem description. For example, an objective to minimise fuel consumption can be defined for domains where the quantity of fuel available is a metric variable. This optimisation function can also include the special variable total-time, representing the makespan (execution duration) of the plan. Most planners are restricted to a weighted sum across variables (although PDDL2.1 syntax allows it to be an unrestricted expression across variables). In general, planners are not yet capable of optimising metric functions effectively: the task of finding any plan remains difficult. However, there are some planners that attempt to optimise these functions, the most notable being LPG (Gerevini & Serina, 2000) (and, in domains where the only numeric effects are to count action cost, LAMA, due to Richter & Westphal, 2010). Although the introduction of PDDL2.1 led to an increased interest in temporal planning, earlier work on planning with time has been influential. IxTeT (Ghallab & Laruelle, 1994) introduced _chronicles_, consisting of temporal assertions and constraints over a set of state variables, and _time-_ _lines_ which are chronicles for single state variables. Timelines have since been widely used by planners that have followed a different trajectory of development than that led by the PDDL family of languages (Pell, Gat, Keesing, Muscettola, & Smith, 1997; Frank & J´onsson, 2003; Cesta, Cortellessa, Fratini, & Oddi, 2009). IxTeT also pioneered the use of many important techniques, including simple temporal networks and linear constraints. The language introduced for the planner ‘Temporal Graph Plan’ (TGP) (Smith & Weld, 1999) allowed (constant) durations to be attached to actions. The semantics of these actions required their preconditions, _pre_, to be true for the entire duration of the action, and the effects of the actions, _eff_, to become available instantaneously at their ends. The values of affected variables are treated as undefined and inaccessible during execution, although the intended semantics (at least in TGP) is that the values should be considered _unobservable_ during these intervals and, therefore, plans should be conformant with respect to all possible values of these variables over these intervals. TGP solves these problems using a temporally extended version of the Graphplan planning graph (Blum & Furst, 1995) to reason with temporal constraints. A temporal heuristic effective for this form of temporal planning was developed by Haslum and Geffner (2001) and Vidal and Geffner (2006) have explored a constraint propagation approach to handling these problems. Even when using the more expressive temporal model defined in PDDL2.1, many temporal planners make use of the restricted TGP semantics, exploiting a simplification of the PDDL2.1 encoding known as ‘action compression’. The compression is performed by setting _pre_ to be the weakest preconditions of the actions, and _eff_ <sup>+</sup> ( _eff_ <sup>_−_</sup> ) to be their strongest add (delete) effects. In the propo 1. Conditions w _·_ v _≤_ _c_ can be rewritten in this form by negating both sides. Further, those stating w _·_ v = _c_ can be rewritten as a pair of conditions, w _·_ v _≥_ _c_ and _−_ ( w _·_ v ) _≥−c_ 10 P COLIN: PLANNING WITH CONTINUOUS CHANGE <mark>Action A</mark> Q, not P P <mark>Action B</mark> R T R P <mark>Action C</mark> S T, G Q,S <mark>Action D</mark> Ordering of achiever before precondition Ordering of deleter after precondition Figure 4: A problem for SAPA. sitional case, in terms of the action representation introduced earlier, these are: _pre_ = _pre_ _⊢_ _∪_ (( _pre_ _↔_ _∪_ _pre_ _⊣_ ) _\ eff_ <sup>+</sup> _⊢_ <sup>)</sup> _eff_ <sup>+</sup> = ( _eff_ <sup>+</sup> _⊢_ <sup>_−_</sup> _⊣_ <sup>)</sup> <sup>_∪_</sup> <sup>_eff_</sup> <sup>+</sup> _⊣_ <sup>+</sup> _⊢_ <sup>_\ eff −_</sup> _⊣_ _⊣_ _eff_ <sup>_−_</sup> = (( _eff_ <sup>_−_</sup> _⊢_ <sup>_\ eff_</sup> <sup>+</sup> _⊢_ <sup>)</sup> <sup>_∪_</sup> <sup>_eff −_</sup> _⊣_ <sup>)</sup> <sup>_\_</sup> <sup>+</sup> _⊢_ <sup>)</sup> <sup>_∪_</sup> <sup>_eff −_</sup> _⊣_ <sup>_−_</sup> _⊢_ <sup>_\ eff_</sup> <sup>+</sup> _⊢_ <sup>_−_</sup> _⊣_ <sup>)</sup> <sup>_\ eff_</sup> <sup>+</sup> _⊣_ _⊣_ Many modern temporal planners, such as MIPS-XXL (Edelkamp & Jabbar, 2006) and earlier versions of LPG (Gerevini & Serina, 2000), make use of this action compression technique. However, applying the compression can lead to incompleteness (Coles, Fox, Halsey, Long, & Smith, 2008) (in particular, a failure to solve certain temporal problems). The issues surrounding incompleteness were first discussed with reference to the planner CRIKEY (Fox, Long, & Halsey, 2004) and, later, the problem structures causing this were said to introduce _required concurrency_ (Cushing, Kambhampati, Mausam, & Weld, 2007). The Borrower domain is one example of a problem in which the compression prevents solution. Both the lifeAudit and takeMortgage actions have initial preconditions that can only be satisfied inside the interval of the saveHard action, since this action adds saving at its start, but deletes it at its end. Required concurrency is a critical ingredient in planning with continuous effects, as both _when_ change occurs and _what_ change occurs are important throughout the execution of actions. In order to avoid producing poor quality plans or, indeed, excluding possible solutions, we must allow concurrency between actions wherever the problem description permits it. A na¨ıve extension of the compression approach would discretise continuous numeric change into step function effects occurring at the ends of the relevant actions, precluding any possibility of managing the interaction between numeric variables during execution of actions with continuous effects. We therefore build our approach on a planner capable of reasoning with required concurrency. In the Borrower domain, the mortgage action must overlap with the saving action, but it cannot be too early (to meet the deposit requirement) or too late (to meet the maximum savings constraint and to ensure that the life audit can be performed as early as possible). As this example illustrates, problems that include reasoning with continuous linear change typically also require concurrency. Several planners are, currently, capable of reasoning with the PDDL2.1 start–end semantics, as opposed to relying on a compression approach. The earliest PDDL2.1 planner that reasons successfully with the semantics is VHPOP (Younes & Simmons, 2003), which is a partial-order planner. 11 COLES, COLES, FOX & LONG This planner depends on heuristic guidance based on the same relaxed planning graph that is used in FF, so the guidance can fail in problems with required concurrency. Nevertheless, the search space explored by VHPOP includes the interleavings of action start and end points that allow solution of problems with required concurrency. VHPOP suffers from some of the problems encountered in earlier partial-order planners and its performance scales poorly in many domains. TPSYS (Garrido, Fox, & Long, 2002; Garrido, Onainda, & Barber, 2001) is a Graphplan-inspired planner that can produce plans in domains with required concurrency. Time is represented by successive layers of the graph, using a uniform time increment for successive layers. This approach is similar to the way that TGP uses a plan graph to represent temporal structure, but TPSYS supports a model of actions that separates the start and end effects of actions as dictated by PDDL2.1 semantics. Another planner that adopts a Graphplan-based approach to temporal planning is LPGP (Long & Fox, 2003a), but in its case the time between successive layers is variable. Instead of using layers of the graph to represent the passage of fixed-duration increments of time, they are used to represent successive _happenings_ - time points at which state changes occur. The time between successive state changes is allowed to vary within constraints imposed by the action durations whose end points are fixed at particular happenings. A linear program is constructed, incrementally, to model the constraints and the solution of the program is interleaved with the selection of action choices. This approach suffers from most of the weaknesses of a Graphplan planner: the exhaustive iterative deepening search is impractical for large problems, while computation and storage of mutex relations becomes very expensive in larger problems. Nevertheless, LPGP provides a useful approach to the treatment of PDDL2.1 durative actions, by splitting them into their end points which are treated as instantaneous ‘snap’ actions. A solution to the (original) planning problem can be expressed in terms of these, subject to four conditions: 1. Each start snap-action is paired with an end snap-action (and no end can be applied without its corresponding start having been applied earlier); 2. Between the start and end of an action, the invariants of the action _pre↔_ are respected; 3. No actions must be currently executing for a state to be considered to be a goal state; 4. Each step in the plan occurs after the preceding step, and the time between the start and end of an action respect its duration constraints. SAPA (Do & Kambhampati, 2003) is one of the earliest forward-search planners to solve temporal PDDL2.1 problems. It works with a priority queue of events. When a durative action is started its end point is queued at the time in the future at which it will be executed. The choice points of the planner include starting any new action, but also a special _wait_ action, which advances time to the next entry in the queue, and the corresponding action end point is executed. This allows SAPA to reason with concurrency and to solve some problems with required concurrency. Unfortunately, its search space does not include all necessary interleavings to achieve a complete search. For example, consider the problem illustrated in Figure 4. To solve this problem, action _A_ must start, then action _B_ must start early enough to allow _C_ to complete before _A_ ends (and deletes _P_ ) and late enough that action _D_ can start before _B_ ends but end after _A_ ends. All of the actions are required in order to allow _D_ to be applied, achieving the goal _G_ . After SAPA starts action _A_, the queue will contain the end of _A_ . The choices now open are to start _B_ immediately, but this will then end too early to allow _D_ to execute successfully, or else to complete _A_, which advances time too far to allow _B_ to 12 Unused Match COLIN: PLANNING WITH CONTINUOUS CHANGE Light Match Have Light Have Light ¬Have Light ¬Unused Match Fixed Fuse Needs Fixing Fuse Mend Fuse <u>Have Light</u> ¬Needs Fixing Fuse Figure 5: Required Concurrency exploit effect _P_ of _A_, preventing _C_ from being executed. In fact, a simpler problem defeats SAPA: if _B_ were to have end condition _Q_ instead of _T_ and end effect _G_ then _C_ and _D_ can be dispensed with. However, the additional complexity of the existing example is that it is impossible to infer when to start _B_ by examination of _A_ and _B_ alone, because the timing constraints on the start of _B_ depends on both actions _C_ and _D_ and it is not immediately obvious how their temporal constraints will affect the placement of _B_ . The difficulty in adopting the waiting approach is that it is hard to anticipate how long to wait if the next interesting time point depends on the interaction of actions that have not yet even been selected. A different approach to forward-search temporal planning is explored in the CRIKEY family of planners (Coles, Fox, Halsey et al., 2008; Coles, Fox, Long et al., 2008a). These planners use the same action splitting approach used in LPGP, but work with a heuristically guided forward search. The heuristics in these planners use a relaxed planning graph as a starting point (Hoffmann & Nebel, 2001), but extend it by adding some guidance about the temporal structure of the plan, pruning choices that can be easily demonstrated to violate temporal constraints and inferring choices where temporal constraints imply them. The planners use a Simple Temporal Network to model and solve the temporal constraints between the action end points as they are accumulated during successive action choices. Split actions have also been used to extend LPG into a temporal version that respects the semantics of PDDL2.1 (Gerevini, Saetti, & Serina, 2010) (earlier versions of LPG use the compressed action models described above). Recent work by Haslum (2009) has explored other ways in which heuristics for temporal planning can be constructed, while remaining admissible. Temporal Fast Downward (Eyerich et al., 2009), based on Helmert’s Fast Downward planner (Helmert, 2006), uses an approach that is a slight refinement of the compressed action model, allowing some required concurrency to be managed. The authors demonstrate that this planner can solve the Match problem shown in Figure 5. They mistakenly claim that SAPA cannot solve this problem because it cannot consider applying an action between starting and ending lighting the match: in fact, SAPA can apply the mend ~~f~~ use action after the match is lit, in much the same way as is done in Temporal Fast Downward. The problem that both planners face is in situations in which an action must be started some time after the last happening, but before the next queued event: neither planner includes this choice in its search space. Huang et al. (2009) developed a temporal planner exploiting the planning-as-SATisfiability paradigm. This uses a Graphplan-to-SAT encoding, starting with an LPGP action-splitting compilation, and using a fixed time increment between successive layers of the graph. This approach is 13 COLES, COLES, FOX & LONG adequate for problems where an appropriate time increment can be identified, but this is not possible, in general, when there are time-dependent effects in a domain. Furthermore, the approach is ineffective when there is significant difference between the durations of actions, so that the time increment becomes very short relative to some actions. The planner can produce optimal (makespan) plans using iterative deepening search. The planner combines existing ideas to achieve its objectives and it is mainly of interest because of its relationship to other SAT-based approaches to temporal planning, such as TM-LPSAT discussed below. CRIKEY3, and the other planners mentioned, are only capable of solving the simple temporal planning problems described above. They are restricted to the management of discrete change. Duration-dependent change cannot be handled by these planners. In fact, not all of these planners can manage any kind of reasoning with numbers outside the durations of actions. COLIN therefore significantly extends the competence of other PDDL-compliant temporal planners. 6. CRIKEY 3: A Forward-Chaining Temporal Planner Temporal forward-chaining planners have two kinds of choices to make during the construction of plans. Firstly, as in the non-temporal case, a choice must be made of which actions to apply (these choices can be considered to be the ‘planning’ element of the problem). Secondly, choices must be made of _when_ to apply the actions (these can be seen as the ‘scheduling’ choices in construction of solutions). CRIKEY3 (Coles, Fox, Long et al., 2008a), a temporal forward-chaining planner, exploits the distinction between these choices, using separate procedures to make the planning decisions (which actions to start or end) and the scheduling decisions (when to place actions on the timeline). Both of these decisions must be checked for consistency with respect to the existing temporal constraints to confirm that all the actions can be completely scheduled. In this section, we briefly describe how CRIKEY3 performs planning and scheduling, since its architecture forms the basis for COLIN and the work subsequently described in this paper. Full details of temporal management in CRIKEY3 are provided by Coles et al. CRIKEY3 uses a forward-chaining heuristic state-space search to drive its planning decisions. It makes use of the Enforced Hill-Climbing (EHC) algorithm introduced in FF (Hoffmann & Nebel, 2001) and repeated, for convenience, as Algorithm 1. EHC is incomplete, so if a solution cannot be found CRIKEY3 plans again, using a weighted A* search. We now discuss how the search described within the basic enforced hill-climbing algorithm of FF can be extended to perform temporal planning. In order to do this, a number of modifications are required. In particular: 1. _get_ _~~a~~_ _pplicable_ _actions_ ( _S_ ): the planner must reason with two actions per durative action, a start action and an end action, rather than applying an action and immediately considering it to have finished (as in the non-temporal case). 2. _get_ _~~a~~_ _pplicable_ _actions_ ( _S_ ), _apply_ ( _a, S_ ): invariant conditions of durative actions must be maintained throughout their execution, which requires active invariants to be recorded in the state in order to prevent the application of actions that conflict with them. 3. _is_ _~~g~~_ _oal_ _state_ ( _S_ ): for a state to be a goal state (i.e. for the path to it to be a solution plan) all actions must have completed. 14 COLIN: PLANNING WITH CONTINUOUS CHANGE <u>Algorithm 1</u> <u>:</u> <u>Enforced Hill-Climbing Algorithm</u> Data : _P_ = _⟨A, I, G⟩_ - a planning problem Result : _P_, a solution plan 1 _best_ _~~h~~_ _euristic_ _←_ _evaluate_ _~~h~~_ _euristic_ ( _I_ ); 2 if _best_ _~~h~~_ _euristic_ = 0 then 3 return []; 4 _closed_ _←{I}_ ; 5 _open_ _~~l~~_ _ist_ _←_ [ _⟨I,_ [] _⟩_ ]; 6 while _open_ _~~l~~_ _ist̸_ = [] do 7 _⟨S, P_ _⟩←_ element removed from the front of _open_ _~~l~~_ _ist_ ; 8 _applic_ ( _S_ ) _←_ _get_ _applicable_ _actions_ ( _S_ ); 9 _apply_ _~~h~~_ _elpful_ _~~f~~_ _ilter_ ( _applic_ ( _S_ )); 10 foreach _a ∈_ _applic_ ( _S_ ) do 11 _S_ <sup>_′_</sup> _←_ _apply_ ( _a, S_ ); 12 if _S_ <sup>_′̸_</sup> _∈_ _closed_ then 13 add _S_ <sup>_′_</sup> to _closed_ ; 14 _P_ <sup>_′_</sup> _←_ _P_ followed by _a_ ; 15 if _is_ _~~v~~_ _alid_ _plan_ ( _P_ <sup>_′_</sup> ) then 16 if _is_ _~~g~~_ _oal_ _~~s~~_ _tate_ ( _S_ <sup>_′_</sup> ) then 17 return _P_ <sup>_′_</sup> ; 18 _h ←_ _evaluate_ _heuristic_ ( _S_ <sup>_′_</sup> ); 19 if _h < best_ _~~h~~_ _euristic_ then 20 _open_ _list_ _←_ [ _⟨S_ <sup>_′_</sup> _, P_ <sup>_′_</sup> _⟩_ ]; 21 _best_ _~~h~~_ _euristic_ _←_ _h_ ; 22 break ; 23 else 24 if _h < ∞_ then 25 append _⟨S_ <sup>_′_</sup> _, P_ <sup>_′_</sup> _⟩_ onto _open_ _~~l~~_ _ist_ ; 26 _return_ _~~w~~_ _ith_ _failure_ ; 4. _is_ _~~v~~_ _alid_ _plan_ ( _P_ ): the temporal (scheduling) constraints of candidate plans must be respected. In particular, the duration constraints of durative actions must be satisfied. This is discussed in Section 6.1. We consider each of these modifications in turn. First, durative actions are compiled into two non-temporal actions. A modified version of the LPGP action compilation (Long & Fox, 2003a) is used for this, as described by Coles et al. (2008). Each durative action _a_, of the form _⟨dur_ _, pre_ _⊢, eff ⊢, pre_ _↔, pre_ _⊣, eff ⊣⟩_, is split into two non-temporal (in fact, instantaneous) ‘snap actions’ of the form _⟨pre, eff ⟩_ : _•_ _a⊢_ = _⟨pre_ _⊢, eff ⊢⟩_ _•_ _a⊣_ = _⟨pre_ _⊣, eff ⊣⟩_ 15 COLES, COLES, FOX & LONG By performing search with these snap actions, and taking appropriate care to ensure that the other constraints are satisfied, the restrictions on expressivity imposed by the use of action compression are avoided. It becomes possible to search for a plan in which the start and end points of different actions are coordinated, solving problems with required concurrency. The price for this is that the search space is much larger: each original action is replaced by two snap-actions, so the length of solution plans is doubled. In some circumstances this blow-up can be avoided by identifying actions that are _compression_ _safe_ (Coles, Coles, Fox, & Long, 2009a), i.e. those for which the use of action compression does not compromise soundness or completeness. In the approach described by Coles et al., these actions are still split into start and end snap-actions, but the end points of compression-safe actions are inserted when either their effects are needed or their invariants would otherwise be violated by another action chosen for application. As a consequence, only one search decision point is needed per compression-safe action (choose to apply its start), rather than two. Recent versions of both CRIKEY3 and COLIN make use of this restricted action compression technique in search. Having split actions into start and end points, modifications to the basic search algorithm are needed to handle the constraints that arise as a consequence. CRIKEY3 makes use of an extended state representation, adding two further elements to the state tuple. The resulting state is defined as _S_ = _⟨F, P, E, T_ _⟩_, where: _•_ _F_ represents the facts that hold in the current world state: a set of propositions that are currently true, _W_, and a vector, v, recording the values of numeric variables. _•_ _P_ is an ordered list of snap actions, representing the plan to reach _S_ from the initial state. _•_ _E_ is an ordered list of start events, recording actions that have started but not yet finished; _•_ _T_ is a collection of temporal constraints over the actions in the plan to reach _F_ . The purpose of the start event list _E_ is to record information about the currently executing actions, to assist in the formation of sound plans. Each entry _e_ _∈_ _E_ is a tuple _⟨op, i_ _, dmin, dmax_ _⟩_ where: _•_ _op_ is the identifier of an action, for which the start snap-action _op⊢_ has been added to the plan; _•_ _i_ is the index at which this snap-action was added in the plan to reach _S_ ; _•_ _dmin, dmax_ are the minimum and maximum duration of _op_, determined in the state in which _op_ is started. The minimum and maximum duration of an action can depend on the state in which it is applied (e.g. the duration of a recharge action may depend on the level of charge at the time of execution), so durations must be computed based on the state preceding step _i_ . However, once a given action has started, the bounds on the duration remain fixed. PDDL2.1 also allows actions to have durations constrained by conditions that hold at the end of the action, but such actions are not supported by our planners. This extended state definition leads to corresponding extensions to _get_ _~~a~~_ _pplicable_ _~~a~~_ _ctions_ ( _S_ ). As before, a snap-action is deemed to be _logically_ _applicable_ in a state _S_ if its preconditions _pre_ are satisfied in _S_ . However, an additional condition must be satisfied: its effects must not violate 16 COLIN: PLANNING WITH CONTINUOUS CHANGE any active invariants. The invariants active in a given state are determined from _E_ - we denote the invariants in a state _S_ with event list _E_ as: _inv_ ( _S_ ) = _e∈∪E_ <sup>_e.op.pre_</sup> <sup>_↔_</sup> To apply the end snap-action, _a⊣_, there is required to be an entry _e_ _∈_ _E_ whose operator entry _op_ is equal to _a_ . This prevents the planner from attempting to apply the ends of actions that have not yet been started. Assuming an action, _a_, is found to be applicable and chosen as step _i_ of a plan, the function _apply_ ( _a, S_ ), applied to a temporally-extended state, _S_, yields a successor _S_ <sup>_′_</sup> = _⟨F_ <sup>_′_</sup> _, P_ <sup>_′_</sup> _, E_ <sup>_′_</sup> _, T_ <sup>_′_</sup> _⟩_ . The first two elements are updated as in the non-temporal case: _F_ <sup>_′_</sup> = _apply_ ( _a, F_ ), and _P_ <sup>_′_</sup> = _P_ +[ _a_ ]. To obtain _T_ <sup>_′_</sup>, we begin by setting _T_ <sup>_′_</sup> = _T_ . Furthermore, if _i >_ 0: _T_ <sup>_′_</sup> = _T_ <sup>_′_</sup> _∪{ϵ ≤_ _t_ ( _i_ ) _−_ _t_ ( _i −_ 1) _}_ where _t_ ( _i_ ) is the variable representing the time at which step _i_ is scheduled to be executed. That is, the new step must come at least _ϵ_ (a small unit of time) after the preceding step. This separation respects the requirement that interfering actions must be separated by at least _ϵ_ (Fox & Long, 2003), but it is strictly stronger than required where actions are not actually mutually exclusive. A more accurate realisation of the PDDL2.1 semantics could be implemented, but it would incur a cost while offering very little apparent benefit. Finally, the resulting value of _E_ <sup>_′_</sup> (and whether _T_ <sup>_′_</sup> is changed further) depends on whether _a_ is a start or end snap-action: _•_ if a start action _a⊢_ is applied, _E_ <sup>_′_</sup> = _E_ + [ _⟨a, i, dmin, dmax_ _⟩_ ], where _dmin_ and _dmax_ correspond to the lower- and upper-bounds of the duration of _a_, as evaluated in the context of valuation _F_ . _•_ if an end action _a⊣_ is applied, a start entry _{e_ _∈_ _E_ _|_ _e.op_ = _a}_ is chosen, and then _E_ <sup>_′_</sup> is assigned a value _E_ <sup>_′_</sup> = _E_ _\ e_ . It will often be the case that there is only one instance of an action open, so there is only one choice of pairing, but in the case where multiple instances of the same action are executing concurrently, search branches over the choice of each such _e_ . For the _e_ chosen, a final modification is then made to _T_ <sup>_′_</sup> to encode the duration constraints of the action that has just finished: _T_ <sup>_′_</sup> = _T_ <sup>_′_</sup> _∪{e.dmin_ _≤_ _t_ ( _i_ ) _−_ _t_ ( _e.i_ ) _≤_ _e.dmax_ _}_ With this information encoded in each state about currently executing actions, the extension needed to _is_ _~~g~~_ _oal_ _~~s~~_ _tate_ ( _S_ ) is minor: a state _S_ is a goal state if it satisfies the non-temporal version of _is_ _~~g~~_ _oal_ _~~s~~_ _tate_ ( _S_ ), and if the event list of the state, _E_, is empty. This search strategy leads to a natural way to handle PDDL2.2 Timed Initial Literals (TILs) directly. Dummy ‘TIL actions’ are introduced, comprising the effects of the TILs at each time point, and these can be added to the plan if all earlier TIL actions have already been added, and if they do not delete the invariants of any open action. As a special case, TIL actions do not create an entry in _E_ : only the facts in _F_ are amended by their execution. They do, however, produce an updated set of temporal constraints. As with snap actions, if a TIL is added as step _i_ to a plan, the TIL must fall no earlier than _ϵ_ after the preceding step. Then, _T_ <sup>_′_</sup> = _T_ <sup>_′_</sup> _∪{ts_ _≤_ _t_ ( _i_ ) _−_ _t_ ( _α_ ) _≤_ _ts}_, 17 COLES, COLES, FOX & LONG where _ts_ is the time-stamp at which the TIL is prescribed to happen, _α_ is the name denoting the start of the plan and _t_ ( _α_ ) = 0. As can be seen, these constraints ensure that the TIL can only occur at an appropriate time, that any step prior to the TIL must occur before it, and that any step after the TIL must occur after it. The changes described in this subsection ensure that the plans produced by CRIKEY3 are logically sound: the check for logical applicability, coupled with the maintenance of _E_ throughout search, ensures that no preconditions, either propositional or numeric, can be broken. Use of _get_ _~~a~~_ _pplicable_ _~~a~~_ _ctions_ ( _S_ ) only guarantees that actions are logically applicable: there is no guarantee that adding a snap-action to the plan, judged applicable in this way, will not violate the temporal constraints. For example, it is possible that all preconditions are satisfied in the plan _P_ = [ _a⊢, b⊢, b⊣, a⊣_ ], so that _P_ is _logically_ sound. However, if the duration of _b_ is greater than the duration of _a_ then _P_ is not _temporally_ sound. In the next section we discuss how the function _is_ _~~v~~_ _alid_ _~~p~~_ _lan_ ( _P_ ) is modified to identify and reject temporally inconsistent plans. 6.1 Temporal Plan Consistency A state _S_ is only temporally consistent if the steps [0 _...n −_ 1] in the plan, _P_, that reaches it can be assigned values [ _t_ (0) _...t_ ( _n −_ 1)], representing the times of execution of each of the corresponding steps, respecting the temporal constraints, _T_ . This is checked through the use of _is_ _~~v~~_ _alid_ _~~p~~_ _lan_ ( _P_ <sup>_′_</sup> ), called at line 15 of Algorithm 1 — this function call is trivial in the non-temporal case, but in the temporal case serves to check the temporal consistency of the plan. Any state for which the temporal constraints cannot be satisfied is immediately pruned from search, since no extension of the action sequence can lead to a solution plan that is valid. The temporal constraints _T_ built by CRIKEY3 in a state _S_ are each expressed in the form: _lb ≤_ _t_ ( _b_ ) _−_ _t_ ( _a_ ) _≤_ _ub_ where _lb, ub ∈ℜ_ and 0 _≤_ _lb ≤_ _ub_ These constraints are conveniently expressible as a Simple Temporal Problem (STP) (Dechter, Meiri, & Pearl, 1989). The variables within the STP consist of the timestamps of actions, and between them inequality constraints can be specified in the above form. Crucially, for our purposes, the validity of an STP (and the assignment of timestamps to the events therein) can be determined in polynomial time by solving a shortest-path problem within a Simple Temporal Network (STN), a directed-graph representation of an STP. Each event in the STP is represented by a vertex in the STN. There is an additional node _t_ ( _α_ ) to represent time 0 and the time of the first action in the plan, _t_ (0), is constrained to fall within _ϵ_ of _t_ ( _α_ ). Each constraint in the above form adds two edges to the graph: one from _a_ to _b_ with weight _ub_, and one from _b_ to _a_ with weight _−lb_ . Attempting to solve the shortest-path problem from _t_ ( _α_ ) to each event yields one of two outcomes: either it terminates successfully, providing a time-stamp for each step, or it terminates unsuccessfully due to the presence of a negative-cost cycle within the STN indicating a temporal inconsistency (any schedule would require at least one step to be scheduled before itself). In CRIKEY3, an STP is used to check the temporal consistency of the choices made to reach each step _S_, based on the temporal constraints _T_ that must hold over the plan _P_ to reach _S_, and additional constraints that can be determined from _E_ : the list of actions that have started, but not yet finished. The variables _vars_ in the STP can be partitioned into two sets: the ‘ _t_ ’ variables, _t_ ( _i_ ) for step _i ∈_ _P_ and the ‘ _f_ ’ variables, one _f_ ( _i_ ) for each entry _⟨op, i, dmin, dmax_ _⟩∈_ _E_ . The _t_ variables correspond to the times of steps that have already been added to the plan, which might be the times 18 COLIN: PLANNING WITH CONTINUOUS CHANGE of start or end points of actions. Some of these time points might correspond to the starts of actions that have not yet finished and it is this subset of actions (only) that will have associated _f_ variables associated with the pending end times of those actions. For consistency with the terminology we introduced in CRIKEY3 (Coles, Fox, Long et al., 2008a), we use _now_ to refer to the time at which the next event in the plan will occur (which could be during the execution of the last actions applied). It is the time point at which the next choice is to be made, either the start of a new action or the completion of an existing one, and can therefore be seen as the time associated with the final state, _S_, generated by the current plan head. There is only ever one timepoint called _now_ and its value moves forward as the plan head extends. The constraints are then as follows: _•_ _T_, constraining the _t_ variables - these ensure the temporal consistency of the steps in the plan to reach _S_ (and include any constraints introduced for timed initial literals); _•_ _{dmin_ _≤_ _f_ ( _i_ ) _−_ _t_ ( _i_ ) _≤_ _dmax_ _|_ _⟨op, i, dmin, dmax_ _⟩∈_ _E}_ - that is, for each future action end point that has been committed to (but has yet to be applied), the recorded duration constraint must be respected; _•_ _{ϵ_ _≤_ _f_ ( _i_ ) _−_ _t_ ( _n −_ 1) _|_ _⟨op, i, dmin, dmax_ _⟩∈_ _E}_ - that is, each future action end point must come after the last step in the current plan, to ensure it is in the future. _•_ _t_ ( _now_ ) _−_ _t_ ( _n −_ 1) _≥_ _ϵ_ - that is, the current time (the time at which the next event in the plan can occur) is at least _ϵ_ after the last event in the plan. Solving this STP confirms the temporal consistency of the decisions made so far. If the STP cannot be solved, the state _S_ can be pruned: the plan induced from the start–end action representation is temporally invalid. The last two of these categories of constraints are particularly important: without them, pruning could only be undertaken on the basis of the plan _P_ to reach _S_ . Including them, however, allows the STP to identify cases where the end point of an action can never be added to the plan, as doing so would lead to temporal inconsistency. As goal states cannot contain any executing actions (i.e. _E_ must be empty), this allows CRIKEY3 to prune states earlier from which there can definitely be no path to a state in which all end points have been added to the plan. Timed initial literals are easily managed in the STP using the dummy TIL actions described earlier. The constraints for each dummy TIL action that has already been applied are included in _T_ . Each dummy TIL action yet to occur is automatically treated as the end of an action that has yet to be applied. Thus, an _f_ variable is added for each, and in doing so, the last step in the plan so far is constrained to come before each TIL event that has yet to happen. 7. Planning with Continuous Numeric Change The most challenging variants of temporal and numeric problems combine the two to arrive at problems with time-dependent metric fluents. Although problems exhibiting hybrid discrete-continuous dynamics have been studied in other research communities for some time, for example, in verification (Yi, Larsen, & Pettersson, 1997; Henzinger, Ho, & Wong-Toi, 1995; Henzinger, 1996), where timed automata capture exactly this kind of behaviour, there has been relatively little work on continuous dynamics in the planning community. In PDDL2.1 the model of mixed discrete-continuous change extends the propositional state transition model to include continuous change on the state variables. There is a state transition system 19 COLES, COLES, FOX & LONG in which discrete changes transition instantaneously between states. While the system is in a particular state, continuous change can occur on the state variables and time passes. As soon as a discrete change occurs the system changes state. In PDDL+ (Fox & Long, 2006) this is extended to allow exogenous events and processes (controlled by nature) as well as durative actions. This leads to a formal semantics that is based in the theory of Hybrid Automata (Henzinger, 1996). An action causes a discrete state change which might trigger a continuous process. This continues over time until an event is triggered leading into a new state. Some time later another action might be taken. Early work exploring planning with continuous processes includes the Zeno system of Penberthy and Weld (1994), in which processes are described using differential equations. Zeno suffers from the same limitations as other partial order planners of its time, being unable to solve large planning problems without significant aid from a carefully crafted heuristic function. More importantly, a fundamental constraint on its behaviour is that it does not allow concurrent actions to apply continuous effects to the same variable. This imposes a very significant restriction on the kinds of problems that can be solved, making Zeno much less expressive than COLIN. This constraint follows, in part, from the way that the model requires effects to be specified as differential equations, rather than as continuous update effects, so that simultaneous equations must be consistent with one another rather than accumulating additive effects. As the authors say “We must specify the entire continuous behaviour over the interval [of the durative action] as our semantics insist that all continuous behaviours are the result of direct, explicit action”. Another early planner to handle continuous processes is McDermott’s OPTOP system (McDermott, 2003), which is a heuristic search planner, using a regression-based heuristic. The ‘plausible progression’ technique used within OPTOP to guide search is not sufficiently powerful to recognise interactions that could prevent future application of actions, thereby restricting its scalability on problems of the form we consider here. OPTOP competed in the International Planning Competition in 2004, where it solved only a small subset of the problems (although, interestingly, those it solved involved an expressive combination of ADL and temporal windows that no other planner could manage). OPTOP is an interesting variant on the heuristic forward search approach, since it avoids grounding the representation, using an approach that is similar to a means-ends linear planning approach to generate relaxed plan estimates of the number of actions required to achieve the goal from a given state. 7.1 TM-LPSAT More recently, Shin and Davis developed TM-LPSAT (Shin & Davis, 2005), based on the earlier LPSAT system (Wolfman & Weld, 1999). TM-LPSAT was the first planner to implement the PDDL+ semantics. It is implemented as a compilation scheme by which a horizon-bounded continuous planning problem is compiled into a collection of SAT formulas that enforce the PDDL+ semantics, together with an associated set of linear metric constraints over numeric variables. This compiled formulation is then passed to a SAT-based arithmetic constraint solver, LPSAT. LPSAT consists of a DPLL solver and an LP solver. The SAT-solver passes triggered constraints to the LP-solver, which hands back conflict sets in the form of nogoods if the constraints cannot be resolved. If there is no solution the horizon is increased and the process repeats, otherwise the solution is decoded into a plan. In order to support concurrency the compilation exploits the LPGP separation of action start and end points. There are different versions of TM-LPSAT exploiting different solvers: LPSAT and MathSAT-04 (Audemard, Bertoli, Cimatti, Kornilowicz, & Sebastiani, 2002) have both been 20 COLIN: PLANNING WITH CONTINUOUS CHANGE exploited. The novelty of TM-LPSAT lies in the compilation and decoding phases, since both solvers are well-established systems. The compilation scheme of TM-LPSAT implements the full PDDL+ semantics. Although this includes events and processes, which are specific to PDDL+, TM-LPSAT can also handle variable duration durative actions, durative actions with continuous effects and duration-dependent end-effects. The continuous effects of concurrent actions on a quantity between two time-points are summed over all actions active on the quantity over the period. Therefore, TM-LPSAT supports concurrent updates to continuous variables. TM-LPSAT is an interesting approach, in theory capable of solving a large class of problems with varied continuous dynamics. However, reported empirical data suggests that the planner is very slow and unable to solve problems requiring plans of more than a few steps. It is not possible to experiment further because there is no publicly available implementation of the system. 7.2 Kongming Hui Li and Brian Williams have explored planning for hybrid systems (Li & Williams, 2008, 2011). This work has focussed on model-based control, using techniques based on constraint reasoning. The continuous dynamics of a system are modelled as _flow tubes_ that capture the envelopes of the continuous behaviours (L´eaut´e & Williams, 2005). The dimensions of these tubes are a function of time (typically expanding as they are allowed to extend), with the requirement being made that successive continuous behaviours must be connected by connecting the start of one tube (the precondition surface) to the cross-section of the preceding tube; i.e. the intersection of the two spaces must be non-empty. The most relevant work in this area is in the development of the planner Kongming, described by Li and Williams. Kongming solves a class of control planning problems with continuous dynamics. It is based on the construction of fact and action layers and flow tubes, within the iterative plan graph structure introduced in Graphplan (Blum & Furst, 1995). As the graph is developed, every action produces a flow tube which contains the valid trajectories as they develop over time. Starting in a feasible region, actions whose preconditions intersect with the feasible region can be applied and the reachable states at any time point can be computed using the state equations of the system. In the initial state of the system all the variables have single known values. A valid trajectory must pass through a sequence of flow tubes, but must also meet the constraints specified in the dynamics of the actions selected. The mutex relation used in Graphplan is extended to the continuous dynamics as well as the propositional fragment of the language. The graph is iteratively extended as in Graphplan, with a search for a plan conducted after each successive extension. The plan-graph encoding of a problem with continuous dynamics is translated into a Mixed Logical-Quadratic Program (MLQP). The metric objective functions used by the planner to optimise its behaviour can be defined in terms of quadratic functions of state variables. An example problem considered by Li and Williams (2008) is a 2-d representation of a simple autonomous underwater vehicle (AUV) problem where the AUV can glide, ascend and descend while avoiding obstacles. The language used is a version of PDDL2.1 extended to enable dynamics to be encoded. The continuous nature of the problem lies in the fact that, after a continuous action, the AUV will be in one of a continuous range of positions determined by the control system. Because Kongming depends on translation of the planning problems into MLQPs the constraints describing the dynamics of the problem must be linear. Since the effects of continuous actions involve the product of rate 21 COLES, COLES, FOX & LONG of change with time, only one of these values can be treated as a variable. In Kongming it is the rate of change that is variable, but time is discretised, which contrasts with COLIN in which rates of change remain constant over continuously variable length intervals. The discretisation of time in Kongming is exploited to support state updates within the plan graph: successive layers of the graph are separated by a constant and uniform time increment. This approach suffers from a disadvantage that the duration of a plan is limited by the number of happenings in the plan, since the solver cannot realistically solve problems with more than a few tens of layers in the plan graph. Kongming does not support concurrent continuous updates to the same state variable, so, in this respect, PDDL2.1 is more expressive than the extended language used in Kongming. In part this is due to a difficulty in resolving precisely what is the semantics of the dynamics described in the actions used by Kongming. Each dynamic constraint specifies limits on the rate of change of a specific variable: it is unclear whether concurrent actions should be combined by taking the union or the intersection of the bounds each constraint specifies on the rate of change of a given fluent. 7.3 UPMurphi One other recently developed planner that uses PDDL2.1 and reasons with continuous processes is UPMurphi (Penna, Intrigila, Magazzeni, & Mercorio, 2009). UPMurphi takes a completely different approach to those considered so far. Instead of reasoning about continuous change directly, UPMurphi works by guessing a discretisation and iteratively refining it if the solution to the discretised problem does not validate against the original problem specification. The iterative driver is the coarseness of the discretisation, as well as the planning horizon, making it an interestingly different basic architecture from TM-LPSAT. UPMurphi begins with the continuous representation of the problem and starts by discretising it. First the actions are discretised by taking specific values from their feasible ranges. This results in several versions of each action. Then UPMurphi explores the state space, by explicitly constructing it under the current discretisation. Plans are constructed using the planning-as-model-checking paradigm (Cimatti, Giunchiglia, Giunchiglia, & Traverso, 1997): there is no heuristic to guide search. Once a plan has been found it is then validated against the original continuous model, using the plan validator (Fox, Howey, & Long, 2005). If it is invalid, the discretisation is refined and the search resumes. If UPMurphi fails to find a plan at one discretisation it starts again at a finer grained discretisation. Subsequent refinements lead to ever denser feasible regions, but they are increasingly complex to construct. UPMurphi can be used to build partial policies to handle the uncertainty that is likely to arise in practice during the execution of hybrid control plans. A controller table is initially synthesised, consisting of the (state,action) pairs of the plan it first constructs. However, this table might lack some of the states that could be visited by the controller, so it is not robust. The subsequent step is to “robustify” the controller by randomly perturbing some of the states and finding new paths from these new states. Because some of the perturbed states are not reachable, a probability distribution is used to identify the most likely ones. These are called the safe states. The controller table is then extended with the safe (state, action) pairs. The controller table, or policy, is referred to as a Universal Plan. 22 COLIN: PLANNING WITH CONTINUOUS CHANGE 7.4 Other Approaches to Continuous Reasoning A completely different way to manage continuous quantities is to model continuous resource consumption and production in terms of uncertainty about the amount consumed or produced. This is the approach taken in the HAO* algorithm (Meuleau, Benazera, Brafman, Hansen, & Mausam, 2009) where a Markov Decision Process (MDP) is constructed consisting of hybrid states. Each state contains a set of propositional variables and also a collection of distributions over resource consumption and production values. Because the states are hybrid, standard value iteration approaches cannot be used to find policies. A hybrid AO* approach is described which can be used to find the best feasible policy. The feasible region constructed by HAO* is a continuous distribution of resource values and the resource is considered to be uncontrollable (unlike in Kongming, where it is assumed that the executive maintains control over which values in the region are eventually chosen). Planning with continuous processes has important applications and, as with many other application areas of planning, this has led to the development of systems that combine generic planning technology with more carefully tuned domain-specific performance to achieve the necessary combination of problem coverage and performance. A good example of this is the work by Boddy and Johnson (2002) and colleagues (Lamba et al., 2003) on planning oil refinery operations. This work uses a quadratic program solver, coupled with heuristically guided assignment to discrete decision variables (corresponding to actions), to solve real problems. 8. C OLIN : Forward Chaining Planning With Continuous Linear Change In this section we will describe how CRIKEY3 is extended to reason with duration-dependent and continuous numeric change, building the planner COLIN ( for COntinuous LINear dynamics). We decided to give the planner a specific name to highlight its capabilities. As demonstrated in Section 4.1, the key difference introduced with continuous numeric change is that logical and numeric constraints can no longer be neatly separated from temporal constraints: the values of the numeric variables in a state depend on the timestamps and durations of actions, and vice versa. The relative benefits of handling temporal and numeric constraints together, rather than separating them out, are apparent in the motivating domains outlined in Section 3 and have been amply rehearsed in the paper describing PDDL+ (Fox & Long, 2006). The need to cope with integrated numeric and temporal constraints raises a number of important issues for planning with these domains. First, checking whether an action choice is consistent can no longer be achieved using an STP, as the numeric constraints now interact with the temporal constraints, and an STP is not sufficiently expressive to capture this. Second, the changing values of numeric variables over time brings new challenges for determining action applicability: if a precondition is not satisfied immediately following the application of an action, it might become satisfied after allowing a certain amount of time to elapse. Finally, there is the need to provide heuristic guidance. We will cover the first two of these issues in this section, and defer discussion of the heuristic guidance to the next. 8.1 Temporal-Numeric Plan Consistency Through Linear Programming We begin with the problem of temporal-numeric plan consistency, as the techniques used in dealing with this issue can also be amended for use in solving the issues encountered when determining 23 COLES, COLES, FOX & LONG action applicability. Considering the definition of the STP given in Section 6.1, we make the observation that the STP could equally well be written as a linear program (LP). In CRIKEY3, the STP is more efficiently solved using a shortest-path algorithm. However, this observation becomes important when we wish to reason with continuous change in numeric resources alongside the temporal constraints. In this case, we can use an LP to capture both temporal constraints and numeric constraints, including the interaction between the two. We will now describe how the LP is built, serving as a replacement for the _is_ _~~v~~_ _alid_ _~~p~~_ _lan_ ( _S_ ) function called during search, which invokes the STP solver in CRIKEY3. A diagram of the structure of the LP we create is shown in Figure 6, for a plan _P_ = [ _a_ 0 _, ..., an−_ 2 _, an−_ 1] to reach a state _S_, where _an−_ 1 is the action most recently added to the plan. (For simplicity, it shows a case where the event queue _E_ is empty.) The construction of the LP begins with the variables and (a subset of) the constraints of the STP. Each STP variable _ti_ (the time-stamp of the (snap) action _ai_ ) has a corresponding LP variable _stepi_ (shown across the top of Figure 6), and each STP variable _ei_ (for the future end of the action at step _i_ ) has a corresponding LP variable _estepi_ . We also construct the constraints corresponding to the total-ordering of action steps, just as in the STP: each step in _P_ is still sequenced (i.e. _ϵ_ _≤_ _stepi_ _−_ _stepi−_ 1 for all _n_ _>_ _i_ _>_ 0), and each future end snap-action has to be later than _stepn−_ 1 (i.e. _ϵ ≤_ _estepi −_ _stepn−_ 1 for all _estep_ variables). We then extend the LP with the numeric constraints of the problem, beginning with the effects of actions. Since numeric effects can be both discrete and continuous, we create two additional vectors of variables per step in the plan. The first of these, v _i_, represents the values of the state variables v immediately _prior_ to _ai_ being executed (in the case of step 0, v _i_ is equal to the values of v in the initial state, _I_ ). The second, v _i_ <sup>_′_</sup> <sup>, contains the values of</sup> <sup>v</sup> <sup>immediately</sup> <sup>_after ai_</sup> <sup>is executed.</sup> In Figure 6, the variables in v 0 are enumerated as _v_ 0 _...vm−_ 1 and, similarly, those in v <sup>_′_</sup> 0 are shown as _v_ 0 <sup>_′_</sup> <sup>_...v_</sup> _m_ <sup>_′_</sup> _−_ 1 <sup>.</sup> <sup>To</sup> <sup>avoid</sup> <sup>proliferation</sup> <sup>of</sup> <sup>indices</sup> <sup>we</sup> <sup>do</sup> <sup>not</sup> <sup>further</sup> <sup>index</sup> <sup>these</sup> <sup>values</sup> <sup>with</sup> <sup>their</sup> as _v_ 0 <sup>_′_</sup> <sup>_...v_</sup> _m_ <sup>_′_</sup> _−_ 1 <sup>.</sup> <sup>To</sup> <sup>avoid</sup> <sup>proliferation</sup> <sup>of</sup> <sup>indices</sup> <sup>we</sup> <sup>do</sup> <sup>not</sup> <sup>further</sup> <sup>index</sup> <sup>these</sup> <sup>values</sup> <sup>with</sup> <sup>their</sup> time stamp in Figure 6, so _vi_ is the _i_ th value in v at the time step corresponding to the layer in which the variable appears. The use of two vectors at each layer is required in order to represent discrete changes caused by actions: a snap-action can cause the value of a variable to be different immediately after its execution. To represent this within the LP, if an action at step _i_ has no effect on a variable _v_ then _vi_ <sup>_′_</sup> <sup>=</sup> <sup>_vi_</sup> <sup>2.</sup> <sup>Otherwise, for a discrete effect</sup> <sup>_⟨v′_</sup> <sup>+=</sup> <sup>w</sup> <sup>_·_</sup> <sup>v</sup> <sup>+</sup> <sup>_k._</sup> <sup>(?duration) +</sup> <sup>_c⟩_</sup> <sup>, a</sup> on a variable _v_ then _vi_ <sup>_′_</sup> <sup>=</sup> <sup>_vi_</sup> <sup>2.</sup> <sup>Otherwise, for a discrete effect</sup> <sup>_⟨v′_</sup> <sup>+=</sup> <sup>w</sup> <sup>_·_</sup> <sup>v</sup> <sup>+</sup> <sup>_k._</sup> <sup>(?duration) +</sup> <sup>_c⟩_</sup> <sup>, a</sup> constraint is introduced to define the value of _vi_ <sup>_′_</sup> <sup>:3</sup> _i_ <sup>_′_</sup> <sup>:3</sup> _vi_ <sup>_′_</sup> <sup>=</sup> <sup>_vi_</sup> <sup>+</sup> <sup>w</sup> <sup>_·_</sup> <sup>v</sup> <sup>+</sup> <sup>_k._</sup> <sup>(</sup> <sup>_ce_</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_cs_</sup> <sup>(</sup> <sup>_i_</sup> <sup>)) +</sup> <sup>_c_</sup> where the functions _cs_ ( _i_ ) and _ce_ ( _i_ ) denote the time-stamp variables for the corresponding start and end of the action at step _i_ . If step _i_ is the end of an action, then _ce_ ( _i_ ) = _stepi_, and _cs_ ( _i_ ) is the _step_ variable for the start of the action that finished at step _i_ . Similarly, if step _i_ initiates an action, then _cs_ ( _i_ ) = _stepi_, and _ce_ ( _i_ ) is either _estepi_ if the action has not yet finished or, otherwise, the _step_ variable for the end of the action started at step _i_ . Therefore, substituting _ce_ ( _i_ ) _−_ _cs_ ( _i_ ) for ?duration captures the relationship between the effect of the action and its duration. 2. Note that identities such as this are implemented efficiently by simply not introducing the unnecessary additional variable. Similarly, while a variable is subject to no effects or conditions it is not added to the LP, but it is only introduced once it becomes relevant. 3. For effects using the operator -=, i.e. decrease effects, all but the first term on the right-hand side are negated. For assignment effects, where the operator is =, the first term on the right-hand side (i.e. _vi_ ) is omitted entirely (the value of _v_ after such an assignment does not depend on the value of _v_ beforehand). 24 Metric fluents v to v0 m−1 COLIN: PLANNING WITH CONTINUOUS CHANGE Snap−actions 0 to n−1 and corresponding time−point variables v0 v1 v0 v1 ’ 0 1 ’ ’ 0 1 ’ v v0 v1 v ’ 0 1 ’ v v ’ 0 1 ’ v1 v1 v0 v1 v1 v1 v3 a 2 v 2 v 2 a0 a1 v v 2 v v 2 v v ’ 2 ’ 3 ’ 2 ’ 3 ’ 2 ’ 3 v v3 v ’ 2 ’ 3 v3 v a n−1 step n−1 v step 0 step 1 step 2 v m−1 v m−1 State 2 v3 v m−1 v m−1 ’ v m−1 State 0 v m−1 ’ State 1 v m−1 ’ v m−1 ’ State n Active continuous change affecting (some) variables Actions cause instantaneous step changes in fluent values Temporal Constraints Actions are sequenced and separated: step − step >= ε i+1 i i ε Where action i starts a durative action, a, that is ended by action j: dmin(a) <= step − step <= dmax(a)j i Metric Variable Constraints: Step Effects Variables are updated by action effects: v in state i+1 is v in state i updated by effect of aj <sup>’</sup> j including time−dependent step−effects Metric Variable Constraints: Continuous Effects Variables are updated by active continuous effects: v = v + v (step − step ) j j ’ δ j i+1 i i for values in state i+1, where v is determined by the δ j accumulated effects of active continuous effects Figure 6: Diagrammatic Representation of the LP Used in COLIN. Note that the subscripts attached to the _v_ and _v_ <sup>_′_</sup> fluents in this diagram are indices into the vector of fluents in the state, while indices on _step_ and _a_ represent different time steps in the plan. The metric fluents are also notionally indexed by the time step, but this is not shown in the diagram in order to avoid clutter. Continuous numeric change occurs _between_ the steps in the plan, rather than at the instant of execution of the step itself. To capture continuous effects, when building the LP we consider each step in turn, from the start of the plan, recording the gradient of the total (linear) continuous change acting upon each variable _v_ _∈_ v, where _δv_ denotes the gradient active after _ai−_ 1 and before the execution of action _ai_ . Under the restrictions on the language handled by COLIN, described in Section 4, and the total-order constraints between snap-actions, the value of each variable _δvi_ is known and constant within each interval between successive actions: all continuous change is linear. The gradient on a variable _v_ can only be changed by either starting an action (initiating an 25 COLES, COLES, FOX & LONG adjustment to the prevailing continuous effect on _v_ given by <sup>_<u>dv</u>_</sup> _dt_ <sup>+=</sup> <sup>_k_</sup> <sup>, for some</sup> <sup>_k_</sup> <sup>_∈ℜ_</sup> <sup>) or ending an</sup> action (terminating the effect initiated by its start). The values of the _δ_ constants can be computed as follows <sup>4</sup> : _•_ For all variables, _δv_ 0 = 0; that is, there is no continuous numeric change active on any variable before the start of the plan. _•_ If _ai_ has no continuous numeric effect on _v_ then _δvi_ +1 = _δvi_ ; _•_ If _ai_ initiates a continuous numeric effect, <sup>_<u>dv</u>_</sup> _dt_ <sup>+=</sup> <sup>_k_</sup> <sup>, then</sup> <sup>_δvi_</sup> <sup>+1</sup> <sup>=</sup> <sup>_δvi_</sup> <sup>+</sup> <sup>_k_</sup> <sup>;</sup> _•_ If _ai_ terminates a continuous numeric effect, <sup>_<u>dv</u>_</sup> _dt_ <sup>+=</sup> <sup>_k_</sup> <sup>, then</sup> <sup>_δvi_</sup> <sup>+1</sup> <sup>=</sup> <sup>_δvi −_</sup> <sup>_k_</sup> <sup>;</sup> On the basis of these values, we now add constraints to the LP: _vi_ +1 = _vi_ <sup>_′_</sup> <sup>+</sup> <sup>_δvi_</sup> <sup>+1(</sup> <sup>_step_</sup> _i_ +1 <sup>_−_</sup> <sup>_step_</sup> _i_ <sup>)</sup> Again, the distinction between _vi_ and _vi_ <sup>_′_</sup> <sup>is important:</sup> <sup>_vi_</sup> <sup>is determined on the basis of any continuous</sup> change in the interval between steps _i_ and _i −_ 1, but immediately prior to any discrete effect that may occur at that step. Having created variables to represent the values of fluents at each step and having introduced constraints to capture the effects of actions on them, we now consider the constraints that arise from the preconditions of each snap-action, the invariants that must be respected between the starts and ends of actions, and any constraints on the durations of each of the actions in the plan. For each numeric precondition of the form _⟨v, {≥,_ = _, ≤},_ w _·_ v + _c⟩_, that must hold in order to apply step _i_, we add a constraint to the LP: _vi{≥,_ = _, ≤}_ w _·_ v _i_ + _c_ For an action _a_ starting at _stepi_ and ending at _stepj_, the invariants of _a_ are added to the LP in this form, once for each of the vectors of variables [ v _i_ <sup>_′,_</sup> <sup>v</sup> _j_ <sup>_′_</sup> _−_ 1 <sup>] and [</sup> <sup>v</sup> <sup>_i_</sup> <sup>+1</sup> <sup>_,_</sup> <sup>v</sup> <sup>_j_</sup> <sup>] (</sup> <sup>v</sup> <sup>_i_</sup> <sup>and</sup> <sup>v</sup> <sup>_′j_</sup> <sup>are excluded</sup> this form, once for each of the vectors of variables [ v _i_ <sup>_′,_</sup> <sup>v</sup> _j_ <sup>_′_</sup> _−_ 1 <sup>] and [</sup> <sup>v</sup> <sup>_i_</sup> <sup>+1</sup> <sup>_,_</sup> <sup>v</sup> <sup>_j_</sup> <sup>] (</sup> <sup>v</sup> <sup>_i_</sup> <sup>and</sup> <sup>v</sup> <sup>_′j_</sup> <sup>are excluded</sup> because the PDDL2.1 semantics does not require invariants of an action to hold at its end points). In the case where the end of the action _a_ (starting at _i_ ) has not yet appeared in the plan, the invariants of _a_ are imposed on all vectors of variables from v _i_ <sup>_′_</sup> <sup>onwards:</sup> <sup>as</sup> <sup>_a_</sup> <sup>must end in the future, its invariants</sup> must not be violated at any step in the current plan after the point where it started. Finally, we add the duration constraints. For an action _a_ starting at _stepi_, we denote the variable corresponding to the time at which _a_ finishes as _ce_ ( _i_ ), where _ce_ ( _i_ ) = _stepj_ if the end of the action has been inserted into the plan at step _j_, or _ce_ ( _i_ ) = _estepi_ otherwise (as defined above). Then, for each duration constraint of _a_, of the form _⟨_ ?duration _, {≥,_ = _, ≤},_ w _·_ v + _c⟩_, we add a constraint: _ce_ ( _i_ ) _−_ _stepi{≥,_ = _, ≤}_ w _·_ v _i_ + _c_ This process constructs a LP that captures all the numeric and temporal constraints that govern a plan, and the interactions between them. As with the STP in CRIKEY3, a solution to the LP contains values for the variables [ _step_ 0 _...stepn_ ], i.e. an assignment of time-stamps to the actions in the plan. To prevent the LP assigning these variables arbitrarily large (but valid) values, we set the 4. Variables that can be trivially shown to be constant (i.e. where no action has an effect referring to that variable) can be removed from the LP and replaced throughout by their values in the initial state. 26 _i_ <sup>_′,_</sup> <sup>v</sup> _j_ <sup>_′_</sup> COLIN: PLANNING WITH CONTINUOUS CHANGE <u>Plan Action</u> <u>Delta value</u> <u>LP Variable</u> <u>LP Constraints</u> _δm_ 0 = 0 _step_ 0 = 0 saveHard ~~s~~ tart _m_ 0 = 0 _<u>m</u>_ <sup>_′_</sup> <u>0</u> <u>=</u> _<u>m</u>_ <u>0</u> _<u>≥</u>_ <u>0</u> _δm_ 1 = 1 _step_ 1 _≥_ _step_ 0 + _ϵ_ _≤_ _step_ 0 + 10 takeMortgage ~~s~~ tart _m_ 1 = _m_ <sup>_′_</sup> 0 <sup>+ 1</sup> <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>0)</sup> _≥_ 0 _<u>m</u>_ <sup>_′_</sup> <u>1</u> <u>=</u> _<u>m</u>_ <u>1</u> _<u>−</u>_ <u>1</u> _<u>≥</u>_ <u>0</u> _<u>≤</u>_ <u>6</u> _δm_ 2 = <sup><u>1</u></sup> 4 _step_ 2 = _step_ 1 + _ϵ_ _≤_ _step_ 0 + 10 _≤_ _step_ 1 + 12 lifeAudit ~~s~~ tart _m_ 2 = _m_ <sup>_′_</sup> 1 <sup>+</sup> <sup><u>1</u></sup> 4 <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>2</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>1)</sup> _≥_ 0 _≤_ 6 _<u>m</u>_ <sup>_′_</sup> <u>2</u> <u>=</u> _<u>m</u>_ <u>2</u> _<u>≥</u>_ <u>0</u> _<u>≤</u>_ <u>6</u> _δm_ 3 = <sup><u>1</u></sup> 4 _step_ 3 _≥_ _step_ 2 + _ϵ_ = _step_ 0 + 10 _≤_ _step_ 1 + 12 _≤_ _step_ 2 + 4 saveHard ~~e~~ nd _m_ 3 = _m_ <sup>_′_</sup> 2 <sup>+</sup> <sup><u>1</u></sup> 4 <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>3</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>2)</sup> _≤_ 6 _<u>m</u>_ <sup>_′_</sup> _<u>m</u>_ <sup>_′_</sup> <u>3</u> <u>=</u> _<u>m</u>_ <u>3</u> _δm_ 4 = _−_ <sup><u>3</u></sup> 4 _step_ 4 _≥_ _step_ 3 + _ϵ_ = _step_ 1 <sup><u>3</u></sup> 4 _step_ 4 _≥_ _step_ 3 + _ϵ_ = _step_ 1 + 12 _≤_ _step_ 2 + 4 takeMortgage ~~e~~ nd _m_ 4 = _m_ <sup>_′_</sup> 3 <sup>_−_</sup> <sup><u>3</u></sup> 4 <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>3</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>2)</sup> _<u>m</u>_ <sup>_′_</sup> <u>4</u> <u>=</u> _<u>m</u>_ <u>4</u> _δm_ 5 = 0 _step_ 5 _≥_ _step_ 4 + _ϵ_ = _step_ 2 + 4 lifeAudit ~~e~~ nd _m_ 5 = _m_ <sup>_′_</sup> 4 <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>3</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>2)</sup> _≥_ 0 _<u>m</u>_ <sup>_′_</sup> <u>5</u> <u>=</u> _<u>m</u>_ <u>5</u> Table 2: Variables and constraints for the Borrower problem LP objective function to be to minimise _stepn_, where _an_ is the last step in the plan so far. For the purposes of the _is_ _valid_ _~~p~~_ _lan_ ( _S_ ) function, if the LP built for a plan _P_ to reach a state _S_ cannot be solved, we can prune the state _S_ from the search space and need not consider it any further: there is no path from _S_ to a legal goal state. In this way, the LP scheduler can be used as a replacement for the STP in order to determine plan validity. 8.2 Example: LP for the Borrower Problem In order to illustrate LP construction for a plan we consider the example Borrower problem introduced in Section 4.1. Recall that one solution plan for this problem has the following structure: 0: saveHard ~~s~~ tart 1: takeMortgage ~~s~~ tart longMortgage 2: lifeAudit ~~s~~ tart 3: saveHard ~~e~~ nd 4: takeMortgage ~~e~~ nd longMortgage 5: lifeAudit ~~e~~ nd. The LP for this six-step Borrower solution plan contains the variables and constraints shown in Table 2. The six _step_ variables represent the time-stamps of the six snap-actions in the plan, and the variable _m_ represents the money that has been saved by the Borrower. In the initial state, _m_ = 0, 27 COLES, COLES, FOX & LONG and hence _m_ 0 = 0. Starting the saveHard action has no instantaneous numeric effects, introducing the constraint _m_ <sup>_′_</sup> 0 <sup>=</sup> <sup>_m_</sup> <sup>0</sup> <sup>(if it did have an effect on</sup> <sup>_m_</sup> <sup>, for instance an instantaneous increase in the</sup> savings by _k_, then the constraint would be _m_ <sup>_′_</sup> 0 <sup>=</sup> <sup>_m_</sup> <sup>0</sup> <sup>+</sup> <sup>_k_</sup> <sup>).</sup> <sup>Due</sup> <sup>to</sup> <sup>the</sup> <sup>invariant</sup> <sup>condition</sup> <sup>of</sup> <sup>the</sup> saveHard action, that the savings remain above zero, the constraint _m_ <sup>_′_</sup> 0 <sup>_≥_</sup> <sup>0 is added: it can be seen</sup> saveHard action, that the savings remain above zero, the constraint _m_ <sup>_′_</sup> 0 <sup>_≥_</sup> <sup>0 is added: it can be seen</sup> this constraint is duplicated for each _mi_ and _m_ <sup>_′_</sup> _i_ <sup>during</sup> <sup>the</sup> <sup>execution</sup> <sup>of</sup> <sup>the</sup> <sup>saveHard</sup> <sup>action,</sup> <sup>to</sup> this constraint is duplicated for each _mi_ and _m_ <sup>_′_</sup> _i_ <sup>during</sup> <sup>the</sup> <sup>execution</sup> <sup>of</sup> <sup>the</sup> <sup>saveHard</sup> <sup>action,</sup> <sup>to</sup> ensure that the invariant continues to hold. Notice, also, when the action takeMortgage is started, the invariant for that action (the savings level remains less than or equal to the maxSavings cap) also appears, and applies to all values of _m_ during its execution. Additional constraints capture discrete change by connecting the value of _m_ <sup>_′_</sup> _i_ <sup>to</sup> <sup>_mi_</sup> <sup>.</sup> <sup>In</sup> <sup>most</sup> <sup>cases</sup> <sup>in</sup> <sup>this</sup> <sup>example</sup> <sup>these</sup> <sup>values</sup> are equal, but one constraint shows a discrete effect: _m_ <sup>_′_</sup> 1 <sup>=</sup> <sup>_m_</sup> <sup>1</sup> <sup>_−_</sup> <sup>1 captures the deduction of the</sup> are equal, but one constraint shows a discrete effect: _m_ <sup>_′_</sup> 1 <sup>=</sup> <sup>_m_</sup> <sup>1</sup> <sup>_−_</sup> <sup>1 captures the deduction of the</sup> deposit caused by initiating the takeMortgage action. As previously described, the temporal constraints in the LP take two forms. First, there are constraints of the form _stepi_ +1 _≥_ _stepi_ + _ϵ_, forcing _stepi_ +1 to follow _stepi_, enforcing the sequencing of the snap-actions. Second, duration constraints restrict the duration of actions, e.g. _step_ 3 = _step_ 0 + 10 forces that _step_ 3 (the end point of saveHard) occurs precisely 10 units (the duration of saveHard) after _step_ 0, its start snap-action. The final constraints to consider are those modelling the continuous numeric change. The first constraint of this type gives the value of _m_ 1 after the execution of saveHard ~~s~~ tart and before the execution of takeMortgage ~~s~~ tart. This constraint, _m_ 1 = _m_ <sup>_′_</sup> 0 <sup>+ 1</sup> <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>0), is based</sup> the execution of takeMortgage ~~s~~ tart. This constraint, _m_ 1 = _m_ <sup>_′_</sup> 0 <sup>+ 1</sup> <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>0), is based</sup> on the value of _δm_ 1, which is 1: the only action currently executing with continuous change on _m_ is saveHard, which increases it by 1 per unit of time. The second such constraint, _m_ 2 = _m_ <sup>_′_</sup> 1 <sup>+</sup> <sup><u>1</u></sup> 4 <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>2</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>1), is based on the value of</sup> <sup>_δm_</sup> <sup>2 which is now (1</sup> <sup>_−_</sup> 4 <sup><u>3</u></sup> <sup>) =</sup> <sup><u>1</u></sup> 4 <sup>, found by adding</sup> _m_ <sup>_′_</sup> 1 <sup>+</sup> <sup><u>1</u></sup> 4 <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>2</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>1), is based on the value of</sup> <sup>_δm_</sup> <sup>2 which is now (1</sup> <sup>_−_</sup> 4 <sup><u>3</u></sup> <sup>) =</sup> <sup><u>1</u></sup> 4 <sup>, found by adding</sup> the active gradients from both of the actions that have started but not yet finished. This illustrates how two actions can have active linear continuous effects on the same variable simultaneously. Note that when saveHard end is applied (at _step_ 3) the gradient of continuous change ( _δm_ 4) becomes _−_ <sup><u>3</u></sup> 4 <sup>as the only active continuous effect is now that of the takeMortgage action.</sup> Solving the temporal constraints in this problem without considering the metric fluents yields a solution in which _step_ 0 = 0, _step_ 1 = _ϵ_, _step_ 2 = 8 + 2 _ϵ_, _step_ 3 = 10, _step_ 4 = 12 + _ϵ_ and _step_ 5 = 12 + 2 _ϵ_ . Unfortunately, this proposal violates the constraint _m_ <sup>_′_</sup> 1 <sup>_≥_</sup> <sup>0, since:</sup> <sup>_′_</sup> 1 <sup>_≥_</sup> <sup>0, since:</sup> _m_ <sup>_′_</sup> 1 <sup>=</sup> <sup>_m_</sup> <sup>1</sup> <sup>_−_</sup> <sup>1 =</sup> <sup>_m′_</sup> 0 <sup>+ 1</sup> <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>1 =</sup> <sup>_m_</sup> <sup>0</sup> <sup>+</sup> <sup>_ϵ −_</sup> <sup>1 = 0 +</sup> <sup>_ϵ −_</sup> <sup>1 =</sup> <sup>_ϵ −_</sup> <sup>1</sup> and _ϵ_ _≪_ 1. The constraint on the start time of the takeMortgage action cannot be identified because it is dependent on the discrete initial effect of that action, the active continuous effect of the saveHard action and the invariant of saveHard. This simple example illustrates the strength of using the LP to perform the scheduling alongside the resolution of numeric constraints: the timestamps then satisfy both temporal and numeric constraints. 8.3 Temporal–Numeric Search When performing state-space search, a state, _S_, is a snapshot of the world along some plan trajectory, coming after one action step and before another. In the absence of continuous numeric change, the valuations that define _S_ are known precisely: both which propositions hold, and the values of the numeric variables v . In the presence of continuous numeric change, however, the same does not hold: if a variable _v_ is undergoing continuous numeric change (or is subject to active durationdependent change) the valuations in a state depend on which snap-actions have been applied so far, 28 COLIN: PLANNING WITH CONTINUOUS CHANGE on the times at which those snap-actions were applied and on how much time has passed since the last action was applied. Within our representation of the state the time-stamps of the snap-actions in the plan are not fixed (during plan-construction, the LP is used only to confirm that the plan can be scheduled subject to the current constraints), so the valuation of numeric fluents in _S_ is constrained only within ranges determined by the constraints on the temporal variables and the interactions between them. As a consequence of the flexibility in the commitment to values for temporal and continuously changing variables, COLIN requires a different state representation to the one used in CRIKEY3. Rather than representing the values of the numeric variables by a single vector v, we use two vectors: v _max_ and v _min_ . These hold the maximum and minimum values, respectively, for each numeric variable in _S_ . The computation of these bounds on variables can be achieved using a small extension of the LP described in Section 8.1. For a state _S_, reached by plan _P_ (where _an_ is the last step in _P_ ), we add another vector of variables to the LP, denoted v _now_, and another time-stamp variable, _stepnow_ . The variables in v _now_ represent the values of each state variable at some point (at time _stepnow_ ) along the state trajectory following _an_ . The numeric variables and time-stamp for _now_ are constrained as if it were an additional action appended to the plan: _•_ _now_ must follow the previous step, i.e. _stepnow −_ _stepn_ _≥_ _ϵ_ _•_ _now_ must precede or coincide with the ends of any actions that have started but not yet finished, i.e. for each _estep_ ( _i_ ), _estep_ ( _i_ ) _≥_ _stepnow_ _•_ For each variable _vnow_ _∈_ v _now_, we compute its value based on any continuous numeric change: _vnow_ = _vn_ <sup>_′_</sup> <sup>+</sup> <sup>_δvnow_</sup> <sup>(</sup> <sup>_stepnow_</sup> <sup>_−_</sup> <sup>_stepn_</sup> <sup>)</sup> _•_ Finally, for every invariant condition _⟨v, {≥,_ = _, ≤},_ w _·_ v + _c⟩_ of each action that has started but not yet finished: _vnow{≥,_ = _, ≤}_ w _·_ v _now_ + _c_ The LP can then be used to find the upper and lower bounds on variables. For each of the variables _vnow_ _∈_ v _now_, two calls are made to the LP solver: one with objective set to to maximise _vnow_, and one to minimise _vnow_ . These are then taken as the values of _vmax_ and _vmin_ in _S_ . In the simplest case, where a variable _v_ is not subject to (direct or indirect) continuous or duration-dependent change, the value of _v_ is time-independent, so _vmax_ = _vmin_, and its value can be determined through the successive application of the effects of the actions in _P_, i.e. the mechanism used in CRIKEY3, or indeed classical (non-temporal) planning. Since we have upper and lower bounds on the value of each variable, rather than a fixed assignment, the action applicability function, _get_ _~~a~~_ _pplicable_ _~~a~~_ _ctions_ ( _S_ ), must be modified. In CRIKEY3, an action is said to be applicable in a state _S_ if its preconditions are satisfied. In COLIN, the definition of what it means for a numeric precondition to be satisfied is different. To preserve completeness, we employ the mechanism used in metric relaxed planning graphs, as discussed in more detail in Section B. Specifically, for a numeric precondition w _·_ x _≥_ _c_, we calculate an optimistic value for w _·_ x by using the upper bound on a _v_ _∈_ x if its corresponding weight in w is positive, or, otherwise, using its lower bound. Then, if this resulting value is greater than or equal to _c_, the precondition is considered to be satisfied. (As before, for numeric conditions w _·_ x _≤_ _c_, an equivalent precondition in the appropriate form can be obtained by multiplying both sides of the inequality by _−_ 1 and 29 COLES, COLES, FOX & LONG <u>Plan Action</u> <u>Delta value</u> <u>LP Variable</u> <u>LP Constraints</u> _δm_ 0 = 0 _step_ 0 = 0 saveHard ~~s~~ tart _m_ 0 = 0 _<u>m</u>_ <sup>_′_</sup> <u>0</u> <u>=</u> _<u>m</u>_ <u>0</u> _<u>≥</u>_ <u>0</u> _δm_ 1 = 1 _step_ 1 _≥_ _step_ 0 + _ϵ_ _≤_ _step_ 0 + 10 takeMortgage ~~s~~ tart _m_ 1 = _m_ <sup>_′_</sup> 0 <sup>+ 1</sup> <sup>_._</sup> <sup>(</sup> <sup>_step_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_step_</sup> <sup>0)</sup> _≥_ 0 _<u>m</u>_ <sup>_′_</sup> <u>1</u> <u>=</u> _<u>m</u>_ <u>1</u> _<u>−</u>_ <u>1</u> _<u>≥</u>_ <u>0</u> _<u>≤</u>_ <u>6</u> _δmnow_ = <sup><u>1</u></sup> 4 _stepnow_ _≥_ _step_ 1 + _ϵ_ _≤_ _step_ 0 + 10 _≤_ _step_ 1 + 12 Now _mnow_ = _m_ <sup>_′_</sup> 1 <sup>+</sup> <sup><u>1</u></sup> 4 <sup>_._</sup> <sup>(</sup> <sup>_stepnow −_</sup> <sup>_step_</sup> <sup>1)</sup> _≥_ 0 _≤_ 6 _<u>m</u>_ <sup>_′_</sup> _<u>now</u>_ <u>=</u> _<u>mnow</u>_ _<u>≥</u>_ <u>0</u> _<u>≤</u>_ <u>6</u> Table 3: Variables and constraints for the first stages of the Borrower Problem constraints of the form w _·_ x = _c_ are replaced with the equivalent pair of conditions w _·_ x _≥_ _c_, _−_ w _·_ x _≥−c_ .) This test for applicability of an action is relaxed, so it serves only as a filter, eliminating actions that are certainly inapplicable. For instance, a precondition _a_ + _b ≥_ 3 could be satisfied if the upper bounds on _a_ and _b_ are both 2, even if the assignment of timestamps to actions within the LP to attain _a_ = 2 conflicts with that needed to attain _b_ _≥_ 1. We rely on the subsequent LP consistency check to determine whether actions are truly applicable. Nonetheless, filtering applicable actions on the basis of the variable bounds in a state is a useful tool for reducing the number of candidates that must be individually verified by the LP. 8.3.1 EXAMPLE OF USE OF _now_ IN THE BORROWER PROBLEM We briefly illustrate the way in which the _now_ variable is constructed and used in the context of the Borrower problem. Consider the situation after the selection of the first two actions (saveHard ~~s~~ tart and takeMortgage ~~s~~ tart). The LP construction yields the constraints shown in Table 3. Solving this LP for minimum and maximum values of _stepnow_ gives values of 1 + _ϵ_ and 10 respectively, meaning that the earliest time at which the third action can be applied will be 1 + _ϵ_ and the latest will be 10. <sup>5</sup> Similarly, solving the LP for minimum and maximum values of _mnow_ gives bounds of 4 _<u>ϵ</u>_ <sup>and 6.</sup> <sup>This information could, in principle, constrain what actions can be applied in the current</sup> state. 8.4 Some Comments on LP Efficiency An LP is solved at every node in the search space, so it is important that this process is made as efficient as possible. When adding the variable vectors to the LP for each step _i_, it is only necessary to consider a state variable, _v_, if it has become _unstable_ prior to step _i_, because of one of the following effects acting on it: 1. direct continuous numeric change, i.e. changing _v_ according to some gradient; 5. In practice, for efficiency, COLIN does not actually solve the LP for minimum and maximum values of _stepnow_, but uses the variable only to communicate constraints to the metric variables in this state. 30 COLIN: PLANNING WITH CONTINUOUS CHANGE 2. direct duration-dependent change, i.e. a change on _v_ dependent on the duration of an action (whose duration is non-fixed); 3. discrete change, where the magnitude of the change was based on one or more variables falling into either of the previous two categories. All variables that do not meet one of these conditions can be omitted from the LP, as their values can be calculated based on the successive effects of the actions applied up to step _i_, and substituted as a constant within any LP constraints referring to them. This reduces the number of state variables and constraints that must be added to the LP and also reduces the number of times the LP must be solved at each state to find variable bounds: irrelevant variables can be eliminated from the vector v _now_ . A similar simplification is that, if applying a plan _a_ 0 _...an−_ 1 reaches a state _S_ where _vmin_ = _vmax_, then if there is no continuous numeric change acting on _v_, _v_ has become _stable_, i.e. its value is independent of the times assigned to the preceding plan steps. In this case, until the first step _k_ at which _v_ becomes unstable, the value of _v_ can be determined through simple application of discrete effects, and hence _v_ can be omitted from all v _j,_ v _j_ <sup>_′_</sup> <sup>,</sup> <sup>_n −_</sup> <sup>1</sup> <sup>_< j_</sup> <sup>.</sup> A further opportunity we exploit is that the LP solved in each state is similar to that being solved in its parent state: it represents the same plan, but with an extra snap-action appended to the end. The lower bounds of the time-stamp variables in the LP can therefore be based on the values computed in the parent states. Suppose a state _S_ is expanded to reach a state _S_ <sup>_′_</sup> by applying a snap action, _a_, as step _i_ of the plan. At this point, the LP corresponding to the plan will be built and solved with the objective being to minimise _stepi_ . Assuming the plan can indeed be scheduled (if it cannot, then _S_ <sup>_′_</sup> is pruned and no successors will be generated from it), the value of the objective function is stored in _S_ <sup>_′_</sup> as a lower bound on the time-stamp of _a_ . In all states subsequently reached from _S_ <sup>_′_</sup>, this stored value can be used in the LP as a lower bound on _stepi_ - appending actions to the plan can further constrain and hence increase the value of _stepi_, but it can never remove constraints in order to allow it to decrease. As well as storing lower bounds for time-stamp variables, we can make use of the bounds v _min_, v _max_ in the state _S_ <sup>_′_</sup> when generating successors from it. In a state _S_ reached via plan of length _i_, applying an action _a_ leads to a state _S_ <sup>_′_</sup> in which the new action at _stepi_ +1 inherits the constraints imposed previously on _stepnow_ when calculating the variable bounds in _S_ <sup>_′_</sup> . Therefore, the values of v _max_ and v _min_ in _S_ serve as upper and lower bounds (respectively) for v _i_ +1 in the LP built to determine the feasibility of _S_ <sup>_′_</sup> . Similarly, we can combine any discrete numeric effects of _a_ with the values of v _max_ and v _min_ in _S_ to give bounds on v <sup>_′_</sup> _i_ +1. For each variable _v_ subject to an effect, an optimistically large (small) outcome for that effect can be computed on the basis of v _max_ and v _min_, and taken as the upper (lower) bound of _vi_ <sup>_′_</sup> +1 <sup>.</sup> <sup>Otherwise, for variables upon which</sup> <sup>_a_</sup> <sup>has</sup> no discrete effect, _vi_ <sup>_′_</sup> +1 <sup>=</sup> <sup>_vi_</sup> <sup>.</sup> Finally, the presence of timed initial literals (TILs) allows us to impose stricter bounds on the time-stamp variables. If step _j_ of a plan is the dummy action corresponding to a TIL at time _t_, the upper bound on _stepi_, _i_ _<_ _j_, is _t −_ _ϵ_ and the lower bound on each _stepk_, _j_ _<_ _k_ (or any _estep_ variable) is _t_ + _ϵ_ . Similarly, if the plan does not yet contain a step corresponding to a TIL at time _t_, the upper bound on all _step_ variables is _t −_ _ϵ_ . Furthermore, a TIL at time _t_ corresponds to a deadline if it deletes some fact _p_ that is present in the initial state, never added by any action, and never reinstated by any other TIL. In this case: _•_ if a plan step _i_ requires _p_ as a precondition, then _stepi_ _≤_ _t −_ _ϵ_ ; 31 COLES, COLES, FOX & LONG _•_ if _estepi_ is the end of an action with an end condition _p_, then _estepi_ _≤_ _t −_ _ϵ_ ; _•_ if _estepi_ is the end of an action with an invariant condition _p_, then _estepi_ _≤_ _t_ . 9. Heuristic Computation The search algorithms described so far in this paper all make use of a heuristic to guide the planner efficiently through the search space towards the goal. Having introduced the necessary machinery to support linear continuous numeric and duration-dependent effects we now turn our attention to the construction of an informed heuristic in the face of time-dependent change. In Appendices B and C we revisit the standard Metric-FF Relaxed-Planning Graph (RPG) heuristic and the Temporal RPG (TRPG) used in CRIKEY3, and provide the details of these approaches for reference. Both of these depend on the initial construction of a reachability graph, based on the plan graph introduced in Graphplan (Blum & Furst, 1995). The graph consists of alternating layers of facts ( _fl_ ) and actions ( _al_ ). In the TRPG, for convenience, we index these layers by the earliest time they could represent, although they can still be enumerated by consecutive integers because only finitely many times can be relevant in the process of construction. In this section we explain how the heuristic computation techniques introduced by these planners can then be modified to reason with interacting temporal–numeric behaviour. We describe two variants of the heuristic: a basic version, in which active continuous change is relaxed to discrete step changes, and a refined variant in which this relaxation is replaced with a more careful approximation of the continuous values. We show, using the Borrower example, the benefits of the refined approach. The heuristics are based on the underlying use of a relaxed plan step-count. We use the relaxed plan makespan as a tie-breaker in ordering plans with the same step-count. Step-count dominates our heuristic because our first priority is to find a feasible solution to a planning problem and this means attempting to minimise the number of choices that must be made and resolved during the search. Of course, the emphasis on rapidly finding a feasible plan can compromise the quality of the plan, particularly in problems where the step-count is poorly correlated with the makespan. Subsequent attempts to improve the quality of an initial feasible solution, either by iteratively improving the solution itself or by further search using the bound derived from the feasible solution to prune the search space, are possible, but we do not consider them in this work. 9.1 The Basic ‘Integrated’ Heuristic Computation with Continuous Numeric Effects The first version of COLIN (Coles, Coles, Fox, & Long, 2009b) introduced three significant modifications to the TRPG used in CRIKEY3, in order to generate heuristic values in the presence of continuous and duration-dependent effects. The first modification simply equips the heuristic with the means to approximate the effects of continuous change. _•_ If an action _a_ has a continuous effect equivalent to <sup>_<u>dv</u>_</sup> _dt_ <sup>+=</sup> <sup>_k_</sup> <sup>it is relaxed to an instantaneous</sup> _start_ effect _⟨v,_ += _, k_ _∗_ _dmax_ ( _a_ ) _⟩_ . That is, the effect on the changing variable is treated as the integral of the effect up to an upper bound on the duration of the action and is applied at the start of the action. Doing this ensures that the behaviour is _relaxed_, in contrast to, say, applying the effect at the end of the action. _dmax_ ( _a_ ) is calculated at the point where the action is added to the TRPG, based on the maximum duration constraints of _a_ that refer only to variables that cannot change after that time (that is, they are state-independent). If no such 32 COLIN: PLANNING WITH CONTINUOUS CHANGE constraints exist, the duration is allowed to be infinite (and variables affected by continuous effects of the action will then have similarly uninformed bounds). _•_ If an action _a_ has a discrete duration-dependent effect on a variable _v_ then, when calculating the maximum (minimum) effect of _a_ upon _v_ (as discussed, in the non-temporal case, in Appendix B), the ?duration variable is relaxed to whichever of _dmin_ ( _a_ ) or _dmax_ ( _a_ ) gives the largest (smallest) effect. Relaxation of this effect is achieved without changing its timing, so it is associated with the start or end of the action as indicated in the action specification. The second modification affects any action that has a continuous numeric effect on some variable and either an end precondition or invariant that refers to the same numeric variable. If the invariant or end precondition places a constraint on the way in which the process governed by the action can affect the value of a variable, then this constraint is reflected in the corresponding upper or lower bounds of the value of the variable. Specifically, if an action _a_ decreases _v_ at rate _k_ and has an invariant or end precondition _v_ _≥_ _c_, then the upper bound on _v_ by the end of the action must be at least _k._ ( _dmin_ ( _a_ ) _−_ _elapsed_ ( _a_ ))+ _c_, where _elapsed_ ( _a_ ) is the maximum amount of time for which _a_ could have been executing in the state being evaluated (0 if _a_ is not currently executing, otherwise, the maximum from all such entries in _E_ ). This condition ensures that the variable could achieve the necessary value to support the application of the action. It might appear strange that the bound is set to be higher than _c_, but the reason is that the relaxation _accumulates_ increase effects and ignores decrease effects in assessing the upper bound, so it will be necessary, by the end of the action, to have accumulated increases in the value of the variable that allow for the outstanding consumption from _a_ in order to still meet the _c_ bound at the end of the action. A corresponding condition is required for an action that _a_ increases _v_ at rate _k_, and has an invariant or end precondition _v_ _≤_ _c_, where the lower bound on _v_ cannot be more than _k._ ( _dmin_ ( _a_ ) _−_ _elapsed_ ( _a_ )) + _c_ . These conditions are added as explicit additional preconditions to _a⊣_ for the purposes of constructing the TRPG. The third modification deals with the problem of constructing an appropriate initialisation of the bounds for the numeric variables in the first layer of the TRPG. In CRIKEY3 these values are initialised to the actual values of the metric variables, since their values in the current state do not change if time passes without further actions being applied. The same is not true in COLIN, since any actions that have started, but not yet finished, and which govern a process, will cause variables to change simply as a consequence of time passing. As the basic heuristic proposed here relies on being able to integrate continuous numeric change, we determine the variable bounds in _fl_ (0 _._ 0) in two stages. First, the bounds on a variable _v_ are set according to those obtained from the LP in Section 8.3. Then, for each entry _e_ _∈_ _E_, corresponding to the start of an action, _a_, with a continuous effect on _v_ having positive gradient _k_, the upper bound on _v_ in _fl_ (0 _._ 0) is increased by _k.remaining_ ( _e_ ). Here, _remaining_ ( _e_ ) is the maximum amount of time that could elapse between the state being evaluated and the future end snap-action paired with start event _e_ . The maximum remaining execution time is calculated by subtracting the lower bound for the amount of time that _has_ to have elapsed since the start of action _a_ from its maximum duration. In the case where the gradient is negative, the lower bound is decreased. 9.2 The Refined Integrated Heuristic Time-dependent change arises from two sources: continuous numeric effects, initiated by start snapactions, and discrete duration-dependent effects which can apply at either end of durative actions. 33 COLES, COLES, FOX & LONG For the purposes of the refined heuristic described in this section, we treat continuous effects and discrete duration-dependent effects at the ends of actions of these in the same way, attaching a continuous linear effect acting on each relevant variable to the effects of the appropriate snap-action, _a_, denoting the set of all such continuous effects by _g_ ( _a_ ). For continuous effects, _cont_ ( _a_ ), initiated by _a⊢_, _cont_ ( _a_ ) _⊆_ _g_ ( _a⊢_ ). That is, the gradient effects of the start of _a_ include all of the continuous effects of _a_ . For duration-dependent effects of an end snap-action _a⊣_ we split the effect into two parts: _•_ a discrete effect of _a⊣_, _⟨v, {_ += _,_ -= _,_ = _},_ w _·_ v + _k.dmin_ ( _a_ ) + _c⟩_ and _•_ a gradient effect on _v_, added to _g_ ( _a⊣_ ). The effect is defined as _⟨v, k⟩_ if the original effect used the operator += or = otherwise, it is _⟨v, −k⟩_ . Thus, instantaneously, at the end of _a⊣_, the effect of _a_ is available assuming the smallest possible duration for _a_ is used. As _a_ executes with a greater duration, a continuous effect is applied with the gradient of the change being taken from the coefficient _k_ of the ?duration variable in the corresponding effect in _a_ . Unfortunately, the treatment proposed above cannot be applied to duration-dependent start effects, since the effects are always available at the start of the action, regardless of the duration. Thus, we employ the approach taken with the basic heuristic used in COLIN: when calculating the maximum (minimum) effect of _a⊢_ on the affected variable, _v_, the ?duration variable is substituted with whichever of _dmin_ ( _a_ ) or _dmax_ ( _a_ ) gives the largest (smallest) effect. Once we have a collection of linear continuous effects, _g_ ( _a_ ), associated with each snap-action, _a_, we can adjust the construction of the TRPG. First, we identify, for each variable, _v_, an associated maximum rate of change, _δvmax_ ( _t_ ), following the layer _al_ ( _t_ ). We set this to be the sum of all the positive rates of change, affecting _v_, of any snap-actions in _al_ ( _t_ ): _⟨v,k⟩∈g_ ( _a_ ) _δvmax_ ( _t_ ) = _a∈al_ ( _t_ ) _k_ This definition relies on the restriction that only one instance of any action can execute at any time. If this restriction does not hold, but there is a clear finite bound _p_ ( _a_ ) on the number of instances of an action that can execute concurrently, then we incorporate this into the calculation of _δvmax_ ( _t_ ) as follows: _⟨v,k⟩∈g_ ( _a_ ) _k_ _δvmax_ ( _t_ ) = _a∈al_ ( _t_ ) _p_ ( _a_ ) _×_ Where no such finite bound exists, an action could, in principle, be applied arbitrarily many times in parallel and hence we set _δvmax_ ( _t_ ) = _∞_ . <sup>6</sup> Following any layer _al_ ( _t_ ) at which _δvmax_ ( _t_ ) = _∞_ we no longer need to reason about the upper bound of the continuous change on _v_ since the upper bound on _v_ itself will become _∞_ immediately after this layer. It should be noted that this degradation of behaviour will, in the worst case, lead to the same heuristic behaviour as the basic heuristic where, again, if arbitrarily many copies of the same action can execute concurrently, the magnitude of its increase or decrease effects becomes unbounded. The extension of the heuristic to consider 6. We note that, in our experience, the presence of infinitely self-overlapping actions with continuous numeric change is often a bug in the domain encoding: it is difficult to envisage a real situation in which parallel production is unbounded. 34 COLIN: PLANNING WITH CONTINUOUS CHANGE continuous effects in a more refined way does not worsen its guidance in this situation. For the remainder of this section, we consider only variables whose values are modified by actions for which there are finite bounds on the number of concurrently executing copies allowed. Armed with an upper bound value for the rate of change of each variable following layer _al_ ( _t_ ), we can deduce the maximum value of each variable at any time _t_ <sup>_′_</sup> _>_ _t_, by simply applying the appropriate change to the maximum value of the variable at time _t_ . The remaining challenge is to decide how far to advance _t_ <sup>_′_</sup> in the construction of the TRPG. During construction of the TRPG in CRIKEY3 time is constrained to advance by _ϵ_ or until the next action end point, depending on whether any new facts are available following the most recent action layer (lines 29–34 of Algorithm 2). In order to manage the effects of the active continuous processes, we add a third possibility: time can advance to the earliest value at which the accumulated effect of active continuous change on a variable can satisfy a previously unsatisfied precondition. The set of preconditions of interest will always be finite, so, assuming that the variable is subject to a non-zero effect, the bound on the relevant advance is always defined (or, if the set of preconditions is empty, no advance is required). We can compute the value of this time as follows. Each numeric precondition may be written as a constraint on the vector of numeric variables, v, in the form w _·_ v _≥_ _c_, for vectors of constants w and c . We define the function _ub_ as follows: - w [ _i_ ] _×_ y [ _i_ ] if w [ _i_ ] _≥_ 0 w [ _i_ ] _×_ x [ _i_ ] otherwise _ub_ ( w _,_ x _,_ y ) = w [ _i_ ] _∈_ w The upper bound on w _·_ v at _t_ <sup>_′_</sup> is then: _ub_ ( w _,_ v _min_ ( _t_ <sup>_′_</sup> ) _,_ v _max_ ( _t_ <sup>_′_</sup> )). The earliest point at which the numeric precondition w _·_ v _≥_ _c_ will become satisfied is then the smallest value of _t_ <sup>_′_</sup> for which _ub_ ( w _,_ v _min_ ( _t_ <sup>_′_</sup> ) _,_ v _max_ ( _t_ <sup>_′_</sup> )) _≥_ _c_ . As an example, suppose there is an action with a precondition _x_ + 2 _y_ _−_ _z_ _≥_ _c_, so that w = _⟨_ 1 _,_ 2 _, −_ 1 _⟩_ (assuming _x_, _y_ and _z_ are the only numeric fluents in this case). Substituting this into the previous equation yields: _ub_ ( _⟨_ 1 _,_ 2 _, −_ 1 _⟩, ⟨x, y, z⟩min_ ( _t_ <sup>_′_</sup> ) _, ⟨x, y, z⟩max_ ( _t_ <sup>_′_</sup> )) = 1 _.xmax_ ( _t_ <sup>_′_</sup> ) + 2 _.ymax_ ( _t_ <sup>_′_</sup> ) _−_ 1 _.zmin_ ( _t_ <sup>_′_</sup> ) = 1 _._ ( _δxmax_ ( _t_ ) _×_ ( _t_ <sup>_′_</sup> _−_ _t −_ _ϵ_ ) + _xmax_ ( _t_ + _ϵ_ )) +2 _._ ( _δymax_ ( _t_ ) _×_ ( _t_ <sup>_′_</sup> _−_ _t −_ _ϵ_ ) + _ymax_ ( _t_ + _ϵ_ )) _−_ 1 _._ ( _δzmin_ ( _t_ ) _×_ ( _t_ <sup>_′_</sup> _−_ _t −_ _ϵ_ ) + _zmin_ ( _t_ + _ϵ_ )) (The values of _x_, _y_ and _z_ are based on their starting points at _t_ + _ϵ_ because this accounts for any instantaneous changes triggered by actions in _al_ ( _t_ ).) If the value of _t_ <sup>_′_</sup> produced by this computation is infinite, then the maximum possible rate of increase of the expression _x_ + 2 _y −_ _z_ must be zero. <sup>7</sup> Otherwise, _t_ <sup>_′_</sup> is the time at which a new numeric precondition will first become satisfied due to active continuous effects and, if this is earlier than the earliest point at which an action end point can be applied, then the next fact layer in the TRGP will be _fl_ ( _t_ <sup>_′_</sup> ). 9.2.1 IMPROVING THE BOUNDS ON VARIABLES IN FACT-LAYER ZERO Previously, setting the bounds in fact-layer zero could be thought of as consisting of two stages: finding initial bounds using the LP and then, because the passage of time could cause these bounds to further diverge due to active continuous numeric change, integrating this change prior to setting 7. To find _t_ <sup>_′_</sup> requires only a simple rearrangement of the formula to extract _t_ <sup>_′_</sup> directly. 35 COLES, COLES, FOX & LONG bounds for layer zero of the TRPG. With an explicit model of numeric gradients in the planning graph, we can now reconsider this approach. The intuition behind our new approach here is as follows: 1. For each variable _v_, create an associated variable _tnow_ ( _v_ ) in the LP, and solve the LP to minimise the value of this variable. 2. Fixing the value of _tnow_ ( _v_ ) to this lower-bound, maximise and minimise the value of _v_ to find the bounds on it _at this point_ - these are then used as the bounds on _v_ in _fl_ (0 _._ 0). 3. If _δv_ _>_ 0 in the current state, then all _δvmax_ ( _t_ ) values in the TRPG are offset by _δv_ or, similarly, if _δv_ _<_ 0, all _δvmin_ ( _t_ ) values are offset. The first of these steps is based on the ideas described in Section 8.3, but the process is subtly different because we are trying to determine the bounds on _v_ at a given point in time, rather than those that appear to be reachable. As before, _tnow_ ( _v_ ) must still come after the most recent plan step and is used to determine the value of _v_ . This is reflected by the pair of constraints: _tnow_ ( _v_ ) _−_ _stepi_ _≥_ _ϵ_ _vnow_ = _vi_ <sup>_′_</sup> <sup>+</sup> <sup>_δvnow_</sup> <sup>(</sup> <sup>_tnow_</sup> <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_step_</sup> _i_ <sup>)</sup> Additionally, since the ‘now’ variable is associated with only a single _v_, rather than having to be appropriate for _all_ _v_, we can further constrain it if, necessarily, _v_ cannot be referred to (either in a precondition, duration or within an effect) until at least after certain steps in the plan, rather than the weaker requirement of just after the most recent step. For our purposes, we observe that if all actions referring to _v_ require, delete and then add a fact _p_, and all possible interaction with _p_ is of this require-delete-add form, then _tnow_ ( _v_ ) must come after any plan step that adds _p_ . More formally, the require-delete-add idiom holds for _p_ if _p_ is true in the initial state, and for each action _a_ with preconditions/effects on _p_, the interaction between the action and _p_ can be characterised as one of the following patterns: 1. _p ∈_ _pre_ _⊢_ ( _a_ ), _p ∈_ _eff_ <sup>_−_</sup> _⊢_ <sup>(</sup> <sup>_a_</sup> <sup>),</sup> <sup>_p ∈_</sup> <sup>_eff_</sup> <sup>+</sup> _⊢_ <sup>(</sup> <sup>_a_</sup> <sup>)</sup> 2. _p ∈_ _pre_ _⊣_ ( _a_ ), _p ∈_ _eff_ <sup>_−_</sup> _⊣_ <sup>(</sup> <sup>_a_</sup> <sup>),</sup> <sup>_p ∈_</sup> <sup>_eff_</sup> <sup>+</sup> _⊣_ <sup>(</sup> <sup>_a_</sup> <sup>)</sup> 3. _p ∈_ _pre_ _⊢_ ( _a_ ), _p ∈_ _eff_ <sup>_−_</sup> _⊢_ <sup>(</sup> <sup>_a_</sup> <sup>),</sup> <sup>_p ∈_</sup> <sup>_eff_</sup> <sup>+</sup> _⊣_ <sup>(</sup> <sup>_a_</sup> <sup>)</sup> (An action may exhibit either or both of the first two interactions, or just the third.) The LP variable corresponding to the point at which _p_ is added, which we denote _stepp_, is determined in one of two ways. First, if _p_ is present in the state being evaluated, _stepp_ is the LP variable corresponding to the plan step that most recently added _p_ . Otherwise, from case 4 above, we know that _p ∈_ _eff_ <sup>+</sup> _⊣_ <sup>(</sup> <sup>_a_</sup> <sup>) for some action</sup> <sup>_a_</sup> <sup>that is currently executing.</sup> <sup>In this case,</sup> <sup>_stepp_</sup> <sup>is the LP</sup> variable _estepi_ corresponding to the end of _a_ . With this defined variable, we can add the constraint to the LP: _tnow_ ( _v_ ) _≥_ _stepp_ + _ϵ_ Solving the LP with the objective being to minimise _tnow_ ( _v_ ) finds the earliest possible time at which _v_ can be referred to. Then, fixing _tnow_ ( _v_ ) to this minimised value, we minimise and maximise 36 COLIN: PLANNING WITH CONTINUOUS CHANGE the bounds on _vnow_ . This gives us bounds on _v_ that are appropriate as early as possible after the actions in the plan so far. Having obtained variable bounds from the LP we must, as before, account for the fact that the passage of time causes the bounds to change if there is active continuous numeric change. Whereas before we integrated this change prior to the TRPG, we now have a mechanism for handling gradients directly during TRPG expansion. Thus, for each start-event-queue entry _e_ _∈_ _E_ corresponding to the start of an action, _A_, with a continuous effect on _v_ with a positive (negative) gradient _k_, we add a gradient effect on the upper (lower) bound on _v_ to the TRPG. Just as we previously restricted the integrated effect of _e_ by _remaining_ ( _e_ ), the maximum remaining time until the action must end, so here we limit how long the gradient effect is active: it starts at _al_ (0 _._ 0) and finishes at _al_ ( _remaining_ ( _e_ )). Then, for a given fact layer _t_ the value of _δvmax_ ( _t_ ) is updated accordingly: - _{k_ _| ⟨v, k⟩∈_ _g_ ( _op_ ( _e_ )) _∧_ _k_ _>_ 0 _∧_ _t ≤_ _remaining_ ( _e_ ) _}_ _δvmax_ ( _t_ )+= _e∈E_ Similarly, _δvmin_ ( _t_ ) is amended to account for effects _⟨v, k⟩, k_ _<_ 0. 9.3 Using the Two Variants of the Integrated Heuristic in the Borrower Problem We now illustrate the computation of the two heuristic functions for a choice point in the Borrower problem. This example shows that the refined heuristic guides the planner to a shorter makespan plan than the basic heuristic, because the improved heuristic information leads to the selection of better choices of helpful actions. Consider the situation following execution of the first action, saveHard ~~s~~ tart. Figure 7 (top) shows the TRPG and relaxed plan constructed using the basic heuristic. The heuristic generates a cost for this state of 5: the four actions shown in the relaxed plan, together with an extra one to end the saveHard action that has already started. This relaxed plan generates two helpful actions, to start the lifeAudit and to start takeMortgage short. An attempt to start the lifeAudit action can quickly be dismissed as temporally inconsistent, depending as it does on boughtHouse becoming true before it ends, so the other helpful action is chosen. Unfortunately, once this action is selected the interaction between the saving process and the deposit requirement (at least five savings must have been acquired) forces the action to start no earlier than time 5. This constraint is invisible in the TRPG, because the continuous effect of saveHard has been abstracted to a start effect, and a full ten savings therefore appear to be available immediately. A plan can be constructed using the short mortgage, but only by introducing a second saving action as shown in the lower plan in Figure 3. This is because the start of the short mortgage is pushed so late that the life audit cannot both overlap the end of the first saveHard action and finish after the mortgage action. The lower part of Figure 7 shows what happens when the refined heuristic is used to solve this problem. The saveHard action starts as before, but this time the heuristic does not relax the behaviour of the continuous savings process so the long mortgage, which requires a smaller deposit to initiate it, becomes available before the short mortgage. As a consequence of this, the relaxed plan selects the long mortgage, and this action starts early enough that the life audit can overlap both its end and the end of the saveHard action. The planner is correctly guided to the optimal plan, as shown at the top of Figure 3. The crucial difference between the two heuristics, is that the refined heuristic is able to access more accurate information about the value of the savings at timepoints 37 0: saveHard_start saving money : [,10]ε 0: saveHard_start ε lifeAudit_start takeMortgage_start short takeMortgage_start long ε 1 takeMortgage_start long COLES, COLES, FOX & LONG 10 money : [−20,20] saveHard_end canSave 10+ ε 10+2ε ε saveHard_start takeMortgage_end short lifeAudit_end boughtHouse happy 5 lifeAudit_start saving money : [,t]ε 10 money : [−0.75t,10] takeMortgage_start short money : [−t,10] 12 12+ε lifeAudit_end saveHard_end canSave takeMortgage_end long boughtHouse happy Figure 7: The TRPG and relaxed plan for the Borrower problem, following initial execution of saveHard ~~s~~ tart at time 0, as constructed using the original version of COLIN (top — described in Section 9.1) and the revised version (bottom - described in Section 9.2). Action layers are depicted in rounded rectangles and fact layers in ovals. The action layers are labelled with their times constructed during the reachability analysis. after the start of the savehard action. This leads to a finer-grained structure of the TRPG, which can be seen in the fact that there are six action layers before arrival at the goal, rather than four as in the case when the basic heuristic is used. The estimated makespan of the final plan is 12 + _ϵ_, while the makespan according to the basic heuristic is 10 + 2 _ϵ_ . The basic heuristic leads to a non-optimal solution because it requires the extra saveHard action, giving a solution makespan of 20 + 2 _ϵ_, in contrast to the makespan of 12 + _ϵ_ of the optimal plan. The benefit of the refined heuristic, and the extra work involved in constructing the modified TRPG, is that better helpful actions are chosen and the makespan estimate is therefore more accurate. The choice between similar length plans is made based on makespan. The TRPG, constructed by the refined heuristic in the Borrower problem, does not even contain the short mortgage action at an early enough layer for it to be considered by the relaxed plan. 38 COLIN: PLANNING WITH CONTINUOUS CHANGE 10. Improving Performance In this section we present two techniques we use to improve the performance of COLIN. The first technique, described in Section 10.1, is a generalisation of our earlier exploitation of _one-shot ac-_ _tions_ (Coles et al., 2009a) to the situation in which they encapsulate continuous processes, leading to faster plan construction in problems with these action types. The second technique, described in Section 10.2, exploits the LP that defines the constraints within the final plan to optimise the plan metric. This leads to better quality plans in many cases. 10.1 Reasoning with One-Shot Actions In earlier work (Coles et al., 2009a) we have observed that there is a common modelling device in planning domains that leads to use of actions that can only be applied once. We call these actions _one-shot actions_ . They arise, in particular, when there is a collection of resources that can each be used only once. The key difference that one-shot actions imply for the TRPG is that continuous effects generated by one-shot actions lapse once a certain point has been reached: _•_ If a one-shot action _a_ has a continuous numeric effect on _v_, and _a⊢_ first appears in action layer _al_ ( _t_ ), then the gradient on _v_ due to this effect of _a_ finishes, at the latest, at _al_ ( _t_ + _dmax_ ( _a_ )). _•_ If the end _a⊣_ of a one-shot action has a duration-dependent effect on _v_, then the (implicit) continuous effect acting on _v_ finishes, at the latest, at layer _al_ ( _t_ + _dmax_ ( _a_ )) The termination point is implied, in both cases, by the fact that the action is one-shot. We modify the TRPG construction to reflect these restrictions by extending the data recorded in each action layer to include, for each snap-action action _a_, the maximum remaining execution time of _a_, denoted _rem_ ( _t, a_ ). For one-shot actions, in the layer _al_ ( _t_ ) in which _a⊢_ first appears, _rem_ ( _t, a⊢_ ) = _dmax_ ( _a_ ), and when _a⊣_ first appears, _rem_ ( _t, a⊣_ ) = _dmax_ ( _a_ ) _−_ _dmin_ ( _a_ ). For actions that are not one-shot _rem_ ( _t, a⊢_ ) and _rem_ ( _t, a⊣_ ) are both initialised to _∞_ . We make three minor changes to the layer update rules to accommodate the _rem_ values. First, when calculating the active gradient on a variable _v_ following action layer _al_ ( _t_ ): _⟨v,k⟩∈g_ ( _a_ ) _k_ _δvmax_ ( _t_ ) = _a∈al_ ( _t_ ) _|rem_ ( _a,t_ ) _>_ 0 _p_ ( _a_ ) _×_ As can be seen, only the subset of actions with execution time remaining is considered. Second, at the next action layer _al_ ( _t_ + ∆ _t_ ) following _al_ ( _t_ ), the value of each positive _rem_ is decremented by ∆ _t_, the amount of time elapsed since the previous layer. Third, as a consequence of this, an additional criterion must be considered when calculating the time-stamp of the next fact-layer, _t_ <sup>_′_</sup>, described in Section 9.2. Since the time remaining to complete an action may expire, we may need to insert an additional fact layer to denote the point at which a _rem_ value reaches 0 and the continuous effects acting on one or more variables need to be recalculated. The time-stamp of the earliest such layer is: _t_ <sup>_′_</sup> = _t_ + min _{rem_ ( _t, a_ ) _>_ 0 _| a ∈_ _al_ ( _t_ ) _}_ One-shot actions can be exploited still further by improving the upper bound on the duration of the action _a_ . In the case of actions with state-dependent duration constraints (i.e. where the upperbound is calculated based on variables that can be subjected to the effects of actions), _dmax_ ( _a_ ) may 39 COLES, COLES, FOX & LONG be a gross over-estimate of the duration of _a_ . Suppose the maximum duration of _a_ is bounded by a formula _w_ _· v_ + _c_ . In the layer _al_ ( _t_ ) in which _a⊢_ appears, we can compute the maximum duration of _a_, were it to be started in that layer, based on the variable bounds recorded in _fl_ ( _t_ ). We could use this value to determine a bound on the remaining execution time for _a_ . However, at some future layer _fl_ ( _t_ <sup>_′_</sup> ), the variable bounds might have changed, so that beginning _a_ in _al_ ( _t_ <sup>_′_</sup> ), and calculating its maximum duration based on _fl_ ( _t_ <sup>_′_</sup> ), would have allowed _a_ to execute for a possibly longer period of time, allowing its continuous effects to persist for longer. To remain faithful to the relaxation, the possibility of exploiting this increased duration of _a_ (by starting _a_ at _t_ <sup>_′_</sup> ) must be included in the TRPG, as well as allowing the possibility of _a_ to start at _t_, thereby obtaining its effects sooner. Therefore, each one-shot action is allowed to start in the earliest layer _al_ ( _t_ ) in which its preconditions are satisfied, giving it an initial maximum duration of _dmax_ ( _a, t_ ) based on the fact later _fl_ ( _t_ ). But, if a later fact layer _fl_ ( _t_ <sup>_′_</sup> ) admits a greater duration ( _dmax_ ( _a, t_ <sup>_′_</sup> ), the value of _dmax_ for action _a_ at layer _t_ <sup>_′_</sup> ), the remaining execution time for _a_ is reconsidered. First, in the simple case, the variables in the duration constraint are changed in _fl_ ( _t_ <sup>_′_</sup> ), but not subject to any active continuous effects. In this case, we apply a pair of dummy effects to fact layer _t_ <sup>_′′_</sup> = _t_ <sup>_′_</sup> + _dmax_ ( _a, t_ ): _⟨rem_ ( _a⊢, t_ <sup>_′′_</sup> ) += ( _dmax_ ( _a, t_ <sup>_′_</sup> ) _−_ _dmax_ ( _a, t_ )) _⟩_ and _⟨rem_ ( _a⊣, t_ <sup>_′′_</sup> ) += ( _dmax_ ( _a, t_ <sup>_′_</sup> ) _−_ _dmax_ ( _a, t_ )) _⟩._ Note that the increase of the _rem_ values is delayed until layer _t_ <sup>_′′_</sup> because, in order to benefit from the longer duration of _a_, _a_ must have started in layer _t_ <sup>_′_</sup> . In the more complex case, the variables in the duration constraint are changed in _fl_ ( _t_ <sup>_′_</sup> ) but the duration is also affected by continuous effects on some of the variables it depends on. In this situation, each subsequent fact layer might admit a marginally bigger duration for _a_ than the last. To avoid having to recalculate the new duration for _a_ repeatedly, we schedule a pair of dummy effects based on the global, layer-independent, maximum value for the duration of _a_ : _⟨rem_ ( _a⊢, t_ <sup>_′′_</sup> ) += ( _dmax_ ( _a_ ) _−_ _dmax_ ( _a, t_ )) _⟩_ and _⟨rem_ ( _a⊣, t_ <sup>_′′_</sup> ) += ( _dmax_ ( _a_ ) _−_ _dmax_ ( _a, t_ )) _⟩._ This relaxation is weaker than it might be, but is efficient to compute. 10.2 Plan Optimisation A plan metric can be specified in PDDL2.1 problem files to indicate the measure of quality to use in evaluating plans. The metric is expressed in terms of the task numeric variables and the total execution time of the plan (by referring to the variable total-time). The use of an LP in COLIN offers an opportunity for the optimisation of a plan with respect to such a metric: for a plan consisting of _n_ steps, the numeric variables v _n_ <sup>_′_</sup> _−_ 1 <sup>are those at the end of the plan, the</sup> <sup>_stepn−_</sup> <sup>1 is the</sup> time-stamp of the final step (i.e. the action dictating the makespan of the plan) and the LP objective can be set to minimise a function over these. The LP must be solved to minimise the time-stamp of the last action (the makespan of the plan) in order to arrive at a lower bound on the time for the next action. However, it can also be solved to optimise the plan metric. 40 COLIN: PLANNING WITH CONTINUOUS CHANGE Although it is possible to consider ways to use the metric-optimising LP value during plan construction, to guide the search, we have focussed on a much more limited, but less costly, use: we only attempt _post hoc_ optimisation, attempting to exploit any flexibility in the temporal structure of the final plan to optimise the plan quality at the last stage of plan construction. In order for such _post hoc_ optimisation to be useful, planning problems must have the property that it is possible to vary the quality metric of a plan by scheduling the same actions to occur at different times. This is possible in a wide range of interesting situations, such as scheduling aircraft to land as close to a given target time as possible, taking images from satellites at certain times of day when the view is clearer, or minimising wasted fuel by penalising the time elapsing between starting the engine of a plane and its take off. The last of these represents a general class of problems in which it may be desirable to minimise the amount of time between two activities: a different metric to the total time taken for plan execution. To capture these interesting cases, we first extend the language supported by COLIN to allow a limited subset of ADL conditional effects, to allow the conditions under which an action is executed to vary the effects the action has on the metric value of the plan. Second, we discuss how a MILP can be built, based on the LP described in Section 8.1, to support _post hoc_ plan optimisation. Our planner handles most conditional effects by a standard compilation. However, conditional effects on metric variables that appear in the plan quality metric and not in the preconditions of any actions are dealt with differently. We call such variables _metric_ _tracking_ _variables_ and we exploit the fact that rescheduling a plan can affect the values of these variables without changing the validity of the plan. An example is shown in Figure 10.2 of an action to land an airplane, with conditional effects on the metric tracking variable total-cost. The domain is structured so that all land actions must start at the beginning of the plan, and their end points represent the actual landing times of the aircraft in the problem. The duration of the actions are set to correspond to the earliest and latest possible points at which each plane could land. As can be seen, the propositional effects of the action are the same whether the plane lands early or late: the plane has landed, and is no longer flying. However, the numeric effects, which are all effects on the metric tracking variable total-cost, depend on the duration of the action and, in particular, whether the plane has landed early or late. If the plane lands early, a penalty is paid at a certain rate per unit time that the plane lands before the desired target value. If the plane lands late, then a fixed cost is paid, in addition to a penalty (at a different rate) per unit of time the plane lands after the desired target value. By considering this action as a single action, with a pair of conditional effects, the planner can decide upon the actions needed to construct a sound plan (in which all the planes have landed) whilst leaving to the subsequent optimisation phase the decision about whether a plane should be landed early, late, or on time. In general, it is straightforward to exploit the LP described in Section 8.1 to attempt to reschedule the actions in a plan to optimise the value of the plan metric (provided that the metric function is linear). However, if the plan contains actions with conditional effects on metric tracking variables, it becomes possible to exploit the representation of these effects in an extended LP, using integer variables, in order to offer a more powerful optimisation step. Each conditional effect will either be activated or not: we introduce a 0-1 variable to represent which of these is the case for each effect. The variable is connected to corresponding constraints that determine whether or not the condition associated with the effect is true or not. We deal with two kinds of constraints on the 0-1 variables in our MILP encoding of the plan optimisation problem: one is the special case where actions are scheduled against fixed time-windows 41 COLES, COLES, FOX & LONG (:durative-action land :parameters (?p - plane ?r - runway) :duration (and (>= ?duration (earliest ?p)) (<= ?duration (latest ?p))) :condition (and (at start (takeOff)) (over all (flying ?p)) (at end (scheduled ?p ?r))) :effect (and (at start (flying ?p)) (at end (landed ?p)) (at end (not (flying ?p))) (when (at end (< (?duration) (target ?p))) (at end (increase (total-cost) (* (earlyPenaltyRate ?p) (- (target ?p) ?duration))))) (when (at end (> ?duration (target ?p))) (at end (increase (total-cost) (+ (latePenalty ?p) (* (latePenaltyRate ?p) (- ?duration (target ?p))))))) ) ) Figure 8: PDDL Domain with Conditional Effects in the Airplane Landing Problem. The literal takeOff is a special proposition manipulated by a dummy action to force all the landing actions to be anchored to the same point in time. governed by timed initial literals that affect whether the conditions are satisfied or not and the other is the case where the satisfaction of the conditions is determined by the status of continuous effects controlled by the actions in the plan (so, for example, the cost of an action might depend on whether a continuously changing value has passed some threshold or not at the time the action is executed). Both of these cases can be handled by a straightforward encoding of the linkage between the value of the 0-1 condition variable and the corresponding conditions (the details are given in Appendix D). We have also extended the conditional effects to allow them to affect the ?duration variable in an action, with similar devices for encoding this in the MILP. The MILP can then be solved as a single and final step in the construction of the plan, optimising the plan metric quality by rescheduling the actions to best exploit the precise timing of the actions and their interaction, through these limited conditional effects, on the plan quality. 11. Continuous Linear Benchmark Domains As COLIN is one of the first planners to support PDDL2.1 models featuring continuous linear change and duration-dependent effects <sup>8</sup> there are currently no benchmarks available that exploit these fea 8. Specifically, duration-dependent effects that depend on non-fixed durations. 42 COLIN: PLANNING WITH CONTINUOUS CHANGE tures. To support our evaluation and to foster future comparisons between planners designed to solve these problems, we have produced a number of domains with these features <sup>9</sup> . The first of our domains is an extension of the ‘Metric Time’ variant of the Rovers domain, from the 2002 International Planning Competition (IPC 2002) (Long & Fox, 2003b). Our focus here is on the action navigate, responsible for moving a rover from one location to another. In the original model, it has a discrete effect, at the start of the action, to decrease the energy level of the rover by 8 units, coupled with a precondition that there must be at least 8 units of energy available. We replace this with a continuous numeric effect on energy, and an over all condition that energy must be at least zero during the action. As the duration of the original action was specified as 5, we use an effect with gradient _−_ 8 _/_ 5. Written thus, the action has the same net effect and conditions: energy is decreased by 8 units, and must not become negative. This continuous change models more accurately the use of power during the navigate action: whilst power use may not actually be linear, it is closer to linear than it is to being instantaneous. To make the model still more realistic, we introduce a new action into the domain: journey-recharge, shown in Figure 9. By exploiting interaction between continuous numeric effects on the same variable, we use this action to capture the option of the rover tilting its solar panels to face the sun whilst navigating between two points. To account for the power use in reorienting the solar panels, at the start and end of the action, 0 _._ 2 units of energy are used. The benefit for this consumption is that, whilst the action is executing, the energy of the rover is increased according to a constant positive gradient. For our final modification to the domain, we alter the duration constraint on the existing recharge action. In the original encoding, the constraint is: (= ?duration (/ (- 80 (energy ?x)) (recharge-rate ?x))). This forces the duration of the action to be sufficient to restore the level of charge to 80 (full capacity). In our new formulation, we replace the = with <= so that the duration constraint specifies the _maximum_ duration for which the battery can be charged: it need not be restored to full capacity every time the action is applied. Following all three of these modifications, the domain can be used with the standard IPC 2002 benchmark problems. In addition to this, we have also created some problems considering just a single rover, where the issue of battery power management is of much greater importance. The next of our domains is an extension of the ‘Time’ variant of the Satellite domain, again taken from IPC 2002. Here, in our continuous variant of the domain, we make three key changes to the domain model. First, in the original formulation, a proposition was used to indicate whether power was available to operate the instrumentation on a given satellite. Switching an instrument on required and then deleted this fact, and switching it off added it again. Thus, there was no scope for parallel power usage, and all instrumentation effectively used unit power. Now, we use a numeric variable to represent power, with preconditions and effects on this variable replacing the preconditions and effects on the proposition previously used. Second, exploiting the potential we now have for differing power requirements, instruments can be operated in one of two modes: cooled, or uncooled. In cooled mode, active sensor cooling is used to reduce sensor noise, enabling images to be taken in less time. This cooling, however, requires additional energy. Third, and finally, there is a compulsory ‘sunrise’ phase at the start of the plan, during which the satellites 9. PDDL domain and problem descriptions for all evaluation tasks are available in the online appendix maintained by JAIR for this paper. 43 COLES, COLES, FOX & LONG (:durative-action journey-recharge :parameters (?x - rover ?y - waypoint ?z - waypoint) :duration (>= ?duration 0.2) :condition (and (over all (moving ?x ?y ?z)) (over all (<= (energy ?x) 80)) (at start (>= (energy ?x) 0.2)) (at end (>= (energy ?x) 0.2)) ) :effect (and (at start (decrease (energy ?x) 0.2)) (increase (energy ?x) (* #t (recharge-rate ?x))) (at end (decrease (energy ?x) 0.2)) ) ) Figure 9: The journey-recharge action in the continuous-numeric Rovers domain move from being shaded by the planet, to being in direct sunlight. This leads to an increase in power availability, modelled as a linear continuous numeric effect attached to an action, sunrise, that must be applied. Interaction between this effect and the preconditions on powering instruments ensures they can be operated no sooner than power is available. The problem files we use for this domain are slightly modified versions of the IPC competition problems, updated to define power availability as a numeric variable and to encode the power requirements of cooled and uncooled sensor operation. The problems in this domain have characteristics that are very similar to the Borrower problem we have used as a running example. Further exploring the use of continuous numeric effects, our next domain models the operations of cooperating Autonomous Underwater Vehicles (AUVs). The AUVs move between waypoints underwater and can perform two sorts of science gathering operations. The first is taking a water sample from a given waypoint, which can be performed by any AUV in the appropriate location, and whose water sample chamber is empty. The second is taking an image of a target of interest. This requires two AUVs to cooperate: one to illuminate the target with a torch, and one to take an image of it. The AUV domain was inspired by the problem described by Maria Fox in her invited lecture at the 2009 International Conference on Automated Planning and Scheduling. Once data has been acquired, it must be communicated to a ship on the surface. As in the Satellite and Rovers domains, the AUVs are energy-constrained - they have finite battery power - and the power usage by actions is continuous throughout their execution. The more interesting continuous numeric aspects of the domain arise from the use of a model of drift. We introduce a variable to record how far each AUV has drifted from its nominal position, and update this in two ways. First, all activity in the plan is contained within an action drift with small, positive continuous numeric effect on the drifted distance. Second, we add a localise action that sets this drifted distance to zero, with its duration (and hence energy requirements) depending on the drifted distance prior to its application. This drifting then affects the other domain actions. In the simplest case, to sample water or take an image at a given location, an AUV cannot have drifted more than two metres, hence introducing the need to first localise if this is the case. More interestingly, for an AUV shining a torch, drifting affects how much light is falling on the target. Thus, the shine-torch action for an AUV ?v has three effects on the amount of light falling on a given target ?t: 44 COLIN: PLANNING WITH CONTINUOUS CHANGE _•_ start: (increase (light-level ?t) (- 1000 (distance-from-waypoint ?v))) _•_ throughout: (decrease (light-level ?t) (* #t (fall-off))) _•_ end: decrease (light-level ?t) by any remaining contribution ?v was making to its illumination. The constant (fall-off) is pessimistically derived from formulæ involving the inverse-square law, giving a linear approximation of the decay in illumination levels due to drift. Then, for the take-image action itself, its duration is a function of (light-level ?t): the less light available, the longer it requires to take the image. The final domain we use is the Airplane Landing domain (Dierks, 2005), first posed as a challenge by Kim Larsen in his invited lecture at the 2009 International Conference on Automated Planning and Scheduling. This problem models the scheduling of landing aircraft on an airport runway. For each plane, three landing times are specified: the earliest possible landing time, the latest possible landing time, and the target (desired) landing time. Since time must be allowed for airplanes to clear the runway once they have landed, and the use of the runway is a heavily subscribed resource, it is not possible for all planes to land at their ideal time. Planes can, therefore, land early or late, but doing so incurs a penalty. This penalty is modelled by a duration-dependent effect, as shown earlier in the paper (Figure 10.2 in Section 10). We have been able to construct a set of airplane landing problems using real data from the Edinburgh Airport arrivals board. Results from running COLIN on these problems are reported in Section 12. 12. Evaluation COLIN is a temporal planner, able to solve problems with required concurrency, that can handle both discrete and continuous metric variables. The first question we address is how costly is the extension of the underlying CRIKEY3 system to allow COLIN to manage continuous effects? COLIN is a particularly powerful planner and there are no other general PDDL2.1 planners with similar expressive power available for comparison on the continuous problems. However, the extensions necessary to support continuous reasoning will add an overhead to the cost of solving problems where there are no continuous effects. We compare the performance of COLIN with other temporal planners on a selection of temporal problems without continuous effects (Section 12.1) in order to evaluate how much overhead is paid by COLIN in setting up and managing (redundant) structures, in comparison with state-of-the-art planners that do not pay this price. We then move on to considering the performance of COLIN on problems with continuous dynamics. Our second question is: how much improvement do we obtain from using the refined heuristic instead of the basic heuristic, when dealing with problems with continuous change? The planners discussed in Section 7 are not able to scale to large and complex problems, so we compare the two versions of COLIN. We present their performances on new benchmark problems with continuous processes, setting the foundation for future comparative evaluation of alternative approaches to these problems. The third question considered concerns the quality of the solutions produced by COLIN, in comparison with optimal solutions where these can be found. COLIN is a satisficing planner that can perform efficiently on a wide range of continuous planning problems, and we are interested in understanding how much solution quality must be sacrificed in order to obtain the efficiency achieved by COLIN. 45 COLES, COLES, FOX & LONG Finally, we consider the question: just how expensive is the move from solving an STP (sufficient for purely discrete temporal planning) to solving an LP (necessary for handling continuous effects)? In particular, is it practical to solve multiple LPs in performing heuristic state evaluations? Since LP construction and solution is central to the architecture of COLIN it is important that this can be relied upon to scale appropriately with the range and complexity of problems that COLIN is expected to solve. The following experiments consider a large number of domains and domain variants. For the temporal comparisons we use the Simple Time and Time variants of Depots, Driverlog, Rovers, Satellite and Zeno, all from IPC 2002, and Airport and Pipes-No-Tankage from IPC 2004. The Airport variant used here is the Strips Temporal variant. For the comparisons between the basic and refined heuristics on continuous domains, we use the new continuous benchmark domains introduced in Section 11: Airplane Landing, Rovers, Satellite Cooled (the Satellite variant with sensor cooling) and the AUV domain. For the post-hoc optimisation experiments we use the Airplane Landing problem, the Cafe domain introduced in the empirical analysis of CRIKEY2 (Coles, Fox, Halsey et al., 2008), a variant of Airport in which the amount of fuel burned is to be minimised, and a version of Satellite with time windows, where rewards are obtained by scheduling observations into the tighter windows. In all cases we use the competition benchmark sets of instances where available. For the continuous Rovers and Satellite domains we used the IPC 2002 Complex Time problem sets. These instances work with the continuous domain variants and it is possible to get better makespan plans for them, by respecting the continuous dynamics, than is possible when the same instances are solved using the discrete domain variants. We generated increasing sized instances for the Airplane Landing domain in which the number of planes to be landed increased (in the _n_ <sup>_th_</sup> instance of the problem, _n_ planes must be landed). We wrote a problem generator for the AUV domain that increases the number of AUVs, waypoints and goals in the instances (they range from 2 AUVs, 4 waypoints and 1 goal, to 6 AUVs, 16 waypoints and 6 goals). All experiments were run on a 3.4GHz Pentium D machine, limited to 30 minutes and 1GB of memory. 12.1 Comparison with Existing Temporal Planners Few temporal planners can actually solve a full range of temporal problems. As we have already observed, many temporal planners cannot solve problems with required concurrency. Even within the class of problems that have required concurrency, there are easier problems, which can be solved by a _left packing_ of actions within the plan and harder ones for which this is not possible. By _left_ _packing_ we mean that actions that must be executed concurrently with other actions in the plan can be started at the same time as each other. This property means that the approach adopted in Sapa, of extending forward search to include a choice to either start a new action or else to advance time to the earliest point at which a currently executing action terminates, is sufficient to solve the problem. In contrast, a problem that cannot be left packed will require the possibility of advancing time to some intermediate point during execution of an action in order to coordinate the correct interleaving of other actions with it. We describe such problems as requiring _temporal_ _coordination_ . One of the few planners that can also handle problems requiring temporal coordination is LPG-s (Gerevini et al., 2010). We therefore compare COLIN with LPG-td, LPG-s, Sapa and the temporal baseline planner developed for the temporal satisficing track at the 2008 International Planning Competition. Neither 46 COLIN: PLANNING WITH CONTINUOUS CHANGE 100 10 1 0.1 0.01 100 10 1 0.1 0.01 Depots Simple Time LPG-TD used Temp-Baseline used Driverlog Simple Time LPG-TD used LPG.s used Temp-Baseline used 0.01 0.1 1 10 100 Best of Other Solution Time (s) Rovers Simple Time 100 10 1 0.1 LPG-TD used Temp-Baseline used 0.01 0.01 0.1 1 10 100 Best of Other Solution Time (s) Zeno Simple Time 1000 100 10 1 0.01 0.1 1 10 100 Best of Other Solution Time (s) Satellite Simple Time 100 10 1 0.1 LPG-TD used Temp-Baseline used 0.01 0.01 0.1 1 10 100 Best of Other Solution Time (s) 0.1 0.01 LPG-TD used Temp-Baseline used 0.01 0.1 1 10 100 1000 Best of Other Solution Time (s) Figure 10: Comparison of time taken to solve problems in simple temporal planning benchmarks. COLIN is compared to the best of LPG-td, LPG.s, Sapa and a temporal baseline planner, on each problem file — the shape and colour of the points indicate which planner was the best and was therefore used in the plot. Planners not appearing in a particular dataset were not the best on any of the problems in that collection. the temporal baseline planner, Sapa nor LPG-td can solve problems requiring any kind of temporal coordination. The temporal baseline planner compiles away temporal information, by using action 47 Driverlog Time LPG-TD used Temp-Baseline used Depots Time COLES, COLES, FOX & LONG 100 100 10 1 0.1 0.01 LPG-TD used Temp-Baseline used 10 1 0.1 0.01 0.01 0.1 1 10 100 Best of Other Solution Time (s) Rovers Time 100 10 1 0.1 LPG-TD used LPG.s used 0.01 0.01 0.1 1 10 100 Best of Other Solution Time (s) 0.01 0.1 1 10 100 Best of Other Solution Time (s) Satellite Time 100 10 1 0.1 LPG-TD used LPG.s used Temp-Baseline used 0.01 0.01 0.1 1 10 100 Best of Other Solution Time (s) Figure 11: Comparison of time taken to solve problems in more complex temporal planning bench marks (first set). COLIN is compared to the best of LPG-td, LPG.s, Sapa and a temporal baseline planner, on each problem file - the shape and colour of the points indicate which was the best. Planners not appearing in a particular dataset were not the best on any of the problems in that collection. compression, and solves problems as if they were non-temporal metric or propositional problems. When solutions are found, using Metric-FF as the core planning system, the temporal information is reintroduced by annotating the plan with suitable timestamps based on a critical path analysis. No details are published about this planner, but the source code and brief information are available from the IPC 2008 web site. This approach cannot therefore solve problems with required concurrency, but is fast and effective on simpler problems where the temporal actions can be sequenced. It is straightforward to identify many cases when action compression can be applied safely and this analysis is implemented in COLIN to reduce the overhead of reasoning with action end points where it is unnecessary. Therefore, the behaviour of the temporal baseline planner is similar to that of COLIN when all actions can be safely compressed. In Figures 10, 11 and 12 we show CPU time comparisons between COLIN and the best performances of Sapa, LPG-td, LPG-s and the temporal baseline planner, across a wide and representative collection of temporal benchmark domains. Figure 10 shows performance on simple temporal problems, where action durations are all fixed, while Figures 11 and 12 show results for more complex temporal problems, including those where 48 COLIN: PLANNING WITH CONTINUOUS CHANGE Zeno Time 1000 100 10 1 0.1 0.01 Airport Strips Temporal LPG-TD used Temp-Baseline used LPG-TD used LPG.s used 1000 100 10 1 0.1 0.01 0.01 0.1 1 10 100 1000 Best of Other Solution Time (s) Pipes No-Tankage Temporal 100 10 1 0.1 LPG-TD used Temp-Baseline used 0.01 0.01 0.1 1 10 100 Best of Other Solution Time (s) 0.01 0.1 1 10 100 1000 Best of Other Solution Time (s) Pipes Tankage Temporal 1000 100 10 1 0.01 0.1 1 10 100 1000 Best of Other Solution Time (s) 0.1 0.01 LPG-TD used Temp-Baseline used Figure 12: Comparison of time taken to solve problems in more complex temporal planning bench marks (second set). COLIN is compared to the best of LPG-td, LPG.s, Sapa and a temporal baseline planner, on each problem file — the shape and colour of the points indicate which was the best. Planners not appearing in a particular dataset were not the best on any of the problems in that collection. the duration of actions is determined by the context in which they are executed (although none in which action effects depend on this), and problems with metric variables. None of these problems feature required concurrency or other forms of temporal coordination. In these figures, planners not appearing in a dataset were not the best on any problems in that domain. Analysis of Figures 10–12 shows that COLIN does indeed pay an overhead in computation time in the solution of temporal problems that do not feature continuous dynamics. The overhead is particularly significant in the simple temporal problems where there is no interesting temporal structure and the temporal baseline planner tends to perform very well. The overhead paid by COLIN is lower in the complex temporal problems, where the temporal reasoning required is sometimes more challenging. The makespan results in Figures 13, 14 and 15 show that COLIN produces good quality plans, especially for the complex temporal problems, although the temporal baseline planner is still competitive in terms of both CPU time and makespan. This suggests that the temporal structure, even in the complex temporal benchmarks, is quite simple and that a planner can do well by ignoring the temporal structure that is present, rather than trying to reason about it in generating plans. 49 Depots Simple Time COLES, COLES, FOX & LONG 300 250 Driverlog Simple Time 100 80 60 40 20 0 400 350 300 250 200 150 100 50 0 6000 5000 4000 3000 2000 1000 0 LPG-TD used LPG.s used Sapa used Temp-Baseline used 0 20 40 60 80 100 Best of Other Solution Quality Rovers Simple Time LPG-TD used LPG.s used Sapa used Temp-Baseline used 0 50 100 150 200 250 300 350 400 Best of Other Solution Quality Zeno Simple Time LPG-TD used LPG.s used Sapa used Temp-Baseline used 0 1000 2000 3000 4000 5000 6000 Best of Other Solution Quality LPG.s used Sapa used Temp-Baseline used 0 50 100 150 200 250 300 Best of Other Solution Quality Satellite Simple Time LPG-TD used LPG.s used Temp-Baseline used 0 50 100 150 200 250 300 350 400 Best of Other Solution Quality 200 150 100 50 0 400 350 300 250 200 150 100 50 0 Figure 13: Comparison of plan quality in simple temporal planning benchmarks. COLIN is com pared to the best of LPG-td, LPG.s, Sapa and a temporal baseline planner, on each problem file - the shape and colour of the points indicate which was the best. Planners not appearing in a particular dataset were not the best on any of the problems in that collection. The detailed results of these experiments, showing raw runtime and quality comparisons between the planners used in this experiment, are presented in Appendix E. 50 COLIN: PLANNING WITH CONTINUOUS CHANGE 0 100 200 300 400 500 600 Best of Other Solution Quality 400 350 300 250 200 150 100 50 0 400 350 300 250 200 150 100 50 0 Depots Time LPG-TD used LPG.s used Sapa used 0 50 100 150 200 250 300 350 400 Best of Other Solution Quality Rovers Time LPG-TD used LPG.s used Sapa used 0 50 100 150 200 250 300 350 400 Best of Other Solution Quality 1000 800 600 400 200 0 600 500 400 300 200 100 0 Driverlog Time LPG-TD used LPG.s used Sapa used Temp-Baseline used 0 200 400 600 800 1000 Best of Other Solution Quality Satellite Time LPG-TD used LPG.s used Sapa used Temp-Baseline used Figure 14: Comparison of plan quality in more complex temporal planning benchmarks (first set). COLIN is compared to the best of LPG-td, LPG.s, Sapa and a temporal baseline planner, on each problem file — the shape and colour of the points indicate which was the best. Planners not appearing in a particular dataset were not the best on any of the problems in that collection. 12.2 Solving Problems with Continuous Linear Change and Duration-Dependent Effects Our focus in this section is on examining the scalability of COLIN on the continuous benchmark domains we have developed and, specifically, on comparing the two variants of the TRPG discussed in Section 9. These are: the basic heuristic, which discretises time, and the refined heuristic, which is capable of handling continuous numeric change directly. The continuous benchmarks, as described in Section 11, are characterised by sophisticated temporal structure (including required concurrency) giving rise to interesting opportunities for concurrent behaviour. Because these problems have time-dependent effects and continuous effects, they are out of the reach of the temporal planners used in the last experiment. The problems used for this experiment are designed to rely on the exploitation of these features, so a baseline planner that ignored these continuous dynamics would be unable to solve the problems. Results comparing the basic and refined heuristics are shown in Figure 16. Beginning with the Airplane Landing domain and the Rovers domain variant, the performance is the same when either 51 Zeno Time COLES, COLES, FOX & LONG 1000 800 Airport Strips Temporal 400 350 300 250 200 150 100 50 0 50 40 30 20 10 0 LPG-TD used LPG.s used Sapa used 0 50 100 150 200 250 300 350 400 Best of Other Solution Quality Pipes No-Tankage Temporal LPG-TD used LPG.s used Temp-Baseline used 600 400 200 0 50 40 30 20 10 0 LPG-TD used LPG.s used Temp-Baseline used 0 200 400 600 800 1000 Best of Other Solution Quality Pipes No-Tankage Temporal LPG-TD used LPG.s used Temp-Baseline used 0 10 20 30 40 50 Best of Other Solution Quality 0 10 20 30 40 50 Best of Other Solution Quality Figure 15: Comparison of plan quality in more complex temporal planning benchmarks (second set). COLIN is compared to the best of LPG-td, LPG.s, Sapa and a temporal baseline planner, on each problem file — the shape and colour of the points indicate which was the best. Planners not appearing in a particular dataset were not the best on any of the problems in that collection. heuristic is used: the relaxed plans found are the same. This is to be expected, because in these two domains the interaction between time and numbers is relatively limited. In the Airplane Landing problem, action durations affect a variable used to measure plan cost but that is not used in any preconditions. Thus, the selection of actions in the TRPG is unaffected. In the Rovers domain, continuous change arises when consuming power during navigate actions, or producing power when recharging. Capturing the time-dependent nature of these more precisely has no effect on the relaxed plans, as the nature of the relaxation leads it to only rarely require recharge actions, and the conditions under which these are needed are not affected by whether the effects are integrated or not. Nevertheless, these two domains illustrate that in guaranteed ‘like-for-like’ situations, where the heuristic guidance will be the same, the refined heuristic is only negligibly more expensive to compute, despite the additional overheads of tracking gradient effects as the TRPG is expanded. It can also be seen that COLIN scales well across the Airplane Landing instances, although it only manages to solve 9 of the 14 Rovers problems (these well within two minutes). 52 COLIN: PLANNING WITH CONTINUOUS CHANGE Rovers Continuous Time Basic Heuristic Refined Heuristic 2 4 6 8 10 12 14 Problem Number Satellite Cooled Makespan Basic Heuristic Refined Heuristic 2 4 6 8 10 12 14 16 18 20 Problem Number AUV Makespan Basic Heuristic Refined Heuristic 5 10 15 20 25 30 Problem Number 100 10 1 0.1 0.01 1000 100 10 1 0.1 10000 1000 100 10 1 0.1 0.01 Airplane Landing Edinburgh Time Refined Heuristic Basic Heuristic 5 10 15 20 25 30 35 40 45 50 Problem Number Satellite Cooled Time Basic Heuristic Refined Heuristic 2 4 6 8 10 12 14 16 18 20 Problem Number AUV Time Basic Heuristic Refined Heuristic 5 10 15 20 25 30 Problem Number 1000 100 10 1 0.1 0.01 1000 900 800 700 600 500 400 300 200 600 500 400 300 200 100 0 Figure 16: Comparison of the Basic and Refined TRPG variants on continuous domains. The boxed graphs are makespan comparisons for the Satellite Cooled and AUV domains, placed to the right of their corresponding runtime graphs. In the Satellite ‘Cooled’ domain, the runtime taken to find the plans when using the refined heuristic is comparable to that when using the basic heuristic: in some problems (e.g. 13, 18) it is slower; but in others (e.g. 12, 15) it is faster. The more interesting comparison to make is in the makespan data (shown to the right). As can be seen, the refined heuristic generally produces 53 COLES, COLES, FOX & LONG better quality plans. The difference in quality is due to the refined heuristic better capturing the relationship between time and numbers, leading to better actions being chosen in the relaxed plan. By way of example, consider the state reached after beginning the sunrise action: _•_ For the basic heuristic, the LP is used to obtain bounds on the power availability in this state, with free reign over how much time to allow to elapse. The lower-bound found is slightly more than zero (corresponding to allowing _ϵ_ time to elapse), and the upper-bound found is the peak power availability (corresponding to applying the entirety of the sunrise action). When building a TRPG from these bounds, cooled sensor operation is immediately available, and hence the goals will always be achieved first by actions using sensor cooling: the duration of such actions is lower, making them more attractive. The resulting relaxed plan, and hence helpful actions, will therefore lead search to use sensor cooling. _•_ With the refined heuristic, the LP is used to obtain bounds on the power availability in this state, but these bounds must be obtained at the soonest possible point. Thus, the lowerbound is still slightly more than zero, but the upper bound is also only slightly more than zero. The positive gradients in effect on the power availability variables are then included in the TRPG, influencing the layers at which different actions become applicable. Specifically, actions without sensor cooling have lower power requirements, and hence appear at earlier layers. Then, for goals first achieved by actions not using sensor cooling (where the increased duration of acquiring the image without cooling is compensated for sufficiently by being able to start taking the image sooner) the relaxed plan, and hence helpful actions, will not use sensor cooling for these goals. It can be seen that this situation is closely analogous to the differences in alternative mortgages in the Borrower domain. The extent to which this trade-off influences plan quality varies between problems, depending on the initial orientation of the satellites, and the images required. The least benefit arises if a satellite requires substantial reorientation to point it towards its first target — if this is the case, the time taken allows the energy level to rise sufficiently to support sensor cooling. The greatest benefit arises in the opposite situation, where a satellite requires minimal reorientation — then, switching on a sensor in its cooled mode will require a substantial amount of time to elapse to support its energy requirement precondition. To aid understanding of the scalability implications of these results, the Satellite problems are based on those used in the 2002 IPC, so are of a similar fundamental size. However, the continuous reasoning that has been added to them makes the same underlying problems fundamentally much more difficult to solve. In the AUV domain, the use of the refined heuristic increases the problem coverage, with 30 problems solved rather than 27. Applying the Wilcoxon Matched-Pairs Signed-Ranks Test to the paired time-taken data for mutually solved problems, we find that we can reject the null hypothesis that the refined heuristic is no better than the basic heuristic, with _p_ _≤_ 0 _._ 05. Observing the performance of the planner, this difference in performance arises due to the way in which the drifting process is handled by the two approaches. Specifically, it is accounted for by the difference in how the bounds for fact layer zero of the TRPG are calculated. Consider a state in which an action for an AUV to communicate image data has just been started. The domain encoding ensures that until communication has completed, the AUV cannot perform any other activities. At this point, prior to evaluating the state using a TRPG heuristic, the LP is used to give bounds on the values of each state 54 COLIN: PLANNING WITH CONTINUOUS CHANGE variable. Considering just the variable recording how far the communicating AUV has drifted the variable (distance-from-waypoint auv0), from now on abbreviated to dfw0: _•_ The basic heuristic employs the approach set out in Section 8.3. A single ‘now’ timestamp variable is introduced, that must come after the action just started, along with an additional variable and constraint for dfw0. Maximising and minimising the value of this additional variable yields bounds on dfw0. The lower bound will be infinitesimally larger than it was prior to starting the action, due to _ϵ_ time having elapsed. The upper bound corresponds to allowing a large amount of time to elapse. _•_ The refined heuristic employs the approach set out in Section 9.2.1. Here, a ‘now’ timestamp variable is introduced for each task variable, in this case we are concerned with _tnow_ (dfw0). As in the prior case, this is constrained to be after the action just applied. Additionally, however, because the domain model enforces that no other action can refer to the value of the variable until the communicate action has finished, this specific _tnow_ must also come after the (future) end of the action just applied. The bounds on dfw0 are then found by following the remaining steps of Section 9.2.1: the LP is solved to minimise the value of this _tnow_ variable, the value of the variable is fixed to this minimum and then the LP is solved to maximise and minimise the value of dfw0. Critically, because this _tnow_ variable must come after the end of the action just applied, rather than just after its start, the lower bound on dfw0 is larger. The increase in the lower bound on dfw0 then affects whether, in the TRPG, preconditions of the form (<= (dfw0) c) are considered satisfied in the initial fact layer. If they are not satisfied, they are delayed until the earliest layer at which a localise action reduces the value of dfw0. This difference can then affect the relaxed plan found: during solution extraction, if an action _A_ requiring (<= (dfw0) c) is chosen, then if a localise action was necessary to achieve this in the TRPG, the action will be added to the relaxed plan. As _A_ cannot come any earlier than after the end of the communicate action just applied, that is, the point at which the bounds on dfw0 are calculated, then some sort of localisation is necessary if _A_ is ultimately to be applied. Thus, the bounds for the refined heuristic here lead to better relaxed plans being found, containing localise actions that would otherwise be omitted. To give an indication of the difficulty of these problems, the AUV problems range from problems with 2 AUVs, 5 waypoints, 2 objectives and 2 goals to those at the harder end with 6 AUVs, 15 waypoints, 6 objectives and 7 goals. The major hurdle preventing COLIN from scaling to even larger problems is the inability to see that an implicit deadline has been created when a shine-torch action is started. The AUV shining the torch has finite energy, so if the planner starts a shinetorch action with one AUV, in preparation for another AUV to take an image, but then adds to the plan some actions involving the second AUV that are unrelated to taking the image, the delay can lead to there being insufficient energy to shine the torch for long enough to gain the required exposure when the photograph taking action is eventually started. This leads the planner to a dead end and it is forced to resort to best-first search, which is much less effective than EHC in this domain. Such implicit deadlines can occur in many planning problems with temporal coordination and the issues COLIN faces could be avoided by using a branch-ordering heuristic that promotes actions whose applicability is time-limited due to the ends of currently-executing actions, or perhaps through relaxing unnecessary ordering constraints imposed by COLIN due to total order search. Both of these are out of the scope of this paper, but are interesting avenues for future work. 55 COLES, COLES, FOX & LONG (:durative-action burning-fuel :parameters (?a - airplane) :duration (>= ?duration (* 60 (engines ?a))) :condition (and (at start (not-burning-fuel ?a)) (at end (taking-off ?a))) :effect (and (at start (can-start-engines ?a)) (at start (not (not-burning-fuel ?a))) (increase (wasted-fuel) (* #t (engines ?a))) ) ) Figure 17: burning-fuel action added to the Airport domain 12.3 _Post Hoc_ Plan Optimisation In this section we evaluate the effectiveness of our _post hoc_ plan optimisation strategy. As described in Section 10, the plan optimisation phase occurs after planning is complete and can never change the actions that are in the plan. By lifting a Partial Order prior to scheduling (Veloso, P´erez, & Carbonell, 1990), we can provide the scheduler with a little more flexibility over the order of actions. As long as the ordering constraints remaining after this (greedy) partial-order lifting are respected, the scheduler can reduce plan cost by altering the time-points at which the actions occur and, where possible, their durations. Minimising an objective other than plan makespan can only have an effect on plan quality in domains where the metric is sensitive to the times at which the actions are applied, since, by default, COLIN minimises makespan in the solution of the final LP for a completed plan. There are few such benchmark domains in the literature, so we make use of the one existing suitable domain and introduce some new variations on existing benchmarks, in order to test this feature. The first domain, and the only existing domain with this property, is the Airplane Landing domain, used earlier in this section, and described in Section 11. Here, the penalties incurred for each landing depend on whether, and to what extent, it is early or late. Therefore, for a given sequence of landings, the times assigned to them has an impact on the quality of the plan. The next two of our benchmark problems are variants of problems introduced in the International Planning Competitions of 2002 (Long & Fox, 2003b) and 2004 (Hoffmann & Edelkamp, 2005). First, we consider a modified version of the Satellite domain. We modify the domain by adding time windows (modelled using TILs) during which there is a clear view of a given objective. If the photograph of the objective is taken during such a time window, the quality of the plan improves, as a better quality picture is preferable. In each problem we introduce three such time windows for each objective, of bounded random duration, during which taking a photograph of the objective is preferred. The second adapted benchmark is taken from the IPC2004 Airport domain. Where the Airplane Landing problem described previously is concerned with scheduling landing times for aircraft, the Airport domain is concerned with coordinating the ground traffic: moving planes from gates to runways, and eventually to take-off, whilst respecting the physical separation that must be maintained between aircraft for safety reasons. We add to this domain the metric to minimise the total amount of fuel burnt between an aircraft’s engines starting up and when it eventually takes off. To capture this in PDDL2.1, we add the action shown in Figure 17. This action must occur before a plane’s engines can be started and cannot then finish until the plane has started to take-off (hence its duration is at least that of the startup action). Between these two points it increases 56 COLIN: PLANNING WITH CONTINUOUS CHANGE the amount of fuel wasted by a rate proportional to the number of engines fitted to the aircraft: larger planes (for which the number of engines is greater) waste more fuel per unit of time. In both the Satellite and the Airport domains we use the standard problem sets from the competitions, adding any minor changes needed to support the modifications made, whilst leaving the underlying problems themselves unaltered. The final domain we consider is the caf´e domain, first used to evaluate CRIKEY (Coles, Fox, Halsey et al., 2008). In this domain, tea and toast must be made and delivered to each table in a caf´e. The kitchen, however, has only one plug socket, preventing the two items from being made concurrently. This restriction allows the problem to have a number of interesting metric functions: to minimise the total time to serve all customers (the plan makespan), to minimise the time between delivery of tea and toast to a given table, or to minimise the amount by which the items have cooled when each is delivered to the table. We consider the latter two variants here. The results of our experiments are presented in Figure 18. Starting in the top-left, with the Airplane Landing domain, _post hoc_ optimisation gives only a modest improvement in plan quality. This is due to the limited scope for optimisation: even after partial-order lifting, the order in which the planes are going to land is fixed by the plan, so all that can be adjusted is the precise times at which the planes are going to land within that ordering. Moving to the Airport domain variant with the ‘burning-fuel’ action — Figure 18 top-right — _post hoc_ scheduling is able to give large improvements in plan quality. In the original plans, before optimisation, the burning-fuel action for a given plane can be started at any point prior to when the relevant can-start-engines fact is needed and can be ended at any point after the relevant taking-off fact is true, so not necessarily in a timely manner. Following _post hoc_ optimisation, due to the objective function used, each burning-fuel action starts as late as possible and finishes as early as possible. In the caf´e domain, the results for the two metrics used are shown in the central graphs in Figure 18. The two diagonal lines correspond to the original plans. On a given problem, the two plans are identical: only the evaluation metric differs. The two lower lines show the quality of the plan after scheduling it with respect to the relevant metric. Observing the post-scheduled plans, the actions are scheduled as one would intuitively expect. When minimising the total delivery window times, the items for a given table are delivered in succession, even if the first item loses heat while waiting for the second item to be prepared. In contrast, when minimising heat loss items are delivered to tables as soon as they have been prepared, even if there is then a delay between the two items being delivered. Finally, the results for the variant of the Satellite domain with observation windows is shown in the bottom-left of Figure 18. Whilst not as marked as the improvements in the previous two domains, the scheduler is able to make some headway in better scheduling the observations. The original plan for a given problem will, for each satellite, fix the observations it is to make, and the order in which they are to be made. There remains enough flexibility to be able to improve plan quality, reducing plan cost by around a factor of 2. 12.4 Comparison with Optimal Solutions We investigated the difference in quality between optimal solutions and the solutions produced by COLIN in order to form an impression of how close to optimal COLIN can get. To do this, we ran COLIN with an admissible heuristic that uses the makespan estimate produced by the TRPG, using 57 COLES, COLES, FOX & LONG 20000 18000 16000 14000 12000 10000 8000 6000 4000 2000 0 Airplane Landing Edinburgh colin-standard colin-optimise 5 10 15 20 25 30 35 40 45 50 Problem Number Cafe (Delivery Window) 4500 4000 3500 3000 2500 2000 1500 1000 500 0 Airport Fuel Loss colin-standard colin-optimise 2 4 6 8 10 12 14 16 18 20 Problem Number Cafe (Heat Loss) 100 80 60 40 20 0 colin-standard colin-optimised 1200 1000 800 600 400 200 0 colin-standard colin-optimise 2 4 6 8 10 12 14 16 18 20 Problem Number Satellite Reward 80 70 60 50 40 30 20 10 0 2 4 6 8 10 12 14 16 18 20 Problem Number 1200 1000 800 600 400 200 0 colin-standard colin-optimise 2 4 6 8 10 12 14 16 18 20 Problem Number Figure 18: Quality of plans produced by Colin with and without _post hoc_ optimisation. On all four graphs, lower is better. the same value for _ϵ_ as is used by COLIN in the results presented in Figures 16 and 18. We call this variant optimalCOLIN. In the AUV and Rover domains, there are variable-duration actions in the domain for which the durations can be chosen to be as small as _ϵ_ when these actions are used in a plan. _ϵ_ -length actions might be chosen, for example, to relocalise having slightly drifted, or to recharge having used a negligible amount of power. In these domains, optimal search has to consider plans comprising almost entirely actions of _ϵ_ duration up to the optimal makespan. As an example of the scale of this, 58 COLIN: PLANNING WITH CONTINUOUS CHANGE <u>Problem</u> <u>optimalCOLIN</u> COLIN <u>[2-5] instance</u> <u>makespan</u> <u>time (secs)</u> <u>makespan</u> <u>time (secs)</u> 01 20.001 0.00 20.001 0.01 02 30.001 0.00 34.004 0.01 03 30.001 0.02 38.007 0.01 04 40.001 0.29 44.006 0.01 05 40.003 3.94 48.009 0.02 06 50.003 69.93 62.01 0.03 <u>07</u> <u>-</u> <u>-</u> <u>66.014</u> <u>0.03</u> Table 4: Comparison of makespans and solution time for airplane landing problems solved by op timalCOLIN and COLIN using the refined heuristic. Problem 7 could not be solved by optimalCOLIN within the 1 hour bound. on AUV problem 1, solved by COLIN, we find a plan with makespan 34.031. Careful analysis by hand suggests that this plan cannot be improved, so is optimal. OptimalCOLIN must consider plans of up to 34,031 steps in order to prove that this plan is optimal. This means that this problem is completely out of the reach of optimal planning. A similar problem arises in the Rovers domain, where the recharge action can be as little as _ϵ_ long, and a series of _ϵ_ -long recharge actions can be applied, reaching ostensibly different states, but without making any progress. Clearly, the potential for _ϵ_ -duration actions can arise in any continuous temporal domain. The same problem of search-space explosion will also arise in any temporal domain where there are orders of magnitude differences between the longest and shortest possible actions. However, in the Airplane-Landing and Satellite Cooling domains, there are no variable-duration actions in these domains that can be made arbitrarily short during search. Therefore, optimalCOLIN is in principle able to solve problems in these domains. In fact, given 4 Gb of memory and 1 hour of runtime for each instance, it was able to solve 6 airplane landing instances, as shown in Table 4. As the table shows, the time required to solve these problems increases very fast: problem 5 could be solved in 3.94 seconds, problem 6 in 69.93 seconds, and problem 7 could not be solved within the hour available. On this basis we decided it was unnecessary to extend the time available to optimalCOLIN as it would be unlikely to cope with large instances. Table 4 shows that COLIN sacrifices optimality for speed. This sacrifice is important, but it does pay off in terms of time required to solve problems. COLIN is able to solve 62 of the airplane landing problems, with no instance taking more than 33.02 seconds to solve. We found that optimalCOLIN could report a candidate solution to the first Satellite domain instance, within 368 seconds. However, it could not prove within the time available that this solution was optimal, so we did not include it. 12.5 Costs Associated with LP Scheduling In the transition from CRIKEY3 to COLIN we switch from solving an STP at each state to solving an LP. An important issue to consider is the impact that this has on the time taken to evaluate the 59 COLES, COLES, FOX & LONG feasibility of the plan constructed to reach every state considered in the search. In its default mode of operation, COLIN uses an STP to evaluate a state unless it has temporal–numeric constructs that necessitate use of an LP. To evaluate whether or not this is appropriate (or whether always using an LP would be faster), and to compare the overheads of STP solving with LP solving on equivalent problems, we created a variant of COLIN that, at every state _S_, schedules the plan to reach _S_ independently using three different schedulers: the original STP solver used in the standard version of COLIN, the equivalent LP solved using CPLEX (IBM ILOG CPLEX Optimization Studio) and the equivalent LP solved using CLP (Lougee-Heimer, 2003). The STP solver used is the incremental STP algorithm due to Cesta and Oddi (1996), as previously used in CRIKEY3. Each of the LP solvers is used with the tighter variable bounds described in Section 8.4. In order to evaluate the cost associated with use of an LP instead of an STP, we modified COLIN to collect data revealing the costs for each technique applied at each node evaluated during the search for a plan. It is not possible to compare the performance straightforwardly, simply by running COLIN using an STP versus COLIN with an LP, because minor variations caused by numerical accuracy can lead to very different trajectories being followed, masking the intended comparison. As an aside, it is interesting to observe that minor (and essentially uncontrollable) differences in computed makespans for relaxed plans can lead to significant variations in performance (relaxed plans with equal _h_ -values are sorted by makespan estimates for search). As we wish to compare the STP and LP approaches, it is necessary to consider domains with which both can reason: that is, those without continuous-numeric or duration-dependent effects. In order to consider some problems for which scheduling is interesting and necessary (in contrast to the temporally simple problems of Section 12.1) we consider domains with required concurrency. Currently very few such benchmarks exist, as few planners attempt to solve such problems. We use representatives of the only competition domains with such features: the compiled ‘timed initial literal’ domains from IPC2004, from which we use Airport (with Time Windows) and PipesNoTankage (with deadlines). We also use the Match-Lift and Driverlog Shift domains (Halsey, 2005). For completeness, we include results for a domain in which the scheduler is not strictly necessary: the PipesNoTankage Temporal domain from IPC2004. Figure 19 shows the mean time spent scheduling per state, using each approach, on the problems from the above domains. We exclude from the graph data from any problems that were solved by the planner in less than a second, as the accuracy of the profiling data is not sufficiently reliable to measure the time spent in each scheduler when the overall time taken is small. Since there was no interesting variation in results between domains we present all data together across three graphs, sorted by scheduling time per node when using CPLEX. This is intended as a nominal analogue for how hard the scheduling problems in the given planning problem are. An increase in the scheduling time for CPLEX generally corresponds to an increase in the scheduling time for CLP and the STP solver, except on the easier problems where noise can be sufficient to tip the balance as the figures are small. Note the differing y-axis scales on the three graphs, sorting problems according to difficulty allows us to display the data with an appropriate y range to distinguish the results. For the sake of maintaining reasonable y-axis ranges the final problem, problem 60, has been omitted from the graphs; on this problem the figures were CPLEX 239ms, CLP 139ms and STP 38ms. The results in Figure 19 are, of course, not indicative of the scalability of COLIN, as it is running three schedulers at each state, so is significantly slower than in its usual configuration. In practice, in domains such as these with no continuous or duration dependent effects, COLIN will automatically 60 0.4 0.35 0.3 0.25 0.2 0.15 0.1 0.05 1.4 1.2 1 0.8 0.6 0.4 0.2 COLIN: PLANNING WITH CONTINUOUS CHANGE Low Difficulty STP CLP <u>CPLEX</u> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Problem Number Medium Difficulty STP CLP <u>CPLEX</u> 40 35 30 25 20 15 10 5 0 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Problem Number High Difficulty STP CLP CPLEX 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 Problem Number Figure 19: Mean Scheduling Time (MST) per State on Temporal Planning Problems. The problem number appears under the leftmost of the the three corresponding columns in each case. disable the LP scheduler and use the more efficient STP solver. Further, the planner is here being run with profiling enabled, so is subject to significant overheads. 61 COLES, COLES, FOX & LONG ������ �� ����� ��� ������ ����� ��� �� !"������#"$ ���� ���� ����� ���#��!���� ���� ���� ����� &��"���'�����(�'�) ����� ����� ���#�� ���� ���� �������� &�� )*')'�+ ���� ���� &���(,#��� ���� ���� &���(,���� ����� ������ - !"������#"$ ���� �� !"����2��#"$%#!"���������������������������� &�����(�'�)���� ����� ���������� &�����(�'�) ����� ���������� ����� ���� �������������������� ���� &��#��!���� ���� ���� ����-.#��** ��� ���� &���')&�����(�'�)/��'�-��/��(� ����� 0�����-.�0�'�� ���� ���� ���#���11�� ���� ������ ����� ������ �� ����� ��� ������ ����� ��� �� !"������#"$ ���� ���� ����� �� !"������#"$%# ���#��!���� ���� ���� ����� &��"���'�����(�'�) ����� ����� ���#�� ���� ���� �������� &�� )*')'�+ ���� ���� &���(,#��� ���� ���� &���(,���� ����� ������ - !"������#"$ ���� �� !"����2��#"$%#!"���������������������������� &�����(�'�)���� ����� ���������� &�����(�'�) ����� ���������� ����� ��� ������ �� !"����2���������� ��#"$%#!" ���������� ���������� �������������������� �� !"����2��#"$%#!"���������������������������� ����� ����� ������������ &��#��!���� ����-.#��** &���')&�����(�'�)/��'�-��/��(� 0�����-.�0�'�� ���#���11�� Figure 20: Time spent in various activities by each of the solvers, CPLEX and CLP, viewed as a pro portion of the total time spent by CPLEX. The slice labelled ‘ _∼_ MILPSolverCPX/CLP’ is time spent in the destructor for the MILP solver in CPLEX or CLP: this is a housekeeping operation in the implementations (which are both written in C++). Considering the relative performance of the STP and LP solvers, it is clear that there are overheads incurred by the necessary (for domains with continuous effects) move to using an LP rather than an STP. The mean ratio of time spent scheduling on the same problems by CPLEX to that spent using the STP solver is 5.81, the figure for CLP is 3.71. Analysis of the data suggests that these ratios do not change as problem difficulty increases, rather the overhead is a constant factor on harder problems. Despite increased scheduling overheads it is still worth noting that solving the scheduling problem is a relatively small fraction of the cost of the reasoning done at each state. Once the plan to a given state has been scheduled to check for feasibility the state is evaluated using the temporal RPG heuristic described in Section 9. It is well known, from analysis of the performance of FF and other forward search planners, that the majority of search time is spent in evaluating this heuristic. To give an indication of the relative cost of scheduling versus heuristic computation we give an admissible estimate of the mean fraction of the time spent, per-state, running the scheduler versus computing the heuristic. This estimate is guaranteed to overestimate the true mean because in some states the scheduler will demonstrate that the temporal problem has no solution: in such states the RPG heuristic will never be evaluated, so the heuristic evaluation is actually applied to fewer states than the scheduler. Nonetheless, our data shows that, across these problems, using the STP solver scheduling accounts for on average less than 5% of state evaluation time. For CLP and CPLEX the figures are 13% and 18% respectively. This suggests that, although scheduling does add some overhead to solving problems, these are relatively small compared to the cost of heuristic computation. A perhaps surprising observation that can be made from Figure 19 is that CLP generally solves the scheduling problems much more efficiently than CPLEX. Given the reputation of CPLEX as a highly efficient commercial LP solver we wanted to investigate why this is the case on our problems. 62 COLIN: PLANNING WITH CONTINUOUS CHANGE We performed a further analysis of the profiling data, breaking down the results by function call, to observe the time spent in the various aspects of constructing and solving an LP thorough the CLP and CPLEX library calls. The data, presented in Figure 20 shows the time spent in each function as a fraction of the total time taken by CPLEX to schedule plans (each summed across all problems). The ‘not used’ section in the CLP data represents the time saved using CLP versus CPLEX. This presentation means that equally sized slices of each of the ‘pies’ represent the same length of time being taken by either of the solvers in their respective methods. The important insight that we can gain from this data is that most of the time in both of the LP solvers is not spent in the solve function, indeed it can be observed that the search portion is negligible: it is barely visible. The majority of time is, in fact, spent in adding rows to the LP matrix, i.e. in adding constraints to the LP before it is actually solved. Comparing CPLEX to CLP, it takes over 6 times longer, on average, to add a row to the matrix. The LPs being created for both are identical, and hence involve adding the same number of rows to the matrix. The ’other’ portion of the chart corresponds to other methods, many of which also take longer than search, but that are again pre-processing steps such as adding new columns (variables) and setting upper bounds. Since adding rows to the matrix is a significant portion of the time taken in constructing-then-solving the LPs in COLIN, this results in a large overhead. The LPs created by COLIN are very small and simple to solve, compared with the difficult industrial-sized problems for which CPLEX is designed. Our results suggest that, in fact, the best type of LP solver to use for this task is a relatively light-weight LP solver, with few overheads, that can create models efficiently, even if perhaps it would not scale to other large-scale problems. The other notable, although less marked, difference between the two LP solvers is the time spent in the destructor, called to free up the memory used by the LP solver after each state has been evaluated. Here, it takes 23 times longer, on average, to call the destructor for CPLEX than the destructor for CLP. This has less impact than the rowadding overheads, since the LP is only deleted once per state, rather than once per LP constraint. In general, this would not normally be a noticeable issue when solving a single difficult LP. However, in COLIN, where the number of LPs solved is equal to the number of states evaluated, this overhead does become noticeable. One interesting outcome of this study is that if, in the future, COLIN were to be extended to non-linear continuous change, requiring the use of a mathematical programming solver at each state (along with other research developments), the overheads may well not be prohibitive. The search within the solver, which is where the greater overhead would occur due to this change, is in fact not the major contributor to the time overheads of using an LP. 13. Conclusions As the range of problems that can be solved effectively by planners grows, so does the range of opportunities for the technology to be applied to real problems. In recent years, planning has extended to solve problems with real temporal structure, requiring temporal coordination, problems that include metric resources and interactions between their use and the causal structure of plans. We have shown how that range can be extended still further, to include linear continuous process effects. Each extension of the power of planners demands several steps. The first is to model the extension in a form that allows the relationship between the constraints imposed on plans by the new expressiveness, and the actions that can be used to solve the problem, to be properly expressed. The second step is to develop a means by which to represent the world state consistently, in order 63 COLES, COLES, FOX & LONG to characterise the space in which the search for a plan is conducted. The third step is to develop a way to compute the progression of states using the action models in this extended representation. Once this step is complete, it is, in principle, possible to plan: a search space can be constructed and searched using classic simple search techniques. In practice, this process is unlikely to lead to solutions of many interesting problems so the fourth step, in order to make the search possible in large spaces, is to construct an informed heuristic to guide the search. In this paper we have built on earlier work that completed the first steps, adding the third and fourth steps that allow us to solve planning problems with continuous effects. The tools we have used to achieve this are well-established Operations Research tools: LP solvers and their extensions to MILP solvers. The contributions we have made are to show how these tools can be harnessed to check consistency of states, to model state progression and to compute heuristics that can successfully guide search in the large spaces that develop for these planning problems. An additional contribution is that we have established a collection of benchmark problems for this direction of research in planning. The planning community has witnessed that the creation of benchmarks and their propagation is a powerful aid in the development of the technology, supporting clear empirical evaluation and challenging researchers to improve on the results of others. We have shown that COLIN can solve interesting and complex problems, but there remains much room for improvement. Apart from extending the capability of the planner by improving the informedness of its heuristic and by improving the early pruning of dead end states, there is also the opportunity to extend still further the range of problems that can be expressed and solved. In particular, we are interested in problems with non-linear continuous effects, such as power and thermal curves. It seems possible that such non-linear effects might be approached by a similar approach to that used in COLIN, adapting a NLP solver to the same role as the LP solver in COLIN. Alternatively, it might be possible to approximate non-linear effects with piecewise linear effects, in much the same way that we did for the AUV domain described in this paper, but performing the process automatically. Planning is becoming an increasingly key technology as robotic systems become more powerful and more complex and we begin to see the limits of low level control strategies in managing the control of these systems. Autonomy demands more powerful predictive control and it is planning that offers possible solutions to this problem. Planning with continuous effects will be an important tool in the collection that we can offer in tackling these new demands. Acknowledgments The authors wish to thank the handling editor, Malte Helmert, and the anonymous reviewers for their considerable contributions to this paper. The authors also wish to thank members of our Planning Group for their helpful discussions during the long gestation of this work. The authors also wish to acknowledge the EPSRC for their support of this work, specifically through grants EP/G023360/2 and EP/H029001/2. 64 COLIN: PLANNING WITH CONTINUOUS CHANGE Appendix A. Glossary Name Description First Use _a ↓_ ( _i, v_ ) The lower bound on assignment effects on variable _v_ due to ac- 62 tions at layer _i_ in a reachability graph. _a ↑_ ( _i, v_ ) The upper bound on assignment effects on variable _v_ due to actions at layer _i_ in a reachability graph. _Action compression_ A technique for simplifying the structure of durative actions by treating them as a simple non-durative action with the union of the effects of both ends of the durative action and the union of their preconditions. _al_ Action layer in the reachability graph constructed for heuristic purposes. _ce_ ( _i_ ) Function returning the variable corresponding to the end time for a snap-action at position _i_ in the current plan. _cs_ ( _i_ ) Function returning the variable corresponding to the start time for a snap-action at position _i_ in the current plan. _dec_ ( _i, v_ ) Set of (discrete) decreasing effects on variable _v_ at layer _i_ in a reachability graph. D The rate of change of variable _v_ (associated with some state achieved during the execution of a plan. _dmin_ ( _dmax_ ) The minimum (maximum) duration of an action. We use _dmin_ ( _a_ ) ( _dmax_ ( _a_ )) where the relevant action is required to be explicit and _dmin_ ( _a, t_ ) ( _dmax_ ( _a, t_ )) where the value is anchored to an action in layer _al_ ( _t_ ). _E_ The event list recording action start times for durative actions whose end points have not yet been included in a plan. _eff_ <sup>+</sup> _x_ Propositional add effects of an action, where _x_, when present, in dicates whether at the start or end of the action. _eff_ <sup>_−_</sup> _x_ Propositional delete effects of an action, where _x_, when present, indicates whether at the start or end of the action. _eff_ <sup>_n_</sup> _x_ Numeric effects of an action, where _x_, when present, indicates whether at the start or end of the action. _estepi_ The name of the LP variable corresponding to the time at which a durative action will finish, having started as the _i_ th step in a plan, but not having finished within the plan constructed so far. _elapsed_ ( _a_ ) The maximum time for which action _a_ could have been executing in a state that is being heuristically evaluated. _f_ ( _i_ ) The variable in the STN in CRIKEY3 that corresponds to the time at which a currently incomplete action will eventually finish. 65 62 9 26 21 21 62 21 14 13 4 4 4 20 27 15 COLES, COLES, FOX & LONG Name Description First Use _fl_ Fact layer in the reachability graph constructed for heuristic pur- 26 poses. _inc_ ( _i, v_ ) Set of (discrete) increasing effects on variable _v_ at layer _i_ in a reachability graph. 62 _inv_ ( _S_ ) The invariants that are active in state _S_ . 14 _Left packing_ A structure of plans with concurrency in which all concurrent actions start simultaneously. _now_ The name of the variable created to represent the time at the end of the current plan in each STP or LP used to check temporal consistency of a state. _⟨op, i_ _, dmin, dmax_ _⟩_ Event record in a CRIKEY state, containing the durative action, _op_, that started at step _i_, and the minimum and maximum duration of the action. 39 15 14 _pre_ _⊣_ Conditions required to complete an action. 4 _pre_ _↔_ Invariant conditions of a durative action. 5 _pre_ _⊢_ Conditions required to initiate an action. 4 _p_ ( _a_ ) The bound on the number of instances of durative action _a_ that 28 may execute concurrently. _remaining_ ( _e_ ) The maximum amount of remaining time over which an action in event record _e_ could continue to be executing following a state being heuristically evaluated. _rem_ ( _t, a_ ) Information associated with durative action _a_ in _al_ ( _t_ ) in the reachability analysis constructed by COLIN, indicating how much time _a_ could continue to execute from this layer. _stepi_ The name of the LP variable corresponding to the time at which action _ai_ is applied in a plan. _t_ ( _i_ ) The variable in the STP in CRIKEY3 that represents the time at which step _i_ in a plan is to be executed. _Temporal coordination_ The property of planning problems that require some for of concurrency in order to manage the interactions between the actions or deadlines. _Time-dependent change_ Action effects that refer to ?duration, causing numeric fluents to change by different amounts according to the length of the action causing the effect. 66 28 33 20 14 39 2 COLIN: PLANNING WITH CONTINUOUS CHANGE Name Description First Use #t Used to describe continuous change: for a complete account 3 of its use and semantics, see original discussion on its use in PDDL2.1 (Fox & Long, 2003). _ub_ ( w _,_ x _,_ y ) Function used to calculate bounds on the effects of continuous numeric change. v Used to represent the vector of metric fluents associated with a planning domain, and their values in a state. The vector is treated as indexable: v [ _i_ ] is the _i_ th entry in v . v <sup>_′_</sup> The vector of values of metric fluents at the start of a state, immediately following step effects of application of an action. v _min,_ v _max_ The vectors of lower and upper bounds on the values of the numeric variables in a state (during plan construction). w Symbol used to represent a vector of constants of equal dimension to the size of the vector of metric fluents in the relevant planning problem. 67 29 5 21 24 5 COLES, COLES, FOX & LONG Appendix B. The Metric Relaxed Planning Graph Heuristic The Relaxed Planning Graph (RPG) heuristic of Metric-FF (Hoffmann, 2003) has been the most popular numeric planning heuristic over the last decade, being widely used in many planners. The intuition behind the heuristic is to generalise the ‘delete-relaxation’ to include numeric variables. In the case of propositions, the relaxation is to simply ignore propositional delete effects so, as (relaxed) actions are applied, the set of true propositions is non-decreasing. In the case of numbers, the relaxation replaces exact assignments to numeric variables with bound constraints for their upper and lower bounds. Applying relaxed actions extends the bounds by reducing lower bounds with decrease effects and increasing upper bounds with increase effects. Checking whether a numeric precondition is satisfied is then simply a matter of testing whether the constraint is satisfied by _some_ value within the bounds. The delete-relaxed problem can be solved (non-optimally) in polynomial time, and the number of actions in the resulting relaxed plan can then be taken as a heuristic estimate of the distance from the evaluated state to the goal. The purpose of the RPG is to support this heuristic computation. Relaxed planning is undertaken in two phases: graph expansion, and solution extraction. In the graph expansion phase the purpose is to build an RPG, identifying which facts and actions become reachable. The RPG consists of alternate _fact layers_, consisting of propositions that can hold and optimistic bounds on v, and _action_ _layers_, containing actions whose preconditions are satisfied in the preceding fact layer. In the case of propositional preconditions, a precondition is satisfied if the relevant fact is contained in the previous layer. In the case of numeric preconditions, these are satisfied if some assignment of the variables appearing in the precondition, consistent with the upper and lower bounds, lead to it being satisfied. We define the function _ub_ ( w _,_ x _,_ y ) as: - w [ _j_ ] _×_ y [ _j_ ] if w [ _j_ ] _≥_ 0 w [ _j_ ] _×_ x [ _j_ ] otherwise _ub_ ( w _,_ x _,_ y ) = w [ _j_ ] _∈_ w (this is the same function as is defined in Section 9.2). Then, denoting a fact layer _i_ as a set of propositions, _fl_ ( _i_ ), and upper and lower variable bounds ( v _min_ ( _i_ ) _,_ v _max_ ( _i_ )), a precondition w _·_ v _≥_ _c_ of an action in layer _i_ is considered true iff: _ub_ ( w _,_ v _min_ ( _i_ ) _,_ v _max_ ( _i_ )) _≥_ _c_ To seed graph construction, fact layer 0 contains all facts that are true in _S_ . Thus, action layer 0 consists of all actions whose preconditions are satisfied in fact layer 0. Fact layer 1 is then set to be the optimistic outcome of taking fact layer 0, and applying each of the actions in action layer 0. More formally, considering propositions, applying the actions in action layer _i_, i.e. the actions _al_ ( _i_ ) leads to a fact layer _i_ + 1 where: _fl_ ( _i_ + 1) = _fl_ ( _i_ ) _∪{eff_ <sup>+</sup> ( _a_ ) _| a ∈_ _al_ ( _i_ ) _}_ Considering numbers, in action layer _i_ the set of optimistic increase and decrease effects on a variable _v_ across all actions are, respectively: _inc_ ( _i, v_ ) = _{_ ( _ub_ ( w _,_ v _min_ ( _i_ ) _,_ v _max_ ( _i_ )) + _c_ ) _>_ 0 _| ∃a ∈_ _al_ ( _i_ ) s.t. _⟨v,_ += _,_ w _·_ v + _c⟩∈_ _eff_ <sup>_n_</sup> ( _a_ ) _}_ _dec_ ( _i, v_ ) = _{_ ( _ub_ ( w _,_ v _max_ ( _i_ ) _,_ v _min_ ( _i_ )) + _c_ ) _<_ 0 _| ∃a ∈_ _al_ ( _i_ ) s.t. _⟨v,_ += _,_ w _·_ v + _c⟩∈_ _eff_ <sup>_n_</sup> ( _a_ ) _}_ 68 COLIN: PLANNING WITH CONTINUOUS CHANGE The exchange of the minimum and maximum bounds for v in these two expressions is important: it causes each expression to be as extreme as possible in the appropriate direction. Similarly, the optimistic upper and lower bounds on _v_, following all available assignment effects, are: _a ↑_ ( _i, v_ ) = max _{_ ( _ub_ ( w _,_ v _min_ ( _i_ ) _,_ v _max_ ( _i_ )) + _c_ ) _| ∃a ∈_ _al_ ( _i_ ) s.t. _⟨v,_ = _,_ w _·_ v + _c⟩∈_ _eff_ <sup>_n_</sup> ( _a_ ) _}_ _a ↓_ ( _i, v_ ) = min _{_ ( _ub_ ( w _,_ v _max_ ( _i_ ) _,_ v _min_ ( _i_ )) + _c_ ) _| ∃a ∈_ _al_ ( _i_ ) s.t. _⟨v,_ = _,_ w _·_ v + _c⟩∈_ _eff_ <sup>_n_</sup> ( _a_ ) _}_ The new bounds then become: v _max_ ( _i_ + 1)[ _j_ ] = max _{a ↑_ ( _i,_ v [ _j_ ]) _,_ v _max_ ( _i_ )[ _j_ ] + - _inc_ ( _i,_ v [ _j_ ]) _}_ v _min_ ( _i_ + 1)[ _j_ ] = min _{a ↓_ ( _i,_ v [ _j_ ]) _,_ v _min_ ( _i_ )[ _j_ ] + - _dec_ ( _i,_ v [ _j_ ]) _}_ That is, to find the upper (lower) bounds of v [ _j_ ] at the next layer, for each we have a choice of applying the largest (smallest) single assignment effect, or the sum of all increase (decrease) effects. Having computed the bounds of all variables in layer _i_ + 1, graph expansion then continues iteratively, finding actions applicable in action layer _i_ + 1, and hence the facts in layer _i_ + 2, and so on. Graph expansion terminates in one of two cases: either a fact layer satisfies all propositional and numeric goals, or the addition of further layers would never lead to more preconditions being satisfied — a condition signalled when no new propositions are appearing and the accumulation of larger or smaller bounds on variables would not lead to any more numeric preconditions becoming satisfied. In this case, the relaxed problem cannot be solved and hence, in the original problem, no plan starting from _S_ can reach _G_ . The heuristic value of the state is then set to _∞_ . Assuming graph expansion terminates with all goals reached, the second phase is to extract a solution from the planning graph. This is a recursive procedure, regressing from the goals back to the initial fact layer. Each fact layer is augmented with a set of goals (facts or numeric preconditions) that are to be achieved at that layer. Beginning by inserting the top-level goals _G_ into the planning graph at the first layers at which they each appeared, solution extraction repeatedly picks the latest outstanding goal in the planning graph and selects a way to achieve it. For propositional goals, a single action (with an effect adding the goal) is chosen, and its preconditions are inserted as goals to be achieved (again, at the earliest possible layers). To satisfy the numeric goal w _·_ v _≥_ _c_ at layer _i_, actions with effects acting upon the variables (with non-zero coefficients) in v are chosen, until the net increase of w _·_ v, _k_, is sufficient to allow the residual precondition w _·_ v _≥_ _c −_ _k_ to be satisfied at fact layer _i −_ 1. At this point, this residual precondition is added as a goal to be achieved at layer _i −_ 1 (or earlier if possible), and the preconditions of all the actions chosen to support this precondition are added as goals to be achieved at previous layers. Solution extraction terminates when all outstanding goals are to be achieved in fact layer 0, since they are then true in the state being evaluated and need no supporting actions. The actions selected in solution extraction form the _relaxed plan_ from _S_ to the goal. The length (number of actions) of this relaxed plan forms the heuristic estimate, _h_ ( _S_ ). Additionally, the actions in the relaxed plan that were chosen from action layer 0 form the basis of the ‘helpful actions’ in _S_, used to restrict the states explored by enforced hill-climbing search: any action with an effect in common with the actions chosen from action layer 0 is considered to be helpful. 69 COLES, COLES, FOX & LONG Appendix C. Temporal Reasoning in Relaxed Planning Graphs Several approaches have been proposed for building temporal relaxed planning graphs (TRPGs). There are three additional features that TRPGs can attempt to manage, compared with RPGs: 1. The temporal structure of durative actions: _a⊣_ can only be applied if _a⊢_ has been applied before it. 2. Action durations: end effects of actions are only available at an appropriate delay after they have started. 3. The PDDL2.1 start–end semantics, allowing effects and preconditions to be attached to both the starts and ends of actions. The TRPG employed in Sapa (Do & Kambhampati, 2003) satisfies the first two of these, but not the third. In Sapa, each action is compressed into a temporally-extended action obeying the TGP semantics, before discarding delete effects, as a relaxation, and building a TGP-style planning graph (Smith & Weld, 1999). The use of compression and a time-stamped TGP representation captures durations and the start-before-end relationships, but the use of compression causes the heuristic to find false dead-ends in cases where there is required concurrency. The TRGP used in CRIKEY (Coles, Fox, Halsey et al., 2008) avoids action compression, but it ignores the durations of actions. A non-temporal RPG is built in terms of the snap-actions used during search, with an additional precondition on each end snap-action that a particular dummy fact, added by its corresponding start, has appeared in the preceding fact layer. The use of snap-actions means no preconditions or effects are lost (ensuring that the heuristic no longer identifies the false dead-ends created by the approach used in Sapa), but the limitation of the heuristic is that there is no forced separation between the start and and end of an action, but only an ordering constraint. In CRIKEY3 (Coles, Fox, Long et al., 2008a), the heuristic is constructed to combine the strengths of both of these earlier heuristics, accounting for the durations of actions, whilst also respecting the start–end semantics. We now briefly describe the construction of this TRPG, since it is the basis for the heuristic used in COLIN. The structure of the TRPG is similar to that constructed in Metric-FF, but instead of each fact layer being assigned an index, it is assigned a time-stamp (indicating the minimum amount of time that must pass after the initial layer before the facts in the layer in question can appear). To capture the durations of actions, we record, for each end action _a⊣_, the earliest layer _tmin_ ( _a⊣_ ) at which it can appear. This value is set to 0 for all actions that are already executing in the state being evaluated (as there is no need to first insert the start of the action into the RPG). For other actions, the value is initialised to _∞_, before commencing TRPG construction. To build a TRPG we follow Algorithm 2. First, a number of initialisation steps are performed. The time-zero fact layer _fl_ (0) is initialised (at line 1) to contain all the facts true in _S_ <sup>10</sup> . The set _ea_ is initialised to contain all the end snap-actions that must appear in the TRPG — if an action is executing, its end has to be reachable (i.e. appear in the TRPG), or else the state _S_ is a dead end. If _ea_ is empty, and _S_ satisfies the goals _G_ (line 14), then no TRPG need be built, since the plan is complete. Following initialisation, the TRPG is expanded, beginning with _t_ = 0 and using the fact layer _fl_ ( _t_ ) to determine the action layer _al_ ( _t_ ). If the preconditions of an action are satisfied in a fact layer 10. For simplicity we omit the handling of numeric fluents from this explanation — this is performed exactly as in the earlier description of the RPG heuristic implemented in Metric-FF. 70 COLIN: PLANNING WITH CONTINUOUS CHANGE <u>Algorithm 2</u> <u>:</u> <u>Building a Temporal RPG in</u> CRIKEY3. Data : _S_ = _⟨F, E, T_ _⟩_ - state to be evaluated Result : _R_ = _⟨fls, als⟩_, a relaxed planning graph 1 _fl_ (0) _←_ _F_ ; 2 _fls_ _←⟨fl_ (0) _⟩_ ; 3 _als_ _←⟨⟩_ ; 4 _t ←_ 0; 5 _ea ←∅_ ; 6 _prev_ _~~a~~_ _l_ _←∅_ ; 7 _prev_ _~~f~~_ _l_ _←_ _fl_ (0); 8 foreach _a⊣_ do 9 if _{e ∈_ _E_ _| e.op_ = _a}_ = _∅_ then 10 _tmin_ ( _a⊣_ ) _←∞_ ; 11 else 12 _tmin_ ( _a⊣_ ) _←_ 0; 13 _ea ←_ _ea ∪{a⊣}_ ; 14 if _G ⊆_ _fl_ (0) _∧_ _ea_ = _∅_ then return _‘S is a goal state’_ ; 15 while _t < ∞_ do 16 _fl_ ( _t_ + _ϵ_ ) _←_ _prev_ _~~f~~_ _l_ ; 17 _al_ ( _t_ ) _←{a⊣_ _| pre_ ( _a⊣_ ) _⊆_ _fl_ ( _t_ ) _∧_ _tmin_ ( _a⊣_ ) _≤_ _t}_ ; 18 foreach _a⊣_ _∈_ _al_ ( _t_ ) _−_ _prev_ _~~a~~_ _l_ do 19 _fl_ ( _t_ + _ϵ_ ) _←_ _fl_ ( _t_ + _ϵ_ ) _∪_ _eff_ <sup>+</sup> ( _a⊣_ ); 20 _al_ ( _t_ ) _←_ _al_ ( _t_ ) _∪{a⊢_ _| pre_ ( _a⊢_ ) _⊆_ _fl_ ( _t_ ) _}_ ; 21 foreach _a⊢_ _∈_ _al_ ( _t_ ) _−_ _prev_ _~~a~~_ _l_ do 22 _fl_ ( _t_ + _ϵ_ ) _←_ _fl_ ( _t_ + _ϵ_ ) _∪_ _eff_ <sup>+</sup> ( _a⊢_ ); 23 _tmin_ ( _a⊣_ ) = min[ _tmin_ ( _a⊣_ ) _, t_ + _dmin_ ( _a_ )]; 24 _als_ _←_ _als_ + _al_ ( _t_ ); 25 _fls_ _←_ _fls_ + _fls_ ( _t_ + _ϵ_ ); 26 _prev_ _~~a~~_ _l_ _←_ _al_ ( _t_ ); 27 if _G ⊆_ _fl_ ( _t_ + _ϵ_ ) _∧_ _ea ⊆_ _al_ ( _t_ ) then 28 return _R_ = _⟨fls, als⟩_ ; 29 if _prev_ _~~f~~_ _l̸_ = _fl_ ( _t_ + _ϵ_ ) then 30 _prev_ _~~f~~_ _l_ _←_ _fl_ ( _t_ + _ϵ_ ); 31 _t ←_ _t_ + _ϵ_ ; 32 else 33 _prev_ _~~f~~_ _l_ _←_ _fl_ ( _t_ + _ϵ_ ); 34 _ep_ = _{tmin_ ( _a⊣_ ) _| pre_ ( _a⊣_ ) _⊆_ _fl_ ( _t_ ) _∧_ _tmin_ ( _a⊣_ ) _> t}_ ; 35 if _ep̸_ = _∅_ then _t ←_ min[ _ep_ ]; 36 else _t ←∞_ ; 37 return _‘S is a dead end’_ ; 71 COLES, COLES, FOX & LONG _fl_ ( _t_ ) then whether it can appear in _al_ ( _t_ ) depends on whether it is a start or end snap-action. The first and simpler case (line 20) is that, if a start snap-action _a⊢_ is applicable, it is added to _al_ ( _t_ ) and _tmin_ ( _a⊣_ ) is set to _t_ + _dmin_ ( _a_ ), where _dmin_ ( _a_ ) is an _a priori_ lower bound on the duration of _a_ . If there is a state-independent measure of the minimum duration of _a_, i.e. a minimum duration constraint referring only to constants, then this is taken as the value of _dmin_ ( _a_ ). Otherwise, if all the minimum duration constraints depends on the state in which the action is applied, then _dmin_ ( _a_ ) = _ϵ_ : all that is certain is that _some_ time must elapse between the start and the end of the action. The state-dependent terms cannot be evaluated since the TRPG determines a relaxed state, not a real state. The second case, covering end snap-actions, is that if the preconditions of an end action _a⊣_ become satisfied in a fact layer _fl_ ( _t_ ), then addition of _a⊣_ to _al_ ( _t_ ) depends on whether the start of the action can have occurred sufficiently far in the past (line 17). If _t_ _≥_ _tmin_ ( _a⊣_ ) then _a⊣_ is added to _al_ ( _t_ ); if _t_ _<_ _tmin_ ( _a⊣_ ) _<_ _∞_, then _a⊣_ is postponed until _al_ ( _tmin_ ( _a⊣_ )); otherwise, the start of the action has yet to appear, and _a⊣_ is postponed until the relevant start appears. Having determined which actions newly appear in _al_ ( _t_ ), the fact layer _fl_ ( _t_ + _ϵ_ ) is updated as in the non-temporal RPG case, by taking _fl_ ( _t_ ) and (optimistically) applying the effects of all the actions in _al_ ( _t_ ). If _fl_ ( _t_ + _ϵ_ ) and _al_ ( _t_ ) do not contain the necessary goals and end snap-actions (line 27) then it must be decided which fact layer to consider next. Clearly, it is infeasible to create new fact layers at _ϵ_ spacing between _fl_ (0) and the fact layer at which the goals appear. Fortunately, it is also unnecessary, as many of the fact and action layers in such a graph would be identical. Instead, we determine the next fact layer to consider as follows: _•_ If there are new facts in _fl_ ( _t_ + _ϵ_ ) that were not true in _fl_ ( _t_ ) (line 29), the next layer to expand is _fl_ ( _t_ + _ϵ_ ) — the appearance of new and potentially useful facts makes it necessary to consider whether any actions become applicable in that layer. _•_ If _fl_ ( _t_ + _ϵ_ ) = _fl_ ( _t_ ), then we know that visiting _fl_ ( _t_ + _ϵ_ ) is futile. In this case (line 34), the time-stamp of the next fact layer to visit is the earliest future point at which the postponed end of an action becomes applicable: min _{tmin_ ( _a⊣_ ) _| pre_ ( _a⊣_ ) _⊆_ _fl_ ( _t_ ) _∧_ _tmin_ ( _a⊣_ ) _> t}_ If the minimum of these values is _∞_ (or undefined) then the state can be pruned and the procedure exits early, signalling the result to the search procedure. When a TRPG is successfully constructed (that is, if the starting state is not a dead end) the graph that is returned contains a finite set of fact and action layers, each associated with a real time value. Assuming graph expansion terminates with all goals reached, a relaxed solution is extracted. The solution extraction procedure used in Metric-FF needs one minor modification to be suitable for use in a TRPG: if the end of an action _a⊣_ is chosen to support a goal at a given fact layer, then if the action _a_ is not already executing in the state being evaluated, the corresponding start _a⊢_ must be scheduled for selection (at the layer in which it first appeared). The purpose of this corresponds to that of the dummy facts in CRIKEY: if the end of an action is chosen, its start must also be executed. As a final remark on this TRPG, timed initial literals (TILs) can be included by employing the machinery introduced to delay the ends of actions until an appropriate layer. If the dummy TIL actions _{TILj...TILm}_ have yet to be applied then _tmin_ ( _TILj_ ) = 0 _._ 0, since _TILj_ could be applied in the first action layer. The intuition here is that the state being evaluated is a snapshot of the world, 72 COLIN: PLANNING WITH CONTINUOUS CHANGE taken no earlier than after the end of the previous action, but no later than the point at which the next TIL event occurs (due to the constraints discussed in Section 6.1). The minimum timestamps for the later TILs, each _TILk_ _∈{TILj_ +1 _...TILm}_, are then set relative to this time point: _tmin_ ( _TILk_ ) = _ts_ ( _TILk_ ) _−_ _ts_ ( _TILj_ ) _._ Appendix D. Post-Hoc Plan Optimisation This appendix contains details of the MILP construction briefly described in Section 10.2. D.1 Optimising for Time Windows First let us consider the simple case where an action _do_ has a conditional effect on a metric-tracking variable reward (where the objective of the problem is to maximise reward), and where the effect occurs depends on the truth value of a single proposition _p_ at some time specifier _ts_ relative to the action _do_ (either at start, over all, or at end): (when ( _ts_ (p)) (at end (increase (reward) k))). In the case where _p_ can be manipulated by actions, without allowing the MILP to introduce new actions or completely change the order of the plan steps (with all the complexity these modifications would entail), there is little scope for optimisation. In the case where the truth value of _p_ is dictated by timed initial literals (TILs), we have a more interesting case: changing the time-stamps of the start or the end of _a_ (LP variables _stepi_ and _stepj_ ), so that the condition is or is not satisfied, has a direct effect on the metric function. This relationship can be encoded within the LP. By way of example, consider the case where _p_ becomes true at time _a_ and false at _b_ ; then, again, becomes true at _c_ and false at _d_ . In this case, we have two time-windows that could potentially satisfy the condition on the effect. Whether the action has to wholly or only partially within one of these windows depends on the time-specifier attached to _p_ : _•_ if _ts_ =at start, then _a⊢_ ( _stepi_ ) has to lie within one of the time windows; _•_ if _ts_ =at end, then _a⊣_ ( _stepj_ ) has to lie within one of the time windows; _•_ otherwise, _ts_ =over all, and both _a⊢_ and _a⊣_ have to lie within one of the time windows. In all three cases, the question that must be answered is ‘does the value of this variable lie within a known range?’ - the over all case requires a conjunction of two such conditions to hold and, in the other two cases, only one has to hold. For a given step variable _stepi_, and time window ( _a, b_ ), we can introduce into the (MI)LP a binary variable _switch_ _ab_ corresponding to such an observation, with constraints that take the logical form: _switch_ _ab_ _⇔_ ( _stepi_ _> a_ ) _∧_ ( _stepi_ _< b_ ) Thus, if the switch variable takes the value 1, the time-stamp of a point at which _p_ is needed must fall within the time-window [ _a, b_ ] and vice versa. By introducing two additional binary variables, denoted _ga_ and _lb_, this logical constraint can be represented as a series of inequalities (using _N_ to 73 denote a large number): COLES, COLES, FOX & LONG _stepi −_ ( _a_ + _ϵ_ ) _× switch_ _ab_ _≥_ 0 _−stepi_ + ( _b −_ _ϵ_ ) _× switch_ _ab_ _≥_ 0 _−stepi_ + _N_ _× ga_ _≥_ _−a_ _stepi −_ _N_ _× lb_ _≥_ _b_ _switch_ _ab −_ _ga −_ _lb_ _≥_ _−_ 1 The first two constraints encode the forwards implication: if _switch_ _ab_ is set to 1, then _stepi_ has to lie in the range [ _a_ + _ϵ, b −_ _ϵ_ ] (a non-zero amount of separation, here epsilon, is needed under the PDDL semantics to avoid inspecting the value of _p_ at the same time it is being changed by the TIL). The latter three constraints encode the reverse implication: if _stepi_ is strictly greater than _a_ and strictly less than _b_, then both of _ga_ and _lb_ have to hold the value 1 and thus, so does _switch_ _ab_ . Returning to our example, where the time specifier is over all, and the windows are ( _a, b_ ) and ( _c, d_ ), the constraints that will be added are: _switch_ _ab_ 1 _⇔_ ( _stepi_ _> a_ ) _∧_ ( _stepi_ _< b_ ) _switch_ _ab_ 2 _⇔_ ( _stepj_ _> a_ ) _∧_ ( _stepj_ _< b_ ) _switch_ _ab_ _⇔_ ( _switch_ _ab_ 1 _∧_ _switch_ _ab_ 2) _switch_ _cd_ 1 _⇔_ ( _stepi_ _> c_ ) _∧_ ( _stepi_ _< d_ ) _switch_ _cd_ 2 _⇔_ ( _stepj_ _> c_ ) _∧_ ( _stepj_ _< d_ ) _switch_ _cd_ _⇔_ ( _switch_ _cd_ 1 _∧_ _switch_ _cd_ 2) _switch_ _p_ _⇔_ ( _switch_ _ab ∨_ _switch_ _cd_ ) That is, _switch_ _ab_ is 1 if the entirety of the action _do_ falls within ( _a, b_ ), _switch_ _cd_ is 1 if it falls within ( _c, d_ ) and _switch_ _p_ is 1 if either of these hold. This final switch variable is used to capture the benefit of the effect itself: if it holds the value 1, we increase the value of _reward_ at the end of the plan by _k_, that is, we apply the conditional effect. The variable _reward_ will already appear in the objective function in the form of the LP variable _reward_ <sup>_′_</sup> _n_ <sup>, where</sup> <sup>_n_</sup> <sup>is the last step of the plan.</sup> Thus, we modify the constraints that define _reward_ <sup>_′_</sup> _n_ <sup>so that</sup> <sup>_k ×_</sup> <sup>_switch_</sup> <sup>_p_</sup> <sup>is added to this value.</sup> <sup>This</sup> change will then ensure that the variable providing the value of _reward_ in the objective function will include the reward of _k_ if the condition on the time at which _do_ was executed holds. Generalising, we can extend this to the case where the conditional effect depends on the truth of a formula _f_ consisting of a conjunction of time-specified propositional facts [( _ts_ 1 _p_ 1) _..._ ( _tsj pj_ )]. For each ( _tsi pi_ ) _∈_ _f_, we create constraints, as indicated above, so that the switch variable _switch_ _pi_ can only take the value 1 if _pi_ holds at the time-specifier _tsi_ . This gives us a list of switch variables _s_ = [ _switch_ _p_ 1 _...switch_ _pj_ ]. Then, to encode that in fact the conjunction _f_ must hold, we create a variable _switch_ _f_ and add the constraints: _−j × switch_ _f_ + 1 _.switch_ _p_ 1 + _..._ + 1 _.switch_ _pj_ _≥_ 0 _switch_ _f_ + _−_ 1 _.switch_ _p_ 1 + _..._ + _−_ 1 _.switch_ _pj_ _≥_ 1 _−_ _j_ Defined thus, _switch_ _f_ takes the value of 1 iff each of the switch variables in _s_ takes the value 1, which is precisely in the case that the conjunct is satisfied. Then, much as before, when updating the constraint dictating the value of the LP variable _reward_ <sup>_′_</sup> _n_ <sup>, we add</sup> <sup>_k × switch_</sup> <sup>_f_</sup> <sup>to this value.</sup> D.2 Optimising Numeric-Dependent Conditions Perhaps more complex than the case of time windows is where the conditions of a conditional effect depend on the values of the numeric variables in the domain. (The PDDL2.2 definition (Hoffmann 74 COLIN: PLANNING WITH CONTINUOUS CHANGE & Edelkamp, 2005) does not include the case where TILs change the values of numeric variables <sup>11</sup>, so we do not consider that case here.) In the simple case, the time-specifier of all the numeric conditions is either at start or at end. More complicated is the case where one or more of the time-specifiers is over all. In this case, potentially, all the snap-actions in the plan, between the start and end of the action to which the condition belongs, could affect whether or not the condition associated with the effect is met. We must therefore check the status of the condition at each such point during execution of the action. Suppose we have an action _O_, where _stepk_ and _stepl_ are the variables denoting the start and end time-stamps of the action, and where _O_ has a conditional effect with a numeric precondition in LNF: when (over all (>= ( w _·_ v ) c)) (at end (increase (reward) k)). To encode this, we need to add constraints to ensure that this conditional outcome occurs iff w _·_ v _≥_ _c_ at all times within _O_ . Since all change is linear, then (as with other over all conditions on _O_ ) we only need to check the values of the numeric variables immediately before and immediately after each action time step within _O_, and also immediately following the start and immediately before the end of _O_ itself. Thus, the variables corresponding to values of v that we must examine are those in the list: _e_ = [ v <sup>_′_</sup> _k_ <sup>_′_</sup> <sup>_,_</sup> <sup>v</sup> <sup>_k_</sup> <sup>+1</sup> <sup>_,_</sup> <sup>v</sup> _k_ <sup>_′_</sup> _k_ <sup>_′_</sup> +1 <sup>_, ...,_</sup> <sup>v</sup> <sup>_l−_</sup> <sup>1</sup> <sup>_,_</sup> <sup>v</sup> _l_ <sup>_′_</sup> _l_ <sup>_′_</sup> _−_ 1 <sup>_,_</sup> <sup>v</sup> <sup>_l_</sup> <sup>]</sup> <sup>_._</sup> As stated earlier, the case of at start/at end conditions is somewhat easier: for at start, _e_ = [ v _k_ ], and for at end, _e_ = [ v _l_ ]. Irrespective of the time specifier, on the basis of this list _e_, to capture whether the condition is met, adding a switch variable _switch_ to indicate whether the condition is met for all vectors, and switch variables [ _switch_ _t_ 1 _...switch_ _tn_ ] for each element [1 _..s_ ] of the list _e_, indicating whether it is met for that single vector. The constraints over these (where _ξ_ is a small number) are then: _∀_ w _.e_ [ _x_ ] _≥−N_ + ( _N_ + _c_ ) _× switch_ _x∈_ [1 _...s_ ] _∀_ w _.e_ [ _x_ ] _≤_ ( _c −_ _ξ_ ) + _N_ _× switch_ _tx_ _x∈_ [1 _...s_ ] _s × switch_ + _−_ 1 _.switch_ _t_ 0 + _..._ + _−_ 1 _.switch_ _ts_ _≥_ 1 _−_ _s._ The first quantification ensures that if _switch_ = 1, a lower bound of _c_ is imposed on w _·_ v for each element of _e_ . The second quantification ensures that if the vector v at index _x_ in _e_ satisfies w _·_ v _≥_ _c_, then the corresponding switch variable _switch_ _tx_ has to take the value 1. The third constraint ensures that if all such switch variables _switch_ _tx_ take the value 1, _switch_ must, too, be set to 1. Having appropriately constrained the _switch_ variable we can update the constraint governing the value of the LP variable _reward_ <sup>_′_</sup> _n_ <sup>(the value of</sup> <sup>_reward_</sup> <sup>at the end of the plan) to increase it by</sup> the value of _k × switch_ . D.3 Optimising Time-Dependent Conditions The final extension is to allow conditional effects to refer not only to the truth values of timed propositions, or the values of numeric variables, but also to the value of the duration of an action. 11. Timed Initial Fluents have been used in some domain models, as an unofficial extension to the language. The semantics of such an extension are as straightforward as Timed Initial Literals. 75 COLES, COLES, FOX & LONG This situation appears in our example airplane landing problem (Section 10.2) where the value _(total-cost)_ is updated by a conditional effect, of which both the condition and the effect depend on ?duration. We will consider this example in order to show how the MILP can be extended to handle such updates. First, as in the previous cases, we need to add constraints to ensure that if the MILP solver chooses to obtain the conditioned outcome of a conditioned effect, then the condition must be met. So, for the example, we introduce a new variable binary switch variable for each condition, and some new constraints. For the land action for a plane ?p, starting and finishing at time-stamps action as _stepn_ and _stepm_ respectively, we add a pair of constrained switch variables. For the sake of this example we give these the meaningful names _early_ and _late_ . The constraints that are added to the LP are then: target p _−_ _stepm_ + _stepn_ _≤_ _N_ _× early_ _stepm −_ _stepn_ _≤_ _N_ _−_ ( _N_ + _ϵ −_ target p) _× early_ _−_ target p + _stepm −_ _stepn_ _≤_ _N_ _× late_ _stepm −_ _stepn_ _≥_ (target p + _ϵ_ ) _× late_ These new constraints ensure that if the plane lands early, the variable _early_ has to take the value 1, and vice versa. Similarly, if it lands late, _late_ must take the value 1 and vice versa. In the case of our example, the conditional effects of the action are mutually exclusive, though this is not true in the general case. Having defined the _early_ and _late_ switch variables, the objective function for the MILP must be augmented to reflect the conditional outcomes of the action. Two terms must be added — one for each switch variable - for the effect obtained if the switch variable is 1. Abbreviating the terms earlyPenaltyRate, latePenaltyRate and latePenalty to epr, lpr and lp, respectively, the objective terms for plane _p_ are: _early_ _×_ (epr p) _×_ (target p _−_ ( _stepm −_ _stepn_ )) _late ×_ (lpr p) _×_ (( _stepm −_ _stepn_ ) _−_ target p) + _late ×_ (lp p) Note that unlike in the previous cases, this objective function is now quadratic: the objective contains terms where a switch variable is multiplied by both a constant and a _step_ variable. This arises as, unlike in previous cases, the conditional effect is duration dependent — not a fixed, constant value _k_ . Whilst this raises the computational cost of optimising the MILP, the cost is acceptable: it is only incurred once, after a solution plan has been found. Appendix E. Details of Empirical Evaluation of Colin The graphs presented here show the detailed runtime and quality comparisons analysed in Section 12. The comparative data is graphed. Since the graphs sometimes superimpose curves over one another, making it difficult to see how COLIN is performing, Tables 6–13 show the raw time and quality results for COLIN compared with average and best times and qualities for all problems. Best times and qualities are also reported with the corresponding quality or time (respectively) for that solution, and the planner(s) that generated the best result. 76 COLIN: PLANNING WITH CONTINUOUS CHANGE 1000 100 10 1 0.1 0.01 100 10 1 0.1 0.01 10000 1000 100 10 1 0.1 0.01 Depots Simple Time Colin LPG-TD LP ~~G.s~~ Sapa Temp-Baseline 5 10 15 20 Problem Number Rovers Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Zeno Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number 1000 100 10 1 0.1 0.01 100 10 1 0.1 0.01 Driverlog Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Satellite Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Figure 21: Comparison of time taken to solve problems in various simple temporal planning bench marks by the planners COLIN, LPG-td, LPG.s, Sapa and a temporal baseline planner. Planners not appearing in a particular dataset did not solve any of the problems in that collection. 77 COLES, COLES, FOX & LONG 600 500 400 300 200 100 0 400 350 300 250 200 150 100 50 0 7000 6000 5000 4000 3000 2000 1000 0 Depots Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 5 10 15 20 Problem Number Rovers Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Zeno Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number 3000 2500 2000 1500 1000 500 0 500 400 300 200 100 0 Driverlog Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Satellite Simple Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Figure 22: Comparison of plan quality in problems in various simple temporal planning bench marks by the planners COLIN, LPG-td, LPG.s, Sapa and a temporal baseline planner. Planners not appearing in a particular dataset did not solve any of the problems in that collection. 78 COLIN: PLANNING WITH CONTINUOUS CHANGE 100 10 1 0.1 0.01 100 10 1 0.1 0.01 Depots Time Colin LPG-TD LPG.s Sapa Temp-Baseline 5 10 15 20 Problem Number Rovers Time Colin LPG-TD LPG.s Sapa 2 4 6 8 10 12 14 16 18 20 Problem Number 10000 1000 100 10 1 0.1 0.01 1000 100 10 1 0.1 0.01 Driverlog Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Satellite Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Figure 23: Comparison of time taken to solve problems in more complex temporal planning bench marks (first set) by the planners COLIN, LPG-td, LPG.s, Sapa and a temporal baseline planner. Planners not appearing in a particular dataset did not solve any of the problems in that collection. 79 COLES, COLES, FOX & LONG 1000 100 10 1 0.1 0.01 10000 1000 100 10 1 0.1 0.01 Zeno Time Colin LPG-TD LPG.s Sapa 2 4 6 8 10 12 14 16 18 20 Problem Number Pipes No-Tankage Temporal Colin LPG-TD LPG.s Temp-Baseline 5 10 15 20 25 30 35 40 45 50 Problem Number 1000 100 10 1 0.1 0.01 10000 1000 100 10 1 0.1 0.01 Airport Strips Temporal Colin LPG-TD LPG.s Temp-Baseline 5 10 15 20 25 30 35 40 45 50 Problem Number Pipes Tankage Temporal Colin LPG-TD LPG.s Temp-Baseline 5 10 15 20 25 30 35 40 45 50 Problem Number Figure 24: Comparison of time taken to solve problems in more complex temporal planning bench marks (second set) by the planners COLIN, LPG-td, LPG.s, Sapa and a temporal baseline planner. Planners not appearing in a particular dataset did not solve any of the problems in that collection. 80 COLIN: PLANNING WITH CONTINUOUS CHANGE 2000 1500 1000 500 0 800 700 600 500 400 300 200 100 0 Depots Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Rovers Time Colin LPG-TD LPG.s Sapa 2 4 6 8 10 12 14 16 18 20 Problem Number 7000 6000 5000 4000 3000 2000 1000 0 1600 1400 1200 1000 800 600 400 200 0 Driverlog Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Satellite Time Colin LPG-TD LPG.s Sapa Temp-Baseline 2 4 6 8 10 12 14 16 18 20 Problem Number Figure 25: Comparison of plan quality in more complex temporal planning benchmarks (first set) by the planners COLIN, LPG-td, LPG.s, Sapa and a temporal baseline planner. Planners not appearing in a particular dataset did not solve any of the problems in that collection. 81 COLES, COLES, FOX & LONG 400 350 300 250 200 150 100 50 0 140 120 100 80 60 40 20 0 Zeno Time Colin LPG-TD LPG.s Sapa 2 4 6 8 10 12 14 16 18 20 Problem Number Pipes No-Tankage Temporal Colin LPG-TD LPG.s Temp-Baseline 5 10 15 20 25 30 35 40 45 50 Problem Number 1000 800 600 400 200 0 140 120 100 80 60 40 20 0 Airport Strips Temporal Colin LPG-TD LPG.s Temp-Baseline 5 10 15 20 25 30 35 40 45 50 Problem Number Pipes Tankage Temporal Colin LPG-TD LPG.s Temp-Baseline 5 10 15 20 25 30 35 40 45 50 Problem Number Figure 26: Comparison of plan quality in more complex temporal planning benchmarks (second set) by the planners COLIN, LPG-td, LPG.s, Sapa and a temporal baseline planner. Planners not appearing in a particular dataset did not solve any of the problems in that collection. 82 COLIN: PLANNING WITH CONTINUOUS CHANGE COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>depotssimpletime</u> 1 0.03 36.008 0.040 34.834 0.0 (28.000) LPG-td,TBL 28.000 (0.0) LPG-s+td 2 0.03 54.013 0.097 64.243 0.01 (54.11) TBL 46.090 (0.374) Sapa 3 13.69 170.037 3.462 110.817 0.02 (82.000) LPG-td 80.002 (0.11) LPG-s 4 11.67 82.031 3.097 74.818 0.04 (88.000) LPG-td 56.24 (0.42) TBL 5 1.620 131.250 0.11 (115.000) LPG-td 115.000 (0.11) LPG-td 6 103.400 171.002 1.51 (186.000) LPG-td 156.004 (205.29) LPG-s 7 2.56 51.024 0.677 59.049 0.01 (82.17) TBL 45.001 (0.11) LPG-s 8 0.223 95.784 0.09 (105.000) LPG-td 87.003 (0.48) LPG-s 9 0.625 213.300 0.29 (190.000) LPG-td 190.000 (0.29) LPG-td 10 1.39 90.025 4.100 81.465 0.03 (88.2) TBL 52.000 (0.05) LPG-td 11 7.933 212.845 0.26 (152.000) LPG-td 152.000 (0.26) LPG-td 12 5.880 188.251 0.62 (133.000) LPG-td 133.000 (0.62) LPG-td 13 0.17 85.026 0.475 79.265 0.02 (82.17) TBL 64.001 (0.33) LPG-s 14 0.400 83.767 0.1 (107.3) TBL 64.001 (0.96) LPG-s 15 2.655 212.502 0.45 (186.000) LPG-td 186.000 (0.45) LPG-td 16 0.25 99.025 0.928 85.273 0.04 (98.18) TBL 46.000 (0.08) LPG-td 17 0.48 61.016 2.716 55.261 0.23 (61.000) LPG-td 28.050 (10.728) Sapa 18 3.217 109.144 1.03 (117.43) TBL 105.000 (1.04) LPG-td 19 0.517 118.787 0.14 (164.36) TBL 94.000 (0.19) LPG-td 20 10.443 238.291 0.75 (209.000) LPG-td 101.002 (27.84) LPG-s 21 1.69 96.029 17.448 85.872 0.19 (90.18) TBL 73.000 (0.56) LPG-td <u>22</u> <u>54.667</u> <u>406.609</u> <u>8.95 (536.000)</u> LPG-td <u>329.007 (111.46)</u> LPG-s <u>driverlogsimpletime</u> 1 0.02 92.006 0.024 96.025 0.0 (91.05) TBL 91.001 (0.04) LPG-s 2 0.16 169.021 0.166 127.460 0.01 (110.19) LPG-td,TBL 104.001 (0.03) LPG-s 3 0.04 67.012 0.039 59.215 0.01 (40.04) LPG-s,TBL 40.02 (0.116) Sapa 4 0.25 129.018 0.150 112.460 0.01 (110.15) TBL 99.001 (0.02) LPG-s 5 0.11 106.017 0.223 92.054 0.01 (83.17) LPG-td,TBL 75.08 (0.957) Sapa 6 0.09 114.011 0.241 93.031 0.02 (74.000) LPG-td 64.070 (0.963) Sapa 7 0.05 58.011 0.086 63.838 0.01 (51.09) TBL 49.090 (0.3) Sapa 8 0.19 151.023 0.238 153.071 0.01 (167.24) TBL 77.090 (0.869) Sapa 9 0.42 213.026 0.301 204.692 0.04 (232.26) LPG-td,TBL 150.002 (0.13) LPG-s 10 0.04 84.021 0.131 93.645 0.01 (71.11) TBL 49.090 (0.404) Sapa 11 0.04 108.019 0.153 104.058 0.01 (119.18) TBL 85.090 (0.474) Sapa 12 3.22 380.041 1.012 339.586 0.05 (274.3) TBL 274.3 (0.05) TBL 13 1.09 283.039 0.650 274.338 0.31 (299.000) LPG-td 240.003 (0.76) LPG-s 14 1.45 240.036 1.790 291.536 0.24 (391.000) LPG-td 163.22 (4.388) Sapa 15 0.25 283.043 3.299 278.920 0.14 (278.34) TBL 157.210 (13.457) Sapa 16 112.980 1849.014 50.78 (1510.000) LPG-td 1510.000 (50.78) LPG-td 17 7.133 790.049 1.86 (1052.000) LPG-td 653.008 (16.28) LPG-s 18 64.420 644.560 21.03 (869.000) LPG-td 361.67 (79.06) TBL 19 47.080 1478.000 47.08 (1478.000) LPG-td 1478.000 (47.08) LPG-td <u>20</u> <u>6.190</u> <u>478.000</u> <u>6.19 (478.000)</u> LPG-td <u>478.000 (6.19)</u> LPG-td Table 6: Results for Simple Domains: Best results show best time (corresponding quality) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. TBL is the Temporal Baseline planner in this and following tables. 83 COLES, COLES, FOX & LONG COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>roverssimpletime</u> 1 0.02 67.007 0.032 72.834 0.0 (67.08) TBL 67.007 (0.02) COLIN 2 0.02 48.006 0.030 48.223 0.01 (47.06) TBL 45.000 (0.02) LPG-s 3 0.02 73.01 0.040 76.238 0.0 (77.000) LPG-td 67.089993 (0.15) Sapa 4 0.02 50.005 0.030 51.621 0.01 (50.06) TBL 45.039997 (0.081) Sapa 5 0.04 126.014 0.220 131.461 0.01 (107.15) LPG-td,TBL 107.15 (0.01) TBL 6 0.09 186.028 0.058 229.580 0.01 (277.000) LPG-td 183.29 (0.02) TBL 7 0.04 107.013 0.146 97.851 0.01 (98.13) TBL 91.001 (0.04) LPG-s 8 0.06 119.018 0.247 131.066 0.02 (113.19) TBL 113.19 (0.02) TBL 9 0.09 176.028 0.148 166.296 0.02 (159.000) LPG-td,TBL 156.18999 (0.508) Sapa 10 0.11 155.019 5.110 158.878 0.02 (141.23) TBL 139.14 (25.24) Sapa 11 0.11 161.025 0.085 179.322 0.02 (185.26) TBL 161.025 (0.11) COLIN 12 0.05 103.014 0.253 112.041 0.01 (90.11) TBL 88.08 (1.035) Sapa 13 0.22 198.029 1.565 227.708 0.06 (190.33) TBL 173.17998 (6.716) Sapa 14 0.12 170.021 0.239 157.483 0.02 (145.22) TBL 139.000 (0.04) LPG-td 15 0.21 208.038 0.671 207.310 0.04 (215.29) TBL 175.21999 (2.776) Sapa 16 0.26 203.032 1.464 208.513 0.04 (242.000) LPG-td 186.20998 (6.67) Sapa 17 0.23 267.036 1.992 255.936 0.11 (259.000) LPG-td 218.22993 (9.01) Sapa 18 0.49 217.039 2.158 170.494 0.1 (160.000) LPG-td 140.28 (0.15) TBL 19 0.72 339.047 1.058 319.138 0.23 (319.000) LPG-td 297.5 (0.38) TBL <u>20</u> <u>9.51</u> <u>392.063</u> <u>4.317</u> <u>380.932</u> <u>0.49 (351.000)</u> LPG-td <u>351.000 (0.49)</u> LPG-td <u>satellitesimpletime</u> 1 0.01 41.008 0.022 43.032 0.0 (46.07) TBL 41.000 (0.01) LPG-td 2 0.01 65.012 0.042 66.310 0.01 (65.012) COLIN,TBL 65.000 (0.02) LPG-td 3 0.02 50.01 0.049 45.040 0.01 (58.09) TBL 29.000 (0.02) LPG-td 4 0.04 87.019 0.080 78.268 0.01 (58.000) LPG-td,TBL 58.000 (0.01) LPG-td 5 0.05 74.016 0.103 75.259 0.01 (82.13) TBL 61.001 (0.09) LPG-s 6 0.07 72.019 0.128 72.846 0.01 (58.09) TBL 58.09 (0.01) TBL 7 0.09 72.022 0.179 67.655 0.02 (75.12) TBL 46.001 (0.13) LPG-s 8 0.14 84.024 0.266 73.267 0.03 (41.000) LPG-td,TBL 41.000 (0.03) LPG-td 9 0.21 95.028 0.517 70.866 0.04 (58.000) LPG-td,TBL 51.001 (0.33) LPG-s 10 0.26 101.029 0.563 79.678 0.05 (63.000) LPG-td 63.000 (0.05) LPG-td 11 0.37 113.031 0.806 90.667 0.07 (72.000) LPG-td,TBL 72.000 (0.07) LPG-td 12 2.49 137.041 2.183 119.533 0.11 (98.000) LPG-td 98.000 (0.11) LPG-td 13 13.38 214.061 8.604 165.517 0.2 (208.000) LPG-td 99.002 (2.75) LPG-s 14 5.11 166.039 4.859 111.078 0.13 (68.000) LPG-td 68.000 (0.13) LPG-td 15 6.47 183.056 10.845 152.335 0.17 (183.000) LPG-td 58.001 (2.54) LPG-s 16 5.78 170.045 13.916 143.923 0.23 (137.000) LPG-td 73.002 (4.12) LPG-s 17 4.52 133.041 16.070 124.495 0.21 (142.000) LPG-td 92.002 (4.29) LPG-s 18 0.82 107.031 2.084 93.269 0.1 (101.000) LPG-td 75.002 (1.42) LPG-s 19 27.98 349.075 9.740 170.718 0.17 (130.000) LPG-td 114.003 (2.57) LPG-s <u>20</u> <u>9.739</u> <u>231.793</u> <u>0.26 (196.000)</u> LPG-td <u>137.24 (31.225)</u> <u>Sapa</u> Table 7: Results for Simple Domains: Best results show best time (corresponding quality) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 84 COLIN: PLANNING WITH CONTINUOUS CHANGE COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>zenosimpletime</u> 1 0.01 173.001 0.016 178.602 0.0 (180) TBL 173.001 (0.01) COLIN 2 0.02 592.008 0.033 666.022 0.01 (866.05) TBL 592.008 (0.02) COLIN 3 0.02 350.007 0.047 356.619 0.01 (280.04) TBL 280.04 (0.01) TBL 4 0.04 885.013 0.062 1226.041 0.01 (936.000) LPG-td,TBL 885.013 (0.04) COLIN 5 0.03 656.011 0.121 868.832 0.0 (400.06) TBL 400.06 (0.0) TBL 6 0.05 995.016 0.191 1456.434 0.01 (603.06) TBL 603.06 (0.01) TBL 7 0.08 931.014 0.218 1006.035 0.01 (706.08) TBL 706.08 (0.01) TBL 8 0.15 895.013 0.440 869.291 0.02 (836.07) TBL 836.07 (0.02) TBL 9 0.31 1583.027 1.021 1268.456 0.03 (789.12) TBL 789.12 (0.03) TBL 10 0.12 1191.022 0.696 1461.053 0.03 (743.13) TBL 743.13 (0.03) TBL 11 0.26 796.015 1.785 823.433 0.03 (763.1) TBL 510.050 (8.037) Sapa 12 0.3 1208.027 1.900 1617.856 0.03 (1199.13) TBL 1166.120 (8.568) Sapa 13 6.19 2062.04 5.261 1303.254 0.03 (923.14) TBL 923.14 (0.03) TBL 14 360.254 1577.821 0.3 (2068.18) TBL 1169.100 (1433.534) Sapa 15 19.48 2836.051 10.105 2561.808 0.46 (2254.18) TBL 2254.18 (0.46) TBL 16 477.47 3173.045 127.658 2394.072 0.86 (1702.24) TBL 1702.24 (0.86) TBL 17 759.19 4947.071 246.098 5232.603 2.36 (3436.34) TBL 3436.34 (2.36) TBL 18 43.737 2983.101 2.61 (3453.3) TBL 2383.003 (121.90) LPG-s 19 48.95 4309.079 22.740 5043.146 8.91 (3769.36) TBL 3769.36 (8.91) TBL <u>20</u> <u>163.2</u> <u>5364.096</u> <u>59.687</u> <u>5315.165</u> <u>6.43 (4578.4)</u> <u>TBL</u> <u>4578.4 (6.43)</u> <u>TBL</u> Table 8: Results for Simple Domains: Best results show best time (corresponding quality) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 85 COLES, COLES, FOX & LONG COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>airportstripstemporal</u> 1 0.06 64.007 0.030 64.026 0.01 (64.07) TBL 64.000 (0.02) LGP-td 2 0.06 185.008 0.030 185.022 0.01 (185.000) LGP-td,TBL 185.000 (0.01) LGP-td 3 0.09 202.011 0.040 200.533 0.01 (200.12) TBL 200.000 (0.03) LGP-td 4 0.30 127.019 0.120 127.070 0.02 (127.19) TBL 127.000 (0.04) LGP-td 5 0.26 227.02 0.103 227.055 0.02 (227.2) TBL 227.000 (0.05) LGP-td 6 0.30 301.04 0.130 251.363 0.02 (240.41) TBL 232.000 (0.07) LGP-td 7 0.30 301.04 0.130 251.363 0.02 (240.41) TBL 232.000 (0.07) LGP-td 8 0.52 538.059 0.237 432.165 0.06 (402.6) TBL 394.000 (0.09) LGP-td 9 1.40 516.058 1.672 433.918 0.10 (402.000) LGP-td 402.000 (0.10) LGP-td 10 0.33 126.017 0.130 126.062 0.01 (126.17) TBL 126.000 (0.05) LGP-td 11 0.35 228.02 0.135 228.055 0.02 (228.2) TBL 228.000 (0.07) LGP-td 12 0.36 265.035 0.155 239.352 0.02 (228.37) TBL 228.37 (0.02) TBL 13 0.44 311.034 0.170 254.852 0.03 (237.37) TBL 230.002 (0.14) LGP-s 14 0.71 528.057 0.465 426.657 0.07 (390.57) TBL 390.57 (0.07) TBL 15 0.58 365.049 0.257 357.633 0.06 (273.48) TBL 273.48 (0.06) TBL 16 1.68 625.076 2.738 536.440 0.14 (558.000) LGP-td 404.68 (0.24) TBL 17 11.47 603.084 6.093 542.947 0.61 (569.000) LGP-td 417.7 (2.16) TBL 18 58.89 777.095 25.983 652.658 0.25 (733.000) LGP-td 447.88 (18.81) TBL 19 38.65 574.076 226.607 453.467 0.50 (413.000) LGP-td 413.000 (0.50) LGP-td 20 66.563 643.625 0.27 (740.000) LGP-td 450.87 (55.03) TBL 21 21.65 366.1 80.240 305.519 0.33 (285.97) TBL 285.000 (0.77) LGP-td 22 22.52 487.147 6.178 428.104 0.78 (286.26) TBL 286.26 (0.78) TBL 23 23.68 510.166 6.425 369.363 0.49 (265.28) TBL 264.004 (510.166) LGP-s 24 31.00 826.156 8.307 493.835 0.61 (377.18) TBL 376.003 (826.156) LGP-s 25 90.81 934.204 34.577 650.231 2.47 (539.000) LGP-td 477.49 (10.45) TBL 26 53.480 480.785 3.88 (584.000) LGP-td 377.57 (103.08) TBL 27 5.190 511.111 7.50 (505.33) TBL 504.004 () LGP-s 28 94.760 623.910 7.53 (706.000) LGP-td 541.82 (181.99) TBL 29 94.955 596.410 4.47 (687.000) LGP-td 505.82 (185.44) TBL 30 5.420 641.000 5.42 (641.000) LGP-td 641.000 (5.42) LGP-td 31 6.820 834.000 6.82 (834.000) LGP-td 834.000 (6.82) LGP-td 32 443.075 724.570 7.78 (815.000) LGP-td 634.14 (878.37) TBL 33 14.950 859.000 14.95 (859.000) LGP-td 859.000 (14.95) LGP-td 34 15.710 879.000 15.71 (879.000) LGP-td 879.000 (15.71) LGP-td 35 17.110 887.000 17.11 (887.000) LGP-td 887.000 (17.11) LGP-td 36 46.83 408.108 16.063 350.705 1.36 (322.000) LGP-td 322.000 (1.36) LGP-td 37 78.05 672.136 36.820 620.047 32.41 (831.000) LGP-td 357.006 (672.136) LGP-s 38 49.89 847.217 17.833 580.741 3.61 (573.000) LGP-td 322.006 (847.217) LGP-s 39 476.650 962.000 476.65 (962.000) LGP-td 962.000 (476.65) LGP-td 40 91.395 510.004 182.79 (584.000) LGP-td 436.007 () LGP-s 41 52.64 895.241 24.803 596.749 21.77 (573.000) LGP-td 322.006 (895.241) LGP-s 42 841.960 579.000 841.96 (579.000) LGP-td 579.000 (841.96) LGP-td 43 35.450 639.506 70.90 (573.000) LGP-td 573.000 (70.90) LGP-td 44 701.750 331.000 701.75 (331.000) LGP-td 331.000 (701.75) LGP-td <u>46</u> <u>289.270</u> <u>737.000</u> <u>289.27 (737.000)</u> LGP-td <u>737.000 (289.27)</u> LGP-td Table 9: Results for More Complex Domains: Best results show best time (corresponding qual ity) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 86 COLIN: PLANNING WITH CONTINUOUS CHANGE COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>depotstime</u> 1 0.03 59.746 0.036 57.698 0.00 (58.9311) TBL 55.181 (0.01) LGP-td 2 0.14 66.79 0.103 71.719 0.01 (73.2211) TBL 60.556 (0.02) LGP-td 3 0.087 141.362 0.03 (127.592) TBL 127.592 (0.03) TBL 4 67.41 258.125 17.043 186.587 0.04 (160.139) LGP-td 160.139 (0.04) LGP-td 5 2.970 781.855 2.82 (786.1666) LGP-td 777.544 (3.12) TBL 6 2.350 287.543 2.35 (287.543) LGP-td 287.543 (2.35) LGP-td 7 35.56 129.741 8.933 141.337 0.02 (142.158) TBL 107.340 (0.12) LGP-s 8 0.240 119.161 0.10 (108.3988) LGP-td,TBL 108.399 (0.10) LGP-td 9 0.650 1783.468 0.33 (1911.6665) LGP-td 1655.27 (0.97) TBL 10 43.34 296.354 11.027 226.698 0.03 (294.293) TBL 151.173 (11.364) Sapa 11 1.020 726.121 0.32 (608.9167) LGP-td 599.323 (1.42) LGP-s 12 5.387 163.032 0.46 (165.5889) LGP-td 132.893 (4.33) LGP-s 13 0.27 108.493 0.417 99.751 0.02 (104.436) TBL 82.834 (1.373) Sapa 14 0.427 216.623 0.10 (329.133) TBL 157.701 (1.02) LGP-s 15 2.290 399.697 0.42 (416.4197) LGP-td 382.973 (4.16) LGP-s 16 0.60 50.588 4.754 76.900 0.03 (166.236) TBL 26.390 (0.56) LGP-s 17 1.977 87.495 0.19 (88.26) TBL 46.2 (0.20) LGP-td 18 3.077 535.942 0.75 (709.8509) LGP-td 395.768 (0.89) TBL 19 0.520 428.210 0.14 (486.722) TBL 366.474 (1.22) LGP-s 20 3.743 880.639 0.93 (1050.2797) LGP-td 592.561 (7.98) LGP-s 21 2.08 76.753 9.693 71.388 0.16 (101.373) TBL 54.731 (36.794) Sapa <u>22</u> <u>47.470</u> <u>445.232</u> <u>3.86 (343.1095)</u> LGP-td <u>343.110 (3.86)</u> LGP-td <u>driverlogtime</u> 1 0.02 303.006 0.017 302.625 0.00 (302.05) TBL 302 (0.01) LGP-td 2 0.17 462.019 0.178 442.260 0.01 (438.19) LGP-td,TBL 294.090 (0.678) Sapa 3 0.03 202.009 0.044 279.018 0.01 (173.06) TBL 173.020 (0.131) Sapa 4 0.14 474.019 0.128 453.060 0.01 (441.15) TBL 402.001 (0.04) LGP-s 5 0.20 343.019 0.249 250.058 0.01 (195.18) TBL 161.090 (0.973) Sapa 6 0.03 275.007 0.280 266.432 0.02 (260) LGP-td 260 (0.02) LGP-td 7 0.12 316.012 0.072 350.041 0.01 (268.1) LGP-td,TBL 268.1 (0.01) TBL 8 0.43 699.024 0.361 695.275 0.01 (894.24) TBL 388.110 (1.244) Sapa 9 0.57 730.028 0.193 748.078 0.02 (591) LGP-td 591 (0.02) LGP-td 10 0.21 294.031 0.159 328.450 0.01 (394.11) TBL 220.110 (0.415) Sapa 11 0.16 522.026 0.181 515.068 0.01 (512.18) TBL 306.13 (0.486) Sapa 12 5.90 1066.038 233.369 1230.325 0.05 (829.32) TBL 627.260 (1151.634) Sapa 13 2.84 1052.031 1.743 1218.305 0.32 (903) LGP-td 597.180 (4.193) Sapa 14 6.51 787.034 3.248 1125.322 0.41 (1161) LGP-td 625.150 (7.34) Sapa 15 0.27 212.042 59.469 766.155 0.10 (939.43) TBL 212.042 (0.27) COLIN 16 66.385 5120.504 28.03 (3652.0081) LGP-s 3652.008 (28.03) LGP-s 17 9.580 2787.062 3.31 (2238) LGP-td 2238 (3.31) LGP-td 18 48.780 2319.229 27.48 (2885) LGP-td 1476.68 (78.94) TBL 19 110.925 4005.005 63.87 (3993) LGP-td 3993 (63.87) LGP-td <u>20</u> <u>41.060</u> <u>3828.003</u> <u>15.56 (5965)</u> LGP-td <u>1691.007 (66.56)</u> LGP-s Table 10: Results for More Complex Domains: Best results show best time (corresponding qual ity) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 87 COLES, COLES, FOX & LONG COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>pipesnotankagetemporal</u> 1 0.03 6.003 0.015 7.506 0.00 (6.02) TBL 6.000 (0.01) LGP-td 2 0.04 20.011 0.058 51.526 0.01 (20.09) TBL 20.011 (0.04) COLIN 3 0.05 12.008 0.040 17.520 0.01 (16.07) TBL 12.008 (0.05) COLIN 4 0.07 22.012 0.058 83.021 0.01 (16.07) TBL 16.07 (0.01) TBL 5 0.05 14.006 0.043 13.017 0.01 (12.000) LGP-td,TBL 12.000 (0.01) LGP-td 6 0.05 16.009 0.060 24.023 0.01 (18.08) TBL 16.009 (0.05) COLIN 7 0.06 12.007 0.075 16.015 0.01 (12.05) TBL 12.007 (0.06) COLIN 8 0.06 16.009 0.100 16.520 0.03 (18.000) LGP-td 16.001 (0.19) LGP-s 9 0.08 24.013 0.113 29.026 0.02 (20.09) TBL 20.09 (0.02) TBL 10 0.08 28.015 0.120 36.037 0.02 (28.13) TBL 28.015 (0.08) COLIN 11 0.16 11.026 300.430 9.544 0.05 (8.15) TBL 8.15 (0.05) TBL 12 1.77 22.554 302.110 16.971 0.28 (17.33) TBL 11.002 (1200.92) LGP-s 13 0.27 16.535 0.745 15.687 0.05 (11.21) TBL 11.21 (0.05) TBL 14 0.38 14.532 0.380 14.446 0.15 (14.000) LGP-td 13.25 (0.99) TBL 15 0.14 11.526 0.785 16.700 0.12 (14.27) TBL 11.526 (0.14) COLIN 16 6.78 30.07 2.667 31.401 0.48 (40.000) LGP-td 27.53 (3.41) TBL 17 4.25 11.023 1.143 10.544 0.09 (8.15) TBL 8.002 (11.023) LGP-s 18 1.08 12.529 0.900 18.221 0.20 (18.35) TBL 12.529 (1.08) COLIN 19 0.19 9.525 0.247 9.898 0.11 (9.17) TBL 9.17 (0.11) TBL 20 0.46 17.039 7.977 26.681 0.46 (0.46) COLIN 14.003 (17.039) LGP-s 21 0.09 9.017 0.080 9.062 0.02 (9.17) TBL 9.000 (0.13) LGP-td 22 2.975 36.700 2.05 (23.4) TBL 23.4 (2.05) TBL 23 0.19 14.018 0.240 21.340 0.19 (14.018) COLIN 14.018 (0.19) COLIN 24 40.46 29.032 27.015 101.016 13.57 (173.000) LGP-td 29.032 (40.46) COLIN 25 4.850 32.165 1.12 (42.000) LGP-td 22.33 (8.58) TBL 26 1.89 32.053 4.140 28.148 1.46 (27.39) TBL 25.000 (9.07) LGP-td 27 0.29 11.527 1.613 13.572 0.29 (11.527) COLIN 10.19 (0.48) TBL 28 0.77 22.551 16.697 42.977 0.77 (22.551) COLIN 22.551 (0.77) COLIN 29 2.46 21.546 5.560 18.272 0.34 (14.27) TBL 14.27 (0.34) TBL 30 4.665 32.205 1.39 (27.41) TBL 27.41 (1.39) TBL 31 9.21 18.357 3.240 16.098 0.17 (16.9367) TBL 13.000 (0.34) LGP-td 32 13.01 35.038 4.485 51.504 0.89 (17.31) TBL 17.31 (0.89) TBL 33 10.53 21.874 10.530 21.874 10.53 (21.874) COLIN 21.874 (10.53) COLIN 34 20.52 30.709 34.070 39.582 1.40 (23.370033) TBL 23.370033 (1.40) TBL 35 24.200 17.334 48.40 (24.000) LGP-td 10.669 () LGP-s 36 78.245 18.078 6.49 (21.156633) TBL 15.000 (150.00) LGP-td 37 31.760 36.000 31.76 (36.000) LGP-td 36.000 (31.76) LGP-td 38 64.855 12.822 0.32 (13.6433) TBL 12.000 (129.39) LGP-td 39 1.19 13.857 0.967 18.356 0.17 (12.21) TBL 12.21 (0.17) TBL 40 10.410 34.665 10.41 (34.665) LGP-td 34.665 (10.41) LGP-td 41 103.46 4.43 34.820 4.173 0.10 (4.09) TBL 4.000 (0.90) LGP-td 49 346.235 16.493 2.15 (16.32) TBL 16.32 (2.15) TBL <u>50</u> <u>15.400</u> <u>18.380</u> <u>15.40 (18.38)</u> <u>TBL</u> <u>18.38 (15.40)</u> <u>TBL</u> Table 11: Results for More Complex Domains: Best results show best time (corresponding qual ity) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 88 COLIN: PLANNING WITH CONTINUOUS CHANGE COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>pipestankagetemporal</u> 1 0.04 6.003 0.020 8.006 0.00 (6.02) TBL 6.000 (0.03) LGP-s 2 0.12 24.013 0.147 63.371 0.02 (22.1) TBL 22.1 (0.02) TBL 3 0.23 12.008 0.180 15.520 0.06 (16.07) TBL 12.008 (0.23) COLIN 4 0.52 18.009 0.275 26.020 0.04 (16.07) TBL 16.07 (0.04) TBL 5 0.09 14.007 0.153 20.017 0.02 (14.06) TBL 14.007 (0.09) COLIN 6 0.09 16.01 0.160 17.018 0.02 (14.06) TBL 14.06 (0.02) TBL 7 0.26 16.008 1.175 18.522 0.07 (18.08) TBL 16.000 (0.31) LGP-td 8 0.30 18.012 1.275 23.031 0.30 (18.012) COLIN 18.012 (0.30) COLIN 9 238.057 66.741 0.95 (104.000) LGP-td 46.22 (6.34) TBL 10 4.40 36.02 26.135 57.571 0.32 (54.26) TBL 36.02 (4.40) COLIN 11 0.40 13.031 316.585 27.601 0.40 (13.031) COLIN 13.003 (1235.31) LGP-s 12 12.480 27.105 5.08 (43.000) LGP-td 11.21 (19.88) TBL 13 1.51 13.53 6.420 13.265 1.51 (13.53) COLIN 13.000 (11.33) LGP-td 14 53.09 22.052 334.625 19.357 9.17 (19.37) TBL 18.000 (1276.24) LGP-td 15 59.61 17.541 64.690 14.886 59.61 (17.541) COLIN 12.23 (69.77) TBL 17 1500.780 31.000 1500.78 (31.000) LGP-td 31.000 (1500.78) LGP-td 18 33.06 11.527 105.157 28.626 33.06 (11.527) COLIN 11.527 (33.06) COLIN 19 20.29 16.537 252.310 17.582 17.59 (11.21) TBL 11.21 (17.59) TBL 20 2.54 12.029 118.323 24.610 2.54 (12.029) COLIN 12.029 (2.54) colin 21 1.830 14.595 0.11 (10.19) TBL 10.19 (0.11) TBL 22 77.570 25.690 53.50 (30.000) LGP-td 21.38 (101.64) TBL 23 41.080 30.000 41.08 (30.000) LGP-td 30.000 (41.08) LGP-td 24 23.25 31.564 112.000 37.782 23.25 (31.564) COLIN 31.564 (23.25) COLIN 25 983.78 28.558 710.420 56.483 527.52 (116.500) LGP-td 24.39 (619.96) TBL 26 32.55 33.053 389.255 31.991 32.55 (33.053) COLIN 30.93 (745.96) TBL 27 2.30 10.024 7.000 16.012 2.30 (10.024) COLIN 10.024 (2.30) COLIN 29 191.49 23.548 364.450 28.274 191.49 (23.548) COLIN 23.548 (191.49) COLIN 30 58.98 28.555 354.695 30.777 58.98 (28.555) COLIN 28.555 (58.98) COLIN 31 187.22 32.713 249.670 31.041 0.84 (31.7833) TBL 29.833 (810.62) LGP-td 32 696.495 34.158 179.24 (35.3167) TBL 33.000 (1213.75) LGP-td 33 304.470 21.133 304.47 (21.133333) TBL 21.133333 (304.47) TBL 34 160.42 25.038 432.870 40.065 31.22 (33.99) TBL 25.038 (160.42) COLIN 37 598.180 20.665 598.18 (20.665) LGP-td 20.665 (598.18) LGP-td 39 9.14 15.191 298.620 22.925 9.14 (15.191) COLIN 15.191 (9.14) COLIN 40 51.82 21.877 51.820 21.877 51.82 (21.877) COLIN 21.877 (51.82) COLIN 41 269.57 4.93 138.057 6.687 32.63 (6.13) TBL 4.93 (269.57) COLIN 49 91.770 17.340 91.77 (17.34) TBL 17.34 (91.77) TBL <u>50</u> <u>82.82</u> <u>22.378</u> <u>82.820</u> <u>22.378</u> <u>82.82 (22.378)</u> COLIN <u>22.378 (82.82)</u> COLIN Table 12: Results for More Complex Domains: Best results show best time (corresponding qual ity) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 89 COLES, COLES, FOX & LONG COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>roverstime</u> 1 0.03 67.007 0.048 73.524 0.02 (80) LGP-td 67.007 (67.007) COLIN 2 0.01 48.006 0.027 56.269 0.01 (48.006) COLIN 46.0007 (0.02) LGP-s 3 0.03 63.01 0.062 70.525 0.02 (80) LGP-td 63.01 (0.03) COLIN 4 0.03 52.006 0.040 52.733 0.02 (52) LGP-s,LGP-td 52 (0.02) LGP-td 5 0.06 125.014 0.258 129.069 0.02 (113.2) LGP-td 107.12 (0.702) Sapa 6 40.93 273.118 14.010 299.794 0.08 (284.965) LGP-td 273.118 (40.93) COLIN 7 0.07 105.017 0.138 107.121 0.03 (138.9286) LGP-td 90.538574 (0.411) Sapa 8 0.17 149.944 0.494 160.906 0.04 (134) LGP-td 134 (0.04) LGP-td 9 0.150 137.345 0.06 (146) LGP-td 128.6895 (0.24) LGP-s 10 0.29 177.022 0.534 192.855 0.06 (190.3077) LGP-td 154.48767 (1.448) Sapa 11 0.15 170.881 0.170 195.395 0.07 (200.5) LGP-td 170.881 (0.15) COLIN 12 0.86 122.022 0.476 134.818 0.04 (145.5294) LGP-td 114.130005 (0.682) Sapa 13 0.560 292.200 0.26 (346.5833) LGP-td 237.8161 (0.86) LGP-s 14 0.865 206.147 0.35 (268.7368) LGP-td 137.7917 (0.62) LGP-s 15 0.500 239.333 0.10 (205.3755) LGP-td 205.3755 (0.10) LGP-td 16 0.460 210.000 0.46 (210) LGP-td 210 (0.46) LGP-td 17 0.70 230.036 2.223 341.230 0.34 (392.353) LGP-td 230.036 (0.70) COLIN 18 1.35 245.864 1.817 220.290 0.33 (155.0909) LGP-td 155.0909 (0.33) LGP-td 19 0.610 394.591 0.61 (394.5915) LGP-td 394.5915 (0.61) LGP-td <u>20</u> <u>92.59</u> <u>390.804</u> <u>49.107</u> <u>505.667</u> <u>3.38 (502.7423)</u> LGP-td <u>390.804 (92.59)</u> COLIN <u>satellitetime</u> 1 0.02 129.596 0.026 193.553 0.01 (205.28) LGP-s,LGP-td,TBL 129.596 (0.02) COLIN 2 0.01 182.916 0.038 225.716 0.00 (235.12) LGP-td 182.916 (0.01) COLIN 3 0.01 78.616 0.068 168.343 0.01 (78.616) COLIN,TBL 78.616 (0.01) COLIN 4 0.03 140.42 0.099 319.688 0.01 (359.28) TBL 140.42 (0.03) COLIN 5 0.11 290.12 0.154 262.900 0.01 (254.563) TBL 162.39699 (0.528) Sapa 6 0.10 114.38 0.138 255.894 0.01 (264.51) TBL 114.38 (0.10) COLIN 7 0.12 126.544 0.265 222.818 0.02 (296.16) TBL 126.544 (0.12) COLIN 8 0.30 139.608 0.469 205.241 0.03 (226.503) TBL 139.608 (0.30) COLIN 9 0.38 175.74 0.813 307.457 0.05 (351.8529) LGP-td,TBL 175.74 (0.38) COLIN 10 0.64 295.549 0.949 262.206 0.04 (231.485) LGP-td 231.485 (0.04) LGP-td 11 0.94 283.351 1.703 370.878 0.07 (283.916) TBL 283.351 (0.94) COLIN 12 3.57 336.599 9.147 423.836 0.13 (389.4588) LGP-td 336.599 (3.57) COLIN 13 21.89 433.308 29.900 504.815 0.23 (464.408) LGP-td 433.308 (21.89) COLIN 14 6.19 267.73 10.618 387.271 0.15 (461.855) LGP-td 267.73 (6.19) COLIN 15 8.76 292.436 34.225 333.289 0.18 (267.4431) LGP-td 264.6641 (2.48) LGP-s 16 22.18 336.356 34.882 510.100 0.23 (602.7849) LGP-td 336.356 (22.18) COLIN 17 15.29 232.66 94.390 380.053 0.24 (378.459) LGP-td 232.66 (15.29) COLIN 18 3.85 169.256 5.306 290.099 0.10 (324.406) TBL 169.256 (3.85) COLIN 19 57.66 520.602 49.424 527.707 0.19 (352.355) LGP-td 352.355 (0.19) LGP-td <u>20</u> <u>30.264</u> <u>854.958</u> <u>0.24 (584.663)</u> LGP-td <u>498.90106 (113.277)</u> <u>Sapa</u> Table 13: Results for More Complex Domains: Best results show best time (corresponding qual ity) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 90 COLIN: PLANNING WITH CONTINUOUS CHANGE COLIN Average Best <u>Time</u> <u>Quality</u> <u>Time</u> <u>Quality</u> <u>Time</u> <u>Planner</u> <u>Quality</u> <u>Planner</u> <u>zenotime</u> 1 0.01 3.672 0.018 3.489 0.01 (0.01) COLIN,LPG-td 3.424 (0.01) LPG-td 2 0.01 23.435 0.019 23.672 0.01 (0.01) COLIN,LPG-td 23.431 (0.01) LPG-td 3 0.03 10.089 0.033 13.336 0.01 (14.4211) LPG-td 10.089 (0.03) COLIN 4 0.08 21.287 0.084 22.340 0.01 (21.708) LPG-s 21.287 (0.08) COLIN 5 0.04 8.196 0.075 22.016 0.02 (27.0419) LPG-td 8.196 (0.04) COLIN 6 0.08 21.966 0.075 20.921 0.02 (20.8864) LPG-td 16.578 (0.17) Sapa 7 0.06 33.31 0.110 24.863 0.01 (25.6744) LPG-td 18.283 (0.05) LPG-s 8 8.53 43.722 2.250 30.689 0.02 (24.2375) LPG-td 24.238 (0.02) LPG-td 9 0.22 39.949 0.194 48.528 0.03 (72.1579) LPG-td 23.238 (0.395) Sapa 10 0.41 36.458 0.310 33.487 0.06 (46.1848) LPG-td 20.864 (0.14) LPG-s 11 0.41 22.264 0.271 25.576 0.05 (46.1576) LPG-td 13.666 (0.443) Sapa 12 10.34 72.139 2.874 51.105 0.09 (42.1671) LPG-td 38.992 (0.846) Sapa 13 1.28 86.473 1.592 58.235 0.07 (42.0593) LPG-td 42.059 (0.07) LPG-td 14 371.61 117.625 256.813 72.619 0.62 (58.8983) LPG-td 39.064 (651.493) Sapa 15 6.95 381.626 5.524 241.318 0.87 (274.8496) LPG-td 117.171 (8.644) Sapa 16 130.33 117.052 43.183 86.693 3.07 (67.554) LPG-td 54.717 (23.883) Sapa 17 443.79 77.332 161.243 118.179 3.97 (117.1512) LPG-td 77.332 (443.79) COLIN 18 188.85 89.082 77.357 70.542 4.48 (56.8345) LPG-td 56.835 (4.48) LPG-td 19 73.040 137.909 9.83 (168.0886) LPG-td 107.729 (136.25) LPG-s <u>20</u> <u>80.660</u> <u>91.146</u> <u>28.69 (78.4703)</u> LPG-td <u>78.470 (28.69)</u> LPG-td Table 14: Results for More Complex Domains: Best results show best time (corresponding qual ity) and which planner(s) achieved this time and best quality (corresponding time) and planner(s) achieving this quality. 91 COLES, COLES, FOX & LONG References Audemard, G., Bertoli, P., Cimatti, A., Kornilowicz, A., & Sebastiani, R. (2002). A SAT-based ap proach for solving formulas over boolean and linear mathematical propositions. In _Proceed-_ _ings of the 18th International Conference on Automated Deduction_, Vol. 2392, pp. 193–208. Springer-Verlag, LNAI Series. Blum, A., & Furst, M. (1995). Fast Planning through Planning Graph Analysis. In _Proceedings of_ _the International Joint Conference on Artificial Inteligence (IJCAI)_ . Boddy, M. S., & Johnson, D. P. (2002). A New Method for the Global Solution of Large Sys tems of Continuous Constraints. In _Proceedings of the 1st International Workshop on Global_ _Constraint_ _Optimization_ _and_ _Constraint_ _Satisfaction_ _(COCOS)_, Vol. 2861 of _Lecture_ _Notes_ _in Computer Science_, pp. 142–156. Springer. Cesta, A., & Oddi, A. (1996). Gaining Efficiency and Flexibility in the Simple Temporal Problem. In _Proceedings of the 3rd International Workshop on Temporal Representation and Reasoning_ _(TIME)_ . Cesta, A., Cortellessa, G., Fratini, S., & Oddi, A. (2009). Developing an End-to-End Planning Application from a Timeline Representation Framework. In _Proceedings of 21st Conference_ _on Innovative Applications of Artificial Intelligence (IA*AI)_ . Chien, S. A., Tran, D., Rabideau, G., Schaffer, S. R., Mandl, D., & Frye, S. (2010). Timeline-Based Space Operations Scheduling with External Constraints. In _Proceedings of the International_ _Conference on AI Planning and Scheduling (ICAPS)_, pp. 34–41. Cimatti, A., Giunchiglia, F., Giunchiglia, E., & Traverso, P. (1997). Planning via Model Checking: A Decision Procedure for _R_ . In _Recent Advances in AI Planning, 4th European Conference_ _on Planning, ECP_, pp. 130–142. Coles, A. I., Fox, M., Halsey, K., Long, D., & Smith, A. J. (2008). Managing concurrency in temporal planning using planner-scheduler interaction. _Artificial Intelligence_, _173_, 1–44. Coles, A. I., Fox, M., Long, D., & Smith, A. J. (2008a). Planning with Problems Requiring Temporal Coordination. In _Proceedings of the 23rd AAAI Conference on Artificial Intelligence (AAAI_ _08)_ . Coles, A. I., Fox, M., Long, D., & Smith, A. J. (2008b). A Hybrid Relaxed Planning GraphLP Heuristic for Numeric Planning Domains. In _Proceedings of the 18th International Confer-_ _ence on Automated Planning and Scheduling (ICAPS)_, pp. 52–59. Coles, A. J., Coles, A. I., Fox, M., & Long, D. (2009a). Extending the Use of Inference in Tem poral Planning as Forwards Search. In _Proceedings of the 19th International Conference on_ _Automated Planning and Scheduling (ICAPS 09)_ . Coles, A. J., Coles, A. I., Fox, M., & Long, D. (2009b). Temporal Planning in Domains with Linear Processes. In _Proceedings of the 21st International Joint Conference on Artificial Intelligence_ _(IJCAI)_ . AAAI Press. Cushing, W., Kambhampati, S., Mausam, & Weld, D. (2007). When is temporal planning _really_ temporal planning?. In _Proceedings of the International Joint Conference on AI (IJCAI)_, pp. 1852–1859. 92 COLIN: PLANNING WITH CONTINUOUS CHANGE Dechter, R., Meiri, I., & Pearl, J. (1989). Temporal Constraint Networks. In _Proceedings of Princi-_ _ples of Knowledge Representation and Reasoning (KR)_, pp. 83–93. Toronto, Canada. Dierks, H. (2005). Finding Optimal Plans for Domains with Restricted Continuous Effects with UPPAAL-Cora. In _ICAPS Workshop on Verification and Validation of Model-Based Planning_ _and Scheduling Systems_ . Do, M. B., & Kambhampati, S. (2003). Sapa: A Multi-objective Metric Temporal Planner. _Journal_ _of Artificial Intelligence Research (JAIR)_, _20_, 155–194. Edelkamp, S. (2003). Taming numbers and durations in a model-checking integrated planning system. _Journal of Artificial Intelligence Research (JAIR)_, _20_, 195–238. Edelkamp, S., & Jabbar, S. (2006). Cost-Optimal External Planning. In _Proceedings_ _of_ _the_ _21st_ _National (American) Conference on Artificial Intelligence (AAAI)_ . AAAI Press. Eyerich, P., Mattm¨uller, R., & R¨oger, G. (2009). Using the Context-enhanced Additive Heuristic for Temporal and Numeric Planning. In _Proceedings of the 19th International Conference on_ _Automated Planning and Scheduling (ICAPS 2009)_ . AAAI Press. Fox, M., & Long, D. (2003). PDDL2.1: An extension of PDDL for expressing temporal planning domains. _Journal of Artificial Intelligence Research (JAIR)_, _20_, 61–124. Fox, M., & Long, D. (2006). Modelling Mixed Discrete-Continuous Domains for Planning. _Journal_ _of Artificial Intelligence Research (JAIR)_, _27_, 235–297. Fox, M., Howey, R., & Long, D. (2005). Validating Plans in the Context of Processes and Exogenous Events. In _Proceedings of the 20th National Conference on Artificial Intelligence and the 17th_ _Innovative Applications of Artificial Intelligence Conference (AAAI)_, pp. 1151–1156. Fox, M., Long, D., & Halsey, K. (2004). An Investigation into the Expressive Power of PDDL2.1. In _Proceedings of the 16th European Conference of Artificial Intelligence (ECAI)_ . Fox, M., Long, D., & Magazzeni, D. (2011). Automatic Construction of Efficient Multiple Battery Usage Policies. In _Proceedings of the 21st International Conference on Automated Planning_ _and Scheduling (ICAPS)_ . Frank, J., & J´onsson, A. K. (2003). Constraint-Based Attribute and Interval Planning. _Constraints_, _8_ (4), 339–364. Garrido, A., Fox, M., & Long, D. (2002). A Temporal Planning System for Durative Actions of PDDL2.1. In _Proceedings_ _of_ _the_ _15th_ _Eureopean_ _Conference_ _on_ _Artificial_ _Intelligence_ _(ECAI)_, pp. 586–590. Garrido, A., Onainda, E., & Barber, F. (2001). A Temporal Planning System for Time-Optimal Planning. In _Proceedings_ _of_ _the_ _10th_ _Portuguese_ _Conference_ _on_ _Artificial_ _Intelligence_, pp. 379–392. Springer. Gerevini, A., Saetti, A., & Serina, I. (2006). An Approach to Temporal Planning and Scheduling in Domains with Predictable Exogenous Events. _Journal_ _of_ _Artificial_ _Intelligence_ _Research_ _(JAIR)_, _25_, 187–231. Gerevini, A., Saetti, A., & Serina, I. (2010). Temporal Planning with Problems Requiring Con currency through Action Graphs and Local Search. In _Proceedings of the 20th International_ _Conference on Automated Planning and Scheduling (ICAPS)_ . 93 COLES, COLES, FOX & LONG Gerevini, A., & Serina, I. (2000). Fast Plan Adaptation through Planning Graphs: Local and Sys tematic Search Techniques. In _Proceedings of the 5th International Conference on Artificial_ _Intelligence Planning Systems (AIPS)_, pp. 112–121. Ghallab, M., & Laruelle, H. (1994). Representation and Control in IxTeT, a Temporal Planner. In _Proceedings of the 2nd International Conference on Artificial Intelligence Planning Systems_ _(AIPS)_, pp. 61–67. Halsey, K. (2005). _CRIKEY!: It’s co-ordination in temporal planning_ . Ph.D. thesis, University of Durham. Haslum, P., & Geffner, H. (2001). Heuristic planning with time and resources. In _Proceedings of_ _the 6th European Conference on Planning (ECP’01)_, pp. 121–132. Haslum, P. (2009). Admissible Makespan Estimates for PDDL2.1 Temporal Planning. In _Proceed-_ _ings of the ICAPS Workshop on Heuristics for Domain-Independent Planning_ . Helmert, M. (2006). The Fast Downward Planning System. _Journal of Artificial Intelligence (JAIR)_, _26_, 191–246. Henzinger, T. (1996). The Theory of Hybrid Automata. In _Proceedings of the 11th Annual Sympo-_ _sium on Logic in Computer Science. Invited tutorial._, pp. 278–292. IEEE Computer Society Press. Henzinger, T., Ho, P.-H., & Wong-Toi, H. (1995). A user guide to HYTECH. In _E._ _Brinksma,_ _W.R. Cleaveland, K.G. Larsen, T. Margaria, and B. Steffen, editors, Tool and Algorithms for_ _the_ _Construction_ _and_ _Analysis_ _of_ _Systems:_ _(TACAS_ _95),_ _volume_ _1019_ _of_ _Lecture_ _Notes_ _in_ _Computer Science_, pp. 41–71. Hoffmann, J. (2003). The Metric-FF Planning System: Translating “Ignoring Delete Lists” to Nu meric State Variables. _Journal of Artificial Intelligence Research (JAIR)_, _20_, 291–341. Hoffmann, J., & Edelkamp, S. (2005). The Deterministic Part of IPC-4: An Overview. _Journal of_ _Artificial Intelligence Research (JAIR)_, _24_, 519–579. Hoffmann, J., & Nebel, B. (2001). The FF planning system: Fast plan generation through heuristic search. _Journal of Artificial Intelligence Research (JAIR)_, _14_, 253–302. Huang, R., Chen, Y., & Zhang, W. (2009). An Optimal Temporally Expressive Planner: Initial Results and Application to P2P Network Optimization. In _Proceedings_ _of_ _the International_ _Conference on Automated Planning and Scheduling (ICAPS)_ . Knight, R., Schaffer, S., & B.Clement (2009). Power planning in the international space station domain. In _Proceedings of the 6th International Workshop on Planning and Scheduling for_ _Space (IWPSS)_ . Lamba, N., Dietz, M., Johnson, D. P., & Boddy, M. S. (2003). A Method for Global Optimization of Large Systems of Quadratic Constraints. In _Proceedings of the 2nd International Workshop_ _on Global Optimization and Constraint Satisfaction (COCOS)_, Vol. 3478 of _Lecture Notes in_ _Computer Science_, pp. 61–70. Springer. L´eaut´e, T., & Williams, B. (2005). Coordinating Agile Systems through the Model-based Execution of Temporal Plans. In _Proceedings of the 20th National Conference on AI (AAAI)_ . Li, H., & Williams, B. (2008). Generative systems for hybrid planning based on flow tubes. In _Proc._ _18th Int. Conf. on Aut. Planning and Scheduling (ICAPS)_ . 94 COLIN: PLANNING WITH CONTINUOUS CHANGE Li, H., & Williams, B. (2011). Hybrid Planning with Temporally Extended Goals for Sustainable Ocean Observing. In _Proceedings of the International Conference of the Association for the_ _Advancement of AI (AAAI): Special Track on Sustainability and AI_ . Long, D., & Fox, M. (2003a). Exploiting a Graphplan Framework in Temporal Planning. In _Proceedings_ _of_ _the_ _13th_ _International_ _Conference_ _on_ _Automated_ _Planning_ _and_ _Scheduling_ _(ICAPS)_, pp. 52–61. Long, D., & Fox, M. (2003b). The 3rd International Planning Competition: Results and Analysis. _Journal of Artificial Intelligence Research (JAIR)_, _20_, 1–59. Lougee-Heimer, R. (2003). The Common Optimization INterface for Operations Research. _IBM_ _Journal of Research and Development_, _47_ (1), 57–66. McDermott, D. (2003). Reasoning about Autonomous Processes in an Estimated Regression Planner. In _Proceedings_ _of_ _the_ _13th_ _International_ _Conference_ _on_ _Automated_ _Planning_ _and_ _Scheduling (ICAPS)_ . McDermott, D. V. (2000). The 1998 AI Planning Systems Competition. _AI Magazine_, _21_ (2), 35–55. Meuleau, N., Benazera, E., Brafman, R. I., Hansen, E. A., & Mausam (2009). A Heuristic Search Approach to Planning with Continuous Resources in Stochastic Domains. _Journal of Artificial_ _Intelligence Research (JAIR)_, _34_, 27–59. Palacios, H., & Geffner, H. (2009). Compiling Uncertainty Away in Conformant Planning Problems with Bounded Width. _Journal of Artificial Intelligence Research (JAIR)_, _35_, 623–675. Pednault, E. P. D. (1989). ADL: Exploring the Middle Ground Between STRIPS and the Situation Calculus. In _Proceedings of the International Conference on Knowledge Representation (KR)_, pp. 324–332. Pell, B., Gat, E., Keesing, R., Muscettola, N., & Smith, B. D. (1997). Robust Periodic Planning and Execution for Autonomous Spacecraft. In _Proceedings of the International Joint Conference_ _on AI (IJCAI)_, pp. 1234–1239. Penberthy, S., & Weld, D. (1994). Temporal Planning with Continuous Change. In _Proceedings of_ _the 12th National Conference on AI (AAAI)_, pp. 1010–1015. AAAI/MIT Press. Penna, G. D., Intrigila, B., Magazzeni, D., & Mercorio, F. (2009). UPMurphi: a Tool for Univer sal Planning on PDDL+ Problems. In _Proceedings_ _of the_ _19th International_ _Conference on_ _Automated Planning and Scheduling (ICAPS 2009)_, pp. 19–23. AAAI Press. Penna, G. D., Intrigila, B., Magazzeni, D., & Mercorio, F. (2010). A PDDL+ Benchmark Problem: The Batch Chemical Plant. In _Proceedings_ _of_ _the_ _International_ _Conference_ _on_ _AI_ _Planning_ _and Scheduling (ICAPS)_, pp. 222–225. Reddy, S. Y., Frank, J. D., Iatauro, M. J., Boyce, M. E., K¨urkl¨u, E., Ai-Chang, M., & J´onsson, A. K. (2011). Planning Solar Array Operations on the International Space Station. _ACM_ _Transactions on Intelligent Systems Technology_, _2_, 1–24. Richter, S., & Westphal, M. (2010). The LAMA Planner: Guiding Cost-Based Anytime Planning with Landmarks. _Journal of Artificial Intelligence Research (JAIR)_, _39_, 127–177. Shin, J., & Davis, E. (2005). Processes and Continuous Change in a SAT-based Planner. _Artificial_ _Intelligence_, _166_, 194–253. 95 COLES, COLES, FOX & LONG Smith, D., & Weld, D. S. (1999). Temporal Planning with Mutual Exclusion Reasoning. In _Pro-_ _ceedings of the 16th International Joint Conference on AI (IJCAI)_, pp. 326–337. Veloso, M., P´erez, M., & Carbonell, J. (1990). Nonlinear planning with parallel resource allocation. In _Proceedings of the DARPA Workshop on Innovative Approaches to Planning, Scheduling_ _and Control_, pp. 207–212. Vidal, V., & Geffner, H. (2006). Branching and pruning: An optimal temporal POCL planner based on constraint programming. _Artificial Intelligence_, _170_ (3), 298–335. Wolfman, S., & Weld, D. (1999). The LPSAT System and its Application to Resource Planning. In _Proceedings of the 16th International Joint Conference on Artificial Intelligence (IJCAI)_ . Yi, W., Larsen, K., & Pettersson, P. (1997). UPPAAL in a Nutshell. _International_ _Journal_ _of_ _Software Tools for Technology Transfer_, _1_ (1). Younes, H. L. S., & Simmons, R. G. (2003). VHPOP: Versatile heuristic partial order planner.. _Journal of Artificial Intelligence Research (JAIR)_, _20_, 405–430. 96

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.