Start Presentation October 4, 2012 Efficient Solution of Equation Systems This lecture deals with the efficient mixed symbolic/numeric solution of algebraically.

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Start Presentation October 11, rd Homework Solution In this homework problem, we wish to exercise the application of the algorithms by Pantelides.
Start Presentation November 8, 2012 Bond Graphs for Mechanical Systems We shall look today in a bit more detail at the modeling of 1D mechanical systems.
Start Presentation September 27, 2012 The Structural Singularity Removal Algorithm by Pantelides This lecture deals with a procedure that can be used to.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Systems of Linear Equations
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Numerical Algorithms Matrix multiplication
Start Presentation October 4, rd Homework Problem In this homework problem, we wish to exercise the application of the algorithms by Pantelides.
Part 3 Chapter 9 Gauss Elimination
Chapter 9 Gauss Elimination The Islamic University of Gaza
The Dymola Bond Graph Library
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Electrical CircuitsI This lecture discusses the mathematical.
Linear Algebraic Equations
Special Matrices and Gauss-Siedel
Ch 7.9: Nonhomogeneous Linear Systems
example: four masses on springs
1 Lecture 25: Parallel Algorithms II Topics: matrix, graph, and sort algorithms Tuesday presentations:  Each group: 10 minutes  Describe the problem,
François E. Cellier and Matthias Krebs
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
Richard Fateman CS 282 Lecture 111 Determinants Lecture 11.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Dr. Jie Zou PHY Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (II) Note: Besides the main textbook, also see Ref: Applied.
Special Matrices and Gauss-Siedel
Start of Presentation Maple soft Conference 2006 The Need for Formulae Manipulation in the Object-oriented Modeling of Physical Systems François E. Cellier,
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
1 Systems of Linear Equations (Optional) Special Matrices.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Chapter.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Linear Algebraic Equations ~ Gauss Elimination Chapter.
Chapter 8 Objectives Understanding matrix notation.
LINEAR PROGRAMMING SIMPLEX METHOD.
Chapter 10 Review: Matrix Algebra
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Bond Graphs II In this class, we shall deal with the effects of algebraic loops and structural singularities on the bond graphs of physical systems. We.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Part II: Linear Algebra Chapter 8 Systems of Linear Algebraic Equations; Gauss Elimination 8.1 Introduction There are many applications in science and.
Start Presentation October 4, 2012 Solution of Non-linear Equation Systems In this lecture, we shall look at the mixed symbolic and numerical solution.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
© 2005 Baylor University Slide 1 Fundamentals of Engineering Analysis EGR Adjoint Matrix and Inverse Solutions, Cramer’s Rule.
Announcements Homework #4 is due now Homework 5 is due on Oct 4
1 Faculty of Applied Engineering and Urban Planning Civil Engineering Department ECGD3110 Numerical Analysis Lecture 11 1 st Semester 2009/2010 UoP Copyrights.
Start of presentation September 27, 2012 Algebraic Loops and Structural Singularities The sorting algorithm, as it was demonstrated so far, does not always.
ECE 476 Power System Analysis Lecture 11: Ybus, Power Flow Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Start Presentation November 1, 2012 Treatment of Discontinuities II We shall today once more look at the modeling of discontinuous systems. First, an additional.
Chapter 9 Gauss Elimination The Islamic University of Gaza
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
THE IMPORTANCE OF DISCRETE MATHEMATICS IN COMPUTER TECHNOLOGY.
Solving Minimal Problems Numerics KALLE ÅSTRÖM, CENTRE FOR MATHEMATICAL SCIENCES, LUND UNIVERSITY, SWEDEN.
Multi-bond Graphs We shall today look at vectors of bonds, called multi-bonds. Especially when dealing with 2D and 3D mechanics, the d’Alembert principle.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9.
Part 3 Chapter 9 Gauss Elimination
Linear Equations Gauss & Cramer’s
ECE 3301 General Electrical Engineering
MATHEMATICS Linear Equations
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Chapter 3 The Simplex Method and Sensitivity Analysis
Part 3 - Chapter 9.
4th Homework Problem In this homework problem, we wish to exercise the tearing and relaxation methods by means of a slightly larger problem than that presented.
4th Homework Solution In this homework problem, we wish to exercise the tearing and relaxation methods by means of a slightly larger problem than that.
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Presentation transcript:

Start Presentation October 4, 2012 Efficient Solution of Equation Systems This lecture deals with the efficient mixed symbolic/numeric solution of algebraically coupled equation systems. Equation systems that describe physical phenomena are almost invariably (exception: very small equation systems of dimension 2  2 or 3  3) sparsely populated. This fact can be exploited. Two symbolic solution techniques: the tearing of equation systems and the relaxation of equation systems, shall be presented. The aim of both techniques is to “squeeze the zeros out of the structure incidence matrix.”

Start Presentation October 4, 2012 Table of Contents Tearing algorithmTearing algorithm Relaxation algorithmRelaxation algorithm

Start Presentation October 4, 2012 The Tearing of Equation Systems I The tearing method had been demonstrated various times before. The method is explained here once more in a somewhat more formal fashion, in order to compare it to the alternate approach of the relaxation method. As mentioned earlier, the systematic determination of the minimal number of tearing variables is a problem of exponential complexity. Therefore, a set of heuristics have been designed that are capable of determining good sub-optimal solutions.

Start Presentation October 4, 2012 Tearing of Equations: An Example I 1: u = f(t) 2: u – u 1 – u 2 = 0 3: u 1 – L 1 · di 1 /dt = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 Constraint equation 1: u = f(t) 2: u – u 1 – u 2 = 0 3: u 1 – L 1 · di 1 /dt = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 /dt - di 2 /dt = 0 1: u = f(t) 2: u – u 1 – u 2 = 0 3: u 1 – L 1 · di 1 = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 - di 2 /dt = 0  Integrator to be eliminated di 1 /dt

Start Presentation October 4, 2012 Tearing of Equations: An Example II 1: u = f(t) 2: u – u 1 – u 2 = 0 3: u 1 – L 1 · di 1 = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 - di 2 /dt = 0  1: u = f(t) 2: u – u 1 – u 2 = 0 3: u 1 – L 1 · di 1 = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 - di 2 /dt = 0 Algebraically coupled equation system in four unknowns 1: u – u 1 – u 2 = 0 2: u 1 – L 1 · di 1 = 0 3: u 2 – L 2 · di 2 /dt = 0 4: di 1 – di 2 /dt = 0 Choice u1u1  1: u – u 1 – u 2 = 0 2: u 1 – L 1 · di 1 = 0 3: u 2 – L 2 · di 2 /dt = 0 4: di 1 – di 2 /dt = 0  1: u 1 = u – u 2 2: di 1 = u 1 / L 1 3: u 2 = L 2 · di 2 /dt 4: di 2 /dt = di 1

Start Presentation October 4, 2012 Tearing of Equations: An Example III  1: u 1 = u – u 2 2: di 1 = u 1 / L 1 3: u 2 = L 2 · di 2 /dt 4: di 2 /dt = di 1 u 1 = u – u 2 = u – L 2 · di 2 /dt = u – L 2 · di 1 = u – (L 2 / L 1 ) · u 1  [ 1 + (L 2 / L 1 ) ] · u 1 = u  u1 =u1 = L1L1 L 1 + L 2 · u· u  1: u = f(t) 3: u 1 – L 1 · di 1 = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 - di 2 /dt = 0 2: u 1 = L1L1 L 1 + L 2 · u· u

Start Presentation October 4, 2012 Tearing of Equations: An Example IV 1: u = f(t) 3: u 1 – L 1 · di 1 = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 - di 2 /dt = 0 2: u 1 = L1L1 L 1 + L 2 · u· u  1: u = f(t) 3: u 1 – L 1 · di 1 = 0 4: u 2 – L 2 · di 2 /dt = 0 5: i – i 1 = 0 6: i 1 – i 2 = 0 7: di 1 - di 2 /dt = 0 2: u 1 = L1L1 L 1 + L 2 · u· u   Question: How complex can the symbolic expressions for the tearing variables become? 1: u = f(t) 3: di 1 = u 1 / L 1 4: di 2 /dt = di 1 5: u 2 = L 2 · di 2 /dt 6: i 1 = i 2 7: i = i 1 2: u 1 = L1L1 L 1 + L 2 · u· u

Start Presentation October 4, 2012 The Tearing of Equation Systems II In the process of tearing an equation system, algebraic expressions for the tearing variables are being determined. This corresponds to the symbolic application of Cramer’s Rule. A·x = b  x = A -1 ·b A -1 = A†A† |A| (A † ) ij = (-1) (i+j) · |A  j,i | ;

Start Presentation October 4, 2012 Tearing of Equations: An Example V L L u1u2u1u2 = u000u000 di 1 di 2 /dt  u1 =u1 = L L L L · u = L1L1 L 1 + L 2 · u· u

Start Presentation October 4, 2012 The Tearing of Equation Systems III Cramer’s Rule is of polynomial complexity. However, the computational load grows with the fourth power of the size of the equation system. For this reason, the symbolic determination of an expression for the tearing variables is only meaningful for relatively small systems. In the case of bigger equation systems, the tearing method is still attractive, but the tearing variables must then be numerically determined.

Start Presentation October 4, 2012 The Relaxation of Equation Systems I The relaxation method is a symbolic version of a Gauss elimination without pivoting. The method is only applicable in the case of linear equation systems. All diagonal elements of the system matrix must be  0. The number of non-vanishing matrix elements above the diagonal should be minimized. Unfortunately, the problem of minimizing the number of non-vanishing elements above the diagonal is again a problem of exponential complexity. Therefore, a set of heuristics must be found that allow to keep the number of non-vanishing matrix elements above the diagonal small, though not necessarily minimal.

Start Presentation October 4, 2012 Relaxing Equations: An Example I 1: u – u 1 – u 2 = 0 2: u 1 – L 1 · di 1 = 0 3: u 2 – L 2 · di 2 /dt = 0 4: di 1 – di 2 /dt = 0  u 1 + u 2 = u u 1 - L 1 · di 1 = 0 di 2 /dt - di 1 = 0 u 2 - L 2 · di 2 /dt = 0  L L u1u2u1u2 = u000u000 di 1 di 2 /dt The non-vanishing matrix elements above the diagonal correspond conceptually to the tearing variables of the tearing method.

Start Presentation October 4, 2012 Relaxing Equations: An Example II Gauss elimination technique: L L u1u2u1u2 = u000u000 di 1 di 2 /dt  - L L 2 c101c101. di 1 di 2 /dt = c200c200 u2u2 c 1 = -1 c 2 = -u

Start Presentation October 4, 2012 Relaxing Equations: An Example III - L L 2 c101c101. di 1 di 2 /dt = c200c200 u2u2  - L 2 c31c31. di 2 /dt u 2 = c40c40 c 3 = c 1 / L 1 c 4 = c 2 / L 1 - L 2 c31c31. di 2 /dt u 2 = c40c40  c5c5. u2u2 = c6c6 c 5 = 1 - L 2 · c 3 c 6 = - L 2 · c 4

Start Presentation October 4, 2012 Relaxing Equations: An Example IV Gauss elimination technique : c5c5. u2u2 = c6c6  u 2 = c 6 / c 5 - L 2 c31c31. di 2 /dt u 2 = c40c40  di 2 /dt = (c 4 – c 3 ·u 2 ) / (-1) - L L 2 c101c101. di 1 di 2 /dt = c200c200 u2u2  di 1 = (c 2 – c 1 ·u 2 ) / (-L 1 )

Start Presentation October 4, 2012 Relaxing Equations: An Example V L L u1u2u1u2 = u000u000 di 1 di 2 /dt  u 1 = u – u 2  By now, all required equations have been found. They only need to be assembled.

Start Presentation October 4, 2012 Relaxing Equations: An Example VI 1: u – u 1 – u 2 = 0 2: u 1 – L 1 · di 1 = 0 3: u 2 – L 2 · di 2 /dt = 0 4: di 1 – di 2 /dt = 0  c 1 = -1 c 2 = -u c 3 = c 1 / L 1 c 4 = c 2 / L 1 c 5 = 1 - L 2 · c 3 c 6 = - L 2 · c 4 u 2 = c 6 / c 5 di 2 /dt = (c 4 – c 3 ·u 2 ) / (-1) di 1 = (c 2 – c 1 ·u 2 ) / (-L 1 ) u 1 = u – u 2  u = f(t) c 1 = -1 c 2 = -u c 3 = c 1 / L 1 c 4 = c 2 / L 1 c 5 = 1 - L 2 · c 3 c 6 = - L 2 · c 4 u 2 = c 6 / c 5 di 2 /dt = (c 4 – c 3 ·u 2 ) / (-1) di 1 = (c 2 – c 1 ·u 2 ) / (-L 1 ) u 1 = u – u 2 i 1 = i 2 i = i 1

Start Presentation October 4, 2012 The Relaxation of Equation Systems II The relaxation method can be applied symbolically to systems of slightly larger size than the tearing method, because the computational load grows more slowly. For some classes of applications, the relaxation method generates very elegant solutions. However, the relaxation method can only be applied to linear systems, and in connection with the numerical Newton iteration, the tearing algorithm is usually preferred.

Start Presentation October 4, 2012 References Elmqvist H. and M. Otter (1994), “Methods for tearing systems of equations in object-oriented modeling,” Proc. European Simulation Multiconference, Barcelona, Spain, pp Methods for tearing systems of equations in object-oriented modeling Otter M., H. Elmqvist, and F.E. Cellier (1996), “Relaxing: A symbolic sparse matrix method exploiting the model structure in generating efficient simulation code,” Proc. Symp. Modelling, Analysis, and Simulation, CESA'96, IMACS MultiConference on Computational Engineering in Systems Applications, Lille, France, vol.1, pp.1-12.Relaxing: A symbolic sparse matrix method exploiting the model structure in generating efficient simulation code