Module 08 Observability and State Estimator Design of Dynamical LTI Systems

Similar documents
Module 03 Linear Systems Theory: Necessary Background

Module 07 Controllability and Controller Design of Dynamical LTI Systems

to have roots with negative real parts, the necessary and sufficient conditions are that:

Controllability, Observability, Full State Feedback, Observer Based Control

Modern Control Systems

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

Linear System Theory

Module 02 CPS Background: Linear Systems Preliminaries

Multivariable Control. Lecture 03. Description of Linear Time Invariant Systems. John T. Wen. September 7, 2006

1 Continuous-time Systems

Linear Algebra. P R E R E Q U I S I T E S A S S E S S M E N T Ahmad F. Taha August 24, 2015

Module 06 Stability of Dynamical Systems

CONTROL DESIGN FOR SET POINT TRACKING

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

4F3 - Predictive Control

LMIs for Observability and Observer Design

Discrete and continuous dynamic systems

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

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

SYSTEMTEORI - ÖVNING 5: FEEDBACK, POLE ASSIGNMENT AND OBSERVER

6.241 Dynamic Systems and Control

POLE PLACEMENT. Sadegh Bolouki. Lecture slides for ECE 515. University of Illinois, Urbana-Champaign. Fall S. Bolouki (UIUC) 1 / 19

5. Observer-based Controller Design

Module 9: State Feedback Control Design Lecture Note 1

16.31 Fall 2005 Lecture Presentation Mon 31-Oct-05 ver 1.1

Full State Feedback for State Space Approach

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

Fall 線性系統 Linear Systems. Chapter 08 State Feedback & State Estimators (SISO) Feng-Li Lian. NTU-EE Sep07 Jan08

EEE582 Homework Problems

Observability and state estimation

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

Pole placement control: state space and polynomial approaches Lecture 2

Control Systems Design

Topic # Feedback Control Systems

1 Similarity transform 2. 2 Controllability The PBH test for controllability Observability The PBH test for observability...

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

Robust Control 2 Controllability, Observability & Transfer Functions

University of Toronto Department of Electrical and Computer Engineering ECE410F Control Systems Problem Set #3 Solutions = Q o = CA.

Control System Design

Lecture 19 Observability and state estimation

Lecture 2 and 3: Controllability of DT-LTI systems

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

Modelling and Control of Dynamic Systems. Stability of Linear Systems. Sven Laur University of Tartu

16.30 Estimation and Control of Aerospace Systems

Module 02 Control Systems Preliminaries, Intro to State Space

Rural/Urban Migration: The Dynamics of Eigenvectors

Control Systems Design

Control Systems Lab - SC4070 Control techniques

ECE 388 Automatic Control

Chap 4. State-Space Solutions and

ẋ 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)

ECEEN 5448 Fall 2011 Homework #4 Solutions

State Feedback and State Estimators Linear System Theory and Design, Chapter 8.

Identification Methods for Structural Systems

Department of Electrical and Computer Engineering ECED4601 Digital Control System Lab3 Digital State Space Model

1. Type your solutions. This homework is mainly a programming assignment.

Comparison of four state observer design algorithms for MIMO system

Stability, Pole Placement, Observers and Stabilization

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τ

Controllability. Chapter Reachable States. This chapter develops the fundamental results about controllability and pole assignment.

6 OUTPUT FEEDBACK DESIGN

Lecture 7 and 8. Fall EE 105, Feedback Control Systems (Prof. Khan) September 30 and October 05, 2015

State Feedback and State Estimators Linear System Theory and Design, Chapter 8.

Systems and Control Theory Lecture Notes. Laura Giarré

Intro. Computer Control Systems: F8

Problem Set 5 Solutions 1

Integral action in state feedback control

EL 625 Lecture 10. Pole Placement and Observer Design. ẋ = Ax (1)

Introduction to Modern Control MT 2016

6.241 Dynamic Systems and Control

Lecture 4 and 5 Controllability and Observability: Kalman decompositions

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

Discrete-time linear systems

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

Control Systems Design

Stabilisation of Linear Time-Invariant Systems subject to Output Saturation

Topic # /31 Feedback Control Systems

Control engineering sample exam paper - Model answers

Linear State Feedback Controller Design

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

Topic # Feedback Control. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

Reachability and Controllability

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

Problem 2 (Gaussian Elimination, Fundamental Spaces, Least Squares, Minimum Norm) Consider the following linear algebraic system of equations:

Chapter 6 Controllability and Obervability

Automatic Control 2. Model reduction. Prof. Alberto Bemporad. University of Trento. Academic year

TRACKING AND DISTURBANCE REJECTION

Homogeneous and particular LTI solutions

Module 05 Introduction to Optimal Control

1 Some Facts on Symmetric Matrices

MEM 355 Performance Enhancement of Dynamical Systems MIMO Introduction

MEM 355 Performance Enhancement of Dynamical Systems

Solving Dynamic Equations: The State Transition Matrix II

SYSTEMTEORI - KALMAN FILTER VS LQ CONTROL

System Identification by Nuclear Norm Minimization

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

Problem 1 Cost of an Infinite Horizon LQR

6.241 Dynamic Systems and Control

FEL3210 Multivariable Feedback Control

Solution of Linear State-space Systems

Transcription:

Module 08 Observability and State Estimator Design of Dynamical LTI Systems Ahmad F. Taha EE 5143: Linear Systems and Control Email: ahmad.taha@utsa.edu Webpage: http://engineering.utsa.edu/ataha November 7, 2017 Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 1 / 24

Introduction to Observability Observability: The ability to observer what s happening inside your system (i.e., to know system states x(t)) Observability: In order to see what is going on inside the system under observation (i.e., output y(t)), the system must be observable. Observation: output y(t) Given this dynamical system: x(k + 1) = Ax(k) + Bu(k), x(0) = x 0, y(k) = Cx(k) + Du(k), or ẋ(t) = Ax(t) + Bu(t), x(0) = x 0, y(t) = Cx(t) + Du(t) a natural question arises: can we learn anything about x(t) given y(t) and u(t) for a specific time t? Clearly, if we know x(0) and u(t) for all t, we can determine x(t) via x(t) = e A(t t0) x(t 0 ) + t t 0 e A(t τ) Bu(τ)dτ However, if x(0) if unknown, can you obtain x(t) via only y(t), u(t)? Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 2 / 24

Observability 1 DTLTI system (n states, m inputs, p outputs): x(k + 1) = Ax(k) + Bu(k), x(0) = x 0, (1) y(k) = Cx(k) + Du(k), (2) Application: given that A, B, C, D, and u(k), y(k) are known k = 0 : 1 : k 1, can we determine x(0)? Solution: y(0) y(1). y(k 1) = C CA. CA k 1 D 0... 0 x(0)+ CB D........... 0 CA k 2 B... CB 0 u(0) u(1). u(k 1) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 3 / 24

Observability 2 y(0) y(1). y(k 1) = C CA.. CA k 1 D 0... 0 x(0) + CB D........... 0 CA k 2 B... CB 0 u(0) u(1). u(k 1) Y (k 1) = O k x(0) + T k U(k 1) = O k x(0) = Y (k 1) T k U(k 1) Since O k, T k, Y (k 1), U(k 1) are all known quantities, then we can find a unique x(0) iff O k is full rank Observability Definition DTLTI system is observable at time k if the initial state x(0) can be uniquely determined from any given u(0),..., u(k 1), y(0),..., y(k 1). Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 4 / 24

Quantifying Observability Observability Test For a system with n states and p outputs, the test for observability is that C CA matrix O =. Rnp n has full column rank (i.e., rank(c) = n). CA n 1 The test is equivalent for DTLTI and CTLTI systems Theorem The following statements are equivalent: 1 O is full rank, system is observable [ ] 2 λi A PBH Test: for any λ C, rank = n C 3 Eigenvector Test: for any right evector of A, Cv i 0 4 The following matrices are nonsingular n 1 t (A ) i C CA i (DTLIT) & e A τ C Ce Aτ dτ (CTLTI) i=0 0 Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 5 / 24

Example 1 Consider a dynamical system defined by: A = 1 1 0 1 1 0, B = 1 0 [ ] 0 0 0 1 0, C = 0 0 1 0 0 0 0 1 Is this system controllable? Is this system observable? Answers: Yes, Yes! MATLAB commands: ctrb, obsv Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 6 / 24

Example 2 Determine whether the following system is observable or not: 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 1 x(k + 1) = 0 0 1 1 0 0 0 x(k) + 1 u(k) 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 2 y(k) = [ ] 1 0 2 0 0 0 0 x(k). 0 0 0 2 3 0 0 The challenge here is to be able to figure out which test should be used. Clearly, A has 7 evalues as follows: λ A = { 1, 1, 1, 1, 0, 0, 0}. Test 2 is the easiest test to use here. Applying the test, you ll see that the PBH test fails for the zero eigenvalue, which means that the system is not observable. Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 7 / 24

Unobservable Subspace Unobservable subspace: null-space of O k = N (O k ) It is basically the space (i.e., set of states x X that you cannot estimate or observer Notice that if x(0) Null(O k ), and u(k) = 0, then the output is going to zero from [0, k 1] Notice that input u(k) does not impact the ability to determine x(0) The unobservable subspace N (O k ) is A-invariant: if z N (O k ), then Az N (O k ) Unobservable Space The null spaces Null(O k ) = N (O k ) satisfy N (O 0 ) N (O 1 ) N (O n ) = N (O n+1 ) = This means that the more output measurements you have, the smaller the unobservable subspace. It also implies that you cannot get more information if you go above k > n. You can prove this by C-H theorem (A n = n 1 i=0 α ia i ) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 8 / 24

Detectability Detectability Definition DTLTI or CTLIT system, defined by (A, C), is detectable if there exists a matrix L such that A LC is stable. Detectability Theorem DTLTI or CTLIT system, defined by (A, C) is detectable if all its unobservable modes correspond to stable eigenvalues of A. Facts: A is stable (A, C) is detectable (A, C) is observable (A, C) is detectable as well (A, B) is not observable it could still be detectable If system has some unobservable modes that are unstable, then no gain L can make A LC stable Observer will fail to track system state Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 9 / 24

Observability for CT Systems The previous derivation for observability was for DT LTI systems What if we have a CT LTI system? Do we obtain the same observability testing conditions? Yes, we do! First, note that the control input u(t) plays no role in observability, just like how the output y(t) plays no role in controllability To see that, consider the following system with n states, p outputs, where (again) we want to obtain x(t 0 ) (unknown): ẋ(t) = Ax(t), y(t) = Cx(t) x(t 0 ) = x 0 = y(t 0 ) = Cx(t 0 ) ẏ(t 0 ) = Cẋ(t 0 ) = CAx(t 0 ) ÿ(t 0 ) = Cẍ(t 0 ) = CA 2 x(t 0 ). y (n 1) (t 0 ) = Cx (n 1) (t 0 ) = CA n 1 x(t 0 ) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 10 / 24

Observability for CT LTI Systems 2 We can write the previous equation as: y(t 0 ) ẏ(t 0 ) ÿ(t 0 ) Y (t 0 ) =. y (n 1) (t 0 ) C CA. CA n 1 }{{} =O R np n x(t 0 ) x(t 0 ) = O Y (t 0 ) = (O O) 1 OY (t 0 ) Hence, the initial conditions can be determined if the observability matrix is full column rank This condition is identical to the DT case where we also wanted to obtain x(k = 0) from a set of output measurements The difference here is that we had to obtain derivatives of the output at t 0 Can you rederive the equations if u(t) 0? It won t make an impact on whether a solution exists, but it ll change x(t 0 ) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 11 / 24

Controllability-Observability Duality, Minimality Duality The CT LTI system with state-space matrices (Ã, B, C, D) is called the dual of another CT LTI system with state-space matrices (A, B, C, D) if à = A, B = C, C = B, D = D. Controllability-Observability Duality CT system (A, B, C, D) is observable (controllable) if and only if its dual system (Ã, B, C, D) is controllable (observable). Minimality A system (A, B, C, D) is called minimal if and only if it is both controllable and observable. Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 12 / 24

Observer Design Objective here is to estimate (in real-time) the state of the actual system x(t) given that ICs x(0) are not known To do that, we design an observer dynamic state estimator (DSE) Define dynamic estimation error: e(t) = x(t) ˆx(t) Error dynamics: ė(t) = ẋ(t) ˆx(t) = (A LC)(x(t) ˆx(t)) = (A LC)e(t) Hence, e(t) 0, as t if eig(a LC) < 0 Objective: design observer/estimator gain L such that eig(a LC) < 0 or at a certain location Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 13 / 24

Example Controller Design Given a system characterized by A = [ ] [ 1 3 1, B = 3 1 0] Is the system stable? What are the eigenvalues? Solution: unstable, eig(a) = 4, 2 Find linear state-feedback gain K (i.e., u = Kx), such that the poles of the closed-loop controlled system are 3 and 5 Characteristic polynomial: λ 2 + (k 1 2)λ + (3k 2 k 1 8) = 0 [ ] x1 Solution: u = Kx = [10 11] = 10x 1 11x 2 MATLAB command: K = place(a,b,eig desired) [ ] [ ] 1 0 1 What if A =, B =, can we stabilize the system? 0 1 1 x 2 Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 14 / 24

Example Observer Design Given a system characterized by A = [ ] 1 3, C = [ 0.5 1 ] 3 1 Find linear state-observer gain L = [l 1 l 2 ] such that the poles of the estimation error are 5 and 3 Characteristic polynomial: λ 2 + ( 2 + l 2 + 0.5l 1 )λ + ( 8 + 0.5l 2 + 2.5l 1 ) = 0 [ 8 Solution: L = 6] MATLAB command: L = place(a,c,eig desired) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 15 / 24

Observer, Controller Design for DT Systems Summary For CT system ẋ(t) = Ax(t) + Bu(t), y(t) = Cx(t) + Du(t) To design a stabilizing controller, find K such that eig(a cl ) = eig(a BK) < 0 or at a prescribed location To design a converging estimator (observer), find L such that or at a prescribed location What if the system is DT? eig(a cl ) = eig(a LC) < 0 x(k + 1) = Ax(k) + Bu(k), y(k) = Cx(k) + Du(k) To design a stabilizing controller, find K such that 1 < eig(a cl ) = eig(a BK) < 1 or at a prescribed location To design a converging estimator (observer), find L such that 1 < eig(a cl ) = eig(a LC) < 1 or at a prescribed location Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 16 / 24

Observer Design What if the system dynamics are: ẋ(t) = Ax(t) + Bu(t), y(t) = Cx(t) + Du(t) The observer dynamics will then be: ˆx(t) = Aˆx(t) + Bu(t) + L(y(t) ŷ(t)) Hence, the control input shouldn t impact the estimation error Why? Because the input u(t) is know! Estimation error: e(t) = x(t) ˆx(t) = ė(t) = ẋ(t) = ˆx(t) = (A LC)(x(t) ˆx(t)) = ė(t) = (A LC)e(t) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 17 / 24

MATLAB Example x1, ˆx1 x2, ˆx2 15 10 5 0-5 -10-15 -20 15 10 5 0-5 -10-15 -20-25 x 1 ˆx 1 0 1 2 3 4 5 6 7 8 9 10 Time (seeconds) x 2 ˆx 2 0 1 2 3 4 5 6 7 8 9 10 Time (seeconds) A=[1-0.8; 1 0]; B=[0.5; 0]; C=[1-1]; % Selecting desired poles eig_desired=[.5.7]; L=place(A,C,eig_desired) ; % Initial state x=[-10;10]; % Initial estimate xhat=[0;0]; % Dynamic Simulation XX=x; XXhat=xhat; T=10; % Constant Input Signal UU=.1*ones(1,T); for k=0:t-1, u=uu(k+1); y=c*x; yhat=c*xhat; x=a*x+b*u; xhat=a*xhat+b*u+l*(y-yhat); XX=[XX,x]; XXhat=[XXhat,xhat]; end % Plotting Results subplot(2,1,1) plot(0:t,[xx(1,:);xxhat(1,:)]); subplot(2,1,2) plot(0:t,[xx(2,:);xxhat(2,:)]); Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 18 / 24

Observer-Based Control 1 Recall that for LSF control: u(t) = Kx(t) What if x(t) is not available, i.e., it can only be estimated? Solution: get ˆx by designing L Apply LSF control using ˆx with a LSF matrix K to both the original system and estimator Question: how to design K and L simultaneously? Poles of the closed-loop system? This is called an observer-based controller (OBC) Design questions: how shall we design K and L? Are these designs independent? Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 19 / 24

Observer-Based Control 2 Notice that u(t) = K ˆx(t) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 20 / 24

Observer-Based Control 3 Closed-loop dynamics: ẋ(t) = Ax(t) BK ˆx(t) ˆx(t) = Aˆx(t) + L(y(t) ŷ(t)) BK ˆx(t) The overall system (observer + controller) can be written as follows: [ẋ(t) ] [ ] [ ] A BK x(t) = ˆx(t) LC A LC BK ˆx(t) [ ] [ ] [ ] [ ] x(t) x(t) I 0 x(t) Transformation: = = e(t) x(t) ˆx(t) I I ˆx(t) Hence, we can write: [ẋ(t) ] [ ] [ ] A BK BK x(t) = ė(t) 0 A LC e(t) }{{} A cl If the system is controllable & observable eig(a cl ) can be arbitrarily assigned by proper K and LWhat if the system is stabilizable and detectable? Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 21 / 24

Separation Principle [ẋ(t) ] [ ] [ ] A BK BK x(t) = ė(t) 0 A LC e(t) }{{} A cl [ẋ(t) ] [ ] [ ] A BK x(t) = ˆx(t) LC A LC BK ˆx(t) Notice the above dynamics for the OBC are equivalent What are the evalues of the closed loop system above? Since A cl is block diagonal, the evalues of A cl are eig(a BK) eig(a LC) eig(a BK) characterizes the state control dynamics eig(a BK) characterizes the state estimation dynamics If the system is obsv. AND cont. = evalues(a cl ) can be arbitrarily assigned by properly designing K and L If the system is detect. AND stab. = evalues(a cl ) can be stabilized via properly designing K and L Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 22 / 24

OBC Example Design an OBC (i.e., u(t) = K ˆx(t)) for the following SISO system [ ] [ ] 0 1 0 ẋ(t) = x(t) + u(t), y(t) = [ 1 0 ] x(t) 0 0 1 1 Before doing anything, check whether system is cont. (or stab.) and obs. (or det.): system is cont. AND obs. 2 First, design a stabilizing state feedback control, i.e., find K s.t. [ ] 0 1 eig(a BK) < 0, A BK = K = [ 4 2 ] does the job k 1 k 2 3 Second, design a stabilizing observer (estimator), i.e., find L s.t. [ ] l1 1 eig(a LC) < 0, A LC = L = [ 10 100 ] does the job l 2 0 4 Finally, overall system design: u(t) = K ˆx(t) = 4ˆx 1 (t) 2ˆx 2 (t) ˆx 1 (t) = ˆx 2 (t) + 10(y(t) ˆx 1 (t)) ˆx 2 (t) = u(t) + 100(y(t) ˆx 1 (t)) Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 23 / 24

Questions And Suggestions? Thank You! Please visit engineering.utsa.edu/ataha IFF you want to know more Ahmad F. Taha Module 08 Observability and State Estimator Design of Dynamical LTI Systems 24 / 24