Overview State-Space Feedback Observer

Slides:



Advertisements
Similar presentations
Pole Placement.
Advertisements

A Typical Feedback System
Lecture 11: Recursive Parameter Estimation
280 SYSTEM IDENTIFICATION The System Identification Problem is to estimate a model of a system based on input-output data. Basic Configuration continuous.
Digital Control Systems STATE OBSERVERS. State Observers.
Linear and generalised linear models Purpose of linear models Least-squares solution for linear models Analysis of diagnostics Exponential family and generalised.
Traction Control Michael Boersma Michael LaGrand 12/10/03.
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
1. 2 LOOP DYNAMICS To keep track of deviations from the free-running frequency,
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa.
FULL STATE FEEDBAK CONTROL:
September Bound Computation for Adaptive Systems V&V Giampiero Campa September 2008 West Virginia University.
State Space Control of a Magnetic Suspension System Margaret Glavin Supervisor: Prof. Gerard Hurley.
1 Chapter 11 Compensator Design When the full state is not available for feedback, we utilize an observer. The observer design process is described and.
CONTROL OF MULTIVARIABLE SYSTEM BY MULTIRATE FAST OUTPUT SAMPLING TECHNIQUE B. Bandyopadhyay and Jignesh Solanki Indian Institute of Technology Mumbai,
State Observer (Estimator)
Matlab Tutorial for State Space Analysis and System Identification
دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي استاد درس دكتر فرزاد توحيدخواه بهمن 1389 کنترل پيش بين-دکتر توحيدخواه MPC Stability-2.
Lecture 14: Pole placement (Regulator Problem) 1.
Tip Position Control Using an Accelerometer & Machine Vision Aimee Beargie March 27, 2002.
State Space Models The state space model represents a physical system as n first order differential equations. This form is better suited for computer.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
ET 438a Automatic Control Systems Technology Lesson 17: Combined Mode Control 1 lesson17et438a.pptx.
Localization by TDOA ©Thomas Haenselmann – Department of Computer Science IV – University of Mannheim Lecture on Sensor Networks Historical Development.
CSE 554 Lecture 8: Alignment
Chapter 4 Systems of Linear Equations; Matrices
FULL STATE FEEDBACK CONTROL:
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chapter 12 Design via State Space <<<4.1>>>
Chapter 8 State Feedback and State Estimators State Estimator In previous section, we have discussed the state feedback, based on the assumption that all.
L6 matrix operations.
Pole Placement and Decoupling by State Feedback
Chapter 10 Optimal Control Homework 10 Consider again the control system as given before, described by Assuming the linear control law Determine the constants.
Design via Root Locus (Textbook Ch.9).
Pole Placement and Decoupling by State Feedback
CHE 391 T. F. Edgar Spring 2012.
Copyright © Cengage Learning. All rights reserved.
Lect. 6 Pole Placement Basil Hamed
Roberto Battiti, Mauro Brunato
Controller Tuning: A Motivational Example
Final value theorem Conditions: f(t) is finite and converges
Controller and Observer Design
Autonomous Cyber-Physical Systems: Dynamical Systems
Chapter 9 Design via Root Locus <<<4.1>>>
Modern Control Systems (MCS)
Notes Assignments Tutorial problems
Multirate Output Feedback
Where did we stop? The Bayes decision rule guarantees an optimal classification… … But it requires the knowledge of P(ci|x) (or p(x|ci) and P(ci)) We.
Feedback: Principles & Analysis
6.5 Taylor Series Linearization
Homework 9 Refer to the last example.
Learning Objectives for Section 4.5 Inverse of a Square Matrix
Let A = {image} and B = {image} . Compare A and B.
دانشگاه صنعتي اميركبير
Linear Equations in Linear Algebra
Chapter 8 State Feedback and State Estimators State Estimator In previous section, we have discussed the state feedback, based on the assumption that all.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 13 – 14, Tuesday 8th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Homework 3: Transfer Function to State Space
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
Chapter 4 Systems of Linear Equations; Matrices
Chapter 4. Time Response I may not have gone where I intended to go, but I think I have ended up where I needed to be. Pusan National University Intelligent.
Lecture 6: Time Domain Analysis and State Space Representation
Kalman Filter: Bayes Interpretation
Linear Equations in Linear Algebra
Chapter 4 Systems of Linear Equations; Matrices
The sum of an Infinite Series
Presentation transcript:

Controller Design using State Feedback and Observer Model Based Development of Embedded Systems 2014

Overview State-Space Feedback Observer Allows to control several state variables simultaneously Works if the system is controllable Popular method: LQ design Integral control can be added by simple ad hoc trick Observer Often, not all states of the system are observable We can design an observer If the system is observable Observer can be designed with prespecified poles Poles determine how fast the observer will converge to correct state estimate State-Space Feedback with Observer Obtained by combining the above methods

State-Space Feedback Inverted Pendulum Example: We want to control both angle and speed Check whether the system is controllable rank(ctrb(A_pend,B_pend)) should be 4. gen_lqr.m Look at model in state_feedback.mdl Q = eye(4) ; % Make an identity matrix Q(2,2) = 10; % define penalties for, e.g., speed and angle Q(3,3) = 500; R = 1; K = lqr(A_pend,B_pend,Q,R) % calculate feedback matrix

Adding Integral control In cases, where steady_state error is an issue Or just, to get smoother behavior Same setup for inverted pendulum gen_lqr_int.m Aext = [A_pend , zeros(4,1) ; 1 0 0 0 0]; % add a component to the state Bext = [B_pend ; 0]; Cext = [C_pend , zeros(2,1)]; Dext = [D_pend]; Qext = zeros(5,5) ; % Make a zero matrix Qext(1,1) = 10; Qext(3,3) = 500; Qext(5,5) = 10; R = 1; Kext = lqr(Aext,Bext,Qext,R)

Observer In general not all states are observable E.g., assume only position and angular speed observable Same setup for inverted pendulum Check whether the system is controllable rank(obsv(A_pend,C_pend)) should be 4. See how fast the system is Done by finding poles of the closed system: eig(A_pend - B_pend*K) Define poles of the observer (should be faster than closed system) P = [-10 -12 -14 -16]; Construct the observer gain L = place(A_pend',C_pend',P)';

Observer (ctd) Expressing the Observer: Inputs (u,y) xhatdot = (A – LC) xhat + Bu + Ly Output = xhat In MATLAB, letting input be [u;y] P = [-50 -51 -52 -53]; L = place(A_pend',C_alt',P)'; A_obs = (A_pend - L*C_alt); B_obs = [B_pend , L]; C_obs = eye(4); D_obs = zeros(4,3);

About LQ Inputs: Penalty matrix 𝑄 for the state variables. Typically 𝑄 is a diagonal matrix, with each entry giving a penalty for each variable Penalty matrix 𝑅 for the control input(s). Typically a diagonal matrix The lqr(A,B,𝑄,𝑅) command in MATLAB computes the feedback matrix K so that the total penalty 0 ∞ 𝒙𝑇𝑄𝒙+𝑢𝑇𝑅𝑢 𝑑𝑡 is minimized

About Poles A system, whose dynamics is given by 𝑑𝑥 𝑑𝑡 =𝐴𝑥+ 𝐵𝑢 has in general a number of (complex) poles (number is dim of A), which say how fast the system converges of diverges. A pole p means that one component of explicit expression for dynamics evolves like 𝑒 𝑝𝑡 Thus, a pole with positive real-part means divergence. Poles with large negative real-part means quick convergence. When designing observer, it is important that observer converges significantly faster than the observed system. Poles can be 5-10 times larger (should all be negative)