University of California Department of Mechanical Engineering ECE230A/ME243A Linear Systems Fall 1999 (B. Bamieh ) Lecture 3: Simulation/Realization 1

Similar documents
hapter 8 Simulation/Realization 8 Introduction Given an nth-order state-space description of the form x_ (t) = f (x(t) u(t) t) (state evolution equati

Chapter 30 Minimality and Stability of Interconnected Systems 30.1 Introduction: Relating I/O and State-Space Properties We have already seen in Chapt

Examples. 2-input, 1-output discrete-time systems: 1-input, 1-output discrete-time systems:

Lecture 11 FIR Filters

Differential and Difference LTI systems

Notice the minus sign on the adder: it indicates that the lower input is subtracted rather than added.

Chapter 3 Least Squares Solution of y = A x 3.1 Introduction We turn to a problem that is dual to the overconstrained estimation problems considered s

Chapter 9 Observers, Model-based Controllers 9. Introduction In here we deal with the general case where only a subset of the states, or linear combin

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

Chapter 7 Interconnected Systems and Feedback: Well-Posedness, Stability, and Performance 7. Introduction Feedback control is a powerful approach to o

Module 1: Signals & System

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

Lecture 19 IIR Filters

Ch 2: Linear Time-Invariant System

The Convolution Sum for Discrete-Time LTI Systems

Discrete-Time Systems

Cosc 3451 Signals and Systems. What is a system? Systems Terminology and Properties of Systems

Chapter 2 Time-Domain Representations of LTI Systems

ECE 301 Division 1 Exam 1 Solutions, 10/6/2011, 8-9:45pm in ME 1061.

The objective of this LabVIEW Mini Project was to understand the following concepts:

EE 210. Signals and Systems Solutions of homework 2

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

Digital Signal Processing Lecture 5

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

University Question Paper Solution

Introduction to Signals and Systems Lecture #4 - Input-output Representation of LTI Systems Guillaume Drion Academic year

信號與系統 Signals and Systems

Interconnection of LTI Systems

Lecture 1 From Continuous-Time to Discrete-Time

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

Chapter Stability Robustness Introduction Last chapter showed how the Nyquist stability criterion provides conditions for the stability robustness of

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 2 Solutions

NAME: 23 February 2017 EE301 Signals and Systems Exam 1 Cover Sheet

Chapter 8 Stabilization: State Feedback 8. Introduction: Stabilization One reason feedback control systems are designed is to stabilize systems that m

Observability. It was the property in Lyapunov stability which allowed us to resolve that

NAME: 13 February 2013 EE301 Signals and Systems Exam 1 Cover Sheet

信號與系統 Signals and Systems

Our goal is to solve a general constant coecient linear second order. this way but that will not always happen). Once we have y 1, it will always

Chap 4. State-Space Solutions and

Signals and Systems Chapter 2

III. Time Domain Analysis of systems

UNIT 1. SIGNALS AND SYSTEM

ECE504: Lecture 8. D. Richard Brown III. Worcester Polytechnic Institute. 28-Oct-2008

Digital Filter Structures. Basic IIR Digital Filter Structures. of an LTI digital filter is given by the convolution sum or, by the linear constant

Introduction to Modern Control MT 2016

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 2 Laplace Transform I 1/52

Discrete-time signals and systems

The z-transform Part 2

This homework will not be collected or graded. It is intended to help you practice for the final exam. Solutions will be posted.

Modeling and Analysis of Systems Lecture #3 - Linear, Time-Invariant (LTI) Systems. Guillaume Drion Academic year

Chapter 3 Convolution Representation

Digital Signal Processing Lecture 4

Final Exam 14 May LAST Name FIRST Name Lab Time

Properties of LTI Systems

Question Paper Code : AEC11T02

Massachusetts Institute of Technology

Analog vs. discrete signals

New Mexico State University Klipsch School of Electrical Engineering EE312 - Signals and Systems I Fall 2015 Final Exam

Lecture 2. Introduction to Systems (Lathi )

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

EE Control Systems LECTURE 9

6.241 Dynamic Systems and Control

Lecture 5 - Assembly Programming(II), Intro to Digital Filters

ELEG 305: Digital Signal Processing

Shift Property of z-transform. Lecture 16. More z-transform (Lathi 5.2, ) More Properties of z-transform. Convolution property of z-transform

New Mexico State University Klipsch School of Electrical Engineering. EE312 - Signals and Systems I Spring 2018 Exam #1

Ch. 7: Z-transform Reading

Introduction to DSP Time Domain Representation of Signals and Systems

NORWEGIAN UNIVERSITY OF SCIENCE AND TECHNOLOGY DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATIONS

1 Continuous-time Systems

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

Chapter 6 Balanced Realization 6. Introduction One popular approach for obtaining a minimal realization is known as Balanced Realization. In this appr

Module 3. Convolution. Aim

Module 4 : Laplace and Z Transform Problem Set 4

Professor Fearing EECS120/Problem Set 2 v 1.01 Fall 2016 Due at 4 pm, Fri. Sep. 9 in HW box under stairs (1st floor Cory) Reading: O&W Ch 1, Ch2.

Module 07 Controllability and Controller Design of Dynamical LTI Systems

New Mexico State University Klipsch School of Electrical Engineering. EE312 - Signals and Systems I Fall 2017 Exam #1

Background LTI Systems (4A) Young Won Lim 4/20/15

Systems and Control Theory Lecture Notes. Laura Giarré

Problem Value Score No/Wrong Rec 3

Chapter 2: Time-Domain Representations of Linear Time-Invariant Systems. Chih-Wei Liu

Solution 10 July 2015 ECE301 Signals and Systems: Midterm. Cover Sheet

# FIR. [ ] = b k. # [ ]x[ n " k] [ ] = h k. x[ n] = Ae j" e j# ˆ n Complex exponential input. [ ]Ae j" e j ˆ. ˆ )Ae j# e j ˆ. y n. y n.

Non-uniform acceleration *

Chap 2. Discrete-Time Signals and Systems

Lecture 1: Introduction Introduction

LTI Systems (Continuous & Discrete) - Basics

Grades will be determined by the correctness of your answers (explanations are not required).

EE 224 Signals and Systems I Review 1/10

Lecture V: Linear difference and differential equations


CLTI System Response (4A) Young Won Lim 4/11/15

x(t) = t[u(t 1) u(t 2)] + 1[u(t 2) u(t 3)]

VU Signal and Image Processing

Lecture 2 Discrete-Time LTI Systems: Introduction

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

NAME: 20 February 2014 EE301 Signals and Systems Exam 1 Cover Sheet

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Grades will be determined by the correctness of your answers (explanations are not required).

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

Transcription:

University of alifornia Department of Mechanical Engineering EE/ME Linear Systems Fall 999 ( amieh ) Lecture : Simulation/Realization Given an nthorder statespace description of the form _x(t) f (x(t) u(t) t) (state evolution equations) () y(t) g (x(t) u(t) t) (instantaneous output equations) : () (whichmay be T or DT, depending on howweinterpret the symbol _x), howdowe simulate the model, ie, how do we implement it or realize it in hardware or software In the DT case, where _x(t) x(t ), this is easy if we have available: (i) storage registers that can be updated at each time step (or \clock cycle") these will store the state variables and (ii) a means of evaluating the functions f( )andg( ) that appear in the statespace description in the linear case, all that we need for this are multipliers and adders straightforward realization is then obtained as shown in the gure below The storage registers are labeled D for (onestep) delay, because the output of the block represents the data currently stored in the register while the input of such a block represents the data waiting to be read into the register at the next clock pulse In the T case, where _x(t) dx(t)dt, the only dierence is that the delay elements are replaced by integrators The outputs of the integrators are then the state variables u[t] x[t ] x[t] y[t] f(: :) D g(: :) Figure : Simulation Diagram Realization from I/O Representations In this section, we will describe how a state space realization can be obtained for a causal inputoutput dynamic system described in terms of convolution onvolution with an Exponential onsider a causal DT LTI system with impulse response h[n] (which is for n<): These notes are part of a set under development by Mohammed Dahleh (U Santa arbara), Munther Dahleh (MIT), and George Verghese (MIT) omments and corrections would be greatly appreciated Please do not copy for or distribute to people not enrolled in without permission from one of the coauthors

The rst term above, namely n h[n ; k]u[k] ; n; ; h[n ; k]u[k] x[n] n; ; h[]u[n] () h[n ; k]u[k] () represents the eect of the past on the present This expression shows that, in general (ie if h[n] has no special form), the number x[n] has to be recomputed from scratch for each n When we move from n to n, none of the past input, ie u[k] for k n, can be discarded, because all of the past will again be needed to compute x[n ] In other words, the memory of the system is innite Now look at an instance where special structure in h[n] makes the situation much better Suppose h[n] n for n, and otherwise () Then and x[n ] n; x[n] ; n;k u[k] () n ; n;k u[k] n; u[n] ; n;k u[k] x[n]u[n] () (You will nd it instructive to graphically represent the convolutions that are involved here, in order to understand more visually why the relationship () holds) Gathering () and () with (), we obtain a pair of equations that together constitute a statespace description for this system: x[n ] x[n]u[n] (8) x[n]u[n] (9) To realize this model in hardware, or to simulate it, we can use a delayaddergain system that is obtained as follows We start with a delay element, whose output will be x[n] when its input is x[n ] Now the state evolution equation tells us how tocombine the present output of the delay element, x[n], with the present input to the system, u[n], in order to obtain the present input to the delay element, x[n ] This leads to the following block diagram, in which wehave used the output equation to determine how to obtain from the present state and input of the system: u[n] m D x[n] x[n ]

onvolution with a Sum of Exponentials onsider a more complicated causal impulse response than the previous example, namely h[n] [n]( n n L n L ) () with the i being constants The following block diagram shows that this system can be considered as being obtained through the parallel interconnection of causal subsystems that are as simple as the one treated earlier, plus a direct feedthrough of the input through the gain (each block is labeled with its impulse response, with causality implying that these responses are for n<): [n] u[n] n L n L N i Motivated by theabove structure and the treatment of the earlier, let us dene a state variable for each of the L subsystems: x i [n] n; ; n;k i u[k] i ::: L () With this, we immediately obtain the following stateevolution equations for the subsystems: lso, after a little algebra, we directly nd x i [n ] i x i [n] i u[n] i ::: L () x [n] x [n] L x L [n]( L i ) u[n] () We have thus arrived at an Lthorder statespace description of the given system To write the above statespace description in matrix form, dene the state vector at time n to be x[n] x [n] x [n] x L [n] () lso dene the diagonal matrix, column vector b, androwvector c as follows: c b L L L () ()

Then our statespace model takes the desired matrix form, as you can easily verify: x[n ] x[n]bu[n] () cx[n]du[n] (8) where d L i (9) Realization from an LTI Dierential/Dierence equation In this section, we describe how a realization can be obtained from a dierence or a dierential equation We begin with an example Example (StateSpace Models for an LTI Dierence Equation) Let us examine some ways of representing the following inputoutput dierence equation in statespace form: a y[n ; ] a y[n ; ] b u[n ; ] b u[n ; ] () For a rst attempt, consider using as state vector the quantity x[n] y[n ; ] y[n ; ] u[n ; ] u[n ; ] () The corresponding thorder statespace model would take the form x[n ] y[n ; ] u[n] u[n ; ] ;a ;a b b ;a ;a b b y[n ; ] y[n ; ] u[n ; ] u[n ; ] y[n ; ] y[n ; ] u[n ; ] u[n ; ] u[n] ()u[n] () If we are somewhat more careful about our choice of state variables, it is possible to get more economical models For a rdorder model, suppose we pick as state vector x[n] y[n ; ] u[n ; ] The corresponding rdorder statespace model takes the form x[n ] y[n ] u[n] ;a ;a b () y[n ; ] u[n ; ] y[n ; ] u[n ; ] b u[n] ()u[n] ()

still more clever/devious choice of state variables yields a ndorder statespace model For this, pick x[n] ;a y[n ; ] b u[n ; ] The corresponding ndorder statespace model takes the form y[n ] ;a b u[n] ;a ;a ;a y[n ; ] b u[n ; ] ;a y[n ; ] b u[n ; ] () b b u[n] ()u[n] () It turns out to be impossible in general to get a statespace description of order lower than in this case This should not be surprising, in view of the fact that we started with a ndorder dierence equation, which we know (from earlier courses) requires two initial conditions in order to solve forwards in time Notice how, in each of the above cases, we have incorporated the information contained in the original dierence equation that we started with This example was built around a secondorder dierence equation, but has natural generalizations to the nthorder case, and natural parallels in the case of T dierential equations Next, we will present two realizations of an nthorder LTI dierential equation While realizations are not unique, these two have certain nice properties that will be discussed in the future Observability anonical Form Suppose we are given the LTI dierential equation which can be rearranged as y (n) a n;y (n;) a y b u b _u b n;u (n;) y (n) (b n;u (n;) ; b n;y (n;) )(b n;u (n;) ; a n;y (n;) )(b u ; a y): Integrated n times, this becomes y Z (b n;u ; a n;y) Z Z Z (b n;u ; a n;y) n Z (b u ; a y): () The block diagram given in Figure then follows directly from () This particular realization is called the observability canonical form realization \canonical" in the sense of \simple" (but there is actually a strict mathematical denition as well), and \observability" for reasons that will emerge later in the course

u b b b n; b n; Z Z Z Z _x n x n _x n; x n; _x x _x x y ;a ;a ;a n; ;a n; Figure : Observability anonical Form We can now read the state equations directly from Figure, once we recognize that the natural state variables are the outputs of the integrators: _x ;a n;x x b n;u _x ;a n;x x b n;u _x n ;a x b u y x : If this is written in our usual matrix form, we would have c ;a n; ;a n; ;a h i : b b n; b n; b The matrix is said to be in companion form, a term used to refer to any one of four matrices whose pattern of 's and 's is, or resembles, the pattern seen above The characteristic polynomial of such a matrix can be directly read o from the remaining coecients, as we shall see when we talk about these polynomials, so this matrix is a \companion" to its characteristic polynomial Reachability anonical Form There is a \dual" realization to the one presented in the previous section for the LTI dierential equation y (n) a n;y (n;) a y c u c _u c n;u (n;) : (8) First, consider a special case of this, namely the dierential equation w (n) a n;w (n;) a w u (9)

To obtain an nthorder statespace realization of this system, dene x x x x x n; x n w _w w d n; w dt n; d n; w dt n; Then it is easy to verify that the following statespace description represents the given model: d dt x x x x n; x n w h ::: ::: ::: ::: ;a (t) ;a (t) ;a (t) ::: ;a n;(t) ;a n;(t) ::: i x x x x n; x n : : x x x x n; x n u (The matrix here is again in one of the companion forms the two remaining companion forms are the transposes of the one here and the transpose of the one in the previous section) Suppose now that we want to realize another special case, namely the dierential equation r (n) a n;r (n;) a r _u () which is the same equation as (9), except that the RHS is _u rather than u y linearity, the response of () will r _w(t), and this response can be obtained from the above realization by simply taking the output to be x rather than x, since x _w r Superposing special cases of the preceding form, we see that if we have the dierential equation (8), with an RHS of c u c _u c n;u (n;) then the above realization suces, provided we take the output to be y c x c x c n;x n : () ie, we just change the output equation to have c h c c c c n; i : () block diagram of the nal realization is shown below in This is called the reachability or controllability canonical form Finally, for the obvious DT dierence equation that is analogous to the T dierential equation that we used in this example, the same scheme will work, with derivatives replaced by dierences

Z Z Z Z u _x n x n x n; _x x _x x I M c n; y ;a n; ;a n; ;a ;a c c Exercises Figure : Reachability anonical Form Exercise Suppose we wish to realize a twoinput dierential equation of the form y (n) a n;y (n;) a y b u b _u b n; u (n;) b u b _u b n; u (n;) Show how you would modify the observability canonical realization to accomplish this, still using only n integrators Exercise How would reachability canonical realization be modied if the linear differential equation that we started with was time varying rather than time invariant Exercise Show how to modify the reachability canonical realization but still using only n integrators toobtain a realization of a twooutput system of the form y (n) a n;y (n;) a y c u c _u c n;u (n;) y (n) a n;y (n;) a y c u c _u c n;u (n;) : Exercise Let the state space representations of two given systems be x i (k ) i x i (k) i u i (k) y i (k) i x i (k) i Determine a statespace representation in the form x(k ) x(k)u(k) y(k) x(k) for the new system obtained when systems and are interconnected as follows: a) In series: 8

b) In parallel: c) In a feedback loop: (ssume that the numbers of inputs and outputs in each case are conformable for the connection being considered) Exercise onsider a causal continuoustime system with inputoutput representation y(t) h u(t), where denotes convolution and h(t) is the impulse response of the system: Here c denotes a constant h(t) e ;t ; ce ;t for t a) Suppose c Use only the inputoutput representation of the system to show that the variables x (t) y(t) and x (t) _y(t) qualify as state variables of th e system at time t b) ompute the transfer function of the system, and use it to describe wh at may be special about the case c Exercise onsider the nonlinear dierence equation (a) (b) form y(k) F [y(k ; ) ::: y(k ; n) u(k ; ) ::: u(k ; n) k; n] Find a statespace representation of order n ; for this dierence equation Find an nthorder statespace representation in the case where F [:] has the special F [:] n i f i [y(k ; i) u(k ; i)] (c) If f i ( ) a i b i nd a linear statespace representation of the form x(k) x(k ; ) u(k ; ), y(k ; ) x(k ; ) Exercise The input u(t) and output y(t) of a system are related by the equation dy(t) dt a (t)y(t) b (t)u(t)b (t) du(t) Find a linear, time varying statespace representation of this system dt 9