5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate...

15
5.4 CONJUGATE GRADIENT CONVERGENCE/ PRECONDITIONING

Transcript of 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate...

Page 1: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

5.4 CONJUGATE GRADIENT CONVERGENCE/PRECONDITIONING

Page 2: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Consequences of using a Krylov space: matrix polynomial formulation

•  Iteration in Krylov Space

•  Matrix Polynomial •  Iteration as a matrix Polynomial

Page 3: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Error in A-space

•  Error in A-norm •  So what is the conjugate gradient method computing? •  Another form of the error

Page 4: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

The calculation in eigenvalue space

Page 5: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Consequences for Convergence

• Linear Convergence Rate Estimate: • Consequences:

• Note: finite termination in n steps.

Page 6: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

5.2.2 PRECONDITIONGING

Page 7: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

CG: PRACTICAL VERSION (MINIMAL STORAGE)

NEEDS ONLY 1 MATRIX-VECTOR MULTIPLICATION PER STEP. AX NEVER FORMED AS BEFORE.

Page 8: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Acceleration of Conjugate Gradient

•  Rescaling of the problem

•  The modified objective function •  Equivalent linear system.

Page 9: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Consequences for Convergence

• Linear Convergence Rate Estimate: • Consequences:

• Note: finite termination in n steps.

Page 10: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

How to find a preconditioner?

•  Idea (from Theorem 5.5). Compute a C such that the eigenvalues are “clustered”, then convergence is fast. For example

•  Preconditioners must be easy to factorize or invert. •  Example preconditioners:

–  Incomplete Cholesky (use sparsity pattern of A) –  Symmetric Successive overrelaxation –  Multigrid (Order (1) for PDEs)

•  The Holy Grail: Condition number is O(1).

C!T AC " I; or C " LT ; A = LLT

Page 11: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Preconditioned conjugate gradient

Preconditioner action

M = CTC

Page 12: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

5.5 NONLINEAR CONJUGATE GRADIENT

Page 13: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

The Fletcher-Reeves method

•  he

Actual line search

rk = !f xk( )

Page 14: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

The line search method

•  Use a search that satisfies the Wolfe Conditions.

•  Use the parameters

Page 15: 5.4 CONJUGATE GRADIENT CONVERGENCE ...anitescu/CLASSES/2012/LECTURES/...Preconditioned conjugate gradient Preconditioner action M=CTC 5.5 NONLINEAR CONJUGATE GRADIENT The Fletcher-Reeves

Convergence of Fletcher-Reeves

Fixed fraction of steepest descent