Linear dynamical systems with inputs & outputs

Similar documents
LTI system response. Daniele Carnevale. Dipartimento di Ing. Civile ed Ing. Informatica (DICII), University of Rome Tor Vergata

EE263: Introduction to Linear Dynamical Systems Review Session 6

Observability and state estimation

Lecture 19 Observability and state estimation

Solution via Laplace transform and matrix exponential

Perspective. ECE 3640 Lecture 11 State-Space Analysis. To learn about state-space analysis for continuous and discrete-time. Objective: systems

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

Introduction to Modern Control MT 2016

Chapter 1 Fundamental Concepts

Dynamic interpretation of eigenvectors

Discrete and continuous dynamic systems

Systems and Control Theory Lecture Notes. Laura Giarré

LTI Systems (Continuous & Discrete) - Basics

Systems Analysis and Control

Module 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control

Linear Systems. Linear systems?!? (Roughly) Systems which obey properties of superposition Input u(t) output

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Module 07 Controllability and Controller Design of Dynamical LTI Systems

Kalman Decomposition B 2. z = T 1 x, where C = ( C. z + u (7) T 1, and. where B = T, and

Identification Methods for Structural Systems

6.241 Dynamic Systems and Control

EE 341 Homework Chapter 2

ME Fall 2001, Fall 2002, Spring I/O Stability. Preliminaries: Vector and function norms

ECEN 605 LINEAR SYSTEMS. Lecture 7 Solution of State Equations 1/77

Control Systems I. Lecture 4: Diagonalization, Modal Analysis, Intro to Feedback. Readings: Emilio Frazzoli

MAE143 A - Signals and Systems - Winter 11 Midterm, February 2nd

Lecture 5 Least-squares

Chapter 1 Fundamental Concepts

ME 234, Lyapunov and Riccati Problems. 1. This problem is to recall some facts and formulae you already know. e Aτ BB e A τ dτ

Lecture 2 and 3: Controllability of DT-LTI systems

Control Systems Design

Module 03 Linear Systems Theory: Necessary Background

Continuous Dynamics Solving LTI state-space equations גרא וייס המחלקה למדעי המחשב אוניברסיטת בן-גוריון

Dynamical systems: basic concepts

1. Z-transform: Initial value theorem for causal signal. = u(0) + u(1)z 1 + u(2)z 2 +

Lecture 4 Continuous time linear quadratic regulator

Linear System Theory

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation

ME8281-Advanced Control Systems Design

e st f (t) dt = e st tf(t) dt = L {t f(t)} s

Linear Systems. Chapter Basic Definitions

Control Systems. Time response

Lecture 9 Time-domain properties of convolution systems

1.17 : Consider a continuous-time system with input x(t) and output y(t) related by y(t) = x( sin(t)).

Discussion Section #2, 31 Jan 2014

Control Systems. Frequency domain analysis. L. Lanari

06/12/ rws/jMc- modif SuFY10 (MPF) - Textbook Section IX 1

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Control Systems. Laplace domain analysis

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Methods for analysis and control of. Lecture 6: Introduction to digital control

Advanced Control Theory

Topic # /31 Feedback Control Systems

ECEEN 5448 Fall 2011 Homework #4 Solutions

Control Systems. Time response. L. Lanari

ẋ n = f n (x 1,...,x n,u 1,...,u m ) (5) y 1 = g 1 (x 1,...,x n,u 1,...,u m ) (6) y p = g p (x 1,...,x n,u 1,...,u m ) (7)

6.241 Dynamic Systems and Control

Solution of Linear State-space Systems

6.241 Dynamic Systems and Control

Homogeneous and particular LTI solutions

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science : Dynamic Systems Spring 2011

Chapter 3 Convolution Representation

EECE 3620: Linear Time-Invariant Systems: Chapter 2

Therefore the new Fourier coefficients are. Module 2 : Signals in Frequency Domain Problem Set 2. Problem 1

EE451/551: Digital Control. Chapter 7: State Space Representations

Control Systems Design, SC4026. SC4026 Fall 2009, dr. A. Abate, DCSC, TU Delft

Control Systems Design

Equilibrium points: continuous-time systems

Lecture 1 Signals. notation and meaning. common signals. size of a signal. qualitative properties of signals. impulsive signals

Control Systems Design, SC4026. SC4026 Fall 2010, dr. A. Abate, DCSC, TU Delft

Solving a RLC Circuit using Convolution with DERIVE for Windows

Linear System Theory. Wonhee Kim Lecture 1. March 7, 2018

ECE504: Lecture 9. D. Richard Brown III. Worcester Polytechnic Institute. 04-Nov-2008

Module 02 CPS Background: Linear Systems Preliminaries

Laplace Transforms Chapter 3

Control Systems I. Lecture 5: Transfer Functions. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

ECEEN 5448 Fall 2011 Homework #5 Solutions

Introduction to Controls

Raktim Bhattacharya. . AERO 632: Design of Advance Flight Control System. Norms for Signals and Systems

Analog Signals and Systems and their properties

信號與系統 Signals and Systems

Discrete-Time State-Space Equations. M. Sami Fadali Professor of Electrical Engineering UNR

Sufficient Conditions for Controllability and Observability of Serial and Parallel Concatenated Linear Systems

Transfer function and linearization

EE 380. Linear Control Systems. Lecture 10

Intro. Computer Control Systems: F9

EC Signals and Systems

0 t < 0 1 t 1. u(t) =

Discrete-time linear systems

MAE143A Signals & Systems - Homework 5, Winter 2013 due by the end of class Tuesday February 12, 2013.

Math 3313: Differential Equations Laplace transforms

Linear Time-Invariant Dynamical Systems

Chapter 6: The Laplace Transform 6.3 Step Functions and

信號與系統 Signals and Systems

EE Control Systems LECTURE 9

10 Transfer Matrix Models

EL 625 Lecture 11. Frequency-domain analysis of discrete-time systems

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

Lecture 5: Lyapunov Functions and Storage Functions 1

Module 4. Related web links and videos. 1. FT and ZT

Transcription:

EE263 Autumn 215 S. Boyd and S. Lall Linear dynamical systems with inputs & outputs inputs & outputs: interpretations transfer function impulse and step responses examples 1

Inputs & outputs recall continuous-time time-invariant LDS has form ẋ = Ax + Bu, y = Cx + Du Ax is called the drift term (of ẋ) Bu is called the input term (of ẋ) picture, with B R 2 1 : ẋ(t) (with u(t) = 1) ẋ(t) (with u(t) = 1.5) Ax(t) B x(t) 2

Interpretations write ẋ = Ax + b 1u 1 + + b mu m, where B = [ b 1 b m ] state derivative is sum of autonomous term (Ax) and one term per input (b iu i) each input u i gives another degree of freedom for ẋ (assuming columns of B independent) write ẋ = Ax + Bu as ẋ i = ã T i x + b T i u, where ã T i, b T i are the rows of A, B ith state derivative is linear function of state x and input u 3

Block diagram D u(t) B ẋ(t) 1/s x(t) C y(t) A A ij is gain factor from state x j into integrator i B ij is gain factor from input u j into integrator i C ij is gain factor from state x j into output y i D ij is gain factor from input u j into output y i 4

Structure interesting when there is structure, e.g., with x 1 R n 1, x 2 R n 2 : [ ] [ ] [ ] [ ] d x1 A11 A 12 x1 B1 = + u, y = [ ] [ ] x C dt x 2 A 22 x 2 1 C 1 2 x 2 u B 1 1/s C 1 x 1 y A 11 A 12 x 2 1/s C 2 A 22 x 2 is not affected by input u, i.e., x 2 propagates autonomously x 2 affects y directly and through x 1 5

Transfer function take Laplace transform of ẋ = Ax + Bu: sx(s) x() = AX(s) + BU(s) hence so X(s) = (si A) 1 x() + (si A) 1 BU(s) x(t) = e ta x() + t e (t τ)a Bu(τ) dτ e ta x() is the unforced or autonomous response e ta B is called the input-to-state impulse response or impulse matrix (si A) 1 B is called the input-to-state transfer function or transfer matrix 6

H ij is transfer function from input u j to output y i 7 Transfer function with y = Cx + Du we have: Y (s) = C(sI A) 1 x() + (C(sI A) 1 B + D)U(s) so y(t) = Ce ta x() + t Ce (t τ)a Bu(τ) dτ + Du(t) output term Ce ta x() due to initial condition H(s) = C(sI A) 1 B + D is called the transfer function or transfer matrix h(t) = Ce ta B + Dδ(t) is called the impulse response or impulse matrix (δ is the Dirac delta function) with zero initial condition we have: Y (s) = H(s)U(s), where is convolution (of matrix valued functions) intepretation: y = h u

Impulse response impulse response h(t) = Ce ta B + Dδ(t) with x() =, y = h u, i.e., m y i(t) = j=1 interpretations: t h ij(t τ)u j(τ) dτ h ij(t) is impulse response from jth input to ith output h ij(t) gives y i(t) when u(t) = e jδ(t) h ij(τ) shows how dependent output i is, on what input j was, τ seconds ago i indexes output; j indexes input; τ indexes time lag 8

Step response the step response or step matrix is given by interpretations: s(t) = t h(τ) dτ s ij(t) is step response from jth input to ith output s ij(t) gives y i when u = e j for t for invertible A, we have ( ) s(t) = CA 1 e ta I B + D 9

Example 1 u 1 u 1 u 2 u 2 unit masses, springs, dampers u 1 is tension between 1st & 2nd masses u 2 is tension between 2nd & 3rd masses y R 3 is displacement of masses 1,2,3 [ ] y x = ẏ 1

Example 1 system is: ẋ = eigenvalues of A are 1 1 1 2 1 2 1 1 2 1 1 2 1 1 2 1 2 x + 1 1 1 1 1.71 ± i.71, 1. ± i1.,.29 ± i.71 [ u1 u 2 ] 11

Example 1: Impulse response impulse response from u 1.2.1.1.2.2.1.1.2 h 11 h 31 h 21 t impulse response from u 2 5 1 15 h 12 h 22 h 32 t 5 1 15 roughly speaking: impulse at u 1 affects third mass less than other two impulse at u 2 affects first mass later than other two 12

Example 2: Circuit u C 3 C 4 C 1 C 2 u(t) R is input (drive) voltage x i is voltage across C i output is state: y = x unit resistors, unit capacitors step response matrix shows delay to each node 13

Example 2: Circuit system is ẋ = 3 1 1 1 1 1 2 1 1 1 x + 1 u, y = x eigenvalues of A are.17,.66, 2.21, 3.96 14

Example 2: Circuit step response matrix s(t) R 4 1 : 1.9.8.7.6.5.4 s 1 s 2 s 3 s 4.3.2.1 5 1 15 shortest delay to x 1; longest delay to x 4 delays 1, consistent with slowest (i.e., dominant) eigenvalue.17 15

DC or static gain matrix transfer function at s = is H() = CA 1 B + D R m p DC transfer function describes system under static conditions, i.e., x, u, y constant: = ẋ = Ax + Bu, y = Cx + Du eliminate x to get y = H()u if system is stable, (recall: H(s) = H() = e st h(t) dt, s(t) = h(t) dt = lim t s(t) t h(τ) dτ) if u(t) u R m, then y(t) y R p where y = H()u 16

DC gain matrix DC gain matrix for example 1 (springs): 1/4 1/4 H() = 1/2 1/2 1/4 1/4 DC gain matrix for example 2 (RC circuit): 1 H() = 1 1 1 (do these make sense?) 17

Discretization with piecewise constant inputs linear system ẋ = Ax + Bu, y = Cx + Du suppose u d : Z + R m is a sequence, and u(t) = u d (k) for kh t < (k + 1)h, k =, 1,... define sequences x d (k) = x(kh), y d (k) = y(kh), k =, 1,... h > is called the sample interval (for x and y) or update interval (for u) u is piecewise constant (called zero-order-hold) x d, y d are sampled versions of x, y 18

Discretization with piecewise constant inputs x d (k + 1) = x((k + 1)h) = e ha x(kh) + h ( h = e ha x d (k) + x d, u d, and y d satisfy discrete-time LDS equations e τa Bu((k + 1)h τ) dτ ) e τa dτ B u d (k) x d (k + 1) = A d x d (k) + B d u d (k), y d (k) = C d x d (k) + D d u d (k) where ( h A d = e ha, B d = ) e τa dτ B, C d = C, D d = D called discretized system. If A is invertible, we can express integral as h ( ) e τa dτ = A 1 e ha I 19

Stability of discretization stability: if eigenvalues of A are λ 1,..., λ n, then eigenvalues of A d are e hλ 1,..., e hλn discretization preserves stability properties since Rλ i < e hλ i < 1 for h > 2

Extensions and variations offsets: updates for u and sampling of x, y are offset in time multirate: u i updated, y i sampled at different intervals (usually integer multiples of a common interval h) both very common in practice 21

Causality interpretation of x(t) = e ta x() + t y(t) = Ce ta x() + for t : t e (t τ)a Bu(τ) dτ Ce (t τ)a Bu(τ) dτ + Du(t) current state (x(t)) and output (y(t)) depend on past input (u(τ) for τ t) i.e., mapping from input to state and output is causal (with fixed initial state) now consider fixed final state x(t ): for t T, x(t) = e (t T )A x(t ) + t T e (t τ)a Bu(τ) dτ, i.e., current state (and output) depend on future input! so for fixed final condition, same system is anti-causal 22

Idea of state x(t) is called state of system at time t since: future output depends only on current state and future input future output depends on past input only through current state state summarizes effect of past inputs on future output state is bridge between past inputs and future outputs 23

Change of coordinates start with LDS ẋ = Ax + Bu, y = Cx + Du change coordinates in R n to x, with x = T x then x = T 1 ẋ = T 1 (Ax + Bu) = T 1 AT x + T 1 Bu hence LDS can be expressed as x = à x + Bu, y = C x + Du where à = T 1 AT, B = T 1 B, C = CT, D = D TF is same (since u, y aren t affected): C(sI Ã) 1 B + D = C(sI A) 1 B + D 24

Standard forms for LDS can change coordinates to put A in various forms (diagonal, real modal, Jordan... ) e.g., to put LDS in diagonal form, find T s.t. T 1 AT = diag(λ 1,..., λ n) write T 1 B = bt1..., CT = [ ] c 1 c n bt n 25

Diagonal form x i = λ i x i + b n T i u, y = c i x i i=1 bt 1 1/s x 1 c 1 u λ 1 y bt n 1/s x n c n λ n (here we assume D = ) 26

Discrete-time systems discrete-time LDS: x(t + 1) = Ax(t) + Bu(t), y(t) = Cx(t) + Du(t) D u(t) x(t+1) B 1/z x(t) C y(t) A only difference w/cts-time: z instead of s interpretation of z 1 block: unit delayor (shifts sequence back in time one epoch) latch (plus small delay to avoid race condition) 27

Explicit solution we have: x(1) = Ax() + Bu(), and in general, for t Z +, hence x(2) = Ax(1) + Bu(1) = A 2 x() + ABu() + Bu(1), t 1 x(t) = A t x() + A (t 1 τ) Bu(τ) τ= y(t) = CA t x() + h u where is discrete-time convolution and { D, t = h(t) = CA t 1 B, t > is the impulse response 28

Z-transform suppose w R p q is a sequence (discrete-time signal), i.e., w : Z + R p q recall Z-transform W = Z(w): W (z) = z t w(t) t= where W : D C C p q (D is domain of W ) time-advanced or shifted signal v: v(t) = w(t + 1), t =, 1,... Z-transform of time-advanced signal: V (z) = z t w(t + 1) = z t= z t w(t) t=1 = zw (z) zw() 29

Discrete-time transfer function take Z-transform of system equations x(t + 1) = Ax(t) + Bu(t), y(t) = Cx(t) + Du(t) yields zx(z) zx() = AX(z) + BU(z), Y (z) = CX(z) + DU(z) solve for X(z) to get (note extra z in first term!) hence X(z) = (zi A) 1 zx() + (zi A) 1 BU(z) Y (z) = H(z)U(z) + C(zI A) 1 zx() where H(z) = C(zI A) 1 B + D is the discrete-time transfer function. Note power series expansion of resolvent: (zi A) 1 = z 1 I + z 2 A + z 3 A 2 + 3