Skip to main content
Log in

Efficient execution of dynamically controllable simple temporal networks with uncertainty

  • Original Article
  • Published:
Acta Informatica Aims and scope Submit manuscript

    We’re sorry, something doesn't seem to be working properly.

    Please try refreshing the page. If that doesn't work, please contact support so we can address the problem.

Abstract

A simple temporal network with uncertainty (STNU) is a data structure for representing and reasoning about temporal constraints where the durations of certain temporal intervals—the contingent links—are only discovered during execution. The most important property of an STNU is whether it is dynamically controllable (DC)—that is, whether there exists a strategy for executing its time-points that will guarantee that all of its constraints will be satisfied no matter how the durations of the contingent links turn out. The literature on STNUs includes a variety of DC-checking algorithms and execution algorithms. The fastest DC-checking algorithm reported so far is the \(O(N^3)\)-time algorithm due to Morris (Integration of AI and OR techniques in constraint programming—11th international conference, CPAIOR 2014, volume 8451 of Lecture Notes in Computer Science. Springer, Berlin, pp 464–479, 2014). The fastest execution algorithm for dynamically controllable STNUs is the \(O(N^3)\)-time algorithm due to Hunsberger (Proceedings of the 20th international symposium on temporal representation and reasoning (TIME-2013). IEEE Computer Society, Washington, 2013). This paper begins by providing the first comprehensive, rigorous, and yet streamlined treatment of the theoretical foundations of STNUs, including execution semantics, dynamic controllability, and a set of results that have been collected into what has recently been called the fundamental theorem of STNUs. The paper carefully argues from basic definitions to proofs of the major theorems on which all of the important algorithmic work on STNUs depends. Although many parts of this presentation have appeared in various forms, in various papers, the scattered nature of the STNU literature has allowed too many holes in the theory to persist, and has relied all too often on proof sketches that leave important details unexamined. The presentation combines results from many sources, while also introducing novel approaches and proofs. The paper concludes by presenting a modified version of a recent algorithm for managing the execution of dynamically controllable STNUs, the fastest reported so far in the literature. The modified version organizes its computations more efficiently and corrects an oversight in the original algorithm.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19

Similar content being viewed by others

Notes

  1. They also highlighted interesting connections between the dispatchability of simple temporal networks (STNs) [21, 29] and the dynamic controllability of STNUs, but did not formally define dispatchability for STNUs. Similar remarks apply to a follow-up paper [27].

  2. Nilsson et al. [25] have observed that the M-14 and EIDC2 algorithms, although derived independently, employ many similar techniques. They conjecture that the algorithms are, in fact, equivalent.

  3. Many researchers prefer to automatically include trivial self-loops of length 0 at each time-point in an STN, corresponding to constraints of the form, \(X-X\le 0\), in which case, the diagonal entries of a consistent distance matrix will all necessarily be zero, instead of being merely non-negative.

  4. Agents are not part of the semantics of STNUs. They are used here for expository convenience.

  5. The notation presented in Definition 4 is equivalent to the original notation introduced by Morris et al. [18]. It is used in this paper primarily to facilitate access to the constituents of the contingent links—for example, \((A,x,y,C)\) instead of the more cumbersome \(( start (e), \ell (e), u(e), finish (e))\).

  6. Note that there is no prohibition against a contingent time-point \(C\) for one contingent link serving as the activation time-point for some other contingent link. In this way, contingent links may form chains or trees.

  7. The equivalence of the MMV-01 and RTED-based semantics is addressed in detail elsewhere [10].

  8. Context usually makes clear to which STNU a given space of situations applies.

  9. Note that \(C_i - A_i = \omega _i\) is shorthand for the pair of constraints, \(C_i - A_i \le \omega _i\) and \(A_i - C_i \le -\omega _i\).

  10. Morris et al. defined execution strategies as mappings from projections to schedules, which is equivalent.

  11. Allowing \(t\) to be equal to \(\mathtt {now}_\xi \) would enable a form of instantaneous reactivity. For example, an agent might observe the execution of a contingent time-point at time 3, and then instantaneously react by deciding to execute an executable time-point at that same time 3.

  12. In the original definition of STNU graphs [19], each contingent link also gave rise to two ordinary edges, \(A\mathop {\longrightarrow }\limits ^{\ y}C\) and \(A\mathop {\leftarrow }\limits ^{-x}C\), representing the known fact that the duration of the contingent link must fall within the interval \([x,y]\). However, it has been shown that including these extra edges is not necessary—because the execution semantics for STNUs ensures that they will be satisfied [13].

  13. In Table 1, applicability conditions of the form, \(X \not \equiv Y\), should be construed as requiring that \(X\) and \(Y\) be distinct time-points, not as a constraint on their values.

    Table 1 The edge-generation rules for STNUs from Morris and Muscettola [19]
  14. Note that a semi-reducible path might contain multiple occurrences of the same lower-case edge [13].

  15. Definitions 30 and 31, and the proof technique for Theorem 5, below, were originally presented by Morris [16], but only in the context of an execution semantics that allowed a form of instantaneous reactivity. This author subsequently modified them to conform to the standard STNU execution semantics [11, 13].

  16. To avoid confusion between the letters \(w\) and \(\omega \), the proof uses the letter \(u\) instead of \(w\).

  17. This is an application of the Upper Case rule from Table 1 where \(E \mapsto C, B \mapsto C,\) and \(F \mapsto A\).

  18. The letter \(u\) is used instead of the \(w\) from the Upper Case rule in Table 1 to avoid confusion with \(\omega \).

  19. Morris showed that extension sub-paths within the same path \(\mathcal {P}\) must either be disjoint or nested, one inside the other [13, 16]. An outermost extension sub-path is one that is not nested inside any other.

  20. In view of Theorem 7, the set \(\mathcal {F}_k\) from Theorem 6 can be taken to be \(\mathcal {F}^*\) with no loss of generality.

  21. Recall that, for any contingent link, \((A,x,y,C)\), the execution semantics for STNUs ensures that the duration of each contingent link must stay within its upper bound, \(y\). This, together with the ordinary constraint, \(C-A \ge y\), represented by the edge, \(C\mathop {\longrightarrow }\limits ^{-y}A\) in the AllMax graph, effectively forces \(C-A=y\). For an alternative view, note that if the additional ordinary edges discussed in Footnote 12 were included in the STNU graph, then for each contingent link, \((A,x,y,C)\), the AllMax graph would have two ordinary edges together representing the constraint, \(C-A = y\).

  22. The distance matrix shown in Fig. 11 presumes that there are self-loops of length 0 at each time-point, which is common practice in the literature. For dynamically controllable networks, this leads to the distance matrix having zeroes down its main diagonal.

    Fig. 11
    figure 11

    The APSSRP matrix for the sample STNU from Figs. 9 and 10 (blank entries are \(\infty \))

  23. As a consequence, during execution, the AllMax graph only forces all as-yet-unexecuted contingent links to take on their maximum durations.

  24. The Proof of Theorem 8 will show that \(t_U > \mathtt {now}_\xi \) invariably holds when following the strategy \({\hat{R}}\).

  25. For the purposes of the proof, it is convenient to ignore issues of computational efficiency. Thus, the graph \(\mathcal {G}_x^*\), and the distance matrix \(\mathcal {D}_x^*\) are thought of as being effectively re-computed from scratch after each update to the OU-graph \(\mathcal {G}_\mathrm {ou}^*\). The FAST-EX algorithm presented in Sect. 5 uses incremental techniques to efficiently update \(\mathcal {G}_x^*\) and \(\mathcal {D}_x^*\) after each execution event.

  26. For complete generality, each outcome involves a set of time-points that executes. However, in practice, these sets are often singleton sets.

  27. Being rigidly connected is an equivalence relation; so, the notion of a rigid component is well defined.

  28. If desired, the hash tables used by FAST-EX can be replaced by vectors and arrays.

  29. \(C\) is used as an index into the \(\mathtt {UC}\) matrix instead of \(A\), since multiple contingent links could have the same activation time-point, \(A\).

  30. Only the shortest edge between each pair of time-points is stored in the \( Ins \) and \( Outs \) hash tables.

References

  1. Cimatti, A., Hunsberger, L., Micheli, A., Posenato, R., Roveri, M.: Sound and complete algorithms for checking the dynamic controllability of temporal networks with uncertainty, disjunction and observation. In: Cesta, A., Combi, C., Laroussinie, F. (eds.) Proceedings of the 21st International Symposium on Temporal Representation and Reasoning (TIME-2014). IEEE (2014)

  2. Cimatti, A., Hunsberger, L., Micheli, A., Roveri, M.: Using timed game automata to synthesize execution strategies for simple temporal networks with uncertainty. In: Brodley, C.E., Stone, P. (eds.) Proceedings of the 28th National Conference on Artificial Intelligence (AAAI-2014). AAAI Press (2014)

  3. Conrad, P.R., Williams, B.C.: Drake: An efficient executive for temporal plans with choice and uncertainty. J. Artif. Intell. Res. 42, 607–659 (2011)

    MathSciNet  MATH  Google Scholar 

  4. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms. MIT Press, Cambridge (2009)

    MATH  Google Scholar 

  5. Dechter, R., Meiri, I., Pearl, J.: Temporal constraint networks. Artif. Intell. 49, 61–95 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  6. Effinger, R., Williams, B., Kelly, G., Sheehy, M.: Dynamic controllability of temporally-flexible reactive programs. In: Gerevini, A., Howe, A., Cesta, A., Refanidis, I. (eds.) Proceedings of the Nineteenth International Conference on Automated Planning and Scheduling (ICAPS 09). AAAI Press (2009)

  7. Gerevini, A., Perini, A., Ricci, F.: Incremental algorithms for managing temporal constraints. Technical Report IRST-9605-07, IRST (1996)

  8. Hunsberger, L.: Group decision making and temporal reasoning. Ph.D. Thesis, Harvard University, Available as Harvard Technical Report TR-05-02 (2002)

  9. Hunsberger, L.: A practical temporal constraint management system for real-time applications. In: Ghallab, M., Spyropoulos, C.D., Fakotakis, N., Avouris, N. (eds.) Proceedings of the 18th European Conference on Artificial Intelligence (ECAI-2008). IOS Press, Amsterdam (2008)

  10. Hunsberger, L.: Fixing the semantics for dynamic controllability and providing a more practical characterization of dynamic execution strategies. In: Proceedings of the 16th International Symposium on Temporal Representation and Reasoning (TIME-2009), pp. 155–162. IEEE Computer Society (2009)

  11. Hunsberger, L.: A fast incremental algorithm for managing the execution of dynamically controllable temporal networks. In: Proceedings of the 17th International Symposium on Temporal Representation and Reasoning (TIME-2010), Los Alamitos, CA, USA, pp. 121–128. IEEE Computer Society (2010)

  12. Hunsberger, L.: A faster execution algorithm for dynamically controllable stnus. In: Sanchez, C., Venable, B.K., Zimanyi, E. (eds.) Proceedings of the 20th International Symposium on Temporal Representation and Reasoning (TIME-2013). IEEE Computer Society, Washington (2013)

  13. Hunsberger, L.: Magic loops in simple temporal networks with uncertainty. In: Filipe, J., Fred, A. (eds.) Proceedings of the Fifth International Conference on Agents and Artificial Intelligence (ICAART-2013). SCITEPRESS (2013)

  14. Hunsberger, L.: New techniques for checking dynamic controllability of simple temporal networks with uncertainty. Springer (Forthcoming)

  15. Hunsberger, L., Posenato, R., Combi, C.: The dynamic controllability of conditional stns with uncertainty. In: Proceedings of the Planning and Plan Execution for Real-World Systems: Principles and Practices (PlanEx) Workshop Associated with the ICAPS-2012 Conference, pp. 121–128 (2012)

  16. Morris, P.: A structural characterization of temporal dynamic controllability. In: Principles and Practice of Constraint Programming (CP 2006), Volume 4204 of Lecture Notes in Computer Science, pp. 375–389. Springer, Berlin (2006)

  17. Morris, P.: Dynamic controllability and dispatchability relationships. In: Integration of AI and OR Techniques in Constraint Programming—11th International Conference, CPAIOR 2014, Volume 8451 of Lecture Notes in Computer Science, pp. 464–479. Springer, Berlin (2014)

  18. Morris, P., Muscettola, N., Vidal, T.: Dynamic control of plans with temporal uncertainty. In: Nebel, B. (ed.) 17th International Joint Conference on Artificial Intelligence (IJCAI-01), pp. 494–499. Morgan Kaufmann, Los Altos (2001)

  19. Morris, P.H., Muscettola, N.: Temporal dynamic controllability revisited. In: Veloso, M.M., Kambhampati, S. (eds.) The Twentieth National Conference on Artificial Intelligence (AAAI-2005), pp. 1193–1198. The MIT Press, Cambridge (2005)

  20. Morris, R., Morris, P., Khatib, L., Yorke-Smith, N.: Temporal constraint reasoning with preferences and probabilities. In: Brafman, R., Junker, U. (eds.) Proceedings of the IJCAI-05 Multidisciplinary Workshop on Advances in Preference Handling, pp. 150–155 (2005)

  21. Muscettola, N., Morris, P., Tsamardinos, I.: Reformulating temporal plans for efficient execution. In Cohn, A.G., Schubert, L.K., Shapiro, S.C. (eds.) Proceedings of the Sixth International Conference on Principles of Knowledge Representation and Reasoning (KR-98), pp. 444–452. Morgan Kaufman, Los Altos (1998)

  22. Nilsson, M., Kvarnström, J., Doherty, P.: Incremental dynamic controllability revisited. In: Borrajo, D., Kambhampati, S., Oddi, A., Fratini, S. (eds.) Proceedings of the 23rd International Conference on Automated Planning and Scheduling (ICAPS-2013). AAAI Press (2013)

  23. Nilsson, M., Kvarnström, J., Doherty, P.: Classical dynamic controllability revisited: a tighter bound on the classical algorithm. In: Proceedings of the 6th International Conference on Agents and Artificial Intelligence (ICAART-2014), pp. 130–141. SCITEPRESS (2014)

  24. Nilsson, M., Kvarnström, J., Doherty, P.: Efficientidc: a faster incremental dynamic controllability algorithm. In: Chien, S., Fern, A., Ruml, W., Do, M. (eds.) Proceedings of the 24th International Conference on Automated Planning and Scheduling (ICAPS-2014), pp. 199–207. AAAI Press (2014)

  25. Nilsson, M., Kvarnström, J., Doherty, P.: Incremental dynamic controllability in cubic worst-case time. In: Cesta, A., Combi, C., Laroussinie, F. (eds.) Proceedings of the 21st International Symposium on Temporal Representation and Reasoning (TIME-2014). IEEE (2014)

  26. Rossi, F., Venable, K.B., Yorke-Smith, N.: Uncertainty in soft temporal constraint problems: a general framework and controllability algorithms for the fuzzy case. J. Artif. Intell. Res. 27, 617–674 (2006)

    MATH  Google Scholar 

  27. Shah, J., Stedl, J., Robertson, P., Williams, B.C.: A fast incremental algorithm for maintaining dispatchability of partially controllable plans. In: Boddy, M., Fox, M., Thiébaux, S. (eds.) Proceedings of the Seventeenth International Conference on Automated Planning and Scheduling (ICAPS 2007). AAAI Press (2007)

  28. Stedl, J., Williams, B.C.: A fast incremental dynamic controllability algorithm. In: Proceedings of the ICAPS Workshop on Plan Execution: A Reality Check, pp. 69–75 (2005)

  29. Tsamardinos, I., Muscettola, N., Morris, P.: Fast transformation of temporal plans for efficient execution. In: Proceedings of the Fifteenth National Conference on Artificial Intelligence (AAAI-98), pp. 254–261. The MIT Press, Cambridge (1998)

  30. Tsamardinos, I., Vidal, T., Pollack, M.E.: CTP: a new constraint-based formalism for conditional, temporal planning. Constraints 8(4), 365–388 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  31. Venable, K.B., Volpato, M., Peintner, B., Yorke-Smith, N.: Weak and dynamic controllability of temporal problems with disjunctions and uncertainty. In: Proceedings of COPLAS 2010: ICAPS Workshop on Constraint Satisfaction Techniques for Planning and Scheduling Problems, pp. 50–59 (2010)

  32. Vidal, T., Fargier, H.: Handling contingency in temporal constraint networks: from consistency to controllabilities. J. Exp. Theor. Artif. Intell. 11(1), 23–45 (1999)

    Article  MATH  Google Scholar 

  33. Wetprasit, R., Sattar, A.: Qualitative and quantitative temporal reasoning with points and durations (an extended abstract). In: Fifth International Workshop on Temporal Representation and Reasoning (TIME-98), pp. 69–73 (1998)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Luke Hunsberger.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Hunsberger, L. Efficient execution of dynamically controllable simple temporal networks with uncertainty. Acta Informatica 53, 89–147 (2016). https://doi.org/10.1007/s00236-015-0227-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00236-015-0227-0

Navigation