Max-plus algebra eigenvalue and eigenvector
[eigvalMode,x,criticalcircuit] = policyIteration(A)
The function valid for both an irreducible and a reducible matrix A since it has least one non-zero entry per row, and matrix A (:,:,1) contains no circuits. If the condition is not satisfied the function returns error. This function determine matrix eigvalmode and x such that D⊗m⊗x=A (D⊗-1)⊗D⊗m⊗x where diag(D)=eigvalmode using Policy Iteration Algorithm.
For details see: J.van der Woude (2000); "On the behaviour in classes of min-max-plus system", page 33.