https://yalmip.github.io/example/maxplus/
This example illustrates how control based on max-plus algebra can be implemented in YALMIP, by relying on automatic convexity analysis and the overloaded max operator.
If you are unfamiliar with max-plus control and tropical algebra, an introduction to the max-plus control problem can be found in this report by B. De Schutter and T. van den Boom, whereas a more detailed mathematical background to tropical algebra can be found in this mini-course by Stéphane Gaubert.
https://github.com/msnhdyt/Max-Plus-Algebra/blob/main/Eigenvector_in_Max_Plus_Algebra.ipynb