Quiescent Steady State (DC) Analysis The Newton-Raphson Method

Similar documents
Numerical Algorithms for ODEs/DAEs (Transient Analysis)

Advanced Computational Methods for VLSI Systems. Lecture 4 RF Circuit Simulation Methods. Zhuo Feng

Computing Phase Noise Eigenfunctions Directly from Steady-State Jacobian Matrices

Parallel VLSI CAD Algorithms. Lecture 1 Introduction Zhuo Feng

CE 191: Civil and Environmental Engineering Systems Analysis. LEC 05 : Optimality Conditions

CHAPTER 2 LOAD FLOW ANALYSIS FOR RADIAL DISTRIBUTION SYSTEM

the method of steepest descent

Constrained optimization. Unconstrained optimization. One-dimensional. Multi-dimensional. Newton with equality constraints. Active-set method.

Simulation of RF integrated circuits. Dr. Emad Gad

Nonlinear Equations. Not guaranteed to have any real solutions, but generally do for astrophysical problems.

7.3 State Space Averaging!

PHYS 410/555 Computational Physics Solution of Non Linear Equations (a.k.a. Root Finding) (Reference Numerical Recipes, 9.0, 9.1, 9.

Scientific Computing: An Introductory Survey

ECE 497 JS Lecture - 11 Modeling Devices for SI

Numerical Methods in Informatics

Written Examination

= V I = Bus Admittance Matrix. Chapter 6: Power Flow. Constructing Ybus. Example. Network Solution. Triangular factorization. Let

Sparse, stable gene regulatory network recovery via convex optimization

Iterative Methods. Splitting Methods

Introduction to Compact Dynamical Modeling. II.1 Steady State Simulation. Luca Daniel Massachusetts Institute of Technology. dx dt.

Mathematical optimization

ECE 546 Lecture 16 MNA and SPICE

Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

A New Simulation Technique for Periodic Small-Signal Analysis

dx n a 1(x) dy

10.34: Numerical Methods Applied to Chemical Engineering. Lecture 7: Solutions of nonlinear equations Newton-Raphson method

Linear Systems of Equations. ChEn 2450

ME451 Kinematics and Dynamics of Machine Systems

ECE PN Junctions and Diodes

An Algorithmic Framework of Large-Scale Circuit Simulation Using Exponential Integrators

EE16B, Spring 2018 UC Berkeley EECS. Maharbiz and Roychowdhury. Lectures 4B & 5A: Overview Slides. Linearization and Stability

Review for Exam 2 Ben Wang and Mark Styczynski

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

Sec. 1.1: Basics of Vectors

11.2 Basic First-order System Methods

Lecture 5. September 4, 2018 Math/CS 471: Introduction to Scientific Computing University of New Mexico

Robert W. Brodersen EECS140 Analog Circuit Design

Technology Computer Aided Design (TCAD) Laboratory. Lecture 2, A simulation primer

An Equivalent Circuit Formulation of the Power Flow Problem with Current and Voltage State Variables

CHAPTER 2: QUADRATIC PROGRAMMING

Power System Analysis Prof. A. K. Sinha Department of Electrical Engineering Indian Institute of Technology, Kharagpur. Lecture - 21 Power Flow VI

Achieving Accurate Results With a Circuit Simulator. Ken Kundert and Ian Clifford Cadence Design Systems Analog Division San Jose, Calif 95134

Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

Numerical Optimization

Jim Lambers MAT 419/519 Summer Session Lecture 11 Notes

SYSTEMS OF NONLINEAR EQUATIONS

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

Advanced Techniques for Mobile Robotics Least Squares. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz

Appendix A Solving Systems of Nonlinear Equations

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

Chapter 3 Numerical Methods

Conjugate Gradient (CG) Method

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations

Numerical solutions of nonlinear systems of equations

SECTION 5: POWER FLOW. ESE 470 Energy Distribution Systems

17 Solution of Nonlinear Systems

Basic. Theory. ircuit. Charles A. Desoer. Ernest S. Kuh. and. McGraw-Hill Book Company

Nonlinear Optimization for Optimal Control

Lecture: Quadratic optimization

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations

BEHAVIORAL MODELING AND TRANSIENT ANALYSIS WITH ANALOG INSYDES

BACKPROPAGATION. Neural network training optimization problem. Deriving backpropagation

Computational Methods. Solving Equations

The Harmonic Balance Method

Robotics: Tutorial 3

NONLINEAR DC ANALYSIS

Consider the following example of a linear system:

Linear Solvers. Andrew Hazel

Small Signal Model. S. Sivasubramani EE101- Small Signal - Diode

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

An Efficient Graph Sparsification Approach to Scalable Harmonic Balance (HB) Analysis of Strongly Nonlinear RF Circuits

EE16B, Spring 2018 UC Berkeley EECS. Maharbiz and Roychowdhury. Lecture 5B: Open QA Session

Differential Equations 2280 Sample Midterm Exam 3 with Solutions Exam Date: 24 April 2015 at 12:50pm

NON-LINEAR ALGEBRAIC EQUATIONS Lec. 5.1: Nonlinear Equation in Single Variable

Applied Optimization: Formulation and Algorithms for Engineering Systems Slides

Solution Methods. Richard Lusby. Department of Management Engineering Technical University of Denmark

Classification of Phase Portraits at Equilibria for u (t) = f( u(t))

g(t) = f(x 1 (t),..., x n (t)).

Lecture 44. Better and successive approximations x2, x3,, xn to the root are obtained from

CE 191: Civil & Environmental Engineering Systems Analysis. LEC 17 : Final Review

Methods for Computing Periodic Steady-State Jacob White

MATH 225 Summer 2005 Linear Algebra II Solutions to Assignment 1 Due: Wednesday July 13, 2005

The Newton-Raphson method accelerated by using a line search - comparison between energy functional and residual minimization

Math and Numerical Methods Review

BEKG 2452 NUMERICAL METHODS Solution of Nonlinear Equations

x 2 x n r n J(x + t(x x ))(x x )dt. For warming-up we start with methods for solving a single equation of one variable.

Numerical Methods I Solving Nonlinear Equations

26-th ECMI Modelling Week Final Report Dresden, Germany

Numerical Methods

Newton s Method. Javier Peña Convex Optimization /36-725

GENG2140, S2, 2012 Week 7: Curve fitting

Fundamentals Algorithms for Linear Equation Solution. Gaussian Elimination LU Factorization

MEM 255 Introduction to Control Systems: Modeling & analyzing systems

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45

Solving linear systems (6 lectures)

Math 273a: Optimization Netwon s methods

Electrical Circuits I

Non-linear least squares

Transcription:

Quiescent Steady State (DC) Analysis The Newton-Raphson Method J. Roychowdhury, University of California at Berkeley Slide 1

Solving the System's DAEs DAEs: many types of solutions useful DC steady state: no time variations transient: ckt. waveforms changing with time periodic steady state: changes periodic w time d dt ~q (~x(t)) + f ~ (~x(t)) + ~ b(t) = ~0 linear(ized): all sinusoidal waveforms: AC analysis nonlinear steady state: shooting, harmonic balance noise analysis: random/stochastic waveforms sensitivity analysis: effects of changes in circuit parameters J. Roychowdhury, University of California at Berkeley Slide 2

QSS: Quiescent Steady State ( DC ) Analysis d dt ~q (~x(t)) + ~ f (~x(t)) + ~ b(t) = ~0 Assumption: nothing changes with time x, b are constant vectors; d/dt term vanishes ~g(~x) z } { ~f (~x) + ~ b = ~0 Why do QSS? quiescent operation: first step in verifying functionality stepping stone to other analyses: AC, transient, noise,... Nonlinear system of equations the problem: solving them numerically most common/useful technique: Newton-Raphson method J. Roychowdhury, University of California at Berkeley Slide 3

The Newton Raphson Method Iterative numerical algorithm to solve 1 start with some guess for the solution 2 repeat a i ii check if current guess solves equation if yes: done! if no: do something to update/improve the guess Newton-Raphson algorithm start with initial guess ~x 0; i=0 repeat until convergence (or max #iterations) compute Jacobian matrix: solve for update : update guess: i++; ±~x J i = d~g(~x i) d~x J i ±~x = ~g(~x i ) ~x i+1 = ~x i + ±~x ~g(~x) = ~0 J. Roychowdhury, University of California at Berkeley Slide 4

Newton-Raphson Graphically g(x) Scalar case above Key property: generalizes to vector case J. Roychowdhury, University of California at Berkeley Slide 5

Newton Raphson (contd.) Does it always work? No. Conditions for NR to converge reliably g(x) must be smooth : continuous, differentiable starting guess close enough to solution practical NR: needs application-specific heuristics J. Roychowdhury, University of California at Berkeley Slide 6

NR: Convergence Rate Key property of NR: quadratic convergence Suppose x is the exact solution of g(x) = 0 At the i th NR iteration, define the error ² i = x i x meaning of quadratic convergence: (where c is a constant) NR's quadratic convergence properties if g(x) is smooth (at least continuous 1 st and 2 nd derivatives) and g 0 (x ) 6= 0 and kx i x k is small enough, then: NR features quadratic convergence ² i+1 < c² 2 i J. Roychowdhury, University of California at Berkeley Slide

Convergence Rate in Digits of Accuracy Quadratic convergence Linear convergence J. Roychowdhury, University of California at Berkeley Slide 8

NR: Convergence Strategies reltol-abstol on deltax stop if norm(deltax) <= tolerance tolerance = abstol + reltol*x reltol ~ 1e-3 to 1e-6 abstol ~ 1e-9 to 1e-12 better apply to individual vector entries (and AND) organize x in variable groups: e.g., voltages, currents, (scale DAE equations/unknowns first) more sophisticated possible e.g., use sequence of x values to estimate conv. rate residual convergence criterion stop if k~g(~x)k < ² residual Combinations of deltax and residual ultimately: heuristics, tuned to application J. Roychowdhury, University of California at Berkeley Slide 9

Newton Raphson Update Step Need to solve linear matrix equation : Ax = b problem J = d~g(~x) : Jacobian matrix d~x Derivatives of vector functions If J ~x = ~g(~x) ~x(t) = then 2 6 4 x 1. x n 3 5 ; ~g(~x) = d~g d~x, 2 6 4 2 3 g 1 (x 1 ; ; x n ) 6 4 5. g 1 (x 1 ; ; x n ) dg 1 dg 1 dx 1 dg 2 dg 2 dx 1. dg n 1 dg n 1 dx 1 dg n dx 1 dx 2 dx 2. dx 2 dg n dx 2 dg dg 1 dx n 1 dg 2 1 dx n dg 2 dx n 1 dx n J. Roychowdhury, University of California at Berkeley Slide 10. dg n 1. dx n 1 dg n dx n dg n dg n 1 dx n 1 dx n 3 5

DAE Jacobian Matrices Ckt DAE: d dt ~q (~x(t)) + ~ f (~x(t)) + ~ b(t) = ~0 1 i E i L 2 ~x(t) = 2 3 2 3 e 1 (t) 0 6e 2 (t) 4i L (t) 5 ~q(~x) = 6 Ce 2 4 0 i E (t) Li L 5 ~ f(~x) = 2 3 diode( e 1 ; I S ; V t ) i E 6 4 i E + i L + e 2 R e 2 e 1 e 2 5 ~ b(t) = 2 3 0 6 0 4 E(t) 5 0 J q, d~q d~x = 2 3 0 0 0 0 60 C 0 0 40 0 0 05 0 0 L 0 J f, d~ f d~x = 2 6 4 3 dv ( e 1 ) 0 0 1 1 0 R 1 1 1 1 0 0 5 0 1 0 0 ddiode J. Roychowdhury, University of California at Berkeley Slide 11

Newton Raphson: Computation Need to solve linear matrix equation : Ax = b problem Ax=b: where much of the computation lies large circuits (many nodes): large DAE systems, large Jacobian matrices in general (for arbitrary matrices of size n) J ~x = ~g(~x) solving Ax = b requires O(n 2 ) memory O(n 3 ) computation! (using, e.g., Gaussian Elimination) but for most circuit Jacobian matrices O(n) memory, ~O(n 1.4 ) computation because circuit Jacobians are typically sparse J. Roychowdhury, University of California at Berkeley Slide 12

Dense vs Sparse Matrices Sparse Jacobians: typically 3N-4N non-zeros compare against N2 for dense J. Roychowdhury, University of California at Berkeley Slide 13