Module 02 CPS Background: Linear Systems Preliminaries

Similar documents
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 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control

Module 07 Controllability and Controller Design of Dynamical LTI Systems

Module 03 Linear Systems Theory: Necessary Background

Module 08 Observability and State Estimator Design of Dynamical LTI Systems

Module 04 Optimization Problems KKT Conditions & Solvers

Identification Methods for Structural Systems

Module 02 Control Systems Preliminaries, Intro to State Space

EE C128 / ME C134 Final Exam Fall 2014

Problem 1 Cost of an Infinite Horizon LQR

1. Find the solution of the following uncontrolled linear system. 2 α 1 1

Module 06 Stability of Dynamical Systems

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

Semidefinite Programming Duality and Linear Time-invariant Systems

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

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τ

Module 05 Introduction to Optimal Control

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

Chap 3. Linear Algebra

EE221A Linear System Theory Final Exam

Linear System Theory

Linear Algebra- Final Exam Review

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

CONTROL DESIGN FOR SET POINT TRACKING

March 5, 2012 MATH 408 FINAL EXAM SAMPLE

Math Ordinary Differential Equations

Optimization Tutorial 1. Basic Gradient Descent

EE363 homework 7 solutions

1. The Transition Matrix (Hint: Recall that the solution to the linear equation ẋ = Ax + Bu is

Control Systems Design

Advanced Mechatronics Engineering

Balanced Truncation 1

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Chapter 3. LQ, LQG and Control System Design. Dutch Institute of Systems and Control

LINEAR ALGEBRA QUESTION BANK

Structural and Multidisciplinary Optimization. P. Duysinx and P. Tossings

minimize x subject to (x 2)(x 4) u,

Lecture 2 and 3: Controllability of DT-LTI systems

Module 09 Decentralized Networked Control Systems: Battling Time-Delays and Perturbations

Module 03 Modeling of Dynamical Systems

Control Systems I. Lecture 2: Modeling and Linearization. Suggested Readings: Åström & Murray Ch Jacopo Tani

Optimal Control. Quadratic Functions. Single variable quadratic function: Multi-variable quadratic function:

Exam. 135 minutes, 15 minutes reading time

OPTIMAL CONTROL. Sadegh Bolouki. Lecture slides for ECE 515. University of Illinois, Urbana-Champaign. Fall S. Bolouki (UIUC) 1 / 28

Introduction to Modern Control MT 2016

ECEEN 5448 Fall 2011 Homework #5 Solutions

ft-uiowa-math2550 Assignment OptionalFinalExamReviewMultChoiceMEDIUMlengthForm due 12/31/2014 at 10:36pm CST

Math Abstract Linear Algebra Fall 2011, section E1 Practice Final. This is a (long) practice exam. The real exam will consist of 6 problems.

Constrained Optimization and Lagrangian Duality

LQR, Kalman Filter, and LQG. Postgraduate Course, M.Sc. Electrical Engineering Department College of Engineering University of Salahaddin

Example Linear Algebra Competency Test

Review problems for MA 54, Fall 2004.

x 3y 2z = 6 1.2) 2x 4y 3z = 8 3x + 6y + 8z = 5 x + 3y 2z + 5t = 4 1.5) 2x + 8y z + 9t = 9 3x + 5y 12z + 17t = 7

MAT Linear Algebra Collection of sample exams

Lecture 4: Analysis of MIMO Systems

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

Subject: Optimal Control Assignment-1 (Related to Lecture notes 1-10)

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

6.241 Dynamic Systems and Control

Introduction to Machine Learning Lecture 7. Mehryar Mohri Courant Institute and Google Research

Discrete and continuous dynamic systems

Math 216 Final Exam 14 December, 2017

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

EE C128 / ME C134 Midterm Fall 2014

Linear dynamical systems with inputs & outputs

Chap 4. State-Space Solutions and

Homework sheet 4: EIGENVALUES AND EIGENVECTORS. DIAGONALIZATION (with solutions) Year ? Why or why not? 6 9

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

Denis ARZELIER arzelier

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

FEL3210 Multivariable Feedback Control

1. Matrix multiplication and Pauli Matrices: Pauli matrices are the 2 2 matrices. 1 0 i 0. 0 i

Module 07 Control Systems Design & Analysis via Root-Locus Method

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

I.3. LMI DUALITY. Didier HENRION EECI Graduate School on Control Supélec - Spring 2010

E5295/5B5749 Convex optimization with engineering applications. Lecture 5. Convex programming and semidefinite programming

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

Reduction to the associated homogeneous system via a particular solution

Linear Matrix Inequalities in Robust Control. Venkataramanan (Ragu) Balakrishnan School of ECE, Purdue University MTNS 2002

6.241 Dynamic Systems and Control

EK102 Linear Algebra PRACTICE PROBLEMS for Final Exam Spring 2016

Linear Algebra Exercises

Topic # /31 Feedback Control Systems. Analysis of Nonlinear Systems Lyapunov Stability Analysis

Matrix Mathematics. Theory, Facts, and Formulas with Application to Linear Systems Theory. Dennis S. Bernstein

HW3 - Due 02/06. Each answer must be mathematically justified. Don t forget your name. 1 2, A = 2 2

Constrained Optimization

5. Duality. Lagrangian

System Identification by Nuclear Norm Minimization

Math 308 Practice Final Exam Page and vector y =

The Karush-Kuhn-Tucker conditions

Exercise 8: Frequency Response of MIMO Systems

Some solutions of the written exam of January 27th, 2014

ECE580 Fall 2015 Solution to Midterm Exam 1 October 23, Please leave fractions as fractions, but simplify them, etc.

The Wronskian as a Method for Introducing Vector Spaces

Nonlinear Optimization: What s important?

UNDERGROUND LECTURE NOTES 1: Optimality Conditions for Constrained Optimization Problems

IE 5531: Engineering Optimization I

Department of Mathematics, University of California, Berkeley. GRADUATE PRELIMINARY EXAMINATION, Part A Fall Semester 2014

EE 380. Linear Control Systems. Lecture 10

Mathematical Economics. Lecture Notes (in extracts)

Transcription:

Module 02 CPS Background: Linear Systems Preliminaries Ahmad F. Taha EE 5243: Introduction to Cyber-Physical Systems Email: ahmad.taha@utsa.edu Webpage: http://engineering.utsa.edu/ taha/index.html August 25, 2015 Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 1 / 14

In Class Assessment Exam Objective: assess students knowledge of the course prerequisites You are not supposed to do so much work for this exam it s only assessment, remember! You will receive a perfect grade whether you know the answers or not Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 2 / 14

Linear Algebra 1 Find the eigenvalues, eigenvectors, and inverse of matrix [ ] 1 4 A = 3 2 Answers Eigenvalues: λ 1,2 = 5, 2 Eigenvectors: v 1 = [ 1 1 ], v2 = [ 4 3 1 ] Inverse: A 1 = 1 10 [ 2 ] 4 3 1 Write A in the matrix diagonal transformation, i.e., A = TDT 1 D is the diagonal matrix containing the eigenvalues of A. Answers Diagonal Transformation: A = [ v 1 v 1 ] [ λ 1 0 0 λ 2 ] [v1 v 1 ] 1 Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 3 / 14

Linear Algebra 2 Find the determinant, rank, and null-space set of this matrix: [ 0 1 ] 2 B = 1 2 1 2 7 8 Answers det(b) = 0 rank(b) = 2 [ ] 3 null(b) = α 2 1, α R Is there a relationship between the determinant and the rank of a matrix? Answer Yes! Matrix drops rank if determinant = zero minimal of 1 zero evalue True or False? AB = BA for all A and B A and B are invertible (A + B) is invertible Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 4 / 14

LTI Systems 1 LTI dynamical system can be represented as follows: ẋ(t) = Ax(t) + Bu(t), x initial = x t0, (1) y(t) = Cx(t) + Du(t), (2) x(t): dynamic state-vector of the LTI system, u(t): control input-vector y(t): output-vector and A, B, C, D are constant matrices What is the closed-form, state solution to the above differential equation for any time-varying control input, i.e., x(t) =? Answer: x(t) = e A(t t 0) x t0 + t t 0 e A(t τ) Bu(τ) dτ Can you verify that the above solution is actually correct? Hint: ( b(θ) ) b(θ) d ( ) ( ) f (x, θ) dx = θ f (x, θ) dx + f b(θ), θ b (θ) f a(θ), θ a (θ) dθ a(θ) a(θ) }{{} Leibniz Differentiation Theorem Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 5 / 14

LTI Systems 2 What are the poles of the above dynamical system? Define asymptotic stability. What s the difference between marginal and asymptotic stability? Poles: eig(a) Asymptotic stability: poles strictly in the LHP Marginal stability: some poles can be on the imaginary axis ( What is the transfer function H (s) = Y (s) ) of the above system? U (s) TF: H(s) = C(sI A) 1 B + D Above TF valid for MIMO systems it becomes a TF matrix, rather than a scalar quantity See Chen [1995] for more details Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 6 / 14

LTI Systems 3 What is the state-transition matrix for the above system? Answer: φ(t, t 0 ) = e A(t t 0) How about linear, time-varying systems? Under what conditions is the above dynamical system controllable? Observable? Stabilizable? Detectable? Controllability Observability Stabilizability Detectability Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 7 / 14

Optimal Control and Dynamic Observers 1 Define the linear quadratic regulator problem for LTI systems in both, words and equations Objective: minimize the total cost of state-deviation and consumed control (i.e., taking control actions) minimize u(t),x(t) Constraints: state-dynamics, control inputs, initial conditions Equations: J = x (t 1)F(t 1)x(t 1) + t 1 t 0 ( x Qx + u Ru + 2x N u ) dt subject to ẋ(t) = Ax(t) + Bu(t) (3) x(t i) = x ti u U, x X Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 8 / 14

Optimal Control and Dynamic Observers 2 What is the optimal solution to an optimal control problem? What does it physically mean for CPSs? It s the optimal trajectory of the control input and the corresponding state-trajectory Physical meaning: you re better off selecting this control input, among all other possibly infinite control input alternatives What is a generic dynamic observer? Luenberger observer? Answer: An estimator for internal states of the system Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 9 / 14

Optimization 1 [ Let f (x) be a multi-variable function of three variables, as follows: f (x 1, x 2, x 3) = x 1x 2x 3 + 2x 3 2 x 2 1 4 cos(x 3x 2) + log(cos(x 2) 2 ) + 4x 3 2x 1 Find the Jacobian and Hessian of f (x) [ 4x 1x2 3 + x 3x 2 2 ] f = 6x1 2 x2 2 + x 1x 3 (2 sin(x 2))/ cos(x 2) + 4x 3 sin(x 2x 3) x 1x 2 + 4x 2 sin(x 2x 3) + 4, 2 f = 4x 2 3 12x 1 x 2 2 + x 3 x 2 12x 1 x 2 2 + x 3 12x 1 2 x 2 (2 sin(x 2 )2 )/ cos(x 2 ) 2 + 4x 3 2 cos(x 2 x 3 ) 2 x 1 + 4 sin(x 2 x 3 ) + 4x 2 x 3 cos(x 2 x 3 ) x 2 x 1 + 4 sin(x 2 x 3 ) + 4x 2 x 3 cos(x 2 x 3 ) 4x 2 2 cos(x 2 x 3 ) ] Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 10 / 14

Optimization 2 What is an optimization problem? An unfeasible, feasible solution, an optimal solution to a generic optimization problem? What is a convex optimization problem? Define it rigorously An optimization problem of finding some x X such that: f (x ) = min{f (x) : x X } * X R n is the feasible set and f (x) : R n R is the objective, is called convex if X is a closed convex set and f (x) is convex on R n Alternatively, convex optimization problems can be written as: minimize f (x) (4) subject to g i (x) 0, i = 1,..., m (5) * f, g 1,..., g m : R n R are convex See [Boyd & Vandenberghe, 2004] for more Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 11 / 14

Optimization 3 What is a semi-definite program (SDP)? Define it rigorously. A semidefinite program minimizes a linear cost function of the optimization variable z R n subject to a matrix inequality condition An SDP can formulated as follows: * Where minimize f (z) (6) z R n subject to F(z) O, (7) F(z) F 0 + Given the following optimization problem, n z i F i i=1 minimize c(x) x subject to h(x) 0 (8) g(x) = 0, what are the corresponding Karush Kuhn Tucker (KKT) conditions? Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 12 / 14

Questions And Suggestions? Thank You! Please visit engineering.utsa.edu/ taha IFF you want to know more Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 13 / 14

References I Boyd, S., & Vandenberghe, L. (2004). Convex Optimization. New York, NY, USA: Cambridge University Press. Chen, C.-T. (1995). Linear System Theory and Design. New York, NY, USA: Oxford University Press, Inc., 2nd ed. Ahmad F. Taha Module 02 CPS Background: Mathematical Preliminaries 14 / 14