Lecture 2 - what defines a dynamic model? - 1 Office hours Tu 11:00am-1:00pm 2 Review 3 <1> 4 Democratizing technology 6 Democratization processes 1.Tech devices 2.Information 3.Finance/marketing Changes our range of choices (globalization) 7 Image from blog.vortx.com Democratization of tech devices • Computerization, miniaturization • Telecommunication • Digitization • Compression 5.9 billions peoples use a cellphone! 8 Democratization of information • Satellite dishes • TV • Internet 26 million members in North and Latin America, the United Kingdom and Ireland 9 Democratization of e-trade/marketing • Automated loan kiosks • e-trade • e-commerce World’s largest online retailer, $48.07 billion revenue 10 Analog v. digital Source: McKinsey Global Institute Report. Big data: The next frontier for innovation, competition, and productivity. 2011 11 Democratization BIG DATA tech devices information finance/marketing 13 14 Claim: Democratization of technology is the biggest innovation process of modern society 15 <2> 16 What this course is about... • Introduction to dynamic systems theory • Model + analyze + design of feedback systems • Basic principles of feedback • Understand how to use these principles to develop innovative technologies 17 Analysis + Design of Systems Black box methodologies Model-based methodologies Model-Based methodologies • Use mathematical methods of addressing problems • Analysis + design based on models • A prediction of how the system will behave • Feedback can lead to counter-intuitive behavior • Help sort out what is going on 19 Today • What are models? • Define concepts of state, dynamics, inputs and outputs • Overview dynamic modeling techniques: - differential equations - difference equations 20 World data 21 The world 22 Research 23 Research expenditure 24 Research employees 25 Research papers 26 Research growth 27 Population 28 Population 1960 29 Population 2050? 30 Predictions by the U.N. 31 Population Dynamic population model exponential growth 2-point limit cycles logistic growth to a carrying capacity 4–point limit cycles stable equilibrium dynamics chaotic dynamics Time Time 32 Courtesy of Michael Bonsall What are models? 33 A simplified, quantified representation of a system or process used to answer questions 34 How? via mathematical analysis and simulation What for? to assist calculations and predictions 35 Models serve as a means of understanding the mechanism of a process, predicting relationships and outcomes, and inferring the existence and role of [information in a system] Jeff G. Bohn, Thinking Systematically About Policy, IEEE Technology and Society Magazine. winter 2000/2001 What are dynamic models? 37 Dynamical v. statistical modeling • Statistical modeling focuses on how certain variable correlate with other variables ➡ What influences what? • Dynamic modeling focuses on the structure, not statistical technique. • Tries to answer the “why” question by describing the structure of the system • “Causation across time” occurs because a variable's derivative has been affected instantaneously 38 courtesy from cortneybrown.com Democritus (“Father of modern science”) “I would rather discover one causal relation than be the King of Persia” Works Ethics ... Mathematics ... Literature ... The weather: what causes precipitation? 40 How much will it rain in the morning? Will it rain in the next 5-10 days? Different questions → different models! What are the conditions that will cause it to rain in the morning? Models don’t have to be perfect → feedback provides robustness 41 The model you use depends on the questions you want to answer 42 Terminology State captures effects of the past • independent quantities that determine future evolution Inputs describe external excitation • extrinsic to the system dynamics Dynamics describe state evolution • update rule for system state • function of current state + inputs Outputs describe measured quantities • function of state + inputs (not independent variables) • often subset of the state 43 Modeling Properties Choice of state is not unique • many choices of variables can act as the state Choice of inputs and outputs depend on point of view • inputs: factors that are external to the model you are building • outputs: what variables can you measure: - what you can sense - what parts of the component model interact with other component models 44 Types of models • Ordinary differential equations • Difference equations • Discrete event • Partial differential equations • Hybrid models • Cellular automata 45 Ordinary differential equations 46 Second order model Example #1: Spring Mass System u(t) Applications ! Flexible structures (many apps) Questions we want to answer ! Suspension systems (eg, “Alice”) ! Molecular and quantum dynamics q2 q1 m2 m1 k1 k2 How much do masses move Questions we want to answer as a frequency of the ! How much do masses move as a force? functionforcing of the forcing frequency? • k3 ! What happens if I change the values • masses? of the What happens if I change fly into the air if of I take thatmasses ! Will Alice the values the speed bump at 25 mph? b Modeling assumptions • Will it fly into the air if I ! Mass, spring, and damper constants take a speed bump at 30 are fixed and known satisfy Hooke’s law ! Springskm/h ! Damper is (linear) viscous force, proportional to velocity 8 Oct 07 R. M. Murray, Caltech CDS 47 4 Second order model q2 Example #1: Spring Mass System m1 q̈1 = k2 (q2 q1 ) k1 q1 u(t) Applications m2 q̈2 = k3 (u q2 ) k2 (q2 ! Flexible structures (many apps) ! Suspension systems (eg, “Alice”) ! Molecular and quantum dynamics q1 m2 m1 k1 k2 k3 b Questions we want to answer ! How much do masses move as a function of the forcing frequency? ! What happens if I change the values of the masses? ! Will Alice fly into the air if I take that speed bump at 25 mph? Modeling assumptions ! Mass, spring, and damper constants are fixed and known ! Springs satisfy Hooke’s law ! Damper is (linear) viscous force, proportional to velocity 8 Oct 07 R. M. Murray, Caltech CDS 48 4 q1 ) bq̇2 Ordinary differential difference equations Summary: system modeling Model = state + inputs + outputs + dynamics dx = f (x, u) dt y = h(x) xk+1 = f (xk , uk ) yk+1 = h(xk+1 ) Choice of model depends on questions you want answer! 50