Max-plus algebra [1][2] is a linear algebra to capture timing and performance of tasks and their dependencies. It has a wide variety of applications, from logistics, scheduling, cyber-physical systems to data processing and computational processes.
It works on the set \(\mathbb{R}\) of real numbers, extended with the special element \(-\infty\). It defines two operators:
$$x\oplus y = \max(x,y)$$
$$x\otimes y = x+y$$
\(\oplus\) typically captures dependencies and synchronization events, for example, a task that requires two other tasks to be complete, can start at time \(x \oplus y\) if \(x\) and \(y\) are the respective completion times of those tasks. The \(\otimes\) operator, on the other hand, typically captures durations or temporal constraints. For example, a task that starts at time \(x\) and takes \(y\) time units completes at time \(x\otimes y\).
With these operators, it defines a linear algebra that is often extended to a matrix-vector calculus similar to traditional linear algebra. One can then use this to capture max-plus-linear systems with common state-space equations.
$$\mathbf{x}(k+1) = \mathbf{A} \otimes \mathbf{x}(k) \oplus \mathbf{B} \otimes \mathbf{u}(k)$$
$$\mathbf{y}(k) = \mathbf{C} \otimes \mathbf{x}(k) \oplus \mathbf{D} \otimes \mathbf{u}(k)$$
A rich set of properties and analysis methods have been developed [3][4] for this algebra.
For the interested reader, more details and exercises about max-plus algebra can also be found in the Lecture notes on Dataflow modeling and Max-Plus algebra used in the course Computational Modeling (5XIE0). And here are some related exam problems.
Using Max-Plus Algebra
We have used max-plus algebra to capture the behavior of Timed Data Flow models, where firing times of actors and production times of tokens can conveniently be expressed as max-plus-linear combinations of time stamps of input tokens and internal tokens of a dataflow graph. Most of the analysis algorithms for timed dataflow models are based on max-plus algebra.
We have also used max-plus algebraic models to capture logistic processes in cyber-physical systems. We use Activity Models to specify logistic systems. The semantics of activities is captured with max-plus matrices and activity models themselves as switching max-plus linear systems, using max-plus automata.
[5] describes a compositional semantics of max-plus linear systems, where state-space representations of components are composed to construct new state-space representations of the composites.
Tools
We have implemented max-plus algebra analysis algorithms in the C++ SDF3 open source tool set and also in the Python open source cmlib tool set.
References
- (1992): Synchronization and Linearity. John Wiley & Sons, 1992.
- (2006): Max Plus at Work. Princeton University Press, 2006.
- (1992): Synchronization and Linearity. John Wiley & Sons, 1992.
- (2006): Max Plus at Work. Princeton University Press, 2006.
- (2020): A Compositional Model for Multi-Rate Max-Plus Linear Systems. In: IFAC-PapersOnLine, vol. 53, no. 4, pp. 54-61, 2020, ISSN: 2405-8963, (15th IFAC Workshop on Discrete Event Systems WODES 2020 — Rio de Janeiro, Brazil, 11-13 November 2020).
Selected Related Publications
2023
Modeling and analysis of switching max-plus linear systems with discrete-event feedback Journal Article
In: Discrete Event Dynamic Systems, vol. 33, no. 3, pp. 341–372, 2023, ISSN: 0924-6703.
2022
Partial-Order Reduction for Supervisory Controller Synthesis Journal Article
In: IEEE Transactions on Automatic Control, vol. 67, no. 2, pp. 870-885, 2022.
2021
LSAT: Specification and Analysis of Product Logistics in Flexible Manufacturing Systems Proceedings Article
In: 2021 IEEE 17th International Conference on Automation Science and Engineering (CASE), pp. 1-8, 2021.
2020
Scenarios in Dataflow Modeling and Analysis Book Chapter
In: System-Scenario-based Design Principles and Applications, pp. 145–180, Springer International Publishing, Cham, 2020, ISBN: 978-3-030-20343-6.
Scenarios in the Design of Flexible Manufacturing Systems Book Chapter
In: System-Scenario-based Design Principles and Applications, pp. 181–224, Springer International Publishing, Cham, 2020.
2018
performance analysis and optimization of supervisory controllers PhD Thesis
Eindhoven University of Technology, 2018.
2016
Compositional specification of functionality and timing of manufacturing systems Proceedings Article
In: 2016 Forum on Specification and Design Languages, FDL 2016, Bremen, Germany, September 14-16, 2016, pp. 1–8, 2016.
2014
Performance analysis of weakly-consistent scenario-aware dataflow graphs Proceedings Article
In: 2014 48th Asilomar Conference on Signals, Systems and Computers, pp. 393-397, 2014.
2012
Playing games with scenario- and resource-aware SDF graphs through policy iteration Proceedings Article
In: 2012 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 194-199, 2012.
2010
Worst-Case Performance Analysis of Synchronous Dataflow Scenarios Proceedings Article
In: Proceedings of the Eighth IEEE/ACM/IFIP International Conference on Hardware/Software Codesign and System Synthesis, pp. 125–134, Association for Computing Machinery, Scottsdale, Arizona, USA, 2010, ISBN: 9781605589053.
2006
Max Plus at Work Book
Princeton University Press, 2006.
1998
Numerical computation of spectral elements in max-plus algebra Proceedings Article
In: Proc.~of the IFAC Conference on System Structure and Control, Nantes, 1998.
1995
Performance Evaluation of (max, +) automata Journal Article
In: IEEE Trans. Automatic Control, vol. 40, no. 12, pp. 2014-2025, 1995.