MATH 175: NUMERICAL ANALYSIS II

Slides:



Advertisements
Similar presentations
Formal Computational Skills
Advertisements

Chapter 6 Differential Equations
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Ordinary Differential Equations
1cs542g-term Notes  Notes for last part of Oct 11 and all of Oct 12 lecture online now  Another extra class this Friday 1-2pm.
11 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 10 – Ordinary Differential Equations 11 September am – 9.00 am.
王俊鑫 (Chun-Hsin Wang) 中華大學 資訊工程系 Fall 2002 Chap 2 Numerical Methods for First-Order Differential Equations.
Chapter 16 Integration of Ordinary Differential Equations.
Ordinary Differential Equations (ODEs)
MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY IMSP, UPLB.
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Semester AY
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante 2 nd Sem AY IMSP, UPLB.
An Over View of Runge-Kutta Fehlberg and Dormand and Prince Methods. Numerical Methods To Solve Initial Value Problems William Mize.
Integration of 3-body encounter. Figure taken from
Applications of Loops: The power of MATLAB Mathematics + Coding
Numerical Methods Solution of Equation.
Chapter 10 ordinary differential equations (ODEs) Chapter 11 systems of ODEs (6 th edition)
PHY 301: MATH AND NUM TECH Contents Chapter 10: Numerical Techniques I. Integration A.Intro B.Euler  Recall basic  Predictor-Corrector C. Runge-Kutta.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Sem AY
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Integration Methods
MATH 175: Numerical Analysis II
Dmitry Sorokin (GSoC 2016), John Apostolakis (CERN)
Numerical Methods for Partial Differential Equations
Part 7 - Chapter 25.
Numerical Methods by Dr. Laila Fouad.
Ordinary Differential Equations
ECE 576 – Power System Dynamics and Stability
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Sec:25.3 RUNGE-KUTTA METHODS.
MATH 175: Numerical Analysis II
Part 7 - Chapter 25.
Selecting Two Vouchers
MATH 175: NUMERICAL ANALYSIS II
Numerical Analysis Lecture14.
Copyright © Cengage Learning. All rights reserved.
SOLUTION OF NONLINEAR EQUATIONS
Sec:5.4 RUNGE-KUTTA METHODS.
MATH 174: Numerical Analysis I
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
ME 123 Computer Applications I Lecture 23: Advanced Graphics 4/17/03
Numerical Analysis Lecture 38.
MATH 174: NUMERICAL ANALYSIS I
MATH 174: NUMERICAL ANALYSIS I
MATH 175: NUMERICAL ANALYSIS II
Math 175: Numerical Analysis II
Numerical Integration Methods
Adaptive Methods and Stiff Systems
Romberg Rule of Integration
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
Numerical Integration
Romberg Rule of Integration
MATH 175: Numerical Analysis II
MATH 175: Numerical Analysis II
Romberg Rule of Integration
MATH 175: Numerical Analysis II
MATH 175: Numerical Analysis II
MATH 175: NUMERICAL ANALYSIS II
Implicit and Explicit Runge-Kutta methods
Numerical Computation and Optimization
Differential equations
Romberg Rule of Integration
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

VARIABLE STEP-SIZE METHODS (ADAPTIVE) It is a good practice to change the step size for a solution that moves between periods of slow change and periods of fast change. One common variable step-size approach is using two solvers of different orders (embedded pairs).

VARIABLE STEP-SIZE METHODS Basic idea: The user sets a tolerance error that must be met by each step. The method is designed to reject the step and cut the step size (usually by half) if the tolerance error is exceeded. If the tolerance error is met too well – say the error is 1/10 of the tolerance error – then the step size is increased (usually doubled). [We will not do number 3].

VARIABLE STEP-SIZE METHODS Before crudely cutting the step size into half, we will try to come-up first with a formula that might give us the right step size. We will use relative error estimate where θ>0 protects against very small values of wi.

VARIABLE STEP-SIZE METHODS Let T be the tolerance (relative) error. Assume that the (explicit one-step) solver has order p, so that the local truncation error is O(hp+1). Hence, the h that satisfies (1) & (2) is

VARIABLE STEP-SIZE METHODS Continuation… We consider only the 80% to be conservative (0.8 is the safety factor); and we consider theta. Hence,

VARIABLE STEP-SIZE METHODS If h* does not meet the tolerance, then set hi := h* and apply again to the formula. If the newly computed h* still does not meet the tolerance, then cut h* into half (i.e. h* := h*/2). Continuously cut until the tolerance is met. If h* becomes very small (say less than 10^-10), then stop and tell the user that the step size becomes very small. However, if tolerance error is met set hi+1 := hi .

VARIABLE STEP-SIZE METHODS Computing ei is a challenge, so to estimate ei , we will use a higher order method’s estimate – say zi+1 . This method is called embedded pair. Estimate from higher-order method Estimate from original method

EMBEDDED RUNGE-KUTTA PAIRS 1st Example: RK 2/3 We partner explicit Trapezoid method (an RK 2 method) with an RK 3 method.

EMBEDDED RUNGE-KUTTA PAIRS 1st Example: RK 2/3 Getting ei : Note: We can use zi to advance our method i.e. estimate for yi (this is local extrapolation)

EMBEDDED RUNGE-KUTTA PAIRS 2nd Example: RK 4/5 or Runge-Kutta-Fehlberg (this method is famous)

Continuation… 2nd Example: RK 4/5

VARIABLE STEP-SIZE METHODS Other well-known methods: Bogacki-Shampine 2/3 (ODE23 in MATLAB) Dormand-Prince 4/5 (ODE45 in MATLAB) RKV 5/6 (Runge-Kutta-Verner) Bulirsch-Stoer method You can also use Richardson’s extrapolation to improve the solutions. Note: There maybe other ways of computing h* .