Algorithm Search⌘K

Theoremadvanced

Max-plus eigenvalue theorem

Also called cycle time theorem of max-plus systems.

An irreducible max-plus matrix has exactly one eigenvalue, the maximum cycle mean of its graph. It has a finite eigenvector, and x(k) / k of x(k+1) = A x(k) tends to that value.

The max-plus eigenvalue theorem says that a square matrix AA over the max-plus algebra whose graph is strongly connected has exactly one eigenvalue λ\lambda: the maximum, over all circuits of the graph, of the circuit weight divided by the circuit length. The matrix has an eigenvector with all entries finite, and every solution of x(k+1)=A⊗x(k)x(k+1) = A \otimes x(k) grows like kλk \lambda in each entry. In a timed event graph, λ\lambda is the cycle time, the mean time between two firings of each transition once the system runs. The theorem is the max-plus counterpart of the Perron-Frobenius theorem for nonnegative matrices. The value λ\lambda is a maximum cycle mean, so Karp's algorithm computes it after a change of sign; this page states and proves the theorem and does not repeat the algorithm.

Statement

Notation is that of max-plus algebra: ε=−∞\varepsilon = -\infty, a⊕b=max⁡(a,b)a \oplus b = \max(a, b), a⊗b=a+ba \otimes b = a + b. For A∈Rmax⁡n×nA \in \mathbb{R}_{\max}^{n \times n}, the graph G(A)\mathcal{G}(A) has an arc j→ij \to i of weight AijA_{ij} when Aij≠εA_{ij} \ne \varepsilon. A circuit ζ\zeta has a weight ∣ζ∣w|\zeta|_w (the sum of its arc weights) and a length ∣ζ∣ℓ≥1|\zeta|_\ell \ge 1 (its number of arcs). The maximum cycle mean is

ρ(A)=max⁡ζ∣ζ∣w∣ζ∣ℓ,\rho(A) = \max_{\zeta} \frac{|\zeta|_w}{|\zeta|_\ell},

over all elementary circuits of G(A)\mathcal{G}(A). A circuit that reaches the maximum is critical. A scalar λ∈Rmax⁡\lambda \in \mathbb{R}_{\max} is an eigenvalue of AA if A⊗v=λ⊗vA \otimes v = \lambda \otimes v for some vector vv with at least one entry different from ε\varepsilon.

Theorem. Let A∈Rmax⁡n×nA \in \mathbb{R}_{\max}^{n \times n} be irreducible: G(A)\mathcal{G}(A) is strongly connected and has at least one arc. Then:

  1. AA has exactly one eigenvalue, and it is λ=ρ(A)\lambda = \rho(A), a finite real number.
  2. Every eigenvector of AA has all entries finite. For any node cc on a critical circuit, the column cc of ((−λ)⊗A)+\left((-\lambda) \otimes A\right)^+ is an eigenvector.
  3. For every x(0)∈Rnx(0) \in \mathbb{R}^n, the solution of x(k+1)=A⊗x(k)x(k+1) = A \otimes x(k) satisfies lim⁡k→∞xi(k)/k=λ\lim_{k \to \infty} x_i(k)/k = \lambda for every ii. More precisely, max⁡i∣xi(k)−kλ−vi∣\max_i |x_i(k) - k\lambda - v_i| stays bounded for any eigenvector vv.

The theorem is in Heidergott, Olsder and van der Woude (2006), Chapter 2, and in Baccelli, Cohen, Olsder and Quadrat (1992). A stronger fact, the cyclicity theorem, is stated under Consequences with its source; it is not proved here.

In plain words

Think of a network of tasks. Each task starts again only after certain other tasks have finished, and each link has a fixed delay. Follow any closed loop of links: the total delay divided by the number of links is that loop's average delay per step. The theorem says that the slowest loop sets the pace of the whole network. Every task repeats, in the long run, once per this average delay, no matter how the network starts. Faster loops must wait for the slowest one, because the network is connected and every task depends, directly or not, on every other task. There is also a steady pattern of start times that moves forward by exactly this amount at each step.

Proof

Let AA be irreducible. For n=1n = 1, A=[a]A = [a] with aa finite, and the steps below give λ=a\lambda = a.

Step 1: eigenvectors are finite, and eigenvalues are finite. Let A⊗v=λ⊗vA \otimes v = \lambda \otimes v with vj≠εv_j \ne \varepsilon for some jj. Since G(A)\mathcal{G}(A) is strongly connected with an arc, some arc j→ij \to i exists. Then λ+vi=(A⊗v)i≥Aij+vj>−∞\lambda + v_i = (A \otimes v)_i \ge A_{ij} + v_j > -\infty, so λ≠ε\lambda \ne \varepsilon and vi≠εv_i \ne \varepsilon. Following arcs, finiteness spreads from jj to every node, because every node can be reached from jj. Also λ<+∞\lambda < +\infty since all entries are in Rmax⁡\mathbb{R}_{\max}.

Step 2: λ≥ρ(A)\lambda \ge \rho(A). Let vv be a finite eigenvector. For every arc j→ij \to i, the eigen equation gives λ+vi≥Aij+vj\lambda + v_i \ge A_{ij} + v_j. Add these inequalities along a circuit ζ\zeta with nodes i1→i2→⋯→iℓ→i1i_1 \to i_2 \to \cdots \to i_\ell \to i_1. Each vv appears once on each side, so they cancel, and ℓλ≥∣ζ∣w\ell \lambda \ge |\zeta|_w. So λ\lambda is at least the mean of every circuit.

Step 3: λ≤ρ(A)\lambda \le \rho(A). For each node ii, the maximum in (A⊗v)i=max⁡j(Aij+vj)(A \otimes v)_i = \max_j (A_{ij} + v_j) is reached at some j=π(i)j = \pi(i) with Aiπ(i)≠εA_{i\pi(i)} \ne \varepsilon, and there λ+vi=Aiπ(i)+vπ(i)\lambda + v_i = A_{i \pi(i)} + v_{\pi(i)}. The sequence i,π(i),π(π(i)),…i, \pi(i), \pi(\pi(i)), \dots takes values in a finite set, so it repeats; the repeated part is a circuit of G(A)\mathcal{G}(A), run along the arcs π(i)→i\pi(i) \to i. Adding the equalities along it gives ℓλ=∣ζ∣w\ell \lambda = |\zeta|_w for that circuit. So λ\lambda equals some circuit mean, and with Step 2, λ=ρ(A)\lambda = \rho(A). Steps 1 to 3 show that every eigenvalue equals ρ(A)\rho(A), so there is at most one.

Step 4: an eigenvector exists. Let λ=ρ(A)\lambda = \rho(A) and B=(−λ)⊗AB = (-\lambda) \otimes A, that is Bij=Aij−λB_{ij} = A_{ij} - \lambda. Every circuit of G(B)\mathcal{G}(B) has weight ∣ζ∣w−∣ζ∣ℓλ≤0|\zeta|_w - |\zeta|_\ell \lambda \le 0, and critical circuits have weight 0. A walk of length n+1n + 1 or more repeats a node, so it contains a circuit; removing the circuit does not lower the weight. So B⊗k⪯B⊕⋯⊕B⊗nB^{\otimes k} \preceq B \oplus \cdots \oplus B^{\otimes n} for all k>nk > n, and B+=B⊕⋯⊕B⊗nB^+ = B \oplus \cdots \oplus B^{\otimes n}. Every entry of B+B^+ is finite by strong connectivity. From the definition, B+=B⊕B⊗B+B^+ = B \oplus B \otimes B^+.

Let cc be a node on a critical circuit. Then (B+)cc=0(B^+)_{cc} = 0: the critical circuit gives a closed walk of weight 0 through cc, and no closed walk has positive weight, because it splits into circuits. Let vv be column cc of B+B^+, so vc=0v_c = 0. Column cc of B+=B⊕B⊗B+B^+ = B \oplus B \otimes B^+ reads v=B⋅c⊕B⊗vv = B_{\cdot c} \oplus B \otimes v. For each ii, (B⊗v)i≥Bic+vc=Bic(B \otimes v)_i \ge B_{ic} + v_c = B_{ic}, so the term B⋅cB_{\cdot c} is absorbed and v=B⊗vv = B \otimes v. Adding λ\lambda to both sides gives A⊗v=λ⊗vA \otimes v = \lambda \otimes v.

Step 5: the cycle time. The map x↦A⊗xx \mapsto A \otimes x is monotone (x≤yx \le y entrywise gives A⊗x≤A⊗yA \otimes x \le A \otimes y) and homogeneous (A⊗(α+x)=α+A⊗xA \otimes (\alpha + x) = \alpha + A \otimes x for a real scalar α\alpha). Let vv be a finite eigenvector and x(0)∈Rnx(0) \in \mathbb{R}^n, and set α=min⁡i(xi(0)−vi)\alpha = \min_i (x_i(0) - v_i) and β=max⁡i(xi(0)−vi)\beta = \max_i (x_i(0) - v_i). Then α+v≤x(0)≤β+v\alpha + v \le x(0) \le \beta + v, and kk applications of the map give

α+kλ+v≤x(k)≤β+kλ+v.\alpha + k\lambda + v \le x(k) \le \beta + k\lambda + v.

So ∣xi(k)−kλ−vi∣≤max⁡(∣α∣,∣β∣)|x_i(k) - k\lambda - v_i| \le \max(|\alpha|, |\beta|), and xi(k)/k→λx_i(k)/k \to \lambda. ■\blacksquare

Example. For A=[3724]A = \begin{bmatrix} 3 & 7 \\ 2 & 4 \end{bmatrix} the circuits are the loops of means 3 and 4, and 1→2→11 \to 2 \to 1 with mean (2+7)/2=4.5(2 + 7)/2 = 4.5. So λ=4.5\lambda = 4.5. Then B=[−1.52.5−2.5−0.5]B = \begin{bmatrix} -1.5 & 2.5 \\ -2.5 & -0.5 \end{bmatrix}, B⊗2=[02−30]B^{\otimes 2} = \begin{bmatrix} 0 & 2 \\ -3 & 0 \end{bmatrix} and B+=[02.5−2.50]B^+ = \begin{bmatrix} 0 & 2.5 \\ -2.5 & 0 \end{bmatrix}. Column 1 gives v=(0,−2.5)v = (0, -2.5), and indeed A⊗v=(max⁡(3,4.5),max⁡(2,1.5))=(4.5,2)=4.5⊗vA \otimes v = (\max(3, 4.5), \max(2, 1.5)) = (4.5, 2) = 4.5 \otimes v. Column 2 is 2.5⊗v2.5 \otimes v, the same eigenvector up to a scalar. From x(0)=(0,0)x(0) = (0, 0) the recurrence gives x(4)=(20,18)x(4) = (20, 18) and x(5)=(25,22)x(5) = (25, 22); the bounds of Step 5 with α=0\alpha = 0 and β=2.5\beta = 2.5 give 18≤x1(4)≤20.518 \le x_1(4) \le 20.5 and 15.5≤x2(4)≤1815.5 \le x_2(4) \le 18, which hold.

Consequences

  • Cycle time of timed event graphs. In a strongly connected timed event graph, each transition fires once per λ\lambda time units in the long run, and 1/λ1/\lambda is the throughput. The critical circuits are the bottleneck: lowering a delay that is not on a critical circuit does not change λ\lambda.
  • Computation. λ\lambda is a maximum cycle mean. Negating the weights turns it into a minimum cycle mean, which Karp's algorithm computes in O(nm)O(n m) time for mm arcs (Karp 1978); see the minimum mean cycle problem. A max-plus form of Howard's policy iteration also computes it. Heidergott et al. (2006) describe numerical procedures in Chapter 5.
  • Cyclicity. For irreducible AA there are integers K≥0K \ge 0 and c≥1c \ge 1 with A⊗(k+c)=(cλ)⊗A⊗kA^{\otimes (k + c)} = (c \lambda) \otimes A^{\otimes k} for all k≥Kk \ge K (Cohen, Dubois, Quadrat and Viot 1985; Heidergott et al. 2006, Section 3.1). So x(k)x(k) becomes periodic up to the shift kλk\lambda after a finite transient. For the example above, A⊗4=9⊗A⊗2A^{\otimes 4} = 9 \otimes A^{\otimes 2}, so c=2c = 2 works with K=2K = 2 for the powers; the trajectory from (0,0)(0, 0) goes (7,4),(11,9),(16,13),(20,18),…(7, 4), (11, 9), (16, 13), (20, 18), \dots and repeats the increments (4,5)(4, 5) and (5,4)(5, 4).
  • The eigenspace. The eigenvectors are the max-plus combinations of the columns of B+B^+ at critical nodes, and two critical nodes on the same critical circuit give proportional columns, as in the example. The proof is in Heidergott et al. (2006), Chapter 2.

Tightness

Irreducibility cannot be dropped. Take A=[1εε2]A = \begin{bmatrix} 1 & \varepsilon \\ \varepsilon & 2 \end{bmatrix}, whose graph has two loops and no arc between the nodes. Then (0,ε)(0, \varepsilon) is an eigenvector for the eigenvalue 1 and (ε,0)(\varepsilon, 0) is an eigenvector for the eigenvalue 2. So the eigenvalue is not unique, the eigenvectors are not finite, and x(k)=(x1(0)+k,x2(0)+2k)x(k) = (x_1(0) + k, x_2(0) + 2k) grows at two different rates. The rates of a reducible matrix form a cycle time vector, which can have different entries (Heidergott et al. 2006, Chapter 3).

The bound in Step 5 cannot be replaced by convergence of x(k)−kλx(k) - k\lambda in general: in the example the difference keeps switching between two values, because the cyclicity is 2.

History

Cuninghame-Green studied the max-plus eigenvalue problem for models of industrial processes in the 1960s and collected the theory of max and plus on matrices in his 1979 book. Cohen, Dubois, Quadrat and Viot (1985) gave the linear system view of discrete event systems in max-plus algebra and proved the periodic behavior of matrix powers. Baccelli, Cohen, Olsder and Quadrat (1992) presented the full theory, and Heidergott, Olsder and van der Woude (2006) gave a textbook account with applications to railway timetables. Karp (1978) gave the minimum cycle mean algorithm independently, in graph theory.

References

  1. Bernd Heidergott, Geert Jan Olsder and Jacob van der Woude, Max Plus at Work, Princeton University Press, 2006, Chapter 2, Spectral Theory (Section 2.2, Eigenvalues and Eigenvectors); Chapter 3, Periodic Behavior and the Cycle-Time Vector (Section 3.1, Cyclicity and Transient Time)
  2. François Baccelli, Guy Cohen, Geert Jan Olsder and Jean-Pierre Quadrat, Synchronization and Linearity, An Algebra for Discrete Event Systems, Wiley, 1992, the chapter on max-plus algebra, the spectral theory of irreducible matrices and the periodicity of their powers
  3. Guy Cohen, Didier Dubois, Jean-Pierre Quadrat and Michel Viot, A linear-system-theoretic view of discrete-event processes and its use for performance evaluation in manufacturing, IEEE Transactions on Automatic Control AC-30(3), 210-220, 1985, the periodic behavior of the powers of an irreducible max-plus matrix (cyclicity)
  4. Raymond Cuninghame-Green, Minimax Algebra, Lecture Notes in Economics and Mathematical Systems 166, Springer, 1979, the eigenvalue problem for max-plus matrices
  5. Richard M. Karp, A characterization of the minimum cycle mean in a digraph, Discrete Mathematics 23(3), 309-311, 1978, the formula for the minimum cycle mean, which gives the maximum cycle mean after a change of sign

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/CAQ0PK/text.yaml