Algorithm Search⌘K

Modelintro

Discrete-event system

Also called discrete event dynamic system.

A system whose state is discrete and changes only when an event occurs. It is modeled by an automaton or a Petri net, and its behavior is a language of event strings.

A discrete-event system (DES) is a dynamical system whose state takes values in a discrete set and changes only when an event occurs. An event is an instant action such as "machine 1 starts", "a part arrives" or "a valve fails". Between two events nothing changes, and there is no clock in the basic model: only the order of the events counts. Manufacturing cells, communication protocols, traffic lights, elevators and fault-prone plants are modeled in this way. The standard model is an automaton that generates strings of events, so the theory uses the tools of deterministic finite automata and regular languages. It differs from a DFA in what it is for: the automaton is a model of a physical process to be controlled or diagnosed, not a recognizer of an input word. Petri nets are a second standard model. Adding clocks gives timed automata, and adding continuous dynamics gives hybrid automata.

The machine

A DES is a generator, an automaton

G=(X,Σ,δ,x0,Xm),G = (X, \Sigma, \delta, x_0, X_m),

with a set of states XX, a finite alphabet of events Σ\Sigma, a partial transition function δ:X×Σ→X\delta : X \times \Sigma \to X, an initial state x0x_0 and a set of marked states Xm⊆XX_m \subseteq X. The time axis is the event count: step kk is the kk-th event, and its real time is not part of the model. Event σ\sigma can occur in state xx only if δ(x,σ)\delta(x, \sigma) is defined. Then the state becomes δ(x,σ)\delta(x, \sigma). We extend δ\delta to strings in the usual way.

The standing assumptions of this area are these. XX and Σ\Sigma are finite, unless a page says otherwise (a Petri net can have an infinite reachable state set). GG is deterministic: one event from one state leads to at most one state. Nondeterminism is modeled by unobservable events, as below. Events are not simultaneous: two events always occur in some order.

For control and diagnosis the alphabet is split in two ways:

  • Σ=Σc∪Σuc\Sigma = \Sigma_c \cup \Sigma_{uc}: a supervisor can prevent a controllable event in Σc\Sigma_c, but not an uncontrollable event in Σuc\Sigma_{uc}, such as a failure or the end of a task.
  • Σ=Σo∪Σuo\Sigma = \Sigma_o \cup \Sigma_{uo}: a sensor records the observable events in Σo\Sigma_o, and the unobservable events in Σuo\Sigma_{uo} are not seen. The natural projection P:Σ∗→Σo∗P : \Sigma^* \to \Sigma_o^* erases the unobservable events of a string, so P(s)P(s) is what an observer sees when GG runs ss.

What it counts

The model predicts which sequences of events can occur. Two languages describe it:

  • the generated language L(G)={s∈Σ∗:δ(x0,s) is defined}L(G) = \{s \in \Sigma^* : \delta(x_0, s) \text{ is defined}\}, all the strings that the plant can run; it is prefix-closed;
  • the marked language Lm(G)={s∈L(G):δ(x0,s)∈Xm}L_m(G) = \{s \in L(G) : \delta(x_0, s) \in X_m\}, the strings that end in a marked state, which usually means that a task is complete.

K‾\overline{K} is the prefix closure of a language KK, the set of all prefixes of its strings. GG is nonblocking if Lm(G)‾=L(G)\overline{L_m(G)} = L(G): from each reachable state, some string leads to a marked state. A blocking state is a deadlock (no event is possible) or part of a livelock (events are possible, but none leads to a marked state). The questions of the theory are about these languages: can a supervisor restrict L(G)L(G) to a given specification, can an observer find out from P(s)P(s) that a fault occurred, and is the result nonblocking.

The size of a finite DES is its number of states ∣X∣|X| and its number of events ∣Σ∣|\Sigma|. The algorithms of this area are analyzed in the word RAM model with these numbers as the size, and a bound is often in the size of a product of two automata, built by the product construction.

Example. A machine has three states: idle II, working WW and down DD. The events are aa (start), bb (finish), ff (fail) and rr (repair):

δ(I,a)=W,δ(W,b)=I,δ(W,f)=D,δ(D,r)=I,x0=I,Xm={I}.\delta(I, a) = W, \quad \delta(W, b) = I, \quad \delta(W, f) = D, \quad \delta(D, r) = I, \qquad x_0 = I, \quad X_m = \{I\}.

aa and rr are controllable, and bb and ff are not. The strings of L(G)L(G) of length 0 to 8 number 1, 1, 2, 2, 3, 4, 5, 7 and 9, and those of Lm(G)L_m(G) number 1, 0, 1, 1, 1, 2, 2, 3 and 4. For example L(G)L(G) has the two strings abaaba and afrafr of length 3, and only afrafr is marked. Every state can reach II, so GG is nonblocking. The specification "the machine never fails" is the set of strings without ff. A supervisor cannot meet it, because after aa it cannot stop ff. The largest part of it that a supervisor can enforce is {ε}\{\varepsilon\}: never start the machine. The page controllable language makes this exact.

Relation to other models

  • Finite automata. As a mathematical object, GG is a DFA with a partial transition function, and Lm(G)L_m(G) is the language that the DFA accepts. The Moore machine is closer when states have outputs. With unobservable events, GG seen through PP acts as a nondeterministic automaton over Σo\Sigma_o, and an observer of GG is its subset construction.
  • Petri nets. A Petri net is a DES whose state is a marking (a vector of token counts). A bounded net has a finite reachability graph, which is an automaton as above. An unbounded net can have an infinite state set, and some of its languages are not regular. Supervision based on place invariants uses the net structure directly.
  • Timed models. A timed event graph is a Petri net with delays, and it is linear in the max-plus algebra. Timed automata add clocks to the states and transitions.
  • Stochastic models. A DES with event probabilities or random lifetimes is a Markov chain or a semi-Markov process. A hidden Markov model is the stochastic form of a partially observed DES.
  • Hybrid models. A hybrid automaton has a continuous state that follows a differential equation in each discrete state. A switched system is the special case where the discrete state is an input or a free signal.
  • Games. A supervisor plays against the uncontrollable events. Reactive synthesis studies the same kind of game for temporal logic specifications, with the environment as the opponent.

Known results in the model

  • Supervisory control. A supervisor that disables controllable events can give exactly the closed-loop language K‾\overline{K} if and only if KK is controllable (Ramadge and Wonham 1987). The largest controllable sublanguage always exists, and for regular KK the fixed point on the product automaton computes it in time polynomial in the size of the product. The framework is on supervisory control theory, and the nonblocking version on nonblocking supervisor.
  • Partial observation. With unobservable events, the condition becomes controllability plus observability. Observability is not closed under union, so a largest observable sublanguage need not exist. Normality is closed under union and gives a largest sublanguage (Lin and Wonham 1988).
  • Diagnosis. A fault event that is unobservable can be detected within a bounded delay if and only if the system is diagnosable. The diagnoser decides this and can be exponential in ∣X∣|X|. The twin plant test decides it in time polynomial in ∣X∣|X|.
  • Petri nets. Reachability of a marking in a Petri net is decidable; see Petri net reachability decidability. For finite automata, reachability is a graph search.
  • Abstraction. Symbolic control builds a finite DES that abstracts a continuous plant, and then uses the methods of this page on the abstraction.

References

  1. Christos G. Cassandras and Stéphane Lafortune, Introduction to Discrete Event Systems, third edition, Springer, 2021, Chapter 2 (Languages and Automata), Chapter 4 (Petri Nets) and Chapter 5 (Timed and Hybrid Models)
  2. W. Murray Wonham and Kai Cai, Supervisory Control of Discrete-Event Systems, Springer, 2019, Chapter 3, Supervision of Discrete-Event Systems, Basics (generators and their languages)
  3. 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 model of a discrete event system as a generator of a language

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/2756H2/text.yaml