Algorithm Search⌘K

Definitioncore

Nonblocking supervisor

Also called nonblocking supervisory control.

A supervisor under which every string the closed loop can produce can be extended to a marked string, so the controlled plant has no deadlock and no livelock.

A supervisor of a discrete-event system is nonblocking if, under its control, the plant can always still complete a task: every string of events that the closed loop can produce extends to a marked string. A blocking closed loop can reach a deadlock, where no event is possible, or a livelock, where events go on forever but no task ever completes. Nonblocking is the liveness half of supervisory control; the controllability of the specification is the safety half. The supremal controllable sublanguage gives the least restrictive supervisor that has both.

Definition

Let GG be a plant with generated language L(G)L(G), marked language Lm(G)L_m(G) and uncontrollable events Σuc\Sigma_{uc}. A supervisor SS maps each string s∈L(G)s \in L(G) to a set S(s)S(s) of enabled events with Σuc⊆S(s)\Sigma_{uc} \subseteq S(s). The closed-loop language L(S/G)L(S/G) is the smallest set with ε∈L(S/G)\varepsilon \in L(S/G) and sσ∈L(S/G)s\sigma \in L(S/G) whenever s∈L(S/G)s \in L(S/G), sσ∈L(G)s\sigma \in L(G) and σ∈S(s)\sigma \in S(s). The marked closed-loop language is

Lm(S/G)=L(S/G)∩Lm(G).L_m(S/G) = L(S/G) \cap L_m(G).

SS is nonblocking for GG if Lm(S/G)‾=L(S/G)\overline{L_m(S/G)} = L(S/G),

where the bar is the prefix closure. The inclusion ⊆\subseteq always holds, so the condition says: every s∈L(S/G)s \in L(S/G) has an extension tt with st∈Lm(S/G)st \in L_m(S/G).

A marking supervisor also decides which strings count as complete: it is a pair (S,K)(S, K) with Lm(S/G)=L(S/G)∩KL_m(S/G) = L(S/G) \cap K for a language K⊆Lm(G)K \subseteq L_m(G). Nonblocking is defined in the same way.

The nonblocking controllability theorem. Let K⊆Lm(G)K \subseteq L_m(G) be nonempty.

  1. There is a nonblocking supervisor SS with Lm(S/G)=KL_m(S/G) = K and L(S/G)=K‾L(S/G) = \overline{K} if and only if KK is controllable and Lm(G)L_m(G)-closed, that is, K=K‾∩Lm(G)K = \overline{K} \cap L_m(G).
  2. There is a nonblocking marking supervisor with Lm(S/G)=KL_m(S/G) = K if and only if KK is controllable.

Proof of 1. If KK is controllable, the supervisor S(s)=Σuc∪{σ∈Σc:sσ∈K‾}S(s) = \Sigma_{uc} \cup \{\sigma \in \Sigma_c : s\sigma \in \overline{K}\} gives L(S/G)=K‾L(S/G) = \overline{K} (this is the controllability theorem on controllable language). Then Lm(S/G)=K‾∩Lm(G)=KL_m(S/G) = \overline{K} \cap L_m(G) = K by closedness, and Lm(S/G)‾=K‾=L(S/G)\overline{L_m(S/G)} = \overline{K} = L(S/G), so SS is nonblocking. Conversely, if SS is nonblocking and Lm(S/G)=KL_m(S/G) = K, then L(S/G)=K‾L(S/G) = \overline{K}, so KK is controllable by the same theorem, and K=L(S/G)∩Lm(G)=K‾∩Lm(G)K = L(S/G) \cap L_m(G) = \overline{K} \cap L_m(G). Proof of 2. Use the same SS with the marking KK: then Lm(S/G)=K‾∩K=KL_m(S/G) = \overline{K} \cap K = K. The converse is as in part 1. ■\blacksquare

If KK is not controllable, replace it by sup⁡C(K)\sup C(K). If KK is Lm(G)L_m(G)-closed, so is sup⁡C(K)\sup C(K): the language K′=sup⁡C(K)‾∩Lm(G)K' = \overline{\sup C(K)} \cap L_m(G) lies in KK, has the same prefix closure as sup⁡C(K)\sup C(K), so it is controllable, and therefore K′⊆sup⁡C(K)K' \subseteq \sup C(K).

In automaton terms, a supervisor realized by an automaton RR that runs in parallel with GG is nonblocking if and only if the reachable part of the product R×GR \times G is coaccessible: from every reachable product state some marked product state can be reached. This is a backward graph search in time linear in the size of the product.

Examples and non-examples

  • Nonblocking: the least restrictive supervisor. In the buffer example of supervisory control theory, the supervisor from the fixed point has 6 states, and each of them can reach the state where both machines are idle and the buffer is empty. So it is nonblocking.
  • Blocking: a supervisor that only enforces safety. Take the plant with 0→a1→u2→b3→v4→d00 \xrightarrow{a} 1 \xrightarrow{u} 2 \xrightarrow{b} 3 \xrightarrow{v} 4 \xrightarrow{d} 0, 0→e00 \xrightarrow{e} 0 and 1→c01 \xrightarrow{c} 0, the marked state 0, uncontrollable uu and vv, and the rule "vv never occurs". A supervisor that disables bb in state 2 keeps vv from occurring. But after auau the plant sits in state 2, where every possible event is disabled: a deadlock, and state 2 is not marked. The nonblocking supervisor for this rule disables aa in state 0 instead, and the closed loop is e∗e^*. The page supremal controllable sublanguage computes this.
  • Blocking by livelock. Let 0→a10 \xrightarrow{a} 1, 1→d11 \xrightarrow{d} 1 and 1→c01 \xrightarrow{c} 0 with state 0 marked. A supervisor that disables cc in state 1 lets the plant run ddd⋯d d d \cdots forever, and it never returns to a marked state. The closed loop has events, so it is not a deadlock, but it is blocking.
  • Nonblocking, but with the wrong marked language. Let 0→a1→a20 \xrightarrow{a} 1 \xrightarrow{a} 2 with Lm(G)={a,aa}L_m(G) = \{a, aa\}, and K={aa}K = \{aa\}. KK is controllable, but K‾∩Lm(G)={a,aa}≠K\overline{K} \cap L_m(G) = \{a, aa\} \neq K, so it is not Lm(G)L_m(G)-closed. A supervisor that enables both aa events gives Lm(S/G)={a,aa}L_m(S/G) = \{a, aa\}. Only a marking supervisor gives exactly KK.
  • Two nonblocking supervisors that block together. Two supervisors can each be nonblocking for GG and still block when they run at the same time. Their marked languages K1K_1 and K2K_2 are then conflicting: K1∩K2‾≠K1‾∩K2‾\overline{K_1 \cap K_2} \neq \overline{K_1} \cap \overline{K_2}. Modular control must check this.
  • Nonblocking automaton. An automaton GG is nonblocking if Lm(G)‾=L(G)\overline{L_m(G)} = L(G), that is, its reachable part is coaccessible. A trim automaton is nonblocking. See discrete-event system.
  • Deadlock and livelock. A deadlock state has no possible event and is not marked. A livelock is a set of states closed under the possible events, with no marked state. A livelock is a terminal strongly connected component without a marked state, or a set of such components.
  • Controllable language. The safety condition; see controllable language.
  • Lm(G)L_m(G)-closed. K=K‾∩Lm(G)K = \overline{K} \cap L_m(G): every marked plant string inside the legal prefixes is itself legal.
  • Nonconflicting languages. K1K_1 and K2K_2 are nonconflicting if K1∩K2‾=K1‾∩K2‾\overline{K_1 \cap K_2} = \overline{K_1} \cap \overline{K_2}. This is the condition for modular supervisors to be nonblocking together.
  • Liveness in games. In reactive synthesis, the analog is a reachability or Büchi objective. Nonblocking is weaker than "a marked state is reached": it asks only that one stays reachable.

References

  1. P. J. Ramadge and W. M. Wonham, Supervisory control of a class of discrete event processes, SIAM Journal on Control and Optimization 25(1), 1987, pages 206 to 230, nonblocking supervisors and the conditions for their existence
  2. P. J. G. Ramadge and W. M. Wonham, The control of discrete event systems, Proceedings of the IEEE 77(1), 1989, pages 81 to 98, the survey of the framework (marked languages and blocking)
  3. Christos G. Cassandras and Stéphane Lafortune, Introduction to Discrete Event Systems, third edition, Springer, 2021, Chapter 3, Supervisory Control (the nonblocking controllability theorem and marking supervisors)
  4. W. Murray Wonham and Kai Cai, Supervisory Control of Discrete-Event Systems, Springer, 2019, Chapter 3, Supervision of Discrete-Event Systems, Basics

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)
WritingW4 complete
  • a review of the text: no review record reviews/CG0Q66/text.yaml