Algorithm Search⌘K

Problemresearch

Simple temporal network with uncertainty

Also called STNU.

An STP in which some durations are chosen by nature within known bounds. The questions are strong, weak and dynamic controllability; strong and dynamic are polynomial.

A simple temporal network with uncertainty (STNU) is a simple temporal problem in which some durations are not chosen by the agent: for a contingent link the agent starts an activity and nature ends it at some time within known bounds. The agent must then schedule its own time points so that every constraint holds for all the choices of nature. Vidal and Fargier (1999) defined three versions of this question: strong, weak and dynamic controllability, which differ in what the agent knows when it decides. Strong and dynamic controllability can be checked in polynomial time.

In plain words

You plan a day with a delivery truck. You decide when the truck leaves. The road decides when it arrives, somewhere between one and three hours later. Other rules say, for example, that you must unload within an hour of the arrival.

Is the plan safe? It depends on what you know when you act. If you must fix every time in the morning, the plan must work for every arrival time with the same times. If you may wait and watch, you can react to the arrival. If you knew the arrival in advance, you could fit the plan to it. These are three different questions, and a plan can pass one and fail another.

Definition

An STNU has time points 0,…,n−10, \ldots, n-1, requirement links lo≤tv−tu≤hilo \le t_v - t_u \le hi as in an STP, and KK contingent links A⇒CA \Rightarrow C with bounds 0≤x≤y0 \le x \le y. The agent executes the activation point AA and every other point that is not the end of a contingent link. Nature chooses the duration ωC=tC−tA∈[x,y]\omega_C = t_C - t_A \in [x, y]. The contingent points CC are distinct.

A situation ω\omega is a choice of one duration for each contingent link. The projection of the STNU on ω\omega is the STP in which each contingent link becomes the requirement tC−tA=ωCt_C - t_A = \omega_C. A schedule gives a time to every point. Then:

  • the STNU is strongly controllable (SC) if one assignment of the agent's points works for every situation;
  • it is weakly controllable (WC) if every projection is consistent, so that an agent that knew ω\omega in advance could choose its times;
  • it is dynamically controllable (DC) if a strategy exists that decides each agent point from the durations that have ended so far; see dynamic controllability.

SC implies DC and DC implies WC, and both implications are strict.

Variants

  • STP. With K=0K = 0 all three questions are the consistency of an STP.
  • Probabilistic STNs. The durations have distributions in place of bounds, and the question is the probability that a strategy succeeds.
  • Conditional STNUs. Observations at some points decide which parts of the network must hold, as in plans with branches.
  • Disjunctive constraints with uncertainty. Requirement links may be disjunctions, as in a DTP or a TCSP, which makes the problems harder.
  • Semantics of reaction. Hunsberger (2009) fixed the precise meaning of dynamic strategies. Some later work requires that a reaction come strictly after the observation; the two semantics give different answers on some networks.

Examples

Each example has one contingent link A⇒CA \Rightarrow C with bounds [1,3][1, 3] and one agent point BB.

SC. Let 3≤tB−tA≤53 \le t_B - t_A \le 5 and 0≤tB−tC≤40 \le t_B - t_C \le 4. The fixed choice tB=tA+3t_B = t_A + 3 gives tB−tC=3−ωC∈[0,2]t_B - t_C = 3 - \omega_C \in [0, 2] for every duration, so the network is strongly controllable, and so also DC and WC.

DC but not SC. Let 0≤tB−tC≤10 \le t_B - t_C \le 1. A fixed offset s=tB−tAs = t_B - t_A needs 0≤s−ωC≤10 \le s - \omega_C \le 1 for all ωC∈[1,3]\omega_C \in [1, 3], that is s≥3s \ge 3 and s≤2s \le 2, so the network is not SC. But the agent can wait until CC happens and then execute BB at once, so it is DC.

WC but not DC. Let tC−tB=1t_C - t_B = 1, so BB comes one unit before CC. For each duration the schedule tB=tC−1t_B = t_C - 1 works, so every projection is consistent and the network is WC. But BB happens before CC, so the agent must fix tBt_B before it sees ωC\omega_C, and no single value works for both ωC=1\omega_C = 1 and ωC=3\omega_C = 3. The network is not DC. The Morris algorithm page traces its check on this network.

Known algorithms

question method worst-case time notes
SC rewrite to an STP (Vidal and Fargier, 1999), then Bellman-Ford or Floyd-Warshall O(N3)O(N^3) see Reductions
WC test the 2K2^K projections with extreme durations O(2KN3)O(2^K N^3) correct by the convexity argument in Bounds
DC Morris, Muscettola and Vidal (2001) pseudo-polynomial reductions with waits
DC Morris and Muscettola (2005) O(N5)O(N^5) the first strongly polynomial check
DC Morris (2006) O(N4)O(N^4) KK rounds of propagation from the lower-case edges
DC Morris (2014) O(N3)O(N^3) one negative node at a time
DC RUL- (Cairo, Hunsberger and Rizzi, 2018) O(mn+k2n+knlog⁡n)O(mn + k^2 n + kn \log n) mm edges and kk contingent links

Here NN is the number of time points, after any normal form that the method uses.

Bounds

Strong controllability (word-RAM). SC is decided in O(N3)O(N^3) time, since it is the consistency of one STP on the same points (Vidal and Fargier, 1999).

Weak controllability. Fix the agent's points as variables. For a situation ω\omega, the projection is consistent if and only if every cycle of its distance graph has non-negative weight. The weight of each cycle is an affine function of ω\omega, so the set of situations with a consistent projection is an intersection of half-spaces, which is convex. The box ∏[xC,yC]\prod [x_C, y_C] is the convex hull of its 2K2^K corners, so the network is WC if and only if the projections at the corners are consistent. A corner with a negative cycle is a short certificate that the network is not WC, so WC is in co-NP (Turing model). The sources cited here give no polynomial algorithm for it.

Dynamic controllability (word-RAM). DC is decided in O(N3)O(N^3) time (Morris, 2014). The bound does not depend on the size of the numbers in the bounds.

Reductions

  • SC to an STP. Replace each requirement that touches a contingent point by one on its activation point. For lo≤tv−tC≤hilo \le t_v - t_C \le hi with CC the end of A⇒CA \Rightarrow C in [x,y][x, y], the requirement lo≤tv−tA−ω≤hilo \le t_v - t_A - \omega \le hi must hold for all ω∈[x,y]\omega \in [x, y], which is lo+y≤tv−tA≤hi+xlo + y \le t_v - t_A \le hi + x. A requirement between two contingent points is treated in the same way on both ends. The network is SC if and only if the resulting STP on the agent's points is consistent.
  • DC to negative cycles. By Morris (2006), an STNU is DC if and only if its labelled distance graph has no semi-reducible negative cycle; the algorithms above find such cycles with shortest paths.
  • From the STP. An STP is an STNU with no contingent links, and every question is STP consistency.

Applications

  • Temporal planning and plan execution for spacecraft and robots, where the duration of a move or an observation depends on the environment.
  • Workflow and business process systems with tasks whose durations are set by outside parties.
  • Multi-agent scheduling, where the actions of other agents are treated as contingent.

References

  1. Thierry Vidal and Hélène Fargier, Handling contingency in temporal constraint networks, from consistency to controllabilities, Journal of Experimental and Theoretical Artificial Intelligence 11(1), 1999, pages 23 to 45 (contingent and requirement links, projections, strong, weak and dynamic controllability, and the reduction of strong controllability to an STP)
  2. Paul Morris, Nicola Muscettola and Thierry Vidal, Dynamic control of plans with temporal uncertainty, Proceedings of IJCAI-01, Morgan Kaufmann, 2001, pages 494 to 502 in dblp (the first check of dynamic controllability, pseudo-polynomial)
  3. Paul Morris and Nicola Muscettola, Temporal dynamic controllability revisited, Proceedings of AAAI-05, AAAI Press, 2005, pages 1193 to 1198 (the labelled distance graph and an O(N^5) check)
  4. Massimo Cairo, Luke Hunsberger and Romeo Rizzi, Faster dynamic controllability checking for simple temporal networks with uncertainty, TIME 2018, LIPIcs 120, 2018, pages 8:1 to 8:16 (the RUL- algorithm, in O(mn + k^2 n + kn log n) time)
  5. Paul Morris, A structural characterization of temporal dynamic controllability, CP 2006, Lecture Notes in Computer Science 4204, Springer, 2006, pages 375 to 389 (the labelled distance graph, semi-reducible negative cycles and an O(N^4) check)
  6. Paul Morris, Dynamic controllability and dispatchability relationships, CPAIOR 2014, Lecture Notes in Computer Science 8451, Springer, 2014, pages 464 to 479 (an O(N^3) check of dynamic controllability)
  7. Luke Hunsberger, Fixing the semantics for dynamic controllability and providing a more practical characterization of dynamic execution strategies, TIME 2009, IEEE, 2009, pages 155 to 162 (execution strategies and the precise definition of dynamic controllability)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml