Max-plus Algebraic Models

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

  1. F. Baccelli and G. Cohen and G. J. Olsder and J.P.Quadrat (1992): Synchronization and Linearity. John Wiley & Sons, 1992.
  2. Bernd Heidergott and Geert Jan Olsder and Jacob Woude (2006): Max Plus at Work. Princeton University Press, 2006.
  3. F. Baccelli and G. Cohen and G. J. Olsder and J.P.Quadrat (1992): Synchronization and Linearity. John Wiley & Sons, 1992.
  4. Bernd Heidergott and Geert Jan Olsder and Jacob Woude (2006): Max Plus at Work. Princeton University Press, 2006.
  5. H. Elahi and M. Geilen and T. Basten (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

Mohamadkhani, Alireza; Geilen, Marc; Voeten, Jeroen; Basten, Twan

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.

Abstract | Links | BibTeX

2022

Sanden, Bram; Geilen, Marc; Reniers, Michel; Basten, Twan

Partial-Order Reduction for Supervisory Controller Synthesis Journal Article

In: IEEE Transactions on Automatic Control, vol. 67, no. 2, pp. 870-885, 2022.

Links | BibTeX

2021

Sanden, Bram; Blankenstein, Yuri; Schiffelers, Ramon; Voeten, Jeroen

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.

Links | BibTeX

2020

Geilen, Marc C. W.; Skelin, Mladen; Kampenhout, J. Reinier; Ara, Hadi Alizadeh; Basten, Twan; Stuijk, Sander; Goossens, Kees G. W.

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.

Links | BibTeX

Basten, Twan; Bastos, João; Medina, Róbinson; Sanden, Bram; Geilen, Marc C. W.; Goswami, Dip; Reniers, Michel A.; Stuijk, Sander; Voeten, Jeroen P. M.

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.

Links | BibTeX

2018

Sanden, Bram

performance analysis and optimization of supervisory controllers PhD Thesis

Eindhoven University of Technology, 2018.

BibTeX

2016

Sanden, Bram; Bastos, João; Voeten, Jeroen; Geilen, Marc; Reniers, Michel A.; Basten, Twan; Jacobs, Johan; Schiffelers, Ramon R. H.

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.

Links | BibTeX

2014

Geilen, Marc; Falk, Joachim; Haubelt, Christian; Basten, Twan; Theelen, Bart; Stuijk, Sander

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.

Links | BibTeX

2012

Yang, Yang; Geilen, Marc; Basten, Twan; Stuijk, Sander; Corporaal, Henk

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.

Links | BibTeX

2010

Geilen, Marc; Stuijk, Sander

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.

Links | BibTeX

2006

Heidergott, Bernd; Olsder, Geert Jan; Woude, Jacob

Max Plus at Work Book

Princeton University Press, 2006.

BibTeX

1998

Cochet-Terrasson, J.; Cohen, G.; Gaubert, S.; Gettrick, M. M.; Quadrat, J. -P.

Numerical computation of spectral elements in max-plus algebra Proceedings Article

In: Proc.~of the IFAC Conference on System Structure and Control, Nantes, 1998.

BibTeX

1995

Gaubert, S.

Performance Evaluation of (max, +) automata Journal Article

In: IEEE Trans. Automatic Control, vol. 40, no. 12, pp. 2014-2025, 1995.

BibTeX