Lecture 10 - Nonlinear gradient techniques and LU Decomposition CVEN 302 June 24, 2002.

Slides:



Advertisements
Similar presentations
Method If an nxn matrix A has an LU-factorization, then the solution of AX = b can be determined by a Forward substitution followed by a Back substitution.
Advertisements

LU Factorization.
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 6.
4/26/ LU Decomposition Civil Engineering Majors Authors: Autar Kaw Transforming.
Linear Systems LU Factorization CSE 541 Roger Crawfis.
LU - Factorizations Matrix Factorization into Triangular Matrices.
MATH 685/ CSI 700/ OR 682 Lecture Notes
Linear Systems of Equations
Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Numerical Analysis – Linear Equations(I) Hanyang University Jong-Il Park.
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
Major: All Engineering Majors Authors: Autar Kaw
Chapter 9.1 = LU Decomposition MATH 264 Linear Algebra.
Lecture 11 - LU Decomposition
Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
24 Jul 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 3 – Systems of Linear Equations 24 July am – 9.00 am.
Chapter 10 LU Decomposition.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
1 Systems of Linear Equations (Optional) Special Matrices.
Thomas algorithm to solve tridiagonal matrices
17 Jul 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 2 – Systems of Linear Equations 17 July am – 9.00 am.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
1 Systems of Linear Equations Gauss-Jordan Elimination and LU Decomposition.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Scientific Computing Linear Systems – LU Factorization.
Square n-by-n Matrix.
Using LU Decomposition to Optimize the modconcen.m Routine Matt Tornowske April 1, 2002.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
CHAPTER 2 MATRICES 2.1 Operations with Matrices Matrix
Lecture 8 Matrix Inverse and LU Decomposition
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Lesson 3 CSPP58001.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
Chapter 9 Gauss Elimination The Islamic University of Gaza
1/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
2.5 Determinants and Multiplicative Inverses of Matrices. Objectives: 1.Evaluate determinants. 2.Find the inverses of matrices. 3.Solve systems of equations.
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
2 2.5 © 2016 Pearson Education, Ltd. Matrix Algebra MATRIX FACTORIZATIONS.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
Rewrite a linear equation
Chapter 8 Numerical Technique
ASEN 5070: Statistical Orbit Determination I Fall 2014
Lecture 2 Matrices Lat Time - Course Overview
Linear Equations.
Linear Algebra Lecture 15.
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Numerical Analysis Lecture 45.
Chemical Engineering Majors Authors: Autar Kaw
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Numerical Computation and Optimization
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Part 3 Chapter 10 LU Factorization
Numerical Analysis Lecture10.
Major: All Engineering Majors Authors: Autar Kaw
Lecture 8 Matrix Inverse and LU Decomposition
Linear Systems of Equations: solution and applications
Linear Algebra Lecture 28.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Lecture 10 - Nonlinear gradient techniques and LU Decomposition CVEN 302 June 24, 2002

Lecture’s Goals Nonlinear Gradient technique LU Decomposition –Crout’s technique –Doolittle’s technique –Cholesky’s technique

Nonlinear Equations The nonlinear equations can be solved using a gradient technique. The minimization technique calculates a positive scalar value and use a gradient to find the zero of multiple functions.

Minimization algorithm Calculate the square function. –h(x) = [  f(x)) 2 ] Calculate a scalar value –z 0 = h(x) Calculate the gradient –dx = - dh/dx

Minimization algorithm Multiple loops to convergence x new = x old + dx ; z 1 = h(x new ); dif = z 1 - z 0 ; if dif > 0 dx = dx/2 x new = x old + dx else end loop endif

Program FFMIN The program is adapted from the book to do a minimization of scalar and uses a gradient technique to find the roots.

Example of the 2-D Problem f 1 (x,y) = x 2 + y f 2 (x,y) = x 2 - y

Example of the 2-D Problem The gradient function: h(x,y) =[( x 2 + y 2 - 1) 2 +( x 2 - y) 2 ] The derivative of the function: dh=[ -(4(x 2 + y 2 -1)x + 4( x 2 - y)x) -(4(x 2 +y 2 - 1)y - 2( x 2 - y))]

Example of the 3-D Problem f 1 (x,y,z) = x 2 + 2y 2 + 4z f 2 (x,y,z) = 2x 2 + y 3 + 6z f 3 (x,y,z) = xyz + 1

Example of the 3-D Problem The gradient function: h(x,y,z) = [ (x 2 + 2y 2 + 4z 2 - 7) 2 + (2x 2 + y 3 + 6z ) 2 + (xyz + 1) 2 ]

End of material on Exam 1 Exam 1 Chapter 1 through 5 Monday July 3, 2002 open book and open notes

Chapter 6 LU Decomposition of Matrices

LU Decomposition A modification of the elimination method, called the LU decomposition. The technique will rewrite the matrix as the product of two matrices. A = LU

LU Decomposition The technique breaks the matrix into a product of two matrices, L and U, L is a lower triangular matrix and U is an upper triangular matrix.

LU Decomposition –Crout’s reduction (U has ones on the diagonal) –Doolittle’s method( L has ones on the diagonal) –Cholesky’s method ( The diagonal terms are the same value for the L and U matrices) There are variation of the technique using different methods.

Decomposition

LU Decomposition Solving Using the LU decomposition [A]{x} = [L][U]{x} = [L]{[U]{x}} = {b} Solve [L]{y} = {b} and then solve [U]{x} = {y}

LU Decomposition The matrices are represented by

Equation Solving What is the advantage of breaking up one linear set into two successive ones? –The advantage is that the solution of triangular set of equations is trivial to solve.

Equation Solving First step - forward substitution

Equation Solving Second step - back substitution

LU Decomposition (Crout’s reduction) Matrix decomposition

LU Decomposition (Doolittle’s method) Matrix decomposition

Cholesky’s method Matrix is decomposed into: where, l ii = u ii

LU Decomposition (Crout’s reduction) Matrix decomposition

Crout’s Reduction The method alternates from solving from the lower triangular to the upper triangular

Crout’s Reduction

General formulation of Crout’s These are the general equations for the component of the two matrices

Example The matrix is broken into a lower and upper triangular matrices.

LU Decomposition (Doolittle’s method) Matrix decomposition

Doolitte’s method The method alternates from solving from the upper triangular to the lower triangular

General formulation of Doolittle’s The problem is reverse of the Crout’s reduction, starting with the upper triangular matrix and going to the lower triangular matrix.

LU Programs There are two programs –LU_factor –LU_factor - the program does a Doolittle decomposition of a matrix and returns the L and U matrices –LU_solve –LU_solve uses an L and U matrix combination to solve the system of equations.

Example The matrix is broken into a lower and upper triangular matrices.

Summary Nonlinear scalar gradient method uses a simple step to find the crossing terms. Setup of the LU decomposition techniques.

Homework Check the Homework webpage