Computational modeling techniques

Similar documents
Computational modeling techniques

Computational modeling techniques

Lyapunov Stability Stability of Equilibrium Points

Ecology 302 Lecture III. Exponential Growth (Gotelli, Chapter 1; Ricklefs, Chapter 11, pp )

Differentiation Applications 1: Related Rates

Computational modeling techniques

Department of Economics, University of California, Davis Ecn 200C Micro Theory Professor Giacomo Bonanno. Insurance Markets

Lecture 6: Phase Space and Damped Oscillations

20 Faraday s Law and Maxwell s Extension to Ampere s Law

You need to be able to define the following terms and answer basic questions about them:

We can see from the graph above that the intersection is, i.e., [ ).

Math Foundations 20 Work Plan

February 28, 2013 COMMENTS ON DIFFUSION, DIFFUSIVITY AND DERIVATION OF HYPERBOLIC EQUATIONS DESCRIBING THE DIFFUSION PHENOMENA

Lecture 5: Equilibrium and Oscillations

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

(1.1) V which contains charges. If a charge density ρ, is defined as the limit of the ratio of the charge contained. 0, and if a force density f

Lecture 7: Damped and Driven Oscillations

Kinetic Model Completeness

Module 4: General Formulation of Electric Circuit Theory

Building to Transformations on Coordinate Axis Grade 5: Geometry Graph points on the coordinate plane to solve real-world and mathematical problems.

Kinematic transformation of mechanical behavior Neville Hogan

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y )

Preparation work for A2 Mathematics [2017]

ENGI 4430 Parametric Vector Functions Page 2-01

Chapter 2 GAUSS LAW Recommended Problems:

Lim f (x) e. Find the largest possible domain and its discontinuity points. Why is it discontinuous at those points (if any)?

MODULE 1. e x + c. [You can t separate a demominator, but you can divide a single denominator into each numerator term] a + b a(a + b)+1 = a + b

Phys. 344 Ch 7 Lecture 8 Fri., April. 10 th,

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

22.54 Neutron Interactions and Applications (Spring 2004) Chapter 11 (3/11/04) Neutron Diffusion

x x

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

Thermodynamics and Equilibrium

COMP 551 Applied Machine Learning Lecture 11: Support Vector Machines

Physics 2010 Motion with Constant Acceleration Experiment 1

SPH3U1 Lesson 06 Kinematics

Physics 212. Lecture 12. Today's Concept: Magnetic Force on moving charges. Physics 212 Lecture 12, Slide 1

End of Course Algebra I ~ Practice Test #2

Fall 2013 Physics 172 Recitation 3 Momentum and Springs

Support-Vector Machines

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

Internal vs. external validity. External validity. This section is based on Stock and Watson s Chapter 9.

ENSC Discrete Time Systems. Project Outline. Semester

Admissibility Conditions and Asymptotic Behavior of Strongly Regular Graphs

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came.

ANSWER KEY FOR MATH 10 SAMPLE EXAMINATION. Instructions: If asked to label the axes please use real world (contextual) labels

A Few Basic Facts About Isothermal Mass Transfer in a Binary Mixture

The blessing of dimensionality for kernel methods

Section 6-2: Simplex Method: Maximization with Problem Constraints of the Form ~

NUMBERS, MATHEMATICS AND EQUATIONS

**DO NOT ONLY RELY ON THIS STUDY GUIDE!!!**

CHAPTER 8b Static Equilibrium Units

Emphases in Common Core Standards for Mathematical Content Kindergarten High School

Math Foundations 10 Work Plan

The standards are taught in the following sequence.

Revision: August 19, E Main Suite D Pullman, WA (509) Voice and Fax

MATHEMATICS SYLLABUS SECONDARY 5th YEAR

Introduction: A Generalized approach for computing the trajectories associated with the Newtonian N Body Problem

Sequential Allocation with Minimal Switching

COMP 551 Applied Machine Learning Lecture 9: Support Vector Machines (cont d)

Introduction to Macroeconomics

2.161 Signal Processing: Continuous and Discrete Fall 2008

Lecture 02 CSE 40547/60547 Computing at the Nanoscale

Plan o o. I(t) Divide problem into sub-problems Modify schematic and coordinate system (if needed) Write general equations

Chapter 3: Cluster Analysis

Introduction to Spacetime Geometry

Pattern Recognition 2014 Support Vector Machines

MODULE FOUR. This module addresses functions. SC Academic Elementary Algebra Standards:

6.3: Volumes by Cylindrical Shells

Supporting information

Materials Engineering 272-C Fall 2001, Lecture 7 & 8 Fundamentals of Diffusion

CAUSAL INFERENCE. Technical Track Session I. Phillippe Leite. The World Bank

Surface and Contact Stress

NGSS High School Physics Domain Model

LHS Mathematics Department Honors Pre-Calculus Final Exam 2002 Answers

In the OLG model, agents live for two periods. they work and divide their labour income between consumption and

BASD HIGH SCHOOL FORMAL LAB REPORT

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method.

UN Committee of Experts on Environmental Accounting New York, June Peter Cosier Wentworth Group of Concerned Scientists.

A Quick Overview of the. Framework for K 12 Science Education

The general linear model and Statistical Parametric Mapping I: Introduction to the GLM

Trigonometric Ratios Unit 5 Tentative TEST date

1 The limitations of Hartree Fock approximation

An Introduction to Complex Numbers - A Complex Solution to a Simple Problem ( If i didn t exist, it would be necessary invent me.

Lecture 17: Free Energy of Multi-phase Solutions at Equilibrium

MATHEMATICS Higher Grade - Paper I

EE247B/ME218: Introduction to MEMS Design Lecture 7m1: Lithography, Etching, & Doping CTN 2/6/18

SAMPLING DYNAMICAL SYSTEMS

Optimization Programming Problems For Control And Management Of Bacterial Disease With Two Stage Growth/Spread Among Plants

General Chemistry II, Unit I: Study Guide (part I)

(2) Even if such a value of k was possible, the neutrons multiply

Unit 1: Introduction to Biology

Lead/Lag Compensator Frequency Domain Properties and Design Methods

Systems and Modeling Introduction

WRITING THE REPORT. Organizing the report. Title Page. Table of Contents

1 Course Notes in Introductory Physics Jeffrey Seguritan

FIELD QUALITY IN ACCELERATOR MAGNETS

Chemistry 20 Lesson 11 Electronegativity, Polarity and Shapes

Dead-beat controller design

Example 1. A robot has a mass of 60 kg. How much does that robot weigh sitting on the earth at sea level? Given: m. Find: Relationships: W

Transcription:

Cmputatinal mdeling techniques Lecture 11: Mdeling with systems f ODEs In Petre Department f IT, Ab Akademi http://www.users.ab.fi/ipetre/cmpmd/

Mdeling with differential equatins Mdeling strategy Fcus n the change in the values f all variables We describe the change as a functin f the current values f all variables If the prcess is deterministic and it takes place cntinuusly in time, the mdel may be frmulated in terms f differential equatins Octber 6, 2014 Cmputatinal mdeling techniques 2

Systems f differential equatins Very ften, mdels describe interactive situatins: several variables invlved, their change depends n all the ther variables An animal may serve as prey fr anther Tw species may depend n each ther fr mutual supprt Tw r mre species may cmpete fr the same resurce Mdel thrugh a system f differential equatins Each equatin gives the rate f change f ne variable as a functin f the current values f all variables Slve all equatins simultaneusly Bad news: the equatins are ften nn-linear and in general they cannt be slved analytically Gd news: many numerical techniques exist t analyze the behavir f such (systems f) equatins Octber 6, 2014 Cmputatinal mdeling techniques 3

Cntent Basic ntins Graphical slutins Examples cmpetitive hunter mdel predatr-prey mdel ecnmic aspects f an arms race Octber 6, 2014 Cmputatinal mdeling techniques 4

Autnmus systems f ODEs Definitin. A system f ODEs f the frm dx i /dt=f i (x 1,x 2, x n ) is called autnmus In ther wrds, n independent variable t n the right hand side the system is nt time-dependent; it nly depends n the variatin f its variables Octber 6, 2014 Cmputatinal mdeling techniques 5

Equilibria Equilibrium pints / steady states A system f ODEs dx i /dt=f i (x 1,x 2, x n ), i=1,2,,n a=(a 1,a 2,,a n ) is an equilibrium pint fr the system if f i (a)=0, fr all i Equivalently, if x i (0)=a i, fr all i, then the system has a slutin the cnstant functins x i (t)=a i Stable equilibrium a is stable if it is true that x(0) being clse t a implies that x(t) is clse t a, fr all t>0 a is called unstable therwise Asympttically stable a is asympttically stable if it is true that x(0) being clse t a implies that lim t x(t)=a Octber 6, 2014 Cmputatinal mdeling techniques 6

Lyapunv stability (ptinal slide) Cnsider an autnmus dynamical system dy/dx=f(y(x)), y(0)=y 0, where f:r n R n is cntinuus and has an equilibrium y e The equilibrium is (Lyapunv) stable if, fr every ε>0, there exists δ ε >0 such that, if y 0 -y e <δ ε, then y(x)-y e <ε, fr all x 0 The equilibrium is asympttically stable if there exists δ>0 such that, if y 0 -y e <δ, then lim x y(x)-y e =0 Octber 6, 2014 Cmputatinal mdeling techniques 7

Graphical slutins Cnsider autnmus systems f first-rder ODEs dx i /dt=f i (x 1,x 2, x n ) nt time dependent cnsider its slutin as describing a trajectry in the n-dimensinal plane, with crdinates (x 1 (t),x 2 (t), x n (t)) the n-dimensinal plane (x 1,x 2, x n ) is called a phase plane cnvenient t think abut it as the mvement f a particle autnmus system implies that the directin f mvement frm a given pint n the trajectry nly depends n that pint, nt n the time when the particle arrived in that pint Cnsequence: n trajectry can crss itself unless it is a clsed curve (peridic) Cnsequence: at mst ne trajectry ging thrugh any given pint Equivalently: tw different trajectries cannt intersect Octber 6, 2014 Cmputatinal mdeling techniques 8

Graphical slutins Cnsider autnmus systems f first-rder ODEs dx i /dt=f i (x 1,x 2, x n ) if (e 1,e 2, e n ) is an equilibrium pint, then the nly trajectry ging thrugh that pint is the cnstant ne Cnsequence: a trajectry that starts utside an equilibrium pint can nly reach the equilibrium asympttically, nt in a finite amunt f time A nn-cnstant mtin f a particle can have ne f the fllwing 3 behavirs: appraches an equilibrium pint mves alng r appraches asympttically a clsed path at least ne f the trajectry cmpnents becmes arbitrarily large as t tends t infinity Octber 6, 2014 Cmputatinal mdeling techniques 9

Example dx/dt=-x+y, dy/dt=-x-y Analytic slutin: x(t)=e -t sin(t), y(t)=e -t cs(t) Equilibrium pint: dx/dt=dy/dt=0 leads t x=y=0 Nte: x 2 (t)+y 2 (t)=e -2t, i.e., the trajectry is a circular spiral with decreasing radius appraching 0 Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 415 Octber 6, 2014 Cmputatinal mdeling techniques 10

Example: a cmpetitive hunter mdel Assume we have a small pnd that we desire t stck with game fish, say trut and bass. The prblem we want t slve is whether it is pssible fr the tw species t cexist Hypthesis Unlimited amunt f fd available The space is a limitatin fr the c-existance f the tw species The mre there is f the ther species, the smaller the grwth rate; Assume the causes t be in the cmpetitin fr space mdel it as prprtinal in the number f pssible interactins between the tw species Mdel frmulatin The change in the level f trut X(t): dx/dt = ax(t) bx(t)y(t) Similar reasning fr the level f bass Y(t): dy/dt=my(t) nx(t)y(t) Octber 6, 2014 Cmputatinal mdeling techniques 11

Example: a cmpetitive hunter mdel Mdel: dx/dt = ax(t) bx(t)y(t), dy/dt=my(t) nx(t)y(t) Questin: can the tw ppulatins reach an equilibrium where bth are nn-zer Answer: ax-bxy=0, my-nxy=0 Slutin: either x=y=0, r x=m/n, y=a/b Difficulty: impssible t start with exactly the equilibrium values (they might nt even be integers) s, we cannt expect t start in an equilibrium pint study the prperty f the equilibrium, hping it is a stable ne Octber 6, 2014 Cmputatinal mdeling techniques 12

Equilibrium pints: (0,0), (m/n, a/b) Additinal questin: what is the behavir if we start clse t the equilibrium pint? Example: a cmpetitive hunter mdel (cntinued) dx/dt = ax(t) bx(t)y(t), dy/dt=my(t) nx(t)y(t) Slutin: we study the tendency f X(t), Y(t) t increase/decrease arund the equilibrium pint. Fr this, we study the sign f the derivatives f X(t), Y(t) dx/dt 0 ax-bxy 0 a/b Y dy/dt 0 my-nxy 0 m/n X Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 421 Octber 6, 2014 Cmputatinal mdeling techniques 13

Bass Y a/b m/n X Trut Bass Y a/b m/n X Trut Octber 6, 2014 Cmputatinal mdeling techniques 14

Graphical analysis f the trajectry directins Y Bass a/b m/n Trut X Octber 6, 2014 Cmputatinal mdeling techniques 15

Graphical analysis f the trajectry directins arund the equilibria Y Bass a/b m/n Trut X Octber 6, 2014 Cmputatinal mdeling techniques 16

Y Graphical analysis f the trajectry directins Bass a/b Bass win Trut win m/n X Cnclusin: the c-existance f the tw species is highly imprbable Octber 6, 2014 Cmputatinal mdeling techniques 17

Limits f graphical analysis Nt always pssible t determine the nature f the mtin near an equilibrium based n graphical analysis Example: the behavir in Fig 11.9 thrugh graphical analysis is satisfied by all 3 trajectries in Fig 11.10 Example: The trajectry in Fig 11.10c culd be either grwing unbundedly r apprach a clsed curve Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 422-423 Octber 6, 2014 Cmputatinal mdeling techniques 18

A predatr-prey mdel Als knwn as the Ltka-Vlterra mdel, (1910-1926) A mdel where we have tw species, ne being the primary fd surce fr the ther: predatr-prey mdel Histrical references: used in chemistry, eclgy, bimathematics, ecnmy Hypthesis The prey ppulatin finds unlimited amunt f fd at all times The fd supply f the predatr ppulatin depends entirely n the size f the prey ppulatin Grwth rate f each ppulatin taken in islatin is prprtinal t its size Predatrs have limitless appetite Octber 6, 2014 Cmputatinal mdeling techniques 19

A predatr-prey mdel: whales vs. krill Assumptins and mdel frmulatin (the Ltka-Vlterra mdel, 1910-1926) The krill ppulatin x Assume that the cean supprts an indefinite grwth f the krill (we d nt mdel explicitly the planktn) The ppulatin declines prprtinally t the number f interactins between krill and whales dx/dt=ax-bxy The whale ppulatin y Whale die f natural causes; cnstant mrtality rate Whales reprduce at a rate prprtinal t the number f interactins between krill and whales dy/dt=-my+nxy Equilibrium pints dx/dt=dy/dt=0 (x,y)=(m/n,a/b) r (x,y)=(0,0) Octber 6, 2014 Cmputatinal mdeling techniques 20

A predatr-prey mdel: graphical analysis Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 430 Cnclusin: fr the analysis f the behavir arund the nn-zer pint we need further analysis: is it peridic, (asympttically) stable, r unstable? Octber 6, 2014 Cmputatinal mdeling techniques 21

Predatr-prey mdel: analytic slutin Nte: analytic slutin pssible in this case it reveals the peridic behavir f the mdel skip it here; nly lk at the results f the numerical integratin Octber 6, 2014 Cmputatinal mdeling techniques 22

A predatr-prey mdel: numerical integratin 350 300 250 200 150 100 50 0 1 59 117 175 233 291 349 407 465 523 581 639 697 755 813 871 929 987 1045 1103 1161 1219 1277 1335 1393 1451 1509 1567 1625 1683 1741 1799 1857 1915 1973 Octber 6, 2014 Cmputatinal mdeling techniques 23

A predatr-prey mdel: phase prtrait 350 300 250 200 150 100 50 0 0 20 40 60 80 100 120 140 160 180 Octber 6, 2014 Cmputatinal mdeling techniques 24

A predatr-prey mdel: numerical integratin Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 432-433 Octber 6, 2014 Cmputatinal mdeling techniques 25

Example: Ecnmic aspects f an arms race Prblem. Tw cuntries engaged in an arms race. Interested in whether the arms race will lead t uncntrlled spending and eventual win by the cuntry with better ecnmic assets Assumptins x is the annual defense expenditures f cuntry 1, y f cuntry 2 Driving factrs fr rate f increase f the defense budget x the bigger it is, the less it shuld grw: negative influence assumed t be prprtinal t its current budget x (ecnmic cnstraint) the bigger the budget f the adversary, the mre it shuld increase: psitive influence assumed t be prprtinal the current budget f the adversary y (military cnstraint) sme cnstant level f grwth is needed anyway (precautinary cnstraint) Mdel dx/dt=-ax+by+c dy/dt=mx-ny+p Octber 6, 2014 Cmputatinal mdeling techniques 26

Example: Ecnmic aspects f an arms race (cntinued) Mdel dx/dt=-ax+by+c dy/dt=mx-ny+p Equilibrium pint: -ax+by+c=0; mx-ny+p=0 x=(bp+cn)/(an-bm), y=(ap+cm)/(anbm) Just t make a chice in drawing the plts, assume that an-bm>0 Plt the tw lines and cnsider the intersectin f the tw half planes Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 447 Regin A: dx/dt>0, dy/dt<0 Regin B: dx/dt<0, dy/dt<0 Regin C: dx/dt>0, dy/dt>0 Regin D: dx/dt<0, dy/dt>0 Octber 6, 2014 Cmputatinal mdeling techniques 27

Example: Ecnmic aspects f an arms race (cntinued) dx/dt=-ax+by+c dy/dt=mx-ny+p Regin A: dx/dt>0, dy/dt<0 Regin B: dx/dt<0, dy/dt<0 Regin C: dx/dt>0, dy/dt>0 Regin D: dx/dt<0, dy/dt>0 Cnclusin: asympttically stable pint Girdan et al. A first curse in mathematical mdeling. (3 rd editin), Page 447 Octber 6, 2014 Cmputatinal mdeling techniques 28

Learning bjectives Be able t frmulate the evlutin f change in terms f an ODE-based mdel Be able t identify the equilibrium pints f simple ODE-base mdels Understand the cncepts f stable, asympttically stable equilibrium pints Octber 6, 2014 Cmputatinal mdeling techniques 29