1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem.

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming in C with MPI and OpenMP Michael J. Quinn.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Rayan Alsemmeri Amseena Mansoor. LINEAR SYSTEMS Jacobi method is used to solve linear systems of the form Ax=b, where A is the square and invertible.
Iterative methods TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAA A A A A A A A.
Modern iterative methods For basic iterative methods, converge linearly Modern iterative methods, converge faster –Krylov subspace method Steepest descent.
Cojugate Gradient Method Zhengru Zhang ( 张争茹 ) Office: Math. Building 413(West) 2010 年教学实践周
Solution of linear system of equations
Special Matrices and Gauss-Siedel
Sparse Matrix Algorithms CS 524 – High-Performance Computing.
1 Systems of Linear Equations Iterative Methods. 2 B. Iterative Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
1 Systems of Linear Equations Iterative Methods. 2 B. Direct Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
Special Matrices and Gauss-Siedel
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming in C with MPI and OpenMP Michael J. Quinn.
Tutorial 10 Iterative Methods and Matrix Norms. 2 In an iterative process, the k+1 step is defined via: Iterative processes Eigenvector decomposition.
Thomas algorithm to solve tridiagonal matrices
Monica Garika Chandana Guduru. METHODS TO SOLVE LINEAR SYSTEMS Direct methods Gaussian elimination method LU method for factorization Simplex method of.
ECE 552 Numerical Circuit Analysis Chapter Five RELAXATION OR ITERATIVE TECHNIQUES FOR THE SOLUTION OF LINEAR EQUATIONS Copyright © I. Hajj 2012 All rights.
CSE 245: Computer Aided Circuit Simulation and Verification
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Scientific Computing Matrix Norms, Convergence, and Matrix Condition Numbers.
By Mary Hudachek-Buswell. Overview Atmospheric Turbulence Blur.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Chapter 8 Objectives Understanding matrix notation.
Computer Engineering Majors Authors: Autar Kaw
Eigenvalue Problems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. The second main.
Linear Algebra and Complexity Chris Dickson CAS Advanced Topics in Combinatorial Optimization McMaster University, January 23, 2006.
Solving Scalar Linear Systems Iterative approach Lecture 15 MA/CS 471 Fall 2003.
Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa.
Scientific Computing Partial Differential Equations Poisson Equation.
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
1 Incorporating Iterative Refinement with Sparse Cholesky April 2007 Doron Pearl.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Elliptic PDEs and the Finite Difference Method
CSE 245: Computer Aided Circuit Simulation and Verification Matrix Computations: Iterative Methods I Chung-Kuan Cheng.
Linear Systems – Iterative methods
Case Study in Computational Science & Engineering - Lecture 5 1 Iterative Solution of Linear Systems Jacobi Method while not converged do { }
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
Mechanical Engineering Majors Authors: Autar Kaw
Krylov-Subspace Methods - I Lecture 6 Alessandra Nardi Thanks to Prof. Jacob White, Deepak Ramaswamy, Michal Rewienski, and Karen Veroy.
Solving Scalar Linear Systems A Little Theory For Jacobi Iteration
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Network Systems Lab. Korea Advanced Institute of Science and Technology No.1 Maximum Norms & Nonnegative Matrices  Weighted maximum norm e.g.) x1x1 x2x2.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Numerical Methods Solution of Systems of Linear Equations.
Iterative Solution Methods
Solving Systems of Linear Equations: Iterative Methods
Gauss-Siedel Method.
Numerical Analysis Lecture12.
Linear Algebra Lecture 15.
CSE 245: Computer Aided Circuit Simulation and Verification
CSE 245: Computer Aided Circuit Simulation and Verification
Matrix Methods Summary
Numerical Analysis Lecture13.
Solving Linear Systems: Iterative Methods and Sparse Systems
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Ax = b Methods for Solution of the System of Equations:
Pivoting, Perturbation Analysis, Scaling and Equilibration
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem Ax=b During the iterations A, matrix is not changed so sparcity is preserved Each iteration involves a matrix-vector product If A is sparse this product is efficiently done

2 Iterative solution procedure Write the system Ax=b in an equivalent form x=Ex+f (like x=g(x) for fixed-point iteration) Starting with x 0, generate a sequence of approximations {x k } iteratively by x k+1 =Ex k +f Representation of E and f depends on the type of the method used But for every method E and f are obtained from A and b, but in a different way

3 Convergence As k , the sequence {x k } converges to the solution vector under some conditions on E matrix This imposes different conditions on A matrix for different methods For the same A matrix, one method may converge while the other may diverge Therefore for each method the relation between A and E should be found to decide on the convergence

4 Different Iterative methods Jacobi Iteration Gauss-Seidel Iteration Successive Over Relaxation (S.O.R) SOR is a method used to accelerate the convergence Gauss-Seidel Iteration is a special case of SOR method

5 Jacobi iteration

6 x k+1 =Ex k +f iteration for Jacobi method A can be written as A=L+D+U (not decomposition) x k+1 =-D -1 (L+U)x k +D -1 b E=-D -1 (L+U) f=D -1 b Ax=b  (L+D+U)x=b Dx k+1 =-(L+U)x k +b Dx k+1

7 Gauss-Seidel (GS) iteration Use the latest update

8 x (k+1) =Ex (k) +f iteration for Gauss-Seidel x k+1 =-(D+L) -1 Ux k +(D+L) -1 b E=-(D+L) -1 U f=-(D+L) -1 b Ax=b  (L+D+U)x=b (D+L)x k+1 =-Ux k +b Dx k+1

9 Comparison Gauss-Seidel iteration converges more rapidly than the Jacobi iteration since it uses the latest updates But there are some cases that Jacobi iteration does converge but Gauss-Seidel does not To accelerate the Gauss-Seidel method even further, successive over relaxation method can be used

10 Successive Over Relaxation Method GS iteration can be also written as follows Correction term Multiply with Faster convergence

11 SOR 1<  <2 over relaxation (faster convergence) 0<  <1 under relaxation (slower convergence) There is an optimum value for  Find it by trial and error (usually around 1.6)

12 x (k+1) =Ex (k) +f iteration for SOR Dx k+1 =(1-  )Dx k +  b-  Lx k+1 -  Ux k (D+  L)x k+1 =[(1-  )D-  U]x k +  b E=(D+  L) -1 [(1-  )D-  U] f=  (D+  L) -1 b

13 The Conjugate Gradient Method Converges if A is a symmetric positive definite matrix Convergence is faster

14 Convergence of Iterative Methods Define the solution vector as Define an error vector as Substitute this into

15 Convergence of Iterative Methods Convergence condition iteration power The iterative method will converge for any initial iteration vector if the following condition is satisfied

16 Norm of a vector A vector norm should satisfy these conditions Vector norms can be defined in different forms as long as the norm definition satisfies these conditions

17 Commonly used vector norms Sum norm or ℓ 1 norm Euclidean norm or ℓ 2 norm Maximum norm or ℓ  norm

18 Norm of a matrix A matrix norm should satisfy these conditions Important identitiy

19 Commonly used matrix norms Maximum column-sum norm or ℓ 1 norm Spectral norm or ℓ 2 norm Maximum row-sum norm or ℓ  norm

20 Example Compute the ℓ 1 and ℓ  norms of the matrix

21 Convergence condition Express E in terms of modal matrix P and   :Diagonal matrix with eigenvalues of E on the diagonal

22 Sufficient condition for convergence If the magnitude of all eigenvalues of iteration matrix E is less than 1 than the iteration is convergent It is easier to compute the norm of a matrix than to compute its eigenvalues is a sufficient condition for convergence

23 Convergence of Jacobi iteration E=-D -1 (L+U)

24 Convergence of Jacobi iteration Evaluate the infinity(maximum row sum) norm of E Diagonally dominant matrix If A is a diagonally dominant matrix, then Jacobi iteration converges for any initial vector

25 Stopping Criteria Ax=b At any iteration k, the residual term is r k =b-Ax k Check the norm of the residual term ||b-Ax k || If it is less than a threshold value stop

26 Example 1 (Jacobi Iteration) Diagonally dominant matrix

27 Example 1 continued... Matrix is diagonally dominant, Jacobi iterations are converging

28 Example 2 The matrix is not diagonally dominant

29 Example 2 continued... The residual term is increasing at each iteration, so the iterations are diverging. Note that the matrix is not diagonally dominant

30 Convergence of Gauss-Seidel iteration GS iteration converges for any initial vector if A is a diagonally dominant matrix GS iteration converges for any initial vector if A is a symmetric and positive definite matrix Matrix A is positive definite if x T Ax>0 for every nonzero x vector

31 Positive Definite Matrices A matrix is positive definite if all its eigenvalues are positive A symmetric diagonally dominant matrix with positive diagonal entries is positive definite If a matrix is positive definite All the diagonal entries are positive The largest (in magnitude) element of the whole matrix must lie on the diagonal

32 Positive Definitiness Check Not positive definite Largest element is not on the diagonal Not positive definite All diagonal entries are not positive Positive definite Symmetric, diagonally dominant, all diagonal entries are positive

33 Positive Definitiness Check A decision can not be made just by investigating the matrix. The matrix is diagonally dominant and all diagonal entries are positive but it is not symmetric. To decide, check if all the eigenvalues are positive

34 Example (Gauss-Seidel Iteration) Diagonally dominant matrix Jacobi iteration

35 Example 1 continued... Jacobi iteration When both Jacobi and Gauss-Seidel iterations converge, Gauss-Seidel converges faster

36 Convergence of SOR method If 0<  <2, SOR method converges for any initial vector if A matrix is symmetric and positive definite If  >2, SOR method diverges If 0<  <1, SOR method converges but the convergence rate is slower (deceleration) than the Gauss-Seidel method.

37 Operation count The operation count for Gaussian Elimination or LU Decomposition was 0 (n 3 ), order of n 3. For iterative methods, the number of scalar multiplications is 0 (n 2 ) at each iteration. If the total number of iterations required for convergence is much less than n, then iterative methods are more efficient than direct methods. Also iterative methods are well suited for sparse matrices