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.



















Similar content being viewed by others
Explore related subjects
Discover the latest articles and news from researchers in related subjects, suggested using machine learning.Notes
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.
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.
Agents are not part of the semantics of STNUs. They are used here for expository convenience.
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))\).
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.
The equivalence of the MMV-01 and RTED-based semantics is addressed in detail elsewhere [10].
Context usually makes clear to which STNU a given space of situations applies.
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\).
Morris et al. defined execution strategies as mappings from projections to schedules, which is equivalent.
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.
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].
Note that a semi-reducible path might contain multiple occurrences of the same lower-case edge [13].
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].
To avoid confusion between the letters \(w\) and \(\omega \), the proof uses the letter \(u\) instead of \(w\).
This is an application of the Upper Case rule from Table 1 where \(E \mapsto C, B \mapsto C,\) and \(F \mapsto A\).
The letter \(u\) is used instead of the \(w\) from the Upper Case rule in Table 1 to avoid confusion with \(\omega \).
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\).
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.
As a consequence, during execution, the AllMax graph only forces all as-yet-unexecuted contingent links to take on their maximum durations.
The Proof of Theorem 8 will show that \(t_U > \mathtt {now}_\xi \) invariably holds when following the strategy \({\hat{R}}\).
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.
For complete generality, each outcome involves a set of time-points that executes. However, in practice, these sets are often singleton sets.
Being rigidly connected is an equivalence relation; so, the notion of a rigid component is well defined.
If desired, the hash tables used by FAST-EX can be replaced by vectors and arrays.
\(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\).
Only the shortest edge between each pair of time-points is stored in the \( Ins \) and \( Outs \) hash tables.
References
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)
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)
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)
Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms. MIT Press, Cambridge (2009)
Dechter, R., Meiri, I., Pearl, J.: Temporal constraint networks. Artif. Intell. 49, 61–95 (1991)
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)
Gerevini, A., Perini, A., Ricci, F.: Incremental algorithms for managing temporal constraints. Technical Report IRST-9605-07, IRST (1996)
Hunsberger, L.: Group decision making and temporal reasoning. Ph.D. Thesis, Harvard University, Available as Harvard Technical Report TR-05-02 (2002)
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)
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)
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)
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)
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)
Hunsberger, L.: New techniques for checking dynamic controllability of simple temporal networks with uncertainty. Springer (Forthcoming)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Tsamardinos, I., Vidal, T., Pollack, M.E.: CTP: a new constraint-based formalism for conditional, temporal planning. Constraints 8(4), 365–388 (2003)
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)
Vidal, T., Fargier, H.: Handling contingency in temporal constraint networks: from consistency to controllabilities. J. Exp. Theor. Artif. Intell. 11(1), 23–45 (1999)
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)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
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
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00236-015-0227-0