Docsity

Conjugate Gradient Methods - Lecture Notes | MATH 640, Exams of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
MATH 640 – Numerical Analysis
Section 7.5: Conjugate Gradient Method
The BIG Idea
Rather than solving Ax=bin an iterative manner, the conjugate gradient method is an iterative
method used to solve the equivalent optimization problem
min
x
g(x) =<x, Ax>−2<x,b>
We also have to keep in mind that this requires that Abe a symmetric positive definite matrix!!!
Some Notation, Definitions, Lemmas and Theorems Regarding Con-
vergence
Definition 1 (Inner Product)
If xand yare vectors, then we define the inner product of xand y, denoted as <x,y>, to be
<x,y>=xTy
Theorem 1 (Inner Product Properties)
For any vectors x,yand zand any real number α, we have
1. <x,y>=<y,x>
2. < αx,y>=<x, αy>=α < x,y>
3. <x+z,y>=<x,y>+<z,y>
4. <x,x>≥0
5. <x,x>= 0 if and only if x=0
Theorem 2
The vector x∗is the solution to the symmetric positive definite linear system Ax=bif and only if it
minimizes the function
g(x) = <x, Ax>−2<x,b>
=
Visualizing the Conjugate Gradient Method
Another Big Idea: If you’re at an approximation (point) x(k)which is not optimal, and you want to
move to an improved x(k+1), you’re going to make a move to a that looks like:
x(k+1) =x(k)+tv
where tis a scalar and vis a vector that tells you which direction to move, hence it’s called a search
direction.
pf3

Partial preview of the text

Download Conjugate Gradient Methods - Lecture Notes | MATH 640 and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 640 – Numerical Analysis Section 7.5: Conjugate Gradient Method

The BIG Idea

Rather than solving Ax = b in an iterative manner, the conjugate gradient method is an iterative method used to solve the equivalent optimization problem

min x

g(x) =< x, Ax > − 2 < x, b >

We also have to keep in mind that this requires that A be a symmetric positive definite matrix !!!

Some Notation, Definitions, Lemmas and Theorems Regarding Con-

vergence

Definition 1 (Inner Product) If x and y are vectors, then we define the inner product of x and y, denoted as < x, y >, to be

< x, y >= xT^ y

Theorem 1 (Inner Product Properties) For any vectors x, y and z and any real number α, we have

  1. < x, y >=< y, x >
  2. < αx, y >=< x, αy >= α < x, y >
  3. < x + z, y >=< x, y > + < z, y >
  4. < x, x >≥ 0
  5. < x, x >= 0 if and only if x = 0

Theorem 2 The vector x∗ is the solution to the symmetric positive definite linear system Ax = b if and only if it minimizes the function

g(x) = < x, Ax > − 2 < x, b >

Visualizing the Conjugate Gradient Method

Another Big Idea: If you’re at an approximation (point) x(k)^ which is not optimal, and you want to move to an improved x(k+1), you’re going to make a move to a that looks like:

x(k+1)^ = x(k)^ + tv

where t is a scalar and v is a vector that tells you which direction to move, hence it’s called a search direction.

Recall, iterative techniques have the form:

x(k)^ = T x(k−1)^ + c

given an initial guess x 0. The conjugate gradient method will also have that form

x(k)^ = (^) ︸︷︷︸ T =I

x(k−1)^ + tkv(k) ︸ ︷︷ ︸ c=tk v(k)

So the conjugate gradient method does meet the iterative method format. But how do we determine t and v?

We’ve established solving Ax = b is equivalent to minimizing g(x) =< x, Ax > − 2 < x, b >. For x ∈ R^2 , this is a paraboloid.

If you’re at a point x(k−1) which is not a minimum, which direction should you travel to get to the minimum? The direction of steepest de- cent, which is the direction of the −∇g(x).

So choose

v(k+1)^ = new direction = − 12 ∇g(x(k)) = r(k)^ = b − Ax(k).

Choosing v(k+1)^ as such is called the method of steepest decent. If the residual is nonzero, then there exists a tk such that g(x ︸ (k−1)^ ︷︷+ tkv(k︸) x(k)

) < g(x(k−1))

This method isn’t necessarily used for linear systems due to slow convergence.

Getting to the Final Formulation... with A-Orthogonal Direction Vectors

An alternate approach: Choose direction vectors {v(1), v(2), · · · , v(n)} such that

< v(i), Av(j)^ >= 0 if i 6 = j

such a set of vectors are called A-orthogonal vectors. Interpretation: new search directions are “A-conjugate” to previous searches.

Theorem 3 Let {v(1), v(2), · · · , v(n)} be an A-orthogonal set of non-zero vectors associated with the symmetric pos- itive definite matrix A (n × n) and let x(0)^ be arbitrary, then define

tk =

< v(k), b − Ax(k−1)^ > < v(k), Av(k)^ >

< v(k), r(k−1)^ > < v(k), Av(k)^ > and x(k)^ = x(k−1)^ + tkv(k)