Start Presentation October 4, 2012 Solution of Non-linear Equation Systems In this lecture, we shall look at the mixed symbolic and numerical solution.

Slides:



Advertisements
Similar presentations
Start Presentation September 27, 2012 The Structural Singularity Removal Algorithm by Pantelides This lecture deals with a procedure that can be used to.
Advertisements

Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (III)
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 5 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 5 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Systems of Non-Linear Equations
Newton's Method for Functions of Several Variables
Differential Equations and Boundary Value Problems
LINEAR EQUATION IN TWO VARIABLES. System of equations or simultaneous equations – System of equations or simultaneous equations – A pair of linear equations.
Table of Contents Solving Linear Systems of Equations - Substitution Method Recall that to solve the linear system of equations in two variables... we.
Table of Contents Quadratic Equation: Solving Using the Quadratic Formula Example: Solve 2x 2 + 4x = 1. The quadratic formula is Here, a, b, and c refer.
Secant Method Another Recursive Method. Secant Method The secant method is a recursive method used to find the solution to an equation like Newton’s Method.
Linear Equations Section 2.4 Equation comes from the Latin aequus meaning “even” or “level”. An equation is a statement in which two algebraic expressions.
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
Taylor Series.
Table of Contents First note this equation has "quadratic form" since the degree of one of the variable terms is twice that of the other. When this occurs,
Computing a posteriori covariance in variational DA I.Gejadze, F.-X. Le Dimet, V.Shutyaev.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Newton's Method for Functions of Several Variables Joe Castle & Megan Grywalski.
Unit 6 vocabulary Test over words next week, it will benefit you to study and understand what there words mean.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
4.5: Linear Approximations, Differentials and Newton’s Method.
Chapter 8 Integration Techniques. 8.1 Integration by Parts.
Start of presentation September 27, 2012 Algebraic Loops and Structural Singularities The sorting algorithm, as it was demonstrated so far, does not always.
Problem of the Day No calculator! What is the instantaneous rate of change at x = 2 of f(x) = x2 - 2 ? x - 1 A) -2 C) 1/2 E) 6 B) 1/6 D) 2.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
Numerical Methods.
1.5 – Day 1 Equations.
559 Fish 559; Lecture 5 Non-linear Minimization. 559 Introduction Non-linear minimization (or optimization) is the numerical technique that is used by.
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Aaron Barker DEFINITION OF THE DERIVATIVE.  The Definition of the Derivative can be used to find the derivative of polynomials and exponential functions.
Systems of Linear Equations in Two Variables. 1. Determine whether the given ordered pair is a solution of the system.
Solving Linear Systems by Substitution
Table of Contents Solving Quadratic Equations – The Discriminant The Discriminant is the expression found under the radical symbol in the quadratic formula.
Start Presentation October 4, 2012 Efficient Solution of Equation Systems This lecture deals with the efficient mixed symbolic/numeric solution of algebraically.
The formulae for the roots of a 3rd degree polynomial are given below
Algebra Review. Systems of Equations Review: Substitution Linear Combination 2 Methods to Solve:
Matrices. Matrix - a rectangular array of variables or constants in horizontal rows and vertical columns enclosed in brackets. Element - each value in.
Section 9.4 – Solving Differential Equations Symbolically Separation of Variables.
Evaluating Algebraic Expressions.
DIFFERENTIAL EQUATIONS
Non-linear Minimization
1-5 Equations Goals: Solve equations with one variable
MTH1170 Differential Equations
Solving Systems of Equations
2.3 Linear Inequalities Understand basic terminology related to inequalities Solve linear inequalities symbolically Solve linear inequalities graphically.
Solving Linear Systems Algebraically
Solve a system of linear equation in two variables
Solving Nonlinear Equation
Chapter 6.
Chapter 27.
Computers in Civil Engineering 53:081 Spring 2003
Simultaneous Equations
Objective Numerical methods Finite volume.
Lecture Objectives: Simple Algorithm vs. Direct Solvers Discuss HW 3
Numerical Analysis Lecture10.
Matrices.
Mathematical Solution of Non-linear equations : Newton Raphson method
Evaluating Algebraic Expressions.
Linearization and Newton’s Method
Solving Equations 3x+7 –7 13 –7 =.
Some Comments on Root finding
Evaluating Algebraic Expressions.
Evaluating Algebraic Expressions.
Algebra Revision.
6th Lecture : Numerical Methods
Chapter 6.
Pivoting, Perturbation Analysis, Scaling and Equilibration
Presentation transcript:

Start Presentation October 4, 2012 Solution of Non-linear Equation Systems In this lecture, we shall look at the mixed symbolic and numerical solution of algebraically coupled non-linear equation systems. The tearing method lends itself also to the efficient treatment of non-linear equation systems. The numerical iteration of the non-linear equation system can be limited to the tearing variables.

Start Presentation October 4, 2012 Table of Contents Non-linear equation systemsNon-linear equation systems Newton iterationNewton iteration Newton iteration with tearingNewton iteration with tearing Newton iteration of linear equation systemsNewton iteration of linear equation systems

Start Presentation October 4, 2012 Non-linear Equation System: An Example I

Start Presentation October 4, 2012 Non-linear Equation System: An Example II p 2 p 0 Reservoir Sluice Consumer I Consumer II Environment pressure p 1 q 1 q 3 q 2

Start Presentation October 4, 2012 Non-linear Equation System: An Example III q pp q: Flow rate  p: Pressure reduction q pp q = k · sign(  p ) ·   p  p = sign(q) · q 2 / k 2

Start Presentation October 4, 2012 Non-linear Equation System: An Example IV p 2 p 0 Reservoir Sluice Consumer I Consumer II Environment pressure p 1 q 1 q 3 q 2 p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 = q 2 + q 3

Start Presentation October 4, 2012 Non-linear Equation System: An Example V p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 - q 2 - q 3 = 0  p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 - q 2 - q 3 = 0 Non-linear equation system in 4 unknowns

Start Presentation October 4, 2012 Newton Iteration I Non-linear equation system: f(x) = 0 x  n f  n Initial guess: x 0 Iteration formula: x i+1 = x i -  x i H  n  n Increment:  x i = H(x i ) -1 · f(x i )  x  n Hessian matrix: H(x) =  f(x)  x

Start Presentation October 4, 2012 Newton Iteration : Example I x = p1q1q2q3p1q1q2q3 p 2 - p 1 - sign(q 1 ) · q 1 2 /k 1 2 p 1 – p 0 - sign(q 2 ) · q 2 2 /k 2 2 p 1 – p 0 - sign(q 3 ) · q 3 2 /k 3 2 q 1 - q 2 - q 3 f(x) = = 0 -2|q 1 |/k |q 2 |/k |q 3 |/k H(x) =

Start Presentation October 4, 2012 Newton Iteration II Computation of increment:  x i = H(x i ) -1 · f(x i )  H(x i ) ·  x i = f(x i )  Linear equation system in the unknowns  x   x  n

Start Presentation October 4, 2012 Newton Iteration with Tearing I Choice p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 - q 2 - q 3 = 0  p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 - q 2 - q 3 = 0  p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 - q 2 - q 3 = 0

Start Presentation October 4, 2012 Newton Iteration with Tearing II p 2 = 100 p 0 = 1 f S (q 1,p 1,p 2 ) = 0 f I (q 2,p 0,p 1 ) = 0 f II (q 3,p 0,p 1 ) = 0 q 1 - q 2 - q 3 = 0  p 2 = 100 p 0 = 1 q 1 = q 2 + q 3 p 1 = f 1 (q 1,p 2 ) q 2 = f 2 (p 0,p 1 ) q 3 = f 3 (p 0,p 1 ) q 1 = f 2 (p 0,p 1 ) + f 3 (p 0,p 1 ) = f 2 (p 0, f 1 (q 1,p 2 ) ) + f 3 (p 0, f 1 (q 1,p 2 ))

Start Presentation October 4, 2012 Newton Iteration with Tearing III q 1 = f 2 (p 0,p 1 ) + f 3 (p 0,p 1 ) = f 2 (p 0, f 1 (q 1,p 2 ) ) + f 3 (p 0, f 1 (q 1,p 2 )) x = q 1 f(x) = q 1 - f 2 (p 0, f 1 (q 1,p 2 ) ) - f 3 (p 0, f 1 (q 1,p 2 )) = 0  H(x i ) ·  x i = f(x i )  Linear equation system in the unknown  x   x  1

Start Presentation October 4, 2012 Newton Iteration : Example II p 2 = 100 p 0 = 1 q 1 = q 2 + q 3 p 1 = p 2 - sign(q 1 ) · q 1 2 / k 1 2 q 2 = k 2 · sign(p 1 - p 0 ) ·  p 1 - p 0 q 3 = k 3 · sign(p 1 - p 0 ) ·  p 1 - p 0 pq 1 q 1 = 1 pp 1 q 1 = - 2|q 1 | / k 1 2 pq 2 q 1 = k 2 / ( 2 ·  p 1 - p 0 ) · pp 1 q 1 pq 3 q 1 = k 3 / ( 2 ·  p 1 - p 0 ) · pp 1 q 1 f = q 1 - q 2 - q 3 h = pq 1 q 1 - pq 2 q 1 - pq 3 q 1  The symbolic substitution of expressions is hardly ever worthwhile. It is much better to iterate over all equations and to differentiate every equation separately in the determination of the partial derivatives.

Start Presentation October 4, 2012 Newton Iteration : Example III q 1 = Initial guess dx = 1 while dx > dxmin p 1 = p 2 - sign(q 1 ) · q 1 2 / k 1 2 q 2 = k 2 · sign(p 1 - p 0 ) ·  p 1 - p 0 q 3 = k 3 · sign(p 1 - p 0 ) ·  p 1 - p 0 pp 1 = - 2|q 1 | / k 1 2 pq 2 = k 2 / ( 2 ·  p 1 - p 0 ) · pp 1 pq 3 = k 3 / ( 2 ·  p 1 - p 0 ) · pp 1 f = q 1 - q 2 - q 3 h = 1 - pq 2 - pq 3 dx = h \ f q 1 = q 1 – dx end  The iteration is carried out over all equations. However, the internal linear equation system is only solved for the tearing variables.

Start Presentation October 4, 2012 Newton Iteration for Linear Systems Linear system: A·x = b  f(x) = A·x – b = 0  H(x) =  f(x)/  x = A  A·  x = A·x – b   x = x – A -1 ·b  x 1 = x 0 – (x 0 – A -1 ·b) = A -1 ·b  The Newton iteration converges here in a single iteration step

Start Presentation October 4, 2012 Summary The tearing method is equally suitable for use in non-linear as in linear systems. The Νewton iteration of a non-linear equation system leads internally to the solution of a linear equation system. The Hessian matrix of this equation system needs only to be determined for the tearing variables. The Νewton iteration can also be used very efficiently for the solution of linear systems in many variables, since it converges (with correct computation of the H(x) matrix) in a single step. In practice, the H(x) matrix is often numerically approximated rather than analytically computed. Yet, symbolic formula manipulation techniques can be used to come up with symbolic expressions for the elements of the Hessian matrix.