Numerical Methods Part: Cholesky and Decomposition

Slides:



Advertisements
Similar presentations
Numerical Methods Fourier Transform Pair Part: Frequency and Time Domain
Advertisements

Ch 7.7: Fundamental Matrices
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
4/22/ LU Decomposition Electrical Engineering Majors Authors: Autar Kaw Transforming.
1 Functions and Applications
Internet Chess-Like Game and Simultaneous Linear Equations.
Tossing Coin Game and Linear Programming Big_M Simplex Algorithms Duc Nguyen, Old Dominion University, USA Yuzhong Shen, Old Dominion University, USA Ahmed.
MATH 685/ CSI 700/ OR 682 Lecture Notes
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
Major: All Engineering Majors Authors: Autar Kaw
Systems of Linear Equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Special Matrices and Gauss-Siedel
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
Numerical Methods Newton’s Method for One - Dimensional Optimization - Theory
Numerical Methods Golden Section Search Method - Theory
Numerical Methods Discrete Fourier Transform Part: Discrete Fourier Transform
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Chapter 10 Review: Matrix Algebra
MA2213 Lecture 5 Linear Equations (Direct Solvers)
SYSTEMS OF EQUATIONS MATRIX SOLUTIONS TO LINEAR SYSTEMS
Presentation by: H. Sarper
Elliptic Partial Differential Equations - Introduction
Simpson Rule For Integration.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 9 Matrices and Determinants.
Section 2.2 Echelon Forms Goal: Develop systematic methods for the method of elimination that uses matrices for the solution of linear systems. The methods.
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
Numerical Methods Part: Simpson Rule For Integration.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
Numerical Methods Fast Fourier Transform Part: Informal Development of Fast Fourier Transform
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Numerical Methods Multi Dimensional Direct Search Methods - Theory
 6.2 Pivoting Strategies 1/17 Chapter 6 Direct Methods for Solving Linear Systems -- Pivoting Strategies Example: Solve the linear system using 4-digit.
Numerical Methods Fast Fourier Transform Part: Theoretical Development of Fast Fourier Transform
Numerical Methods Continuous Fourier Series Part: Continuous Fourier Series
Section 2.3 Properties of Solution Sets
11/17/ Introduction to Partial Differential Equations Transforming Numerical.
Numerical Methods Part: False-Position Method of Solving a Nonlinear Equation
Solution of Sparse Linear Systems
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 07 Chapter 7: Eigenvalues, Eigenvectors.
Numerical Methods Newton’s Method for One - Dimensional Optimization - Theory
Chapter 9 Gauss Elimination The Islamic University of Gaza
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
 The Sinkhorn-Knopp Algorithm and Fixed Point Problem  Solutions for 2 × 2 and special n × n cases  Circulant matrices for 3 × 3 case  Ongoing work.
1/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
Numerical Methods Multidimensional Gradient Methods in Optimization- Theory
1/30/ Elliptic Partial Differential Equations – Lieberman Method – Part 1 of 2 Elliptic Partial Differential.
2/13/ Elliptic Partial Differential Equations - Introduction Transforming.
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
Numerical Methods Part: False-Position Method of Solving a Nonlinear Equation
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Numerical Methods Multidimensional Gradient Methods in Optimization- Example
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Matrices Introduction.
Numerical Methods Multi Dimensional Direct Search Methods - Example
Numerical Methods Part: Cholesky and Decomposition
Chapter 10: Solving Linear Systems of Equations
Elliptic Partial Differential Equations – Direct Method
Chemical Engineering Majors Authors: Autar Kaw
Numerical Analysis Lecture14.
Elliptic Partial Differential Equations – Gauss-Seidel Method
Numerical Analysis Lecture10.
Numerical Methods Golden Section Search Method - Example
Numerical Methods Newton’s Method for One -Dimensional Optimization - Example
Major: All Engineering Majors Authors: Autar Kaw
Eigenvalues and Eigenvectors
Presentation transcript:

Numerical Methods Part: Cholesky and Decomposition

For more details on this topic  Go to  Click on Keyword

You are free to Share – to copy, distribute, display and perform the work to Remix – to make derivative works

Under the following conditions Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). Noncommercial — You may not use this work for commercial purposes. Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Chapter 04.09: Cholesky and Decomposition Major: All Engineering Majors Authors: Duc Nguyen Numerical Methods for STEM undergraduates 510/9/2015 Lecture # 1

(1) 1 Introduction 6 = known coefficient matrix, with dimension where = known right-hand-side (RHS) vector = unknown vector.

Symmetrical Positive Definite (SPD) SLE A matrix can be considered as SPD if either of (a) If each and every determinant of sub-matrix is positive, or.. the following conditions is satisfied: for any given vector (b) If As a quick example, let us make a test a test to see if the given matrix is SPD?

Symmetrical Positive Definite (SPD) SLE Based on criteria (a): The given matrixis symmetrical, because Furthermore,

Hence is SPD.

Based on criteria (b): For any given vector, one computes

hence matrix is SPD

12 Step 1: Matrix Factorization phase Multiplying two matrices on the right-hand-side (RHS) of Equation (3), one gets the following 6 equations (2) (3) (4) (5)

Step 1.1: Compute the numerator of Equation (7), such as Step 1.2 If is an off-diagonal term (say ) then (See Equation (7)). Else, if is a diagonal term (that is, ), then (6) (7) (See Equation (6))

As a quick example, one computes: Thus, for computing, one only needs to use the (already factorized) data in columns and of, respectively. (8)

Figure 1: Cholesky Factorization for the term

Step 2: Forward Solution phase Substituting Equation (2) into Equation (1), one gets: Let us define: Then, Equation (9) becomes: (9) (10) (11) (12)

From the 2 nd row of Equation (12), one gets Similarly (13) (14) (15)

In general, from the row of Equation (12), one has (16)

Step 3: Backward Solution phase As a quick example, one has (See Equation (10)): (17)

From the last (or ) row of Equation (17), one has hence Similarly: and (18) (19) (20)

In general, one has: (21)

For example, Multiplying the three matrices on the RHS of Equation (23), one obtains the following formulas for the “diagonal”, and “lower-triangular” matrices: (22) (23)

(24) (25)

Step1: Factorization phase Step 2: Forward solution and diagonal scaling phase Substituting Equation (22) into Equation (1), one gets: Let us define: (22, repeated) (26)

Also, define: Then Equation (26) becomes: (29) (30)

(31) (32)

Step 3: Backward solution phase

Numerical Example 1 (Cholesky algorithms) Solve the following SLE system for the unknown vector ? where

Solution: The factorized, upper triangular matrix can be computed by either referring to Equations (6-7), or looking at Figure 1, as following:

Thus, the factorized matrix

The forward solution phase, shown in Equation (11), becomes:

The backward solution phase, shown in Equation (10), becomes:

Hence

Numerical Example 2 ( Algorithms) Using the same data given in Numerical Example 1, find the unknown vector by algorithms? Solution: The factorized matrices and can be computed from Equation (24), and Equation (25), respectively.

Hence and

The forward solution shown in Equation (31), becomes: or, (32, repeated)

Hence

The diagonal scaling phase, shown in Equation (29), becomes

or Hence

The backward solution phase can be found by referring to Equation (27) (28, repeated)

Hence

Hence

Re-ordering Algorithms For Minimizing Fill-in Terms [1,2]. During the factorization phase (of Cholesky, or Algorithms ), many “zero” terms in the original/given matrix will become “non-zero” terms in the factored matrix. These new non-zero terms are often called as “fill-in” terms (indicated by the symbol ) It is, therefore, highly desirable to minimize these fill-in terms, so that both computational time/effort and computer memory requirements can be substantially reduced.

For example, the following matrix and vector are given: (33) (34)

The Cholesky factorization matrix, based on the original matrix (see Equation 33) and Equations (6-7), or Figure 1, can be symbolically computed as: (35)

IPERM (new equation #) = {old equation #} such as, for this particular example: (36) (37)

Using the above results (see Equation 37), one will be able to construct the following re-arranged matrices: and (38) (39)

Remarks: In the original matrix (shown in Equation 33), the nonzero term (old row 1, old column 2) = 7 will move to new location of the new matrix (new row 6, new column 5) = 7, etc. The non zero term (old row 3, old column 3) = 88 will move to (new row 4, new column 4) = 88, etc. The value of (old row 4) = 70 will be moved to (or located at) (new row 3) = 70, etc

Now, one would like to solve the following modified system of linear equations (SLE) for rather than to solve the original SLE (see Equation1). The original unknown vector can be easily recovered from and,shown in Equation (37). (40)

The factorized matrix can be “symbolically” computed from as (by referring to either Figure 1, or Equations 6-7): (41)

4. On-Line Chess-Like Game For Reordering/Factorized Phase [4]. Figure 2 A Chess-Like Game For Learning to Solve SLE.

(A)Teaching undergraduate/HS students the process how to use the reordering output IPERM(-), see Equations (36-37) for converting the original/given matrix, see Equation (33), into the new/modified matrix, see Equation (38). This step is reflected in Figure 2, when the “Game Player” decides to swap node (or equation) (say ) with another node (or equation ), and click the “CONFIRM” icon!

Since node is currently connected to nodes hence swapping node with the above nodes will “NOT” change the number/pattern of “Fill-in” terms. However, if node is swapped with node then the fill-in terms pattern may change (for better or worse)!

(B) Helping undergraduate/HS students to understand the “symbolic” factorization” phase, by symbolically utilizing the Cholesky factorized Equations (6-7). This step is illustrated in Figure 2, for which the “game player” will see (and also hear the computer animated sound, and human voice), the non-zero terms (including fill-in terms) of the original matrix to move to the new locations in the new/modified matrix.

(C) Helping undergraduate/HS students to understand the “numerical factorization” phase, by numerically utilizing the same Cholesky factorized Equations (6-7). (D) Teaching undergraduate engineering/science students and even high-school (HS) students to “understand existing reordering concepts”, or even to “discover new reordering algorithms”

5. Further Explanation On The Developed Game 1.In the above Chess-Like Game, which is available on-line [4], powerful features of FLASH computer environments [3], such as animated sound, human voice, motions, graphical colors etc… have all been incorporated and programmed into the developed game-software for more appealing to game players/learners.

2.In the developed “Chess-Like Game”, fictitious monetary (or any kind of ‘scoring system”) is rewarded (and broadcasted by computer animated human voice) to game players, based on how he/she swaps the node (or equation) numbers, and consequently based on how many fill-in terms occurred. In general, less fill-in terms introduced will result in more rewards!

3. Based on the original/given matrix, and existing re-ordering algorithms (such as the Reverse Cuthill- Mckee, or RCM algorithms [1-2]) the number of fill-in terms can be computed (using RCM algorithms). This internally generated information will be used to judge how good the players/learners are, and/or broadcast “congratulations message” to a particular player who discovers new “chess-like move” (or, swapping node) strategies which are even better than RCM algorithms!

4. Initially, the player(s) will select the matrix size (, or larger is recommended), and the percentage (50%, or larger is suggested) of zero-terms (or sparsity of the matrix). Then, “START Game” icon will be clicked by the player.

5. The player will then CLICK one of the selected node (or equation) numbers appearing on the computer screen. The player will see those nodes which are connected to node (based on the given/generated matrix ). The player then has to decide to swap node with one of the possible node

After confirming the player’s decision, the outcomes/ results will be announced by the computer animated human voice, and the monetary-award will (or will NOT) be given to the players/learners, accordingly. In this software, a maximum of $1,000,000 can be earned by the player, and the “exact dollar amount” will be INVERSELY proportional to the number of fill-in terms occurred (as a consequence of the player’s decision on how to swap node with another node ).

6. The next player will continue to play, with his/her move (meaning to swap the node with the node) based on the current best non-zero terms pattern of the matrix.

THE END

This instructional power point brought to you by Numerical Methods for STEM undergraduate Committed to bringing numerical methods to the undergraduate Acknowledgement

For instructional videos on other topics, go to This material is based upon work supported by the National Science Foundation under Grant # Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

The End - Really