State-Space Modeling

Similar documents
Nonlinear Systems and Control Lecture # 15 Positive Real Transfer Functions & Connection with Lyapunov Stability. p. 1/?

Lecture 1: Introduction to Dynamical Systems

1 Determinants and the Solvability of Linear Systems

General Framework for an Iterative Solution of Ax b. Jacobi s Method

CONTROLLABILITY. Chapter Reachable Set and Controllability. Suppose we have a linear system described by the state equation

Lecture 2 Linear functions and examples

8. Linear least-squares

Matlab and Simulink. Matlab and Simulink for Control

ECE 516: System Control Engineering

RLC Circuit Response and Analysis (Using State Space Method)

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I

x = + x 2 + x

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI

Introduction to Engineering System Dynamics

Question 2: How do you solve a matrix equation using the matrix inverse?

University of Lille I PC first year list of exercises n 7. Review

3.1 State Space Models

MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).

Inner product. Definition of inner product

is identically equal to x 2 +3x +2

The dynamic equation for the angular motion of the wheel is R w F t R w F w ]/ J w

LS.6 Solution Matrices

Dynamic Process Modeling. Process Dynamics and Control

INTRODUCTION (Syllabus, Numerical Methods & Computational Tools)

Solving Systems of Linear Equations Using Matrices

G(s) = Y (s)/u(s) In this representation, the output is always the Transfer function times the input. Y (s) = G(s)U(s).

19 LINEAR QUADRATIC REGULATOR

SOLVING LINEAR SYSTEMS

Engineering: Electrical Engineering

Cryptography and Network Security. Prof. D. Mukhopadhyay. Department of Computer Science and Engineering. Indian Institute of Technology, Kharagpur

Lecture 5: Singular Value Decomposition SVD (1)

DATA ANALYSIS II. Matrix Algorithms

An Introduction to Using Simulink

( ) which must be a vector

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Linear Control Systems

Linear-Quadratic Optimal Controller 10.3 Optimal Linear Control Systems

CHAPTER 2. Eigenvalue Problems (EVP s) for ODE s

Understanding and Applying Kalman Filtering

Mathematics (MAT) MAT 061 Basic Euclidean Geometry 3 Hours. MAT 051 Pre-Algebra 4 Hours

Equations, Inequalities & Partial Fractions

Dynamic Eigenvalues for Scalar Linear Time-Varying Systems

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Course 8. An Introduction to the Kalman Filter

LINEAR ALGEBRA. September 23, 2010

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

Linear Algebra Notes

Lecture 7: Finding Lyapunov Functions 1

by the matrix A results in a vector which is a reflection of the given

1 Introduction to Matrices

3.6. Partial Fractions. Introduction. Prerequisites. Learning Outcomes

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

POTENTIAL OF STATE-FEEDBACK CONTROL FOR MACHINE TOOLS DRIVES

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes

the points are called control points approximating curve

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

Review of First- and Second-Order System Response 1

FUZZY CLUSTERING ANALYSIS OF DATA MINING: APPLICATION TO AN ACCIDENT MINING SYSTEM

6 Systems Represented by Differential and Difference Equations

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 3: Wednesday, Feb 8

Solving simultaneous equations using the inverse matrix

MCE380: Measurements and Instrumentation Lab. Chapter 9: Force, Torque and Strain Measurements

Numerical methods for American options

These axioms must hold for all vectors ū, v, and w in V and all scalars c and d.

MATH APPLIED MATRIX THEORY

Vector Spaces; the Space R n

Model Order Reduction for Linear Convective Thermal Flow

NUMERICAL METHODS TOPICS FOR RESEARCH PAPERS

MATHEMATICS. Administered by the Department of Mathematical and Computing Sciences within the College of Arts and Sciences. Degree Requirements

MAT 242 Test 2 SOLUTIONS, FORM T

Notes on Determinant

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

Lecture 5 Rational functions and partial fraction expansion

Chapter 12 Modal Decomposition of State-Space Models 12.1 Introduction The solutions obtained in previous chapters, whether in time domain or transfor

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

Lecture 1: Systems of Linear Equations

TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA

CHAPTER 3. INTRODUCTION TO MATRIX METHODS FOR STRUCTURAL ANALYSIS

Prerequisite: High School Chemistry.

8.1. Cramer s Rule for Solving Simultaneous Linear Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Elasticity Theory Basics

Dual Degree Agreement Computer Science / Applied Mathematics

Lecture 7 Circuit analysis via Laplace transform

x y The matrix form, the vector form, and the augmented matrix form, respectively, for the system of equations are

WEEK #3, Lecture 1: Sparse Systems, MATLAB Graphics

is in plane V. However, it may be more convenient to introduce a plane coordinate system in V.

A Direct Numerical Method for Observability Analysis

Applications to Data Smoothing and Image Processing I

Springs and Dampers. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 2 Fall 2011

SALEM COMMUNITY COLLEGE Carneys Point, New Jersey COURSE SYLLABUS COVER SHEET. Action Taken (Please Check One) New Course Initiated

30. Bode Plots. Introduction

Using the Theory of Reals in. Analyzing Continuous and Hybrid Systems

Mathematical finance and linear programming (optimization)

Impulse Response Functions

FEGYVERNEKI SÁNDOR, PROBABILITY THEORY AND MATHEmATICAL

Chapter 3: Mathematical Models and Numerical Methods Involving First-Order Differential Equations

Systems of Linear Equations

Continued Fractions and the Euclidean Algorithm

Transcription:

MCE441: Intr. Linear Control Systems Lecture 16: State-Space Realizations TF-SS Conversion Linearization of a nonlinear system about an equilibrium point Dorf Ch.3 Cleveland State University Mechanical Engineering Hanz Richter, PhD Instructor MCE441 p.1/22 State-Space Modeling The state-space approach takes into account intermediate variables between input and output: state variables The state variables may correspond to actual physical quantities or may be just mathematical constructs The state vector is composed of n state variables, where n is the system order Unlike transfer functions, state-space models can include nonlinearities. Here we focus on linear, time-invariant state-space systems Digital controllers are based on state-space representations of the control TF It is possible to make conversions between TF and SS. MCE441 p.2/22

State-Space Modeling... To go from TF to SS is to obtain a SS realization of the TF A given TF admits an infinite number of SS realizations A general (possibly nonlinear) nth-order state-space model with m inputs and p outputs has the form: ẋ 1 = f 1 (x 1, x 2,...x n, u 1, u 2,...u m ) ẋ 2 = f 2 (x 1, x 2,...x n, u 1, u 2,...u m ). ẋ n = f n (x 1,x 2,...x n, u 1,u 2,...u m ) y 1 = h 1 (x 1,x 2,...x n, u 1,u 2,...u m ). y p = h p (x 1, x 2,...x n,u 1, u 2,...u m ) MCE441 p.3/22 State-Space Modeling... With SS, we replace a single n th order ODE by n 1st order ones. The column vector x = [x 1,x 2,...x n ] T is called the state vector The set where x belongs is the state space For MCE441 we use R n as the state space. Others can be used too. The column vector u = [u 1,u 2...u m ] T is the input vector The column vector y = [y 1,y 2,...y p ] T is the output vector MCE441 p.4/22

Linear State-Space Systems In a linear SS system, the f i and h i are linear functions, so that: ẋ = Ax + Bu, y = Cx + Du A is an n-by-n matrix, B is n-by-m, C is p-by-n and D is p-by-m. Conversion to TF (prove it using Laplace transform) Y (s) U(s) = G(s) = C(sI A) 1 B + D It can be shown that the poles of G(s) are the eigenvalues of A. MCE441 p.5/22 Example b m k u Mass-spring-damper system. Choosing position and velocity as states, we find the following representation: [ ] [ ] [ ] [ ] ẋ 1 0 1 x 1 = + u ẋ 2 k b b m x 2 0 1 m MCE441 p.6/22

Example Following our I/O approach we would have found: mÿ + bẏ + ky = u which gives a transfer function G(s) = Y (s) U(s) = 1 ms 2 + bs + k We can check that G(s) = C(sI A) 1 B + D MCE441 p.7/22 Another Example Find a ss description of the the following RLC circuit. Find the TF between the input and output voltages. V i L R V o i C MCE441 p.8/22

Solution MCE441 p.9/22 Solution MCE441 p.10/22

Realization of Transfer Functions If there are no zeros, obtain the I/O differential equation and define the n states to be succesive derivatives of the output, starting with the 0th order (the output itself) until the derivative of order (n 1). Write equations of the form ẋ i = x i+1 for i = 1, 2..n 1. Find ẋ n from the I/O equation itself Example: Realize G(s) = 2 s 2 +s+1 MCE441 p.11/22 Solution MCE441 p.12/22

Realization of Transfer Functions Often, zeros are present. That is: G(s) = b 0s n + b 1 s n 1 +... + b n 1 s + b n s n + a 1 s n 1 +... + a n 1 s + a n Use a canonical realization (one choice among infinite) State definition: x 1 = y β 0 u x 2 = ẏ β 0 u β 1 u = ẋ 1 βu. x n = y (n 1) β 0 u (n 1)... β n 1 u = ẋ n 1 β n 1 u MCE441 p.13/22 Realization of Transfer Functions... Coefficient definition: β 0 = b 0 β 1 = b 1 a 1 β 0. β n = b n a 1 β n 1... a n β 0 System Matrices: A = 0 1 0... 0 0 0 1... 0..... 0 0 0... 1 a n a n 1 a n 2... a 1 MCE441 p.14/22

Realization of Transfer Functions... System Matrices... System Description: B = [β 1 β 2,...β n 1, β n ] T C = [1, 0,...0] D = β 0 = b 0 ẋ = Ax + Bu y = Cx + Du MCE441 p.15/22 Example (Dorf 3.1) Find a state-space realization of the transfer function G(s) = 2s 2 + 8s + 6 s 3 + 8s 2 + 16s + 6 MCE441 p.16/22

Solution MCE441 p.17/22 Solution MCE441 p.18/22

State-Space to TF Conversions in Matlab Old-fashioned method: To go from tf to ss: [A,B,C,D]=tf2ss(num,den) To go from ss to tf: [num,den]=ss2tf(a,b,c,d) New method: Create a tf object: >>tf_sys=tf(num,den) Convert to ss: >>sys_ss=ss(tf_sys) Extract system matrices: [A,B,C,D]=ssdata(sys_ss) Go back to tf: tf_sys=tf(sys_ss) Note: The ss realization in the old method uses the control canonical form. The new method uses an efficient numerical procedure. The second method is preferred since it is required for conversions to and from discrete time. MCE441 p.19/22 Linearization - Equilibrium Points An equilibrium point or fixed point of a control system under constant control u 0 is defined by the property ẋ = f(x,u 0 ) = 0 In nonlinear systems, multiple equilibrium points can exist. For example, the system ẋ 1 ẋ 2 = x 2 1 u = x 1 x 2 2 x 2 u has 4 equilibrium points for u 0 = 1. Find them. MCE441 p.20/22

Linearization - Equilibrium Points We may linearize a nonlinear system about an equilibrium point by using the Jacobian of f. In doing so, we obtain a linear state-space system for state and control deviations: x = A x + B u. As an example, we linearize the above system about u 0 = 1 and x 0 = [1,0] T x 1 = f 1 x 1 x 1 + f 1 x 2 x 2 + f 1 u u x 2 = f 2 x 1 x 1 + f 2 x 2 x 2 + f 2 u u MCE441 p.21/22 Linearization - Equilibrium Points The matrix A is obtained by taking all partial derivatives of f with respect to all variables (A = {a ij } = f i x j ), evaluated at (u 0,x 0 ). The matrix B is obtained by taking partial derivatives w.r.t. all control components: B = {b i } = f i u i. Note that the linearized system is valid only in close proximity to (u 0,x 0 ). MCE441 p.22/22