+ All Categories
Home > Documents > Introduction to Scientific Computing II

Introduction to Scientific Computing II

Date post: 15-Mar-2016
Category:
Upload: kedma
View: 50 times
Download: 3 times
Share this document with a friend
Description:
Introduction to Scientific Computing II. Conjugate Gradients. Dr. Miriam Mehl. Steepest Descent – Basic Idea. solution of SLE minimization iterative one-dimensional minima direction of steepest descent?. Steepest Descent – Algorithm. Steepest Descent – Algorithm II. - PowerPoint PPT Presentation
19
Introduction to Scientific Computing II Conjugate Gradients Dr. Miriam Mehl
Transcript
Page 1: Introduction to Scientific Computing II

Introduction to Scientific Computing II

Conjugate Gradients

Dr. Miriam Mehl

Page 2: Introduction to Scientific Computing II

Steepest Descent – Basic Idea

• solution of SLE

• minimization

• iterative

one-dimensional minima

direction of steepest descent?

Page 3: Introduction to Scientific Computing II

Steepest Descent – Algorithm

rcuurArrrc

uAbr

T

T

it

1,2,...it for

Page 4: Introduction to Scientific Computing II

Steepest Descent – Algorithm II

vcrrrcuu

vrrrc

rAv

uAbr

T

T

1,2,...it for

1

Page 5: Introduction to Scientific Computing II

Steepest Descent – Example

initial error

after 1 iteration after 10 iterations

Page 6: Introduction to Scientific Computing II

Steepest Descent – Example

1/1281/641/321/16h

48,62911,576

2,744646

iterations

Page 7: Introduction to Scientific Computing II

Steepest Descent – Convergence

• Poisson with 5-point-stencil

like Jacobi

minmax

minmax

11

Page 8: Introduction to Scientific Computing II

Steepest Descent – Convergence

Page 9: Introduction to Scientific Computing II

Conjugate Gradients – Basic Idea

• solution of SLE

• minimization

• iterative

one-dimensional minima

no repeating search directions

Page 10: Introduction to Scientific Computing II

Steepest Descent – Principle

Page 11: Introduction to Scientific Computing II

Conjugate Gradients – Principle

Page 12: Introduction to Scientific Computing II

CG – Algorithm

;

;

;

;

1,2,...it for; ;

pabrp

rrb

pAbarrp

bauu

pApbrra

rpu-Abr

T

TT

Page 13: Introduction to Scientific Computing II

Steepest Descent – Example

initial error

after 1 iteration after 10 iterations

Page 14: Introduction to Scientific Computing II

Conjugate Gradients – Example

initial error

after 1 iteration after 10 iterations

Page 15: Introduction to Scientific Computing II

Conjugate Gradients – Example

3221577635

iterations cg

1/1281/641/321/16h

48,62911,576

2,744646

iterations sd

16,1293,969

961225

#unknowns

Page 16: Introduction to Scientific Computing II

CG – Convergence

• Poisson with 5-point-stencil

like SOR

no parameter adjustment

11

Page 17: Introduction to Scientific Computing II

PCG – Idea

11

convergence rate cg:

Solve system M-1Ax=M-1b

better condition number

M-1 easy to apply

Page 18: Introduction to Scientific Computing II

PCG – Algorithm

pabrMp

rMrb

pAbarr

pbauu

pApbrMra

T

T

T

1

1

1

1,2,...it for

Page 19: Introduction to Scientific Computing II

PCG – Algorithm

pabvp

vrbv

pAbarr

pbauu

pApbvra

T

T

T

)r A,,0rations(solver_ite

1,2,...it for


Recommended