Alternating-direction implicit method explained

In numerical linear algebra, the alternating-direction implicit (ADI) method is an iterative method used to solve Sylvester matrix equations. It is a popular method for solving the large matrix equations that arise in systems theory and control,[1] and can be formulated to construct solutions in a memory-efficient, factored form.[2] [3] It is also used to numerically solve parabolic and elliptic partial differential equations, and is a classic method used for modeling heat conduction and solving the diffusion equation in two or more dimensions.[4] It is an example of an operator splitting method.[5]

ADI for matrix equations

The method

The ADI method is a two step iteration process that alternately updates the column and row spaces of an approximate solution to

AX-XB=C

. One ADI iteration consists of the following steps:[6]
1. Solve for

X(j

, where

\left(A-\betajI\right)X(j+1/2)=X(j)\left(B-\betajI\right)+C.

2. Solve for

X(j

, where

X(j+1)\left(B-\alphajI\right)=\left(A-\alphaj+1I\right)X(j+1/2)-C

.
The numbers

(\alphaj+1,\betaj+1)

are called shift parameters, and convergence depends strongly on the choice of these parameters.[7] [8] To perform

K

iterations of ADI, an initial guess

X(0)

is required, as well as

K

shift parameters,

\{(\alphaj,\betaj

K
)\}
j=1
.

When to use ADI

If

A\inCm

and

B\inCn

, then

AX-XB=C

can be solved directly in

l{O}(m3+n3)

using the Bartels-Stewart method.[9] It is therefore only beneficial to use ADI when matrix-vector multiplication and linear solves involving

A

and

B

can be applied cheaply.

The equation

AX-XB=C

has a unique solution if and only if

\sigma(A)\cap\sigma(B)=\emptyset

, where

\sigma(M)

is the spectrum of

M

. However, the ADI method performs especially well when

\sigma(A)

and

\sigma(B)

are well-separated, and

A

and

B

are normal matrices. These assumptions are met, for example, by the Lyapunov equation

AX+XA*=C

when

A

is positive definite. Under these assumptions, near-optimal shift parameters are known for several choices of

A

and

B

. Additionally, a priori error bounds can be computed, thereby eliminating the need to monitor the residual error in implementation.

The ADI method can still be applied when the above assumptions are not met. The use of suboptimal shift parameters may adversely affect convergence, and convergence is also affected by the non-normality of

A

or

B

(sometimes advantageously).[10] Krylov subspace methods, such as the Rational Krylov Subspace Method,[11] are observed to typically converge more rapidly than ADI in this setting, and this has led to the development of hybrid ADI-projection methods.

Shift-parameter selection and the ADI error equation

The problem of finding good shift parameters is nontrivial. This problem can be understood by examining the ADI error equation. After

K

iterations, the error is given by

X-X(K)=

K
\prod
j=1
(A-\alphajI)
(A-\betajI)

\left(X-X(0)\right)

K
\prod
j=1
(B-\betajI)
(B-\alphajI)

.

Choosing

X(0)=0

results in the following bound on the relative error:
\left\|X-X(K)\right\|2
\|X\|2

\leq\|rK(A)\|2\|

-1
r
K(B)

\|2,rK(M)=

K
\prod
j=1
(M-\alphajI)
(M-\betajI)

.

where

\|\|2

is the operator norm. The ideal set of shift parameters

\{(\alphaj,\betaj)\}

K
j=1

defines a rational function

rK

that minimizes the quantity

\|rK(A)\|2\|

-1
r
K(B)

\|2

. If

A

and

B

are normal matrices and have eigendecompositions

A=VAΛAV

*
A
and

B=VBΛBV

*
B
, then

\|rK(A)\|2\|

-1
r
K(B)

\|2=\|rK(ΛA)\|2\|rK(Λ

-1
B)

\|2

.

Near-optimal shift parameters

Near-optimal shift parameters are known in certain cases, such as when

ΛA\subset[a,b]

and

ΛB\subset[c,d]

, where

[a,b]

and

[c,d]

are disjoint intervals on the real line. The Lyapunov equation

AX+XA*=C

, for example, satisfies these assumptions when

A

is positive definite. In this case, the shift parameters can be expressed in closed form using elliptic integrals, and can easily be computed numerically.

More generally, if closed, disjoint sets

E

and

F

, where

ΛA\subsetE

and

ΛB\subsetF

, are known, the optimal shift parameter selection problem is approximately solved by finding an extremal rational function that attains the value

ZK(E,F):=infr

\supz|r(z)|
infz|r(z)|

,

where the infimum is taken over all rational functions of degree

(K,K)

. This approximation problem is related to several results in potential theory,[12] [13] and was solved by Zolotarev in 1877 for

E

= [a, b] and

F=-E.

[14] The solution is also known when

E

and

F

are disjoint disks in the complex plane.[15]

Heuristic shift-parameter strategies

When less is known about

\sigma(A)

and

\sigma(B)

, or when

A

or

B

are non-normal matrices, it may not be possible to find near-optimal shift parameters. In this setting, a variety of strategies for generating good shift parameters can be used. These include strategies based on asymptotic results in potential theory,[16] using the Ritz values of the matrices

A

,

A-1

,

B

, and

B-1

to formulate a greedy approach,[17] and cyclic methods, where the same small collection of shift parameters are reused until a convergence tolerance is met. When the same shift parameter is used at every iteration, ADI is equivalent to an algorithm called Smith's method.[18]

Factored ADI

In many applications,

A

and

B

are very large, sparse matrices, and

C

can be factored as

C=C1C

*
2
, where

C1\inCm,C2\inCn

, with

r=1,2

. In such a setting, it may not be feasible to store the potentially dense matrix

X

explicitly. A variant of ADI, called factored ADI, can be used to compute

ZY*

, where

XZY*

. The effectiveness of factored ADI depends on whether

X

is well-approximated by a low rank matrix. This is known to be true under various assumptions about

A

and

B

.

ADI for parabolic equations

Historically, the ADI method was developed to solve the 2D diffusion equation on a square domain using finite differences. Unlike ADI for matrix equations, ADI for parabolic equations does not require the selection of shift parameters, since the shift appearing in each iteration is determined by parameters such as the timestep, diffusion coefficient, and grid spacing. The connection to ADI on matrix equations can be observed when one considers the action of the ADI iteration on the system at steady state.

Example: 2D diffusion equation

The traditional method for solving the heat conduction equation numerically is the Crank–Nicolson method. This method results in a very complicated set of equations in multiple dimensions, which are costly to solve. The advantage of the ADI method is that the equations that have to be solved in each step have a simpler structure and can be solved efficiently with the tridiagonal matrix algorithm.

Consider the linear diffusion equation in two dimensions,

{\partialu\over\partialt}= \left({\partial2u\over\partialx2}+ {\partial2u\over\partialy2} \right) =(uxx+uyy)

The implicit Crank–Nicolson method produces the following finite difference equation:

n+1
{u
ij
n\over
-u
ij

\Deltat}= {1\over2(\Delta

n+1
x)
ij
n\right)
+u
ij

where:

\Deltax=\Deltay

and

2
\delta
p
is the central second difference operator for the p-th coordinate
2
\delta
p

uij

=u
ij+ep

-2uij

+u
ij-ep
with

ep=(1,0)

or

(0,1)

for

p=x

or

y

respectively (and

ij

a shorthand for lattice points

(i,j)

).

After performing a stability analysis, it can be shown that this method will be stable for any

\Deltat

.

A disadvantage of the Crank–Nicolson method is that the matrix in the above equation is banded with a band width that is generally quite large. This makes direct solution of the system of linear equations quite costly (although efficient approximate solutions exist, for example use of the conjugate gradient method preconditioned with incomplete Cholesky factorization).

The idea behind the ADI method is to split the finite difference equations into two, one with the x-derivative taken implicitly and the next with the y-derivative taken implicitly,

n+1/2
{u
ij
n\over
-u
ij

\Deltat/2}

2
= {\left(\delta
x
n+1/2
u
ij
2
+\delta
y
n
u
ij

\right)\over\Deltax2}

n+1
{u
ij
n+1/2
-u
ij

\over\Deltat/2}

2
= {\left(\delta
x
n+1/2
u
ij
2
+\delta
y
n+1
u
ij

\right)\over\Deltay2}

The system of equations involved is symmetric and tridiagonal (banded with bandwidth 3), and is typically solved using tridiagonal matrix algorithm.

It can be shown that this method is unconditionally stable and second order in time and space.[19] There are more refined ADI methods such as the methods of Douglas,[20] or the f-factor method[21] which can be used for three or more dimensions.

Generalizations

The usage of the ADI method as an operator splitting scheme can be generalized. That is, we may consider general evolution equations

u

=F1u+F2u,

where

F1

and

F2

are (possibly nonlinear) operators defined on a Banach space.[22] [23] In the diffusion example above we have

F1={\partial2\over\partialx2}

and

F2={\partial2\over\partialy2}

.

Fundamental ADI (FADI)

Simplification of ADI to FADI

It is possible to simplify the conventional ADI method into Fundamental ADI method, which only has the similar operators at the left-hand sides while being operator-free at the right-hand sides. This may be regarded as the fundamental (basic) scheme of ADI method,[24] [25] with no more operator (to be reduced) at the right-hand sides, unlike most traditional implicit methods that usually consist of operators at both sides of equations. The FADI method leads to simpler, more concise and efficient update equations without degrading the accuracy of conventional ADI method.

Relations to other implicit methods

Many classical implicit methods by Peaceman-Rachford, Douglas-Gunn, D'Yakonov, Beam-Warming, Crank-Nicolson, etc., may be simplified to fundamental implicit schemes with operator-free right-hand sides. In their fundamental forms, the FADI method of second-order temporal accuracy can be related closely to the fundamental locally one-dimensional (FLOD) method, which can be upgraded to second-order temporal accuracy, such as for three-dimensional Maxwell's equations [26] [27] in computational electromagnetics. For two- and three-dimensional heat conduction and diffusion equations, both FADI and FLOD methods may be implemented in simpler, more efficient and stable manner compared to their conventional methods.[28] [29]

Notes and References

  1. Simoncini . V. . 17271167 . 2016 . Computational Methods for Linear Matrix Equations . SIAM Review . en . 58 . 3 . 377–441 . 10.1137/130912839 . 0036-1445. 11585/586011 . free .
  2. Li . Jing-Rebecca . Jing-Rebecca Li . White . Jacob . 2002 . Low Rank Solution of Lyapunov Equations . SIAM Journal on Matrix Analysis and Applications . en . 24 . 1 . 260–280 . 10.1137/s0895479801384937 . 0895-4798.
  3. Benner . Peter . Li . Ren-Cang . Truhar . Ninoslav . 2009 . On the ADI method for Sylvester equations . Journal of Computational and Applied Mathematics . 233 . 4 . 1035–1045 . 10.1016/j.cam.2009.08.108 . 0377-0427 . 2009JCoAM.233.1035B . free.
  4. .
    • Book: Press . W. H. . Teukolsky . S. A. . Vetterling . W. T. . Flannery . B. P. . 2007 . Numerical Recipes: The Art of Scientific Computing . 3rd . Cambridge University Press . New York . 978-0-521-88068-8 . Section 20.3.3. Operator Splitting Methods Generally . http://apps.nrbook.com/empanel/index.html#pg=1052 . 2011-08-18 . 2011-08-11 . https://web.archive.org/web/20110811154417/http://apps.nrbook.com/empanel/index.html#pg=1052 . dead .
  5. Wachspress. Eugene L.. 2008. Trail to a Lyapunov equation solver. Computers & Mathematics with Applications. 55. 8. 1653–1659. 10.1016/j.camwa.2007.04.048. 0898-1221. free.
  6. Lu. An. Wachspress. E.L.. 1991. Solution of Lyapunov equations by alternating direction implicit iteration. Computers & Mathematics with Applications. 21. 9. 43–58. 10.1016/0898-1221(91)90124-m. 0898-1221.
  7. Beckermann. Bernhard. Townsend. Alex. 2017. On the Singular Values of Matrices with Displacement Structure. SIAM Journal on Matrix Analysis and Applications. en. 38. 4. 1227–1248. 10.1137/16m1096426. 0895-4798. 1609.09494. 3828461.
  8. Book: Matrix computations. Golub. G.. Johns Hopkins University. Van Loan. C. 1989. 1421407949. Fourth . Baltimore. 824733531.
  9. Sabino. J. 2007. Solution of large-scale Lyapunov equations via the block modified Smith method. PhD Diss., Rice Univ.. 1911/20641. Thesis.
  10. Druskin. V.. Simoncini. V.. 2011. Adaptive rational Krylov subspaces for large-scale dynamical systems. Systems & Control Letters. 60. 8. 546–560. 10.1016/j.sysconle.2011.04.013. 0167-6911.
  11. Book: Logarithmic potentials with external fields. Saff. E.B.. Totik. V.. 9783662033296. Berlin. 883382758. 2013-11-11.
  12. Gonchar. A.A.. 1969. Zolotarev problems connected with rational functions. Mathematics of the USSR-Sbornik. 7. 4. 623–635. 1969SbMat...7..623G. 10.1070/SM1969v007n04ABEH001107.
  13. Zolotarev. D.I.. 1877. Application of elliptic functions to questions of functions deviating least and most from zero. Zap. Imp. Akad. Nauk. St. Petersburg. 30. 1–59.
  14. Starke. Gerhard. July 1992. Near-circularity for the rational Zolotarev problem in the complex plane. Journal of Approximation Theory. 70. 1. 115–130. 10.1016/0021-9045(92)90059-w. 0021-9045. free.
  15. Starke. Gerhard. June 1993. Fejér-Walsh points for rational functions and their use in the ADI iterative method. Journal of Computational and Applied Mathematics. 46. 1–2. 129–141. 10.1016/0377-0427(93)90291-i. 0377-0427. free.
  16. Penzl. Thilo. January 1999. A Cyclic Low-Rank Smith Method for Large Sparse Lyapunov Equations. SIAM Journal on Scientific Computing. en. 21. 4. 1401–1418. 10.1137/s1064827598347666. 1999SJSC...21.1401P . 1064-8275.
  17. Smith. R. A.. January 1968. Matrix Equation XA + BX = C. SIAM Journal on Applied Mathematics. en. 16. 1. 198–201. 10.1137/0116017. 0036-1399.
  18. .
  19. .
  20. .
  21. Book: Verwer. Jan. Willem. Hundsdorfer. Numerical Solution of Time-Dependent Advection-Diffusion-Reaction Equations. 2003. Springer Berlin Heidelberg. Berlin, Heidelberg. 978-3-662-09017-6.
  22. Lions. P. L.. Mercier. B.. Splitting Algorithms for the Sum of Two Nonlinear Operators. SIAM Journal on Numerical Analysis. December 1979. 16. 6. 964–979. 10.1137/0716071. 1979SJNA...16..964L.
  23. Tan. E. L.. 2007. Efficient Algorithm for the Unconditionally Stable 3-D ADI-FDTD Method. IEEE Microwave and Wireless Components Letters. 17. 1. 7–9. 10.1109/LMWC.2006.887239. 10356/138245 . 29025478.
  24. Tan. E. L.. 2008. Fundamental Schemes for Efficient Unconditionally Stable Implicit Finite-Difference Time-Domain Methods. IEEE Transactions on Antennas and Propagation. 56. 1. 170–177. 10.1109/TAP.2007.913089. 2011.14043. 2008ITAP...56..170T. 10356/138249 . 37135325.
  25. Tan. E. L.. 2007. Unconditionally Stable LOD-FDTD Method for 3-D Maxwell's Equations. IEEE Microwave and Wireless Components Letters. 17. 2. 85–87. 10.1109/LMWC.2006.890166. 10356/138296 . 22940993.
  26. Gan. T. H.. Tan. E. L.. 2013. Unconditionally Stable Fundamental LOD-FDTD Method with Second-Order Temporal Accuracy and Complying Divergence. IEEE Transactions on Antennas and Propagation. 61. 5. 2630–2638. 10.1109/TAP.2013.2242036. 2013ITAP...61.2630G. 7578037.
  27. Tay. W. C.. Tan. E. L.. Heh. D. Y.. 2014. Fundamental Locally One-Dimensional Method for 3-D Thermal Simulation. IEICE Transactions on Electronics. E-97-C. 7. 636–644. 10.1587/transele.E97.C.636. 2014IEITE..97..636T. 10220/20410 . free.
  28. Heh. D. Y.. Tan. E. L.. Tay. W. C.. 2016. Fast Alternating Direction Implicit Method for Efficient Transient Thermal Simulation of Integrated Circuits. International Journal of Numerical Modelling: Electronic Networks, Devices and Fields. 29. 1. 93–108. 10.1002/jnm.2049. 10356/137201 . 61039449 . free.