Solving Large Sparse Lyapunov Equations on Parallel Computers (Research Note)

José M. Badía, Peter Benner, Rafael Mayo, Enrique S. Quintana-OrtíEuro-Par 2002

Introduction

In control theory, model reduction, and optimal control, the Lyapunov equation ($AX + XA^T + BB^T = 0$) is a fundamental mathematical tool. However, it poses a massive computational challenge: for a system with $n$ variables, the solution $X$ is typically a dense $n \times n$ matrix.

For a system with $n=150,000$, a dense solution would require roughly 180 gigabytes of RAM just for storage—far beyond the capacity of standard computing clusters at the time of this research (2002). Traditional numerical methods like the QR algorithm are also difficult to parallelize effectively. This paper addresses the need for algorithms that can handle large-scale sparse systems by exploiting the fact that the solution $X$ often has a "low-rank" structure, meaning it can be approximated by a much smaller factor.

Methodology: The LR-ADI Iteration

The authors focus on the LR-ADI (Low-Rank Alternating Direction Implicit) iteration. Instead of calculating the full matrix $X$, the algorithm computes a "Cholesky factor" $S$ such that $X \approx SS^T$. If $S$ has a low column rank $k$, the storage requirements drop from $O(n^2)$ to $O(nk)$, where $k \ll n$.

Key technical strategies include:

  1. Parallelization of Linear Solves: The LR-ADI method relies heavily on solving linear systems of the form $(A + p_i I)x = b$. The authors integrated the SuperLU library to handle these sparse solves across a parallel cluster.
  2. Shift Parameter Heuristics: Convergence speed depends on choosing optimal "shift" parameters ($p_i$). The authors used an Arnoldi-based procedure to approximate the eigenvalues of $A$, which helps in selecting effective shifts.
  3. Computational Optimization: Since the sparsity pattern of the matrix $(A + p_i I)$ remains constant across iterations, the authors performed the "symbolic analysis" phase of the solver only once, significantly reducing overhead.
Convergence rate of the LR-ADI iteration for different numbers of shift parameters (l=2 vs l=6).

As illustrated in the convergence plot above, the choice of shift parameters is critical. Using six shift parameters ($l=6$), the algorithm reaches a residual norm of $10^{-15}$ (near machine precision) in approximately 30 iterations, significantly faster than with fewer shifts.

Experimental Results and Scalability

The algorithm was evaluated using synthetic benchmarks with problem sizes scaling up to $n = 200,000$ unknowns. The experiments were conducted on a cluster of Intel Pentium-II 300MHz processors.

Execution time versus the number of processors for problem sizes n=100,000, 150,000, and 200,000.

Performance results indicate that a Lyapunov equation of order $n=150,000$ can be solved in approximately 35 minutes using 4 processors. While execution time drops significantly when moving from 1 to 4 processors, the gains level off thereafter. Profiling revealed that roughly 75% of the iteration time is spent on LU factorization, with nearly half of that time consumed by the communication required to distribute matrices across the Fast Ethernet interconnect.

Discussion and Limitations

Despite the success in solving large-scale equations, several bottlenecks remain. The SuperLU library required the coefficient matrix to be replicated in the memory of every processor, which limits the maximum problem size based on the RAM of a single node. Future implementations could benefit from libraries like MUMPS or ScaLAPACK, which allow for fully distributed matrix storage.

Furthermore, the performance was heavily influenced by the cluster's networking hardware. Faster interconnects would likely allow for better scaling beyond the 4-8 processor range. Finally, the use of complex shift parameters necessitates complex arithmetic, which doubles the computational effort compared to real-valued shifts used for symmetric matrices.

Summary updated

BibTeX
@inproceedings{badia2002solving,
  author = {José M. Badía and Peter Benner and Rafael Mayo and Enrique S. Quintana-Ortí},
  title = {{Solving Large Sparse Lyapunov Equations on Parallel Computers (Research Note)}},
  booktitle = {Euro-Par},
  year = {2002},
  doi = {10.1007/3-540-45706-2\_95},
}
Figure