ee 4314: control systems lectures: tue/thu, 3:30 pm - 4:50 pm, nh 202 instructor: indika...

36
EE 4314: Control Systems • Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 • Instructor: Indika Wijayasinghe, Ph.D. • Office hours: Tue/Thu 10:00 am – 12:00 noon, NH 250, or by appointment. • Course TAs: Ruoshi Zhang • Course info: http://www.uta.edu/ee/ngs/ee4314_control/ • Grading policy: o 5 Homework – 20% o 6 Labs – 20% o Midterm I (in-class) – 20% o Midterm II (take-home) – 20% o Final (in-class) – 20%

Upload: sherman-booth

Post on 05-Jan-2016

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

EE 4314: Control Systems

• Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 • Instructor: Indika Wijayasinghe, Ph.D.• Office hours: Tue/Thu 10:00 am – 12:00 noon, NH 250, or by

appointment.• Course TAs: Ruoshi Zhang

• Course info: http://www.uta.edu/ee/ngs/ee4314_control/

• Grading policy:o 5 Homework – 20%o 6 Labs – 20%o Midterm I (in-class) – 20%o Midterm II (take-home) – 20%o Final (in-class) – 20%

Page 2: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Syllabus

• Assignments:

─ Homework contains both written and/or computer simulations using MATLAB. Submit code to the TA’s if it is part of the assignments.

─ Lab sessions are scheduled in advance, bi-weekly, so that the TA’s can be in the lab (NH 148). While the lab session is carried out in a group, the Lab report is your own individual assignment.

─ Examinations: Three exams (two midterms, one final), in class or take home.

─ In rare circumstances (medical emergencies, for instance) exams may be retaken and assignments can be resubmitted without penalty.

─ Missed deadlines for take-home exams and homework: Maximum grade drops 15% per late day (every 24 hours late).

Page 3: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Honor Code

• Academic Dishonesty will not be tolerated. All homework and exams are individual assignments. Discussing homework assignments with your classmates is encouraged, but the turned-in work must be yours. Discussing exams with classmates is not allowed. Your take-home exams and homework will be carefully scrutinized to ensure a fair grade for everyone.

• Random quizzes on turned-in work: Every student will be required to answer quizzes in person during the semester for homework and take home exam. You will receive invitations to stop by during office hours. Credit for turned in work may be rescinded for lack of familiarity with your submissions.

• Attendance and Drop Policy: Attendance is not mandatory but highly encouraged. If you skip classes, you will find the homework and exams much more difficult. Assignments, lecture notes, and other materials are going to be posted, however, due to the pace of the lectures, copying someone else's notes may be an unreliable way of making up an absence. You are responsible for all material covered in class regardless of absences.

Page 4: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Textbooks

• Textbook:─ G.F. Franklin, J.D. Powell, A. Emami-Naeni, Feedback Control of Dynamic─ Systems, 7th Ed., Pearson Education, 2014, ISBN 978-0-13-349659-8

• Other materials (on library reserve)─ K. Ogata, Modern Control Engineering, 5-th ed, 2010, Pearson Prentice Hall

ISBN13:9780136156734, ISBN10:0136156738─ Student Edition of MATLAB Version 5 for Windows by Mathworks,

Mathworks Staff, MathWorks Inc.─ O. Beucher, M. Weeks, Introduction to Matlab & Simulink, A project

approach, 3-rd ed., Infinity Science Press, 2006, ISBN: 978-1-934015-04-9─ B.W. Dickinson, Systems: Analysis, Design and Computation, Prentice Hall,

1991, ISBN: 0-13-338047-5.─ R.C. Dorf, R.H. Bishop, Modern Control Systems, 10th ed., Pearson Prentice

Hall, 2005, ISBN: 0-13-145733-0

Page 5: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Description

• Catalog description: ─ Catalog description: EE 4314. CONTROL SYSTEMS (3-0) Analyses of closed

loop systems using frequency response, root locus, and state variable techniques. System design based on analytic and computer methods.

─ This is an introductory control systems course. It presents a broad overview of control techniques for continuous and discrete linear systems, and focuses on fundamentals such as modeling and identification of systems in frequency and state-space domains, stability analysis, graphical and analytical controller design methods.

─ The course material is divided between several areas:o Control Systems: classification, modeling, and identificationo Basics of Feedback: performance and stabilityo Control Design Methods: frequency domain, state-spaceo Programming exercises using MATLAB and Simulinko Laboratory experiments

Page 6: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Course Objectives

• Students should be familiar with the following topics:

─ Modeling of physical dynamic systems─ Block diagrams─ Specifications of feedback system performance─ Steady-state performance of feedback systems─ Stability of feedback systems─ Root-locus method of feedback system design─ Frequency-response methods─ Nyquist’s criterion of feedback loop stability─ Design using classical compensators─ State variable feedback

Page 7: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Textbook Reading and Review

• Course Refresher:─ Math: complex numbers, matrix algebra, vectors and trigonometry, differential

equations.─ Programming: MATLAB & Simulink─ EE 3317 (Linear Systems), 3318 (Discrete Signals and Systems)

• For weeks 1 & 2─ Read Chapter 1, Appendix A (Laplace Transformation) of Textbook─ Read History of Feedback Control by Frank Lewis

o http://www.uta.edu/utari/acs/history.htm

• Purpose of weekly assigned textbook readings─ To solidify concepts─ To go through additional examples─ To expose yourselves to different perspectives─ Reading is required. Problems or questions on exams might cover reading material

not covered in class.

Page 8: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Signals and Systems• Signal:

─ A set of data or information ─ Examples: audio, video, image, sonar, radar, etc.─ It provides information on the status of a physical system. ─ Any time dependent physical quantity

• System:─ Object that processes a set of signals (input) to produce another set of

signals (outputs).─ Examples:

o Hardware: Physical components such as electrical, mechanical, or hydraulic systems

o Software: Algorithm that computes an output from input signals

?x(t)

u(t) y(t)

Page 9: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Signal Classification

• Continuous Time vs. Discrete Time

─ Telephone line signals, Neuron synapse potentials

─ Stock Market, GPS signals

• Analog vs. Digital─ Radio Frequency

(RF) waves, battery power

─ Computer signals, HDTV images

Analog, continuous time Digital, continuous time

Analog, discrete time Digital, discrete time

Page 10: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Signal Classification• Deterministic vs. Random

─ Predictable: FM Radio Signals─ Non-predictable: Background

Noise Speech Signals

• Periodic vs. Aperiodic─ Sine wave─ Sum of sine waves with non-

rational frequency ratio

Page 11: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

System Classification• Linear vs. Nonlinear

─ Linear systems have the property of superpositiono If U →Y, U1 →Y1, U2 →Y2 then

U1+U2 → Y1+Y2 A*U →A*Y

─ Nonlinear systems do not have this property, and the I/O map is represented by a nonlinear mapping.o Examples: Diode, Dry Friction, Robot Arm at

High Speeds.

• Memoryless vs. Dynamical─ A memoryless system is represented by a

static (non-time dependent) I/O map: Y=f(U). o Example: Amplifier – Y=A*U, A- amplification

factor.─ A dynamical system is represented by a time-

dependent I/O map, usually a differential equation:o Example: dY/dt=A*u, Integrator with Gain A

0

0)sin(

2

2

2

2

L

g

dt

d

L

g

dt

d Exact Equation, nonlinear

Approximation around vertical equilibrium, linear

Page 12: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

System Classification• Time-Invariant vs. Time Varying

─ Time-invariant system parameters do not change over time. Example: pendulum, low power circuit, robots.

─ Time-varying systems perform differently over time. Example: human body during exercise, rocket.

• Stable vs. Unstable─ For a stable system, the output to bounded inputs is also bounded.

Example: pendulum at bottom equilibrium─ For an unstable system, the output diverges to infinity or to values

causing permanent damage. Example: Inverted pendulum.

stable unstable

Page 13: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

System Modeling

• Building mathematical models based on observed data, or other insight for the system.

─ Parametric models (analytical): ODE, PDE─ Non-parametric models: ex: graphical models - plots, or look-up

tables.

Page 14: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Types of Models• White (clear or glass) Box Model

─ Derived from first principles laws: physical, chemical, biological, economical, etc.

─ Examples: RLC circuits, MSD mechanical models (electromechanical system models)

• Black Box Model─ Model is based solely from measured data─ No or very little prior knowledge is used.─ Example: regression (data fit)

• Gray Box Model ─ Combination of the two─ Determination of the model structure relies on prior knowledge

while the model parameters are mainly determined by measurement data

Page 15: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

White Box Systems: Electrical

• Defined by Electro-Magnetic Laws of Physics: Ohm’s Law, Kirchoff’s Laws, Maxwell’s Equations

• Example: Resistor, Capacitor, Inductor

u

Riu

i

C

ui

L

Page 16: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

RLC Circuit as a System

Kirchoff’s Voltage Law (KVL):

u1

L

C

R

uu3

u2RLCq(t)

u(t) i(t)

Page 17: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

White Box Systems: Mechanical

Newton’s Law:

M

K

BF MSD

x(t)

F(t) x(t)

Mechanical-Electrical Equivalance:

F (force) ~V (voltage)x (displacement) ~ q (charge)M (mass) ~ L (inductance)B (damping) ~ R (resistance)1/K (compliance) ~ C (capacitance)

Page 18: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

White Box vs Black Box Models

White Box Models Black-Box Models

Information Source First Principle Experimentation

Advantages Good ExtrapolationGood understandingHigh reliability, scalability

Short time to developLittle domain expertise requiredWorks for not well understood systems

Disadvantages Time consuming and detailed domain expertise required

Not scalable, data restricts accuracy, no system understanding

Application Areas Planning, Construction, Design, Analysis, Simple Systems

Complex processesExisting systems

Page 19: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Linear Systems

• Why study continuous linear analysis of signals and systems when many systems are nonlinear in practice?

─ Basis for digital signals and systems─ Many dynamical systems are nonlinear but some techniques for

analysis of nonlinear systems are based on linear methods─ Methods for linear systems often work reasonably well, for

nonlinear systems as well─ If you don’t understand linear dynamical systems you certainly can’t

understand nonlinear systems

Page 20: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Linear Systems• State space form of linear time varying dynamical system

dx/dt= A(t)x(t) + B(t)u(t)

y(t) = C(t)x(t) + D(t)u(t)

where:x(t) = state vector (n-vector)u(t) = control vector (m-vector)y(t) = output vector (p-vector)A(t) = nxn system matrix, B(t) = nxm input matrixC(t) = pxn output matrix, D(t) = pxm matrix

• If A, B, C, D are constant matrices, then the system is called a Linear Time Invariant System of LTI system

Page 21: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Linear Systems in Frequency Domain

Page 22: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Block Diagrams• Block Diagram Model:

─ Helps understand flow of information (signals) through a complex system

─ Helps visualize I/O dependencies─ Elements of block diagram:

o Lines: Signalso Blocks: Systemso Summing junctionso Pick-off points

Transfer function Summer/Difference Pick-off point

H(s)U(s) Y(s)

+

U2

U1 U1+U2 U U

U

+

Page 23: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Block Diagram: Reduction Rules

Page 24: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Automatic Control

• Control: process of making a system variable converge to a reference value

─ Tracking control (servo): reference value = changing─ Regulation control: reference value = constant (stabilization)

• Open Loop vs. closed loop control

ControllerK(s)

PlantG(s)

+

-

Sensor GainH(s)

++

ControllerK(s)

PlantG(s)

r

r

y

- No output measurement - Known system- No disturbance

Page 25: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Feedback Control

• Role of feedback:─ Reduce sensitivity to system parameters (robustness)─ Disturbance rejection─ Track desired inputs with reduced steady state errors, overshoot,

rise time, settling time (performance)

• Systematic approach to analysis and design─ Select controller based on desired characteristics

• Predict system response to some input─ Speed of response (e.g., adjust to workload changes)

• Approaches to assessing stability

Page 26: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Feedback System Block Diagram

• Temperature control system─ Control variable: temperature─ Initial set temp=55F, At time=6, set temp=65F

Page 27: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Feedback System Block Diagram

• Process: house• Actuator: furnace• Sensor: Thermostat

• Controller: computes control input• Actuator: a device that influences the controlled

variable of the process• Disturbance: heat loss (unknown, undesired)

Page 28: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Key Transfer Functions

)()()()(

)( :Loop 21 sHsGsGsE

sB

)()()(1

)()(

)(

)( :

21

21

sHsGsG

sGsG

sR

sY

Feedback

PlantControllerS)(sU )(sY)(sR )(sE

Transducer

)(sB

+

)(1 sG )(2 sG

)(sH

Reference

Page 29: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Basic Control Actions: u(t)

)(

)()()(:control Derivative

)(

)()()(:control Integral

)(

)()()(:control alProportion

0

sKsE

sUte

dt

dKtu

s

K

sE

sUdtteKtu

KsE

sUteKtu

dd

it

i

pp

Page 30: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Summary of Basic Control• Proportional control

─ Multiply e(t) by a constant

• PI control─ Multiply e(t) and its integral by separate constants─ Avoids bias for step

• PD control─ Multiply e(t) and its derivative by separate constants─ Adjust more rapidly to changes

• PID control─ Multiply e(t), its derivative and its integral by separate constants─ Reduce bias and react quickly

)()( teKtu p

dtteKteKtut

ip 0

)()()(

)()()( tedt

dKteKtu dp

)()()()(0

tedt

dKdtteKteKtu d

t

ip

Page 31: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Feedback System Block Diagrams

• Automobile Cruise Control

disturbance

Input

Output

Page 32: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Brief History of Feedback Control

• The key developments in the history of mankind that affected the progress of feedback control were:

1. The preoccupation of the Greeks and Arabs with keeping accurate track of time. This represents a period from about 300 BC to about 1200 AD. (Primitive period of AC)

2. The Industrial Revolution in Europe, and its roots that can be traced back into the 1600's. (Primitive period of AC)

3. The beginning of mass communication and the First and Second World Wars. (1910 to 1945). (Classical Period of AC)

4. The beginning of the space/computer age in 1957. (Modern Period of AC).

Page 33: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Primitive Period of AC

Float Valve for tank level regulators Drebbel incubator furnace control (1620)(antiquity)

Page 34: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Primitive Period of AC

James Watt

Fly-Ball Governor

For regulating steam

engine speed

(late 1700’s)

Page 35: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Classical Period of AC

• Most of the advances were done in Frequency Domain.

• Stability Analysis: Maxwell, Routh, Hurwitz, Lyapunov (before 1900)

• Electronic Feedback Amplifiers with Gain for long distance communications (Black, 1927)

─ Stability analysis in frequency domain using Nyquist’s criterion (1932), Bode Plots (1945)

• PID controller (Callender, 1936) – servomechanism control

• Root Locus (Evans, 1948) – aircraft control

Page 36: EE 4314: Control Systems Lectures: Tue/Thu, 3:30 pm - 4:50 pm, NH 202 Instructor: Indika Wijayasinghe, Ph.D. Office hours: Tue/Thu 10:00 am – 12:00 noon,

Modern Period of AC

• Time domain analysis (state-space)

• Bellmann, Kalman: linear systems (1960)

• Pontryagin: Nonlinear systems (1960) – IFAC

• Optimal controls

• H-infinity control (Doyle, Francis, 1980’s) – loop shaping (in frequency domain).

• MATLAB (1980’s to present) has implemented math behind most control methods