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
with a set of states , a finite alphabet of events , a partial transition function , an initial state and a set of marked states . The time axis is the event count: step is the -th event, and its real time is not part of the model. Event can occur in state only if is defined. Then the state becomes . We extend to strings in the usual way.
The standing assumptions of this area are these. and are finite, unless a page says otherwise (a Petri net can have an infinite reachable state set). 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:
- : a supervisor can prevent a controllable event in , but not an uncontrollable event in , such as a failure or the end of a task.
- : a sensor records the observable events in , and the unobservable events in are not seen. The natural projection erases the unobservable events of a string, so is what an observer sees when runs .
What it counts
The model predicts which sequences of events can occur. Two languages describe it:
- the generated language , all the strings that the plant can run; it is prefix-closed;
- the marked language , the strings that end in a marked state, which usually means that a task is complete.
is the prefix closure of a language , the set of all prefixes of its strings. is nonblocking if : 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 to a given specification, can an observer find out from that a fault occurred, and is the result nonblocking.
The size of a finite DES is its number of states and its number of events . 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 , working and down . The events are (start), (finish), (fail) and (repair):
and are controllable, and and are not. The strings of of length 0 to 8 number 1, 1, 2, 2, 3, 4, 5, 7 and 9, and those of number 1, 0, 1, 1, 1, 2, 2, 3 and 4. For example has the two strings and of length 3, and only is marked. Every state can reach , so is nonblocking. The specification "the machine never fails" is the set of strings without . A supervisor cannot meet it, because after it cannot stop . The largest part of it that a supervisor can enforce is : never start the machine. The page controllable language makes this exact.
Relation to other models
- Finite automata. As a mathematical object, is a DFA with a partial transition function, and is the language that the DFA accepts. The Moore machine is closer when states have outputs. With unobservable events, seen through acts as a nondeterministic automaton over , and an observer of 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 if and only if is controllable (Ramadge and Wonham 1987). The largest controllable sublanguage always exists, and for regular 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 . The twin plant test decides it in time polynomial in .
- 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
- 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)
- 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)
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 2756H2 Edit this page History Report an error Markdown