CDS 101/110: Lecture 3.1 Linear Systems

Similar documents
CDS 101/110: Lecture 3.1 Linear Systems

CDS 101: Lecture 4.1 Linear Systems

CDS 101/110: Lecture 6.2 Transfer Functions

Time Domain Analysis of Linear Systems Ch2. University of Central Oklahoma Dr. Mohamed Bingabr

Outline. Classical Control. Lecture 1

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

Systems Analysis and Control

CDS 101/110a: Lecture 10-2 Control Systems Implementation

CDS 101/110a: Lecture 8-1 Frequency Domain Design

Introduction to Modern Control MT 2016

CDS 101/110a: Lecture 10-1 Robust Performance

Dr. Ian R. Manchester

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

CDS 101: Lecture 5-1 Reachability and State Space Feedback

Control Systems I Lecture 10: System Specifications

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

STABILITY. Have looked at modeling dynamic systems using differential equations. and used the Laplace transform to help find step and impulse

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

Linear Systems. Chapter Basic Definitions

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall 2007

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Dynamic Response. Assoc. Prof. Enver Tatlicioglu. Department of Electrical & Electronics Engineering Izmir Institute of Technology.

APPPHYS 217 Tuesday 6 April 2010

CDS 110: Lecture 2-2 Modeling Using Differential Equations

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

Systems Analysis and Control

Systems Analysis and Control

Classify a transfer function to see which order or ramp it can follow and with which expected error.

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

Digital Control Systems

D(s) G(s) A control system design definition

Richiami di Controlli Automatici

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

CDS 101/110: Lecture 10.3 Final Exam Review

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Control of Mobile Robots

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering 2.04A Systems and Controls Spring 2013

Linear State Feedback Controller Design

Digital Control: Part 2. ENGI 7825: Control Systems II Andrew Vardy

Introduction to Feedback Control

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

Discrete Systems. Step response and pole locations. Mark Cannon. Hilary Term Lecture

Dynamic circuits: Frequency domain analysis

Control Systems Design

Process Control & Instrumentation (CH 3040)

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

Homework 7 - Solutions

ECE 3793 Matlab Project 3 Solution

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

Lab Experiment 2: Performance of First order and second order systems

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

Systems Analysis and Control

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

5HC99 Embedded Vision Control. Feedback Control Systems. dr. Dip Goswami Flux Department of Electrical Engineering

INTRODUCTION TO DIGITAL CONTROL

ECE-320: Linear Control Systems Homework 8. 1) For one of the rectilinear systems in lab, I found the following state variable representations:

ECE317 : Feedback and Control

CDS 101/110a: Lecture 2.1 Dynamic Behavior

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

CDS 101/110a: Lecture 2.1 Dynamic Behavior

Dynamics of structures

Prüfung Regelungstechnik I (Control Systems I) Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

EE C128 / ME C134 Fall 2014 HW 8 - Solutions. HW 8 - Solutions

Differential Equations and Lumped Element Circuits

Control of Manufacturing Processes

Problem Weight Total 100

Topic # Feedback Control Systems

EE Homework 12 - Solutions. 1. The transfer function of the system is given to be H(s) = s j j

Time-Invariant Linear Quadratic Regulators Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 2015

Dr Ian R. Manchester

Module 06 Stability of Dynamical Systems

(a) Find the transfer function of the amplifier. Ans.: G(s) =

APPLICATIONS FOR ROBOTICS

Review: transient and steady-state response; DC gain and the FVT Today s topic: system-modeling diagrams; prototype 2nd-order system

Lecture 5: Frequency domain analysis: Nyquist, Bode Diagrams, second order systems, system types

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

agree w/input bond => + sign disagree w/input bond => - sign

AMME3500: System Dynamics & Control

Systems Analysis and Control

Problem Weight Score Total 100

EEE582 Homework Problems

Return Difference Function and Closed-Loop Roots Single-Input/Single-Output Control Systems

Transient Response of a Second-Order System

Systems Analysis and Control

CDS 101/110a: Lecture 1.1 Introduction to Feedback & Control. CDS 101/110 Course Sequence

Time-Invariant Linear Quadratic Regulators!

L2 gains and system approximation quality 1

Lecture 9. Welcome back! Coming week labs: Today: Lab 16 System Identification (2 sessions)

Active Control? Contact : Website : Teaching

AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Introduction to Automatic Control & Linear systems (time domain)

Laboratory handout 5 Mode shapes and resonance

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

Lecture 25: Tue Nov 27, 2018

Represent this system in terms of a block diagram consisting only of. g From Newton s law: 2 : θ sin θ 9 θ ` T

Transient response via gain adjustment. Consider a unity feedback system, where G(s) = 2. The closed loop transfer function is. s 2 + 2ζωs + ω 2 n

ECE 3793 Matlab Project 3

Time Response of Systems

Transcription:

CDS /: Lecture 3. Linear Systems Goals for Today: Describe and motivate linear system models: Summarize properties, examples, and tools Joel Burdick (substituting for Richard Murray) jwb@robotics.caltech.edu, X439 Gates-Thomas 245 Convolution equation describing solution in response to an input Step response, impulse response Frequency response Characterize stability and performance of linear systems in terms of eigenvalues Reading: Åström and Murray, Analysis and Design of Feedback Systems, Ch 5 Homework: On course website Monday night

Quick Review: Stability and Performance Key topics Stability of equilibrium points Eigenvalues determine stability for linear systems Local versus global behavior CDS 4, 24 goes into much more detail 2

Linear Systems Recall: Linearity of Functions f: R nn R nn Addition: ff x + y = ff xx + ff(yy) Scaling: ff(α x) = α ff(x) Zero at the Origin: ff() = ff αx + βy = αff xx + βff(yy) Linear System: SS: uu tt xx tt If SS: uu tt xx tt ; SS: uu 2 tt xx 2 tt αxx tt + βxx 2 tt = SS αuu tt + βuu 2 tt Linear Control System: xx (tt) = AA xx tt + BB uu tt yy tt = CC xx tt + DD uu tt xx tt is system state ; uu tt are control inputs y tt is the system output, (what is observed) 3

Linear Systems u u 2 u + u 2 u - 5 y + + - 5 2-2 5 y 2 y + y 2 y - 5.5 -.5 5 2-2 5 Input/output linearity at x() = Linear systems are linear in initial condition and input need to use x() = to add outputs together For different initial conditions, you need to be more careful Linear system step response and frequency response scale with input amplitude 2X input 2X output Allows us to use ratios and percentages in step or frequency response. These are independent of input amplitude Limitation: input saturation only holds up to certain input amplitude 4

Why are Linear Systems Important? Many important examples Electronic circuits Especially true after feedback Frequency response is key performance specification 5

Why are Linear Systems Important? Many important examples Mechanical Systems q q 2 u(t) m m 2 k k 2 k 3 m c x f M 6

Why are Linear Systems Important? 7

Why are Linear Systems Important? Many important examples Electronic circuits Many important tools Frequency and step response, Traditional tools of control theory Developed in 93 s at Bell Labs Classical control design toolbox Nyquist plots, gain/phase margin Loop shaping CDS q 2 u(t) Optimal control and estimators Linear quadratic regulators Kalman estimators CDS 2 q k m m 2 k 2 k 3 c Robust control design H control design µ analysis for structured uncertainty CDS 22/ 23 8

Solutions of Linear Time Invariant Systems: The Matrix Exponential Linear Time Invariant (LTI) System: If Linear System input u(t) leads to output y(t) If u(t+t) leads to output y(t+t), the system is time invariant Scalar LTI system, with no input Matrix LTI system, with no input Matrix Exponential 9

The Matrix Exponential Recall scalar exponential formula: ee xx = + xx + xx2 + xx3! 2! 3! +, < xx < Matrix exponential defined analogously: ee MM = II +! MM + 2! MM2 + 3! MM3 + = Some useful properties of the Matrix Exponential If MM = mm mm nnnn, then ee MM = kk= kk! MMkk ee mm ee mm nnnn If matrix Y is invertible, then ee YYYYYY = YYee MM YY If M is diagonalizable (MM = TTTTTT ), then ee MM = TTee DD TT

The Convolution Integral: Step Let HH tt denote the response of a LTI system to a unit step input at t=. Assuming the system starts at Equilibrium The response to the steps are: First step input at time t=: HH tt tt uu tt Second step input at time tt : HH tt tt (uu tt uu tt ) Third step input at time tt 2 : HH tt tt 2 (uu tt 2 uu tt ) By linearity, we can add the response yy tt = HH tt tt uu tt + HH tt tt uu tt uu tt + = HH tt tt HH tt tt uu tt + HH tt tt HH tt tt 2 uu(tt ) + tt <tt = HH tt tt nn HH tt tt nn+ tt nn+ tt nn nn= Taking the limit as tt nn+ tt nn yy tt = HH tt uu(tt nn )(tt nn+ tt nn ) tt ττ uu ττ dddd

Impulse Response What is the impulse response due to u(t)=δ(t)? take limit as dt! but keep unit area u /dt homogeneous dt t Apply this unit impulse to the system (with x()=): Analogous to discrete-time response to input at time zero

Response to inputs: Convolution Impulse response, h(t) = Ce At B Response to input impulse Equivalent to Green s function homogeneous Linearity compose response to arbitrary u(t) using convolution Decompose input into sum of shifted impulse functions Compute impulse response for each Sum impulse response to find y(t) Take limit as dt Complete solution: use integral instead of sum linear with respect to initial condition and input 2X input 2X output when x() = 3

Matlab/Python Tools for Linear Systems A = [- ; -]; B = [; ]; C = [ ]; D = []; x = [;.5]; sys = ss(a,b,c,d); initial(sys, x); impulse(sys); t = :.:; u =.2*sin(5*t) + cos(2*t); lsim(sys, u, t, x); Amplitude Amplitude To: Y() To: Y().8.6.4.2 Initial Condition Results 2 3 4 5 6 7.5 Linear Simulation Results Other MATLAB commands gensig, square, sawtooth produce signals of diff. types step, impulse, initial, lsim time domain analysis bode, freqresp, evalfr frequency domain analysis -.5 2 3 4 5 6 7 8 9 Time (sec.) ltiview linear time invariant system plots 4

Input/Output Performance Return to system with inputs How does system response to changes in input values? Transient response: What happens right after a new input is applied Transient Steady State Steady state response: What happens a long time after the input is applied Stability vs input/output performance Systems that are close to instability typically exhibit poor input/output performance Nearly unstable systems (slow convergence) often exhibit ringing (highly oscillatory response to [non-periodic] inputs) Mass spring system (L2.) 5

Step Response Output characteristics in response to a step input Rise time: time required to move from 5% to 95% of final value Overshoot: ratio between amplitude of first peak and steady state value Settling time: time required to remain w/in p% (usually 2%) of final value Steady state value: final value at t =.5 Overshoot Amplitude.5 Rise time Settling time Steady state value 5 5 2 25 Time (sec.) 6

Second Order Systems Many important examples: Insight to response for higher orders (eigenvalues of A are either real or complex) Exception is non-diagonalizable A (non-trivial Jordan form) 2.8.6.4 T=2π/ω.2 y.8.6.4 ζ.2 5 5 2 25 time (sec) Analytical formulas exist for overshoot, rise time, settling time, etc Will study more next week 7

Stability of Linear Systems Q: when is the system asymptotically stable? Stability is determined by the eigenvalues of the matrix A Simple case: diagonal system Stable if λ ii Asy stable if λ ii < Unstable if λ ii > More generally: transform to Jordan form Asy stable if Re(λ ii ) < Unstable if Re(λ ii ) > Indeterminate if Re( i ) = Form of eigenvalues determines system behavior Linear systems are automatically globally stable or unstable 8

Eigenstructure of Linear Systems Real e-values Re(λ i ) < Real e-values Re(λ i ) < Re(λ i ) > Complex e-values Re(λ i ) = Complex e-values Re(λ i ) < 9

Frequency Response Measure steady state response of system to sinusoidal input Example: audio amplifier would like consistent ( flat ) amplification between 2 Hz & 2, Hz Individual sinusoids are good test signals for measuring performance in many systems Approach: plot input and output, measure relative amplitude and phase Use MATLAB or SIMULINK to generate response of system to sinusoidal output Gain = A y /A u Phase = 2π ΔT/T May not work for nonlinear systems System nonlinearities can cause harmonics to appear in the output Amplitude and phase may not be well-defined For linear systems, frequency response is always well defined Amplitude.5 u.5 -.5 - A u A y -.5 5 5 2 Time (sec.) ΔT T y 2

Computing Frequency Responses Technique #: plot input and output, measure relative amplitude and phase Generate response of system to sinusoidal output.5 u A u y Gain = A y /A u Phase = 2π ΔT/T For linear system, gain and phase don t depend on the input amplitude.5 -.5 - A y ΔT T Technique #2 (linear systems): use bode (or freqresp) command Assumes linear dynamics in state space form: Gain plotted on log-log scale db = 2 log (gain) Phase plotted on linear-log scale Phase (deg) Magnitude (db) -.5 5 5 2 2 - -2-3 -4-5 -6-9 -8-27 bode(ss(a,b,c,d)) -36. Frequency (rad/sec) 2

Calculating Frequency Response from convolution equation (more later) Convolution equation describes response to any input; use this to look at response to sinusoidal input: u(t) Transient (decays if stable) Ratio of response/input Frequency response 22

q k q 2 u(t) m m 2 k 2 Spring Mass System k 3 c Eigenvalues of A: Frequency response: C(jωI-A) - B+D For zero damping, jω and jω 2 ω and ω 2 correspond frequency response peaks The eigenvectors for these eigenvalues give the mode shape: In-phase motion for lower freq. Out-of phase motion for higher freq. Frequency Response Phase [deg] Gain (log scale)... -9-8 -27-36 Frequency [rad/sec]. 23

Summary: Linear Systems u y + - 5-5 2-2 5 + - 5.5 -.5 5 2-2 5 Properties of linear systems Linearity with respect to initial condition and inputs Stability characterized by eigenvalues Many applications and tools available Provide local description for nonlinear systems 24

Linearization Around an Equilibrium Point 2 Linearize around x=x e x 2-2 -2 2 x Remarks In examples, this is often equivalent to small angle approximations, etc Only works near to equilibrium point Full nonlinear model Linear model (honest!) 25

Example: Inverted Pendulum on a Cart m f x M State: Input: u = F Output: y = x Linearize according to previous formula around = 27