1cs542g-term1-2006 Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.

Slides:



Advertisements
Similar presentations
Discrete variational derivative methods: Geometric Integration methods for PDEs Chris Budd (Bath), Takaharu Yaguchi (Tokyo), Daisuke Furihata (Osaka)
Advertisements

Geometric Integration of Differential Equations 1. Introduction and ODEs Chris Budd.
Geometric Integration of Differential Equations 2. Adaptivity, scaling and PDEs Chris Budd.
Formal Computational Skills
Chapter 6 Differential Equations
1cs533d-winter-2005 Notes  Assignment 1 is not out yet :-)  courses/533d-winter-2005.
Integration Techniques
Ordinary Differential Equations
Dynamics of Articulated Robots Kris Hauser CS B659: Principles of Intelligent Robot Motion Spring 2013.
Notes Assignment questions… cs533d-winter-2005.
1cs533d-term Notes  Assignment 2 is up. 2cs533d-term Modern FEM  Galerkin framework (the most common)  Find vector space of functions that.
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.
1cs542g-term Notes  Final exam: December 10, 10am-1pm X736 (CS Boardroom)  Another extra class this Friday 1-2pm.
1cs542g-term Notes  Make-up lecture tomorrow 1-2, room 204.
1cs542g-term Notes  Extra class this Friday 1-2pm  Assignment 2 is out  Error in last lecture: quasi-Newton methods based on the secant condition:
1cs542g-term Notes  Even if you’re not registered (not handing in assignment 1) send me an to be added to a class list.
1cs542g-term Notes  No extra class tomorrow.
1 L-BFGS and Delayed Dynamical Systems Approach for Unconstrained Optimization Xiaohui XIE Supervisor: Dr. Hon Wah TAM.
1cs542g-term Notes  Extra class this Friday 1-2pm  If you want to receive s about the course (and are auditing) send me .
Universidad de La Habana Lectures 5 & 6 : Difference Equations Kurt Helmes 22 nd September - 2nd October, 2008.
1 L-BFGS and Delayed Dynamical Systems Approach for Unconstrained Optimization Xiaohui XIE Supervisor: Dr. Hon Wah TAM.
Mechanics.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Ch 2.1: Linear Equations; Method of Integrating Factors
Open Methods Chapter 6 The Islamic University of Gaza
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Ordinary Differential Equations Final Review Shurong Sun University of Jinan Semester 1,
Chapter 16 Integration of Ordinary Differential Equations.
Ordinary Differential Equations (ODEs)
Differential Equations and Boundary Value Problems
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Section 2: Finite Element Analysis Theory
Erin Catto Blizzard Entertainment Numerical Integration.
Algorithms for a large sparse nonlinear eigenvalue problem Yusaku Yamamoto Dept. of Computational Science & Engineering Nagoya University.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Large Steps in Cloth Simulation - SIGGRAPH 98 박 강 수박 강 수.
Integration of 3-body encounter. Figure taken from
MATH4248 Weeks Topics: review of rigid body motion, Legendre transformations, derivation of Hamilton’s equations of motion, phase space and Liouville’s.
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
Multivariate Unconstrained Optimisation First we consider algorithms for functions for which derivatives are not available. Could try to extend direct.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
Colorado Center for Astrodynamics Research The University of Colorado 1 STATISTICAL ORBIT DETERMINATION ASEN 5070 LECTURE 11 9/16,18/09.
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
5. Integration method for Hamiltonian system. In many of formulas (e.g. the classical RK4), the errors in conserved quantities (energy, angular momentum)
L 7: Linear Systems and Metabolic Networks. Linear Equations Form System.
Physics “Advanced Electronic Structure”
Phy 303: Classical Mechanics (2) Chapter 3 Lagrangian and Hamiltonian Mechanics.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Ch 2.1: Linear Equations; Method of Integrating Factors A linear first order ODE has the general form where f is linear in y. Examples include equations.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Canonical Equations of Motion -- Hamiltonian Dynamics
Effective Hamiltonian Operations Condensing Physics to Conserve Over Time Joseph Knips.
Ch 9.6: Liapunov’s Second Method In Section 9.3 we showed how the stability of a critical point of an almost linear system can usually be determined from.
1 Variational and Weighted Residual Methods. 2 Introduction The Finite Element method can be used to solve various problems, including: Steady-state field.
1 Week 3 First-order ordinary differential equations (ODE) 1.Basic definitions 2.Separable ODEs 3.ODEs reducible to separable form 4.Linear first-order.
Integrators of higher order
Quantum One.
Chapter 6.
CSE 245: Computer Aided Circuit Simulation and Verification
Physics 451/551 Theoretical Mechanics
Physics 451/551 Theoretical Mechanics
Chapter 6.
Physics 451/551 Theoretical Mechanics
Chapter 2 A Survey of Simple Methods and Tools
Pivoting, Perturbation Analysis, Scaling and Equilibration
Presentation transcript:

1cs542g-term Notes

2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time integration of stiff problems: Must be more efficient than taking k substeps of an explicit method ruling out e.g. fixed point iteration But if we have difficulties converging (a solution might not even exist!) we can always reduce time step and try again  Thus Newton’s method is usually chosen

3cs542g-term Newton’s method  Start with initial guess y 0 at solution (e.g. current y) of F(y)=0  Loop until converged: Linearize around current guess: F(y k +∆y) ≈ F(y k ) + dF/dy ∆y Solve linear equations: dF/dy ∆y = -F(y k ) Line search along direction ∆y with initial step size of 1

4cs542g-term Variations  Just taking a single step of Newton corresponds to “freezing” the coefficients in time: sometimes called “semi-implicit” Just a linear solve, but same stability according to linear analysis However, usually nonlinear effects cause worse problems than for fully implicit methods  In between: keep Jacobian dF/dy constant but iterate as in Newton  And endless variations on inexact Newton

5cs542g-term Second order systems  One of the most important time differential equations is F=ma, 2nd order in time  Reduction to first order often throws out useful structure of the problem  In particular, F(x,v) often has special properties that may be useful to exploit E.g. nonlinear in x, but linear in v: mixed implicit/explicit methods are natural  We’ll look at Hamiltonian systems in particular

6cs542g-term Hamiltonian Systems  For a Hamiltonian function H(p,q), the system:  Think q=positions, p=momentum (mass times velocity), and H=total energy (kinetic plus potential) for a conservative mechanical system

7cs542g-term Conservation  Take time derivative of Hamiltonian:  Note H is generally like a norm of p and q, so we’re on the edge of stability: solutions neither decay nor grow Eigenvalues are pure imaginary!

8cs542g-term The Flow  For any initial condition (p,q) and any later time t, can solve to get p(t), q(t)  Call the map the “flow” of the system  Hamiltonian dynamics possess flows with special properties

9cs542g-term Area in 2D  What is the area of a parallelogram with vector edges (u 1,u 2 ) and (v 1,v 2 )?

10cs542g-term Area-preserving linear maps  Let A be a linear map in 2D: x’=Ax A is a 2x2 matrix  Then A is area-preserving if the area of any parallelogram is equal to the area of the transformed parallelogram:

11cs542g-term Symplectic Matrices  We can generalize this to any even dimension  Let  Then matrix A is symplectic if A T JA=J  Note that u T Jv is just the sum of the projected areas

12cs542g-term Symplectic Maps  Consider a nonlinear map  Assume it’s adequately smooth  At a given point, infinitesimal areas are transformed by Jacobian matrix:  Map is symplectic if its Jacobian is everywhere a symplectic matrix Area (or summed projected area) is preserved

13cs542g-term Hamiltonian Flows  Let’s look at Jacobian of a Hamiltonian flow  Important point:  H, the Hessian, is symmetric.

14cs542g-term Hamiltonian Flows are Symplectic  Theorem: for any fixed time t, the flow of a Hamiltonian system is symplectic Note at time 0, the flow map is the identity (which is definitely symplectic) Differentiate A T JA:

15cs542g-term Trajectories  Volume preservation: if you start off a set of trajectories occupying some region, that region may get distorted but it will maintain its volume  General ODE’s usually have sources/sinks Trajectories expand away or converge towards a point or a manifold Obviously not area preserving  General ODE methods don’t respect symplecticity: area not preserved In long term, the trajectories have the wrong behaviour

16cs542g-term Symplectic Methods  A symplectic method is a numerical method whose map is symplectic Note if map from any t n to t n+1 is symplectic, then composition of maps is symplectic, so full method is symplectic  Example: symplectic Euler Goes by many names, e.g. velocity Verlet  Also implicit midpoint Not quite trapezoidal rule, but the two are essentially equivalent…

17cs542g-term Modified Equations  Backwards error analysis for differential equations  Say we are solving  Goal: show that numerical solution {y n } is actually the solution to a modified equation:

18cs542g-term Symplectic Euler  Look at simple example: H=T(p)+V(q)  Symplectic Euler is essentially  Do some Taylor series expansions to find first term in modified equations…

19cs542g-term Modified Equations are Hamiltonian!  The first expansion is:  So numerical solution is, to high order, solving a Hamiltonian system (but with a perturbed H) So to high order has the same structure

20cs542g-term Modified equations in general  Under some assumptions, any symplectic method is solving a nearby Hamiltonian system exactly  Aside: this modified Hamiltonian depends on step size h If you use a variable time step, modified Hamiltonian is changing every time step Numerical flow is still symplectic, but no strong guarantees on what it represents As a result - may very well see much worse long-time behaviour with a variable step size than with a fixed step size!