Docsity

Matrix Computations: Iterative Methods for Solving Linear Systems, Slides of Computer Science

Partial preview of the text

Download Matrix Computations: Iterative Methods for Solving Linear Systems and more Slides Computer Science in PDF only on Docsity!

CSE 245: Computer Aided Circuit

Simulation and Verification

Matrix Computations: Iterative

Methods (II)

Outline

  • Introduction
  • Direct Methods
  • Iterative Methods
    • Formulations
    • Projection Methods
    • Krylov Space Methods
    • Preconditioned Iterations
    • Multigrid Methods
    • Domain Decomposition Methods

Formulation

  • Error in A norm
    • Matrix A is SPD (Symmetric and Positive Definite
  • Minimal Residue
    • Matrix A can be arbitrary

Formulation: Error in A norm

Min (x-x (^) *) TA(x-x (^) ), where Ax =b, and A is SPD.

Min E(x)=1/2 x TAx-b Tx

Search space: x=x 0 +Vy

where x 0 is an initial solution,

matrix Vnxm has m bases of subspace K vector ym contains the m variables.

Solution: Error in A norm

For any V’=VW, where V is nxm and W is a nonsingular mxm matrix, the solution x remains the same.

Search space: x=x 0 +V’y, r=b-Ax

  1. V’ TAV’ is nonsingular if A is SPD & V is full ranked
  2. x=x 0 +V’(V’ TAV’) -1^ V’ Tr 0
  3. =x 0 +V(V TAV) -1^ V Tr 0
  4. V’ Tr=W TV Tr=
  5. E(x)=E(x 0 )-1/2 r 0 TV(V TAV) -1^ V Tr 0

Steepest Descent: Error in A norm

Min E(x)=1/2 x TAx-b Tx,

Gradient: Ax-b= -r

Set x=x 0 +yr (^0)

  1. r 0 TAr 0 is nonsingular if A is SPD
  2. y=(r 0 TAr 0 ) -1r 0 Tr (^0)
  3. x=x 0 +r 0 (r 0 TAr 0 ) -1r 0 Tr 0
  4. r 0 Tr=
  5. E(x)=E(x 0 )-1/2 (r 0 Tr 0 ) 2 /(r 0 TAr 0 )

Conjugate Gradient: Error in A norm

Min E(x)=1/2 x TAx-b Tx,

Set x=x 0 +Vy

  1. v 1 =r (^0)
  2. v (^) i is in K{r 0 , A, i}
  3. V=[v 1 ,v 2 , …,v (^) m] is orthogonal in A norm, i.e. VTAV= [diag(viTAv (^) i )]
  4. yi = (v (^) iTAv (^) i ) -

Formulation: Residual

Min |r| 2 =|b-Ax| 2 , for an arbitrary square matrix A

Min R(x)=(b-Ax) T^ (b-Ax)

Search space: x=x 0 +Vy

where x 0 is an initial solution,

matrix Vnxm has m bases of subspace K vector ym contains the m variables.

Steepest Descent: Residual

Min R(x)=(b-Ax) T^ (b-Ax)

Gradient: -2AT(b-Ax)=-2ATr

Let x=x 0 +yATr (^0)

  1. VTATAV is nonsingular if A is nonsingular where V=ATr 0.
  2. y=(VTATAV) -1V TATr (^0)
  3. x=x 0 +V(V TATAV) -1VTATr (^0)
  4. VTATr= 0
  5. R(x)=R(x 0 )-r 0 TAV(VTATAV) -1VTATr (^0)

GMRES: Residual

Min R(x)=(b-Ax) T^ (b-Ax) Gradient: -2AT(b-Ax)=-2ATr Let x=x 0 +yATr (^0)

  1. v 1 =r (^0)
  2. v (^) i is in K{r 0 , A, i}
  3. V=[v 1 ,v 2 , …,v (^) m] is orthogonal
  4. AV=VHm+v (^) m+1 emT=Vm+1 H m
  5. x=x 0 +V(V TATAV) -1VTATr (^0)
  6. =x 0 +V( H mT H m) -1^ H mTe 1 |r 0 | 2

Conjugate Gradient Method

  • Steepest Descent
    • Repeat search direction
  • Why take exact one step for each direction?

16

Search direction of Steepest descent method

Orthogonal Direction

() (()) (( ))

() () () ()

() ( 1 )

( 1 ) () () () ( ) 0

0 i ddiiTTdei i

Ti i i i

Ti i i i i i

a

d e a d

d e

x x a d

= −

  • =

=

= +

  • We don’t know !!!

17

Pick orthogonal search direction: d (^) ( 0 ), d ( 1 ), d ( n − 1 )

e ( i )

We like to leave the error of x (^) i+1 orthogonal to the search direction d (^) i, i.e.

Search Step Size

19

dad^ f (^ x ( i + 1 )) =^ f ′( x ( i + 1 )) T dad x ( i + 1 ) = f ′( x ( i + 1 )) Td ( i ) =^0

( ) ( ) ( ) ( ) ( )

( ) ( ) ( ) ( ) ( )

( ) ( ) ( ) ( )

( 1 ) ( )

( 1 ) ( )

( ) ( )

( ( )) 0

( ) 0

0

iT i

iT i d Ad

r d i

i T i i i T i

i i i T i

i T i

i T i

a

b Ax d a Ad d

b A x a d d

b Ax d

r d

⇒ =

⇒ − =

⇒ − + =

⇒ − =

⇒ =

Iteration finish in n steps

20

−

=

1 ( 0 ) 0 ( )

n j j^ j Initial error: e^ ξ d

( )

( ) ( )

( ) (^0 ) ( ) ( ) ( ) ( )

( ) ( )

( ) ( ) ( ) ( )

1 ( ) ( 0 ) 0 ( ) ( ) ( ) ( )

( ) ( 0 ) k d Ad

d Ae d Ad

d A e a d d Ad

d Ae k

Tk j j Tk j k Tk k

a

d Ae d Ad d Ad

k T k

k T k k T k

k i i i k T k T k

k T = = −

∑ = =

= = − +=

ξ

ξ ξ

−

−

−

−

=

= −

= +

1 ( ) ( )

1 0 ( ) ( )

1 0 ( ) ( )

1 ( ) ( 0 ) 0 ( ) ( )

n j i j j

i j j j

n j j j

i i j j j

a d

a d a d

e e a d

A-orthogonal

The error component at direction dj is eliminated at step j. After n steps, all errors are eliminated.