Conceptcore
Supervisory control theory
Also called Ramadge-Wonham framework, RW theory.
A theory in which a supervisor disables controllable events of a plant automaton so that the closed loop meets a language specification and stays nonblocking.
Supervisory control theory is a method to build a controller, called a supervisor, for a discrete-event system: a plant modeled as an automaton whose transitions are events such as "start", "finish" or "fail". The supervisor watches the events and, after each one, decides which of the next events it allows. It can only block the controllable events. Events such as a failure or the end of a job are uncontrollable, and the supervisor must accept them. The goal is a closed loop whose strings of events stay inside a specification language, and that can always complete its task. Ramadge and Wonham introduced the theory in 1987, so it is also called the Ramadge-Wonham framework. It is close to reactive synthesis, which also builds a controller that plays against an environment. The differences are in the setting: here the plant is given as an automaton, the controller may only disable events and never forces one, the specification is a language (often regular) instead of a temporal logic formula, and the theory looks for the most permissive supervisor, the one that disables as little as possible.
In plain words
Think of a plant as a board game where some moves are yours and some belong to nature. You may forbid any of your own moves at any time. You can never stop a move of nature. A rule book says which sequences of moves are acceptable. You want a policy for forbidding moves so that the game always stays within the rule book, and so that it can always reach a finished position. Among all such policies, you want the one that forbids the least.
Such a policy exists exactly when the rule book never asks you to stop a move of nature. If it does, you shrink the rule book until it no longer does. The largest shrunken rule book is unique, and a computer can find it.
The idea
Plant and supervisor. The plant is an automaton over , with generated language and marked language . A supervisor is a map that gives, after each string , the set of enabled events. It must always enable the uncontrollable events: . The closed-loop language is defined by induction: , and if and only if , and . The marked closed-loop language is . is nonblocking if , where the bar is the prefix closure.
Existence. A language is controllable if : no uncontrollable event leads a legal string out of the legal prefixes. The central theorem (Ramadge and Wonham 1987) says: for nonempty , there is a supervisor with if and only if is controllable. With the marking condition, there is a nonblocking supervisor with if and only if is controllable and -closed (). The supervisor is simple: .
When the specification is not controllable. A union of controllable languages is controllable. So every specification has a largest controllable sublanguage , the supremal controllable sublanguage, and the supervisor for it is the least restrictive one that meets . Wonham and Ramadge (1987) showed that it is the largest fixpoint of a monotone operator. For a regular given by an automaton , the fixpoint is computed on the product of and , in time polynomial in the number of product states and events.
Implementation. In practice the supervisor is itself an automaton that runs in parallel with and shares its events. The trim automaton that the fixpoint returns is such a supervisor. In each of its states, the disabled events are the controllable events that allows but the supervisor does not.
Extensions. With unobservable events, the supervisor sees only the projection , and controllability is not enough: the language must also be observable. Observability is not closed under union, so there is no largest observable sublanguage in general. The stronger condition of normality is closed under union. Other extensions are modular supervisors (one per specification), decentralized supervisors (several local agents), hierarchical control and supervisors of Petri nets, for example by place invariants.
Examples
A machine that must not fail. A machine goes from idle to working by the controllable event , and back by the uncontrollable event . From working it can also fail by the uncontrollable event . The specification "never fail" is not controllable: after , the event is possible and no supervisor can stop it. The supremal controllable sublanguage is , so the only safe supervisor never starts the machine. The page discrete-event system gives the full automaton.
Two machines and a buffer. Machine starts (, controllable) and finishes (, uncontrollable) and puts its part into a buffer with one slot. Machine starts (, controllable) by taking the part from the buffer, and finishes (, uncontrollable). The plant is the product of and , with 4 states (each machine idle or working), and the state where both are idle is marked. The specification has two states, buffer empty and buffer full: goes from empty to full, from full to empty, and when full (overflow) and when empty (underflow) are not allowed. The product of and the plant has 8 reachable states and 12 transitions. The fixpoint removes the two states with a full buffer and working, because there the uncontrollable would overflow the buffer. What is left has 6 states and 8 transitions, and it is nonblocking. The supervisor does two things:
| state (buffer, , ) | disabled event | reason |
|---|---|---|
| full, idle, idle | would finish into a full buffer | |
| full, idle, working | the same | |
| empty, idle, idle | there is no part to take | |
| empty, working, idle | the same |
It never disables more than this, so it is the least restrictive supervisor. The implementation on supremal controllable sublanguage computes these numbers in its tests.
Where it is used
- Manufacturing cells, automated guided vehicles, railway and traffic interlocking, and batch processes, where the plant is a set of machines and the specification forbids collisions, overflows and deadlocks.
- Communication protocols and software components. Interface synthesis in hardware design asks the same question for a controller that may only block some events.
- Reactive synthesis and games on graphs, such as parity games, solve a more general problem for temporal logic specifications. A supervisory control problem with a safety and nonblocking specification is a game of this kind, with the uncontrollable events as the moves of the environment.
- Fault handling: a supervisor can be combined with a diagnoser that detects unobservable faults, and then switch to a recovery mode.
- Control of continuous plants through a finite abstraction, as in symbolic control.
References
- 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, the controllability condition and the existence of a supervisor for a given language
- W. M. Wonham and P. J. Ramadge, On the supremal controllable sublanguage of a given language, SIAM Journal on Control and Optimization 25(3), 1987, pages 637 to 659, the supremal controllable sublanguage as the largest fixpoint of a monotone operator
- 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
- Christos G. Cassandras and Stéphane Lafortune, Introduction to Discrete Event Systems, third edition, Springer, 2021, Chapter 3, Supervisory Control
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag GEW809 Edit this page History Report an error Markdown