Lecture 1: Introduction to Dynamical Systems



Similar documents
Lecture 7: Finding Lyapunov Functions 1

4 Lyapunov Stability Theory

Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization

Chapter 4. Forces and Newton s Laws of Motion. continued

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Continued Fractions and the Euclidean Algorithm

PRELAB: NEWTON S 3 RD LAW AND MOMENTUM CONSERVATION

Rotation: Moment of Inertia and Torque

The dynamic equation for the angular motion of the wheel is R w F t R w F w ]/ J w

Week 1: Functions and Equations

S. Boyd EE102. Lecture 1 Signals. notation and meaning. common signals. size of a signal. qualitative properties of signals.

Chapter 6 Work and Energy

3. Reaction Diffusion Equations Consider the following ODE model for population growth

Let s first see how precession works in quantitative detail. The system is illustrated below: ...

Mechanics 1: Conservation of Energy and Momentum

Passive control. Carles Batlle. II EURON/GEOPLEX Summer School on Modeling and Control of Complex Dynamical Systems Bertinoro, Italy, July

Unified Lecture # 4 Vectors

19 LINEAR QUADRATIC REGULATOR

Nonlinear Systems of Ordinary Differential Equations

Stability Analysis for Systems of Differential Equations

Høgskolen i Narvik Sivilingeniørutdanningen STE6237 ELEMENTMETODER. Oppgaver

t := maxγ ν subject to ν {0,1,2,...} and f(x c +γ ν d) f(x c )+cγ ν f (x c ;d).

Multi-variable Calculus and Optimization

Simple Harmonic Motion

α = u v. In other words, Orthogonal Projection

Example 4.1 (nonlinear pendulum dynamics with friction) Figure 4.1: Pendulum. asin. k, a, and b. We study stability of the origin x

DCMS DC MOTOR SYSTEM User Manual

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false?

The Heat Equation. Lectures INF2320 p. 1/88

Numerical Methods for Differential Equations

5 Numerical Differentiation

NOTES ON LINEAR TRANSFORMATIONS

APPLIED MATHEMATICS ADVANCED LEVEL

Chapter 12 Modal Decomposition of State-Space Models 12.1 Introduction The solutions obtained in previous chapters, whether in time domain or transfor

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties

Applications of Second-Order Differential Equations

Inner Product Spaces

Metric Spaces. Chapter Metrics

Lecture 13 Linear quadratic Lyapunov theory

Mathematics Course 111: Algebra I Part IV: Vector Spaces

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

Class Meeting # 1: Introduction to PDEs

Section 3.7. Rolle s Theorem and the Mean Value Theorem. Difference Equations to Differential Equations

ECE 516: System Control Engineering

Midterm Solutions. mvr = ω f (I wheel + I bullet ) = ω f 2 MR2 + mr 2 ) ω f = v R. 1 + M 2m

Stability. Chapter 4. Topics : 1. Basic Concepts. 2. Algebraic Criteria for Linear Systems. 3. Lyapunov Theory with Applications to Linear Systems

FRICTION, WORK, AND THE INCLINED PLANE

Math 241, Exam 1 Information.

1 Error in Euler s Method

How Gravitational Forces arise from Curvature

1 if 1 x 0 1 if 0 x 1

1. First-order Ordinary Differential Equations

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

19.7. Applications of Differential Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Dynamic Process Modeling. Process Dynamics and Control

Numerical Solution of Differential

More Quadratic Equations

Numerical methods for American options

MECE 102 Mechatronics Engineering Orientation

Solving Simultaneous Equations and Matrices

Using the Theory of Reals in. Analyzing Continuous and Hybrid Systems

Torque Analyses of a Sliding Ladder

LS.6 Solution Matrices

Elasticity Theory Basics

Motion Control of 3 Degree-of-Freedom Direct-Drive Robot. Rutchanee Gullayanon

Section 1.4. Difference Equations

T ( a i x i ) = a i T (x i ).

Differentiation of vectors

Oscillations. Vern Lindberg. June 10, 2010

Lecture 17. Last time we saw that the rotational analog of Newton s 2nd Law is

Springs and Dampers. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 2 Fall 2011

ASEN Structures. MDOF Dynamic Systems. ASEN 3112 Lecture 1 Slide 1

Scalar Valued Functions of Several Variables; the Gradient Vector

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

Lecture 07: Work and Kinetic Energy. Physics 2210 Fall Semester 2014

Numerical Methods for Differential Equations

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

Force on Moving Charges in a Magnetic Field

VELOCITY, ACCELERATION, FORCE

ORDINARY DIFFERENTIAL EQUATIONS

Name Partners Date. Energy Diagrams I

Step Response of RC Circuits

Lecture Notes on Elasticity of Substitution

4.3 Lagrange Approximation

Lecture L22-2D Rigid Body Dynamics: Work and Energy

Dimensional Analysis

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

Math 4310 Handout - Quotient Vector Spaces

3.1 State Space Models

39th International Physics Olympiad - Hanoi - Vietnam Theoretical Problem No. 3

Operation Count; Numerical Linear Algebra

General Framework for an Iterative Solution of Ax b. Jacobi s Method

Cross product and determinants (Sect. 12.4) Two main ways to introduce the cross product

Orbits of the Lennard-Jones Potential

Similarity and Diagonalization. Similar Matrices

Introduction to the Finite Element Method

Transcription:

Lecture 1: Introduction to Dynamical Systems General introduction Modeling by differential equations (inputs, states, outputs) Simulation of dynamical systems Equilibria and linearization System interconnections and block diagrams Related Reading [KK]: 2.1-2.4 and [AM]: 2.1-2.3, 4.1-4.2, 5.4 1/45

Dynamical Systems In a dynamical system the effects of action do not occur immediately. This phenomenon can be observed in all systems surrounding us: Mechatronic systems Pushing gas pedal in car does only gradually increase the velocity Heating systems Temperature does not rise immediately when a heater is switched on Biological systems A headache disappears slowly when medicine is taken Business systems: An investment leads to future gains or losses Variables in a dynamical systems evolve in time. The time evolution depends on the external excitation, which itself changes over time. 2/45

Mathematical Models One way to analyze the behavior of a dynamical system is by means of a mathematical model. Such models are often described by (ordinary or partial) differential equations. Example: Mass-Spring-Damper System Newton s second law leads to m q + c( q) + kq =. q denotes the position of the mass (in a chosen coordinate system) and varies with time. q and q are the velocity and the acceleration. kq is the spring restoring force (assumed to satisfy Hooke s law) and c( q) is the friction force which can depend nonlinearly on the velocity. 3/45

Inputs The previous system is said to be autonomous since it is not exposed to external influences. Non-autonomous systems do have external inputs. Example: Mass-Spring-Damper System With an external force u(.) acting on the mass, we obtain m q + c( q) + kq = u(t). The external force u(.) typically varies with time. Depending on the circumstances it can be interpreted as follows: If we are allowed to manipulate u(.) then it is called a control input. If u(.) is generated by nature and cannot be influenced/changed by us then it is called a disturbance input. 4/45

Outputs Often not all variables that appear in a model are of interest. We choose outputs in order to describe those quantities that get focus. Example: Mass-Spring-Damper System If we are only interested in the position of the mass, the output y is m q + c( q) + kq = u, y = q. For some control input y(.) and along a system trajectory, the output y(.) will be a function of time. Interpretations of outputs: y is a variable that can be measured (through sensors). y indicate a variable which we would like to monitor in order to investigate/analyze the properties of the system (in simulation). 5/45

Interpretation of the Model Let u(t) be an input signal defined for t and let an initial position q as well as an initial velocity v be given. Solve the differential equation m q(t) + c( q(t)) + kq(t) = u(t) with q() = q, q() = v. If u(.) is continuous and c( ) is C 1, we know that this initial value problem has a unique solution q(t) and q(t) that is defined for t [, t 1 ) with some t 1 >. Warning and Reminder: Solutions might not exist for all t. Since the values for q() and q() specify the solution of the differential equation (for a fixed input) uniquely, we call ( ) ( ) ( ) x1 x1 (t) x = = and x(t) = = x 2 q q x 2 (t) ( ) q(t) q(t) the state-vector and state-response of the system. The system s output (response) is then just given by y(t) = q(t). 6/45

Demo: Free and Driven Response 1 u(t) 6 q(t) (full) and v(t) (dotted).5 4 2.5 2 1 1 2 3 4 2 1 1 Graph of function c(.) 2 5 5 4 1 2 3 4 2 q (horizontal) versus v (vertical) 4 2 4 5 5 7/45

Demo: Effect of Nonlinearity 2 u 2 q (blue) and v (green) 1 1 1 1 2 5 1 15 2 2 1 1 Graph of function c(.) 2 5 5 2 5 1 15 2 q (horizontal) versus v (vertical) 2 1 1 2 2 1 1 2 8/45

Demo: Finite Escape Time 1 u(t) 15 q(t) (full) and v(t) (dotted).5 1 5.5 1 5 1 15 5 1 15 2 Graph of function c(.) 25 5 5 5 5 1 15 q (horizontal) versus v (vertical) 1 5 5 5 5 1 15 9/45

Demo: Stability and Instability 1 u(t) 1 q(t) (full) and v(t) (dotted).5 5.5 5 1 5 1 2 Graph of function c(.) 1 5 1 q (horizontal) versus v (vertical) 5 1 1 2 5 5 5 1 1 5 5 1 1/45

Demo: Stable Limit Cycle 1 u(t) 1 q(t) (full) and v(t) (dotted).5 5.5 5 1 5 1 15 2 1 5 5 Graph of function c(.) 1 5 5 1 5 1 15 2 q (horizontal) versus v (vertical) 1 5 5 1 1 5 5 1 11/45

Interpretation of the Model If we write down a system like m q + c( q) + kq = u, y = q, we are actually interested in its behavior, the set of all input-, stateand output-signals u(.), (q(.), q(.)) and y(.) that satisfy these laws. Signals are vector-valued functions of time, also called trajectories. Tacitly assumed to be piece-wise continuous. The laws to-be-satisfied are often described by differential equations. Impose hypothesis that guarantee existence/uniqueness of i.v.p. Different system descriptions (laws) can lead to the same behavior. We then call the system (descriptions) equivalent. In the so-called behavioral approach to dynamical systems all this is developed in a mathematically precise fashion. 12/45

Sample Questions in Control For a system like m q + c( q) + kq = u, y = q we are e.g. interested in the following issues: If there is no external excitation how does the state/output behave? Can we steer the system from one position to another? Is it possible to determine the input from knowledge of the output? Can we modify the system in order to create a desired behavior? Some of these (yet rough) questions are related to analyzing the system for its properties, while others involve synthesizing control inputs or modify the system laws in order to change the system s behavior. Control is the field to answer such questions systematically. 13/45

From Second-Order to First-Order Models The system description m q + c( q) + kq = u involves the first and second derivative of q. If m it is called a second order differential equation. If we introduce the state-variables x 1 = q and x 2 = q we conclude ẋ 1 = q = x 2, ẋ 2 = q = k c( q) q m m + 1 m u = k m x 1 1 m c(x 2) + 1 m u. This can be written more compactly as ( ) ( ) ẋ1 x = 2 ẋ 2 k x m 1 1 c(x m 2) + 1 u = f(x 1, x 2, u). m This is a first-order and two-dimensional vector differential equation. 14/45

From High-Order to First-Order Models Suppose r is a general real-valued nonlinear function of n+1 arguments. Lemma 1 The system is equivalent to ẋ 1 ẋ 2 ẋ =. ẋ = n 1 ẋ n q (n) + r(q (n 1), q (n 2),..., q, q, u) = x 2 x 3. x n r(x n, x n 1,..., x 2, x 1, u) =: f(x, u). Proof. Introduce x 1 = q, x 2 = q,..., x n 1 = q (n 2), x n = q (n 1), substitute the variables and write down the resulting vector equation. 15/45

Non-Uniqueness It is important to note that there is no unique way to do this. Understanding this issue will be an essential topic later. Lemma 2 The system is equivalent to ż 1 ż 2 ż =. ż = n 1 ż n q (n) + r(q (n 1), q (n 2),..., q, q, u) = r(z 1, z 2,..., z n 1, z n, u) z 1 z 2. z n 1 = ˆf(z, u). Proof. Introduce z 1 = q (n 1), z 2 = q (n 2),..., z n 1 = q, z n = q and proceed as before. 16/45

Generic System Description in Control Physical modeling often leads to a system of higher-order differential equations. As seen above, these can typically (though not always!) be equivalently written as a first-order vector differential equation ẋ = f(x, u) and y = h(x, u). with maps f : X U R n and h : X U R k (X R n, U R m ). This compact system description forms the starting point of control. More explicitly these equations read as ẋ 1 = f 1 (x 1,..., x n, u 1,..., u m ). ẋ n = f n (x 1,..., x n, u 1,..., u m ) y 1 = h 1 (x 1,..., x n, u 1,..., u m ). y k = h k (x 1,..., x n, u 1,..., u m ) Note that these functions could as well depend explicitly on time! 17/45

System Response and Differential Equations For f : X U R n, h : X U R k with open X R n, U R m consider ẋ = f(x, u) and y = h(x, u). If u(.) : I U is an input function on an open interval I R containing and if ξ R n is an initial condition for the state, then the stateresponse x(.) is obtained by solving the initial value problem ẋ = f(x, u(t)) with initial condition x() = ξ. The output response is just defined by y(t) := h(x(t), u(t)) for t I. Existence and uniqueness of the state-response on some open subinterval of I is guaranteed if f is continuous and Lipschitz continuous in x and if u(.) is continuous. This also holds for inputs u(.) that are only piece-wise continuous. 18/45

Recap: Global Existence and Uniqueness Theorem Consider the initial value problem (ivp) ẋ = g(t, x), x(τ) = ξ for g : D R n with D R R n. Assumptions. Suppose D R R n is open and g : D R n, (t, x) g(t, x) is continuous and Lipschitz-continuous in x: For each (τ, ξ) D there exists a neighborhood U D of (τ, ξ) and some L > with g(t, x) g(t, y) L x y for all (t, x), (t, y) U. Is satisfied if both g and x g are continuous on D. It suffices that g C 1 (D, R n ). 19/45

Recap: Global Existence and Uniqueness Theorem Theorem 3 Under the above assumptions and for every (τ, ξ) D there exists a maximal interval of existence I (τ,ξ) = (t, t + ) τ and a unique C 1 -solution x(., τ, ξ) : I (τ,ξ) R n of the ivp ẋ = g(t, x), x(τ) = ξ. (1) Maximality of I (τ,ξ) means: If the initial value problem has a C 1 -solution x J : J R n on the interval J τ, then J I (τ,ξ) and x J is the restriction of x onto J. Moreover, for t + < exactly one of the following properties holds: The solution escapes : lim t t+, t<t + x(t) =. There solution approaches the boundary of D : For all sequences t ν (t, t + ) with t ν t + and lim ν x(t ν ) = x +, the point (t +, x + ) is contained in the boundary of D. 2/45

Generic Description of Linear Systems If f and h are linear they can be represented as f(x, u) = Ax + Bu and h(x, u) = Cx + Du with matrices A R n n, B R n m, C R k n, D R k m. Hence a generic linear (time-invariant) system is described as ẋ = Ax + Bu and y = Cx + Du. This is the system description mostly considered in this course. The behavior of many dynamical systems in engineering can often be (approximately) modeled by linear systems. On the other hand, physical modeling often results in descriptions with nonlinear dynamics. How can we justify that this course discusses mainly linear systems? 21/45

Simulation A system description in terms of the differential and output equation ẋ(t) = f(x(t), u(t)), x() = ξ, y(t) = h(x(t), u(t)) allows the numerical computation of the response (to an input and an initial condition) by ode-solvers (such as ode45 or ode15s in Matlab). By integrating over time, the description is equivalent to x(t) = ξ + t f(x(τ), u(τ)) dτ, y(t) = h(x(t), u(t)). This leads to the general diagram for a Simulink simulation: x 1 s Integrator with initial condition x u Signal Generator f(x,u) Right-hand side of differential equation h(x,u) Output function Scope 22/45

Example: Segway (Cart-Pendulum) Modeling with the Lagrange technique ([F] p.3-31) leads to (M + m) p ml cos(θ) θ + cṗ + ml sin(θ) θ 2 = F ml cos(θ) p + ml 2 θ + γ θ mgl sin(θ) = where, next to the parameters defined in the figure, c and γ are the coefficients describing the viscous friction of the cart and the pendulum. 23/45

Example: First-Order System Description More insightful and compact description: ( ) ( ) ( ) ( (M + m) ml cos(θ) cṗ + ml sin(θ) θ2 F ml cos(θ) ml p θ 2 + γ θ = mgl sin(θ) Introduce the abbreviations U(θ) = ( ) (M + m) ml cos(θ) ml cos(θ) ml 2, v(θ, ṗ, θ) = Then the system can be described as ( ) ( U(θ) + v(θ, ṗ, p θ θ) F = ). ). ( cṗ + ml sin(θ) θ2 γ θ mgl sin(θ) Since the matrix U(θ) is always invertible (why?) this is the same as ( ) ( ) ( = U(θ) p θ 1 v(θ, ṗ, θ) F + U(θ) 1 w1 (p, θ, ṗ, = θ, ) F ) w 2 (p, θ, ṗ, θ, F ) with yet another abbreviation of the right-hand side. ). 24/45

Example: First-Order System Description Finally introduce the states and the input ( ) ( ) ( ) ( ) x1 p x3 ṗ =, = x 2 θ x 4 θ The system is then described as ẋ 1 x 3 ẋ 2 ẋ 3 = x 4 w 1 (x 1, x 2, x 3, x 4, u) ẋ 4 w 2 (x 1, x 2, x 3, x 4, u) = and u = F. f 1 (x 1, x 2, x 3, x 4, u) f 2 (x 1, x 2, x 3, x 4, u) f 3 (x 1, x 2, x 3, x 4, u) f 4 (x 1, x 2, x 3, x 4, u). The given representation of f(x, u) can be coded exactly as described. This is much less error-prone than explicit computations as e.g. given in [AM] p.37, in particular for more complicated situations. However, let us stress again we just obtained another representation of the very same system as defined by the equations on slide 23. 25/45

Equilibria Definition 4 All pairs of vectors (x e, u e ) X U which satisfy = f(x e, u e ) are called equilibria of the system ẋ = f(x, u). If the system is driven with the constant control input u(t) = u e and if the state is initialized as x e () = x e, then the state-response is given by x(t) = x e and thus ẋ e (t) = for all t t. If starting at an equilibrium the state-trajectory stays there. Equilibria are in general not unique. Not even for linear systems. Often (but by no means always!) our interest is in trajectories that do not deviate too much from equilibria. 26/45

Example: Segway The equilibria of the system on slide 23 are determined by = F and mgl sin(θ) =. Solutions are θ e = (upright position) and θ e = π (downright position), while p e is arbitrary. Four simulations, including perturbation of initial condition (dash-dotted): 1 1 1 2 3 4 5 θ 5 p 1 2 3 4 5 27/45

Linearization If f and h are C 1, their first-order Taylor expansions around (x e, u e ) are + x, u f(x, u) f(x e, u e ) + x f(x e, u e )(x x } {{ } e ) + u f(x e, u e )(u u } {{ } e ) A B h(x, u) h(x e, u e ) } {{ } } h(x {{ e e )(x x } e ) + u h(x e, u e )(u u } {{ } e ). y e C D The approximation is good if x x e and u u e. Definition 5 Suppose that f(x e, u e ) =. If f and h are C 1, the linearization of ẋ = f(x, u), y = h(x, u) at (x e, u e ) is ẋ = Ax + Bu, y = Cx + Du. Let u(t) u e and x() x e lead to the nonlinear response y(t) y e. If one drives the linearization with u (t) := u(t) u e and for the initial value x () := x() x e, we hope that y (t) + y e approximates y(t). 28/45

Example: Segway Nonlinear (blue) versus linearized (green) simulation at (p e, θ e ) = (, π): 1 F.5 2 4 6 8 1 p 1.5 2 4 6 8 1 θ 3.4 3.2 3 2 4 6 8 1 Good match. 29/45

Example: Segway Nonlinear (blue) versus linearized (green) simulation at (p e, θ e ) = (, ): 1 F.5.5 1 1.5 p 4 2.5 1 1.5 θ 2 1.5 1 1.5 Huge deviation in the long run. 3/45

System Interconnections and Modularity One of the most important concepts in modeling dynamical systems is modularity. Complex models are built by interconnecting simple system components in a hierarchical manner. Dynamical systems are interconnected by equating signals. Allows to use software libraries with standard system components and interfaces between different physical domains. Many concrete modeling packages are available (Matlab, Modelica). Even for complex models, the hierarchical (nested) structure renders bookkeeping manageable. Individual components can be adapted while preserving the overall interconnection structure. 31/45

Example: Mass-Spring-Damper System The simple mass-spring-damper system m q+c( q)+kq = u does actually result from Newton s laws as follows: F = ṗ with p = mv. The total force acting on the mass (assumed to be constant) is F = F 1 + F 2 + F 3 with the externally exerted force F 1 = u, the friction force (assumed to depend on velocity) F 2 = c(v), and the spring restoring force (assumed to depend linearly on elongation) F 3 = kq. 32/45

Example: Pendulum on Cart Suppose the cart force is generated by an electric DC motor attached to a one wheel of radius r. If the voltage V is applied to the motor, the winding current I generates a torque; with the load torque T the motor dynamics is described by J φ + b φ = k m I T, L I + RI = V k e φ with positive constants J, b, k m, L, R, k e. The load torque and the motor shaft-angle are assumed to be related to F and p by T = F r and p = rφ. r φ p All this has to be combined with the previous dynamics. 33/45

Example: Pendulum on Cart We obtain the following description of the interconnection: LI + RI + k e r ṗ = V (M + m + J r ) p ml cos(θ) θ + (c + b 2 r )ṗ + ml sin(θ) θ 2 k m 2 r I = ml cos(θ) p + ml 2 θ + γ θ mgl sin(θ) =. Note that the coupling is often called two-sided, since the dynamics of the interconnected systems influence each other. If k e = then the coupling is one-sided. It is not straightforward to predict the impact of the motor dynamics onto the overall dynamic response of the model. Let us hence only analyze, by simulation, the influence of large and small values of L. 34/45

Example: Pendulum on Cart Small L leads to fast motor dynamics: 1.5 1 2 3 4 5 p 2 1 1 2 3 4 5 θ 3.4 3.2 3 1 2 3 4 5 F Green response: Original. Blue response: With motor. 35/45

Example: Pendulum on Cart Larger L slows the motor dynamics down: 1.5 1 2 3 4 5 p 2 1 1 2 3 4 5 θ 3.4 3.2 3 1 2 3 4 5 F Green response: Original. Blue response: With motor. 36/45

Series Interconnection Definition 6 The series interconnection of the systems ẋ 1 = f 1 (x 1, u 1 ), y 1 = h 1 (x 1, u 1 ), ẋ 2 = f 2 (x 2, u 2 ), y 2 = h 2 (x 2, u 2 ) is obtained if the output of the first system enters the second system as an input: u 2 = y 1. (The vector dimensions must be equal.) The series interconnection is then described by ( ) ( ) ẋ1 f = 1 (x 1, u 1 ), y ẋ 2 f 2 (x 2, h 1 (x 1, u 1 )) 2 = h 2 (x 2, h 1 (x 1, u 1 )). Linear systems: η = ẋ 1 = A 1 x 1 + B 1 u 1, ẋ 2 = A 2 x 2 + B 2 u 2, η = y 1 = C 1 x 1 + D 1 u 1 y 2 = C 2 x 2 + D 2 u 2 ( x1 x 2 ) ( ) ( ) A1 B1 η+ u B 2 C 1 A 2 B 2 D 1, y 2 = ( ) D 2 C 1 C 2 η+d2 D 1 u 1 1 37/45

Parallel Interconnection Definition 7 The parallel interconnection of the systems ẋ 1 = f 1 (x 1, u 1 ), y 1 = h 1 (x 1, u 1 ), ẋ 2 = f 2 (x 2, u 2 ), y 2 = h 2 (x 2, u 2 ) is obtained by having them enter a common input and summing the outputs: u 1 = u 2 = u and y = y 1 + y 2. (Dimensions must fit.) The parallel interconnection is then described by ( ) ( ) ẋ1 f1 (x = 1, u), y = h ẋ 2 f 2 (x 2, u) 1 (x 1, u) + h 2 (x 2, u). Linear systems: η = ẋ 1 = A 1 x 1 + B 1 u 1, ẋ 2 = A 2 x 2 + B 2 u 2, η = y 1 = C 1 x 1 + D 1 u 1 y 2 = C 2 x 2 + D 2 u 2 ( x1 x 2 ) ( ) ( ) A1 B1 η + u, y = ( ) C A 2 B 1 C 2 η + (D1 + D 2 )u 2 38/45

Matlab s Control System Toolbox Matlab s Control System Toolbox has so-called ss objects which are used to work with linear state-space systems as follows: System definition: sys1=ss(a1,b1,c1,d1), sys2=ss(a2,b2,c2,d2) Series interconnection: ser=sys1*sys2 Parallel interconnection: par=sys1+sys2 Simulation: y=lsim(sys,u,t,x) Extraction of defining matrices: [A,B,C,D]=ssdata(sys) Note that the (overloaded) operations for the series and parallel interconnections remind us about the way how matrices act as mappings. Internally these operations are based on the above derived formulas. You should be actively exploring the possibilities of the toolbox. 39/45

Block-Diagrams Like in Simulink, block-diagrams as generally used for the visualization of systems interconnections in control. Generically an individual block is indicated as Input Operation to be performed on input Output Static blocks are maps from R into R or from R p into R q. Dynamic blocks map an input signal into an output signal. Examples: 4/45

Block-Diagrams Dynamic blocks described by differential equations require the specification of an initial condition such that the output is uniquely defined by the input. Such an initial condition can be viewed as an extra input. That s why, for an integrator, one sometimes uses the notation x u y or, for a general system, the block description x u ẋ = f(x, u) y = h(x, u) y 41/45

Block-Diagrams A block-diagram is obtained by interconnecting individual blocks (by equating signals). Hence such diagrams (should) always correspond in a precise fashion to algebraic equations. Generic examples Series interconnection: u 1 ẋ 1 = f(x 1, u 1 ) ẋ2 = f(x 2, u 2 ) y 2 y 1 = h(x 1, u 1 ) y 2 = h(x 2, u 2 ) Parallel interconnection: u ẋ 1 = f(x 1, u) y 1 = h(x 1, u) ẋ 2 = f(x 2, u) y 2 = h(x 2, u) + y 42/45

Example: Mass-Spring-Damper System Differential equation and output equation: q = 1 m u 1 m c( q) k m q, y = q Start from chain of integrators q() q() q q q and obtain block-diagram with equations of motion: q() q() u 1 m + q q q y 1 m c(.) k m + 43/45

Example: State-Space System The standard linear state-space system can be depicted as u(t) B x x(t) y(t) C A D However, there is no need for such an explicit implementation in e.g. Simulink, since one can just use either a State-Space block (defined by A, B, C, D) or an LTI Systems block (defined by an ss-object). 44/45

Covered in Lecture 1 Models of dynamical systems differential equations, inputs, outputs, state, reduction to first order, linear systems, compact notation, Simulink simulation Linearization System interconnections modularity in modeling, interconnection=equating signals feedback equations, relation to block diagrams Aspects of qualitative analysis of dynamic responses nonzero initial condition, external input signal, equilibria, stability, limit cycles, finite escape time 45/45