Professional Documents
Culture Documents
EEEE 661
Modern Control
Theory
Dr. Abdulla Ismail
Professor of Electrical Engineering,
axicad@rit.edu
04-3712055
Modern Control Theory 1
Modern Control Theory
Outline
• Overview of Feedback Control
• State-Space Analysis of Linear Control
Systems
• Realization of Feedback Control Systems
• System Canonical Realization
• Controllability & Observability of Linear
Control Systems
• State Feedback Design
• Output Feedback Design
• Observers (Estimator) Design
• Compensator Design
Modern Control Theory 2
Modern Control Theory
• Please read Chapter 3 • Please read Chapter 2
of the following book: of the following book:
• Stability
• Speed of Response
• Steady State Error Analysis
• Sensitivity Analysis
• Disturbance Rejection
• Robustness
2. Transfer Functions
Taking the Laplace transform of both sides of the DE and
rearranging terms yields a rational function,
8
EE 0301-761 Modern Control Theory
Modeling of Linear Systems
x(t)
r(t) c(t)
3. State Space (Variables) Model
.
x1 u1 y1
x1
x u y x.
2 2 2 . 2
X . , U . , Y . , X (t ) .
. . . .
um y x.
x p
n n
9
EE 0301-761 Modern Control Theory
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Kil
s
Integrator
LFC
R
Droop
∆ω
1 1 1 1
0
Tg.s+1 Tt.s+1 (2*H)s+Kd 1
Constant Transfer Fcn Transfer Fcn1 Droop1 Frequency Error
Machine Dynamics
∆PL
Scope
Step
Step2
PID
PID Controller
Ke
Te.s+1
(Kg*Tz1)s+Kg
Tp1.s+1
Tz2.s+1
Tp2.s+1
Tz3.s+1
Tp3.s+1
Tz4.s+1
Tp4.s+1
K1
∆Vt
Exciter Transfer Fcn2 Transfer Fcn3 Transfer Fcn4 Gain Voltage Error
AVR
t
Step1
Gain5
∆VL K2
Gain2
K3
K4
Gain3
K5 Scope6
Sensor
Kr Gain4
Modern ControlTr.s+1
Theory 10
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Why State Space (Variables) Model?
1.Studying power system frequency and voltage variation as the result of
load changes.
Kil
s
Integrator
1
LFC
R
Droop
∆ω
1 1 1 1
0
Tg.s+1 Tt.s+1 (2*H)s+Kd 1
Constant Transfer Fcn Transfer Fcn1 Droop1 Frequency Error
Machine Dynamics
∆PL Scope
Step
PID
Ke
Te.s+1
(Kg*Tz1)s+Kg
Tp1.s+1
Tz2.s+1
Tp2.s+1
Tz3.s+1
Tp3.s+1
Tz4.s+1
Tp4.s+1
K1
∆Vt
Step2 PID Controller Exciter Transfer Fcn2 Transfer Fcn3 Transfer Fcn4 Gain Voltage Error
t
AVR Step1
Gain5
∆VL K2
Gain2
K3
K4
Gain3
K5 Scope6
Sensor
Kr Gain4
Tr.s+1
∆Vo1
∆Vo2
∆Vref1
∆Vo3
∆Vref2 3 Area Power system ∆f1
∆Vref3 With 26 state variables ∆f2
∆Pd1 ∆f3
∆Pd2 ∆Pt12
∆Pt13
∆Pd3 ∆Pt23
Modern Control Theory 11
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Why State Space (Variables) Model?
1.Studying thermal desalination plant performance.
State 6 outputs
6 inputs Variables
Variables
155
2
s 1 +
Transfer functions
n(t ) noise
Y (s) s 1
Stable
U (s) s 3
E ( s) 2( s 1)
u 0
N ( s) ( s 1)( s 3)
Unstable
15
Modern Control Theory
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
y s 1 1 1
u s 1 s 1 s 1
x1 (t ) e t x 10 2e t u (t )
1 1 t
y (t ) x 2 (t ) ( x 20 x10 )e e x 10 e t u (t )
t
2 2
1. if x10 x 20 0
then system stable
2. if x10 2 x 20
Introduction
• The time-domain analysis and design of control
systems utilizes the concept of the state of a system.
• The state of a system is a set of variables such that
the knowledge of these variables and the input
functions will, with the equations describing the
dynamics, provide the future state and output of the
system.
• For a dynamic system, the state of a system is
described in terms of a set of state variables
[ x1 (t ) x2 (t ) .. xn (t )]
Modern Control Theory 19
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Introduction
• Consider the system shown in Figure below, where
y1(t) and y2(t) are the output signals and u1(t) and
u2(t) are the input signals.
• A set of state variables [x1 x2 ... xn] for the system shown in the
figure is a set such that knowledge of the initial values of the
state variables [x1(t0) x2(t0) ... xn(t0)] at the initial time t0, and of
the input signals u1(t) and u2(t) for t˃=t0, suffices to determine
the future values of the outputs and state variables.
20
Modern Control Theory
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Introduction
The state variables describe the future response of a
system, given the present state, the excitation inputs, and
the equations describing the dynamics of the system.
Introduction
The State Differential Equation:
The state of a system is described by the set of first-order
differential equations written in terms of the state variables
[x1 x2 ... xn].
These first-order differential equations can be written in
general form as
x1 a11 x1 a12 x2 a1n xn b11u1 ..b1mu m
x2 a21 x1 a22 x2 a2 n xn b21u1 ..b2 mu m
.
.
xn an1 x1 an 2 x2 ..ann xn bn1u1 ..bnm um
22
Modern Control Theory
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Introduction
• Thus, this set of simultaneous differential equations can be written
in matrix form as follows:
Introduction
• Then the system can be represented by the compact notation
of the state differential equation as
“state equation”
The matrix A is an nxn square matrix, and B is an nxm matrix.
Example 2
AUTOMATIC GENERATION CONTROL OF POWER SYSTEMS
1 K5 K5
0 0 0 0 0
T8 T8 T8 K5
0
1 K3
0
T8
0
T6 T6
0 0 0 0
0 0
1
0 0 1 0 0 0 0 0 0
T5
A= 1 K2 0 0
0 0 0 0 0 0 K Tv1 Tv 2
T4 T4 T5 0
1
K1 Tv1Tv 2 1 T1T2 T3
0 0 0
1 Tv 2
0
B=
T1T2 T3 R T3 T3 T2 T3
K1 Tv1 1 0
K1Tv1 Tv 2 1 0 0 0 0
1 Tv 2
1
0
T1T2 T1
T1T2 R T2 T2 2
T 2 T2
K Tv 1
K1 Tv1 1 0
1
1 1 0 0 0 0 0 0 T1 T1
T1 R T1 T1
K4
K4 1 0
0 0 0 0 0 0
T7 R T7 T7
State Equations
Output Equations
• 3 state equations:
• Output equation:
• 2nd-order model
• 2 state variables:
– capacitor voltage, x1 = vC
– inductor current, x2 = iL
• Here, the energy-storage elements are the two springs and the two masses.
• Defining state variables in terms of mass displacements and velocities
yields
• In addition, Kirchoff’s
current law yields
• Letting
• Rewriting these equations in matrix form and isolating the state-variable time derivatives
In matrix form
D= 0
In matrix form
What is DC motor?
An actuator (EM system), converting
electrical energy into rotational
mechanical energy
Sketch
EM Diagram
Modern Control Theory 55
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Simple pendulum
63
Modern Control Theory
SOLUTION OF STATE & OUTPUT EQUATIONS
Solution of the output
The system output response y(t) may be found by substitution of the state
variable response into the algebraic system output equations
From
Note
Using MATLAB
X1
A=[0 1;-2 -3]
B=[0 1]‘
C=[1 0]
D=[0]
X0=[1 0]’ X2
System=ss(A,B,C,D)
[Y,T,X] = initial(system,X0)
X1=X(:,1)
X2=X(:,2)
Plot(X1),hold,plot(X2) Modern Control Theory 69
SOLUTION OF STATE AND OUTPUT EQUATIONS
Example1 .. Solution
(d) Forced response:
Using MATLAB
A=[0 1;-2 -3]
B=[0 1]‘
C=[1 0]
D=[0] X1
System=ss(A,B,C,D)
[Y,T,X] = step(system)
X1=X(:,1)
X2=X(:,2)
Plot(X1),hold,plot(X2)
X2
Using MATLAB 1
0.9
Zero Input Response
%Zero Input Response 0.8
% or Natural Response
0.7
0.6
B=[2;0] 0.4
C=[1 3] 0.3
0.1
X1=X(:,1) C=[1 3] 2
X2=X(:,2) D=[0]
Plot(X1),hold,plot(X2) system=ss(A,B,C,D)
1.5
[Y,T,X] = step(system) 1
X1=X(:,1) 0.5
SOLUTION:
76
Modern Control Theory
SOLUTION OF STATE & OUTPUT EQUATIONS
EXAMPLE3 - SOLUTION
natural
x1(0) = 2,
x2(0) = 3
Xf(t) u(t) = 5
C=[2 1] D=[0]
provided α1 = 0.
E1
E1
•Rearranging
90
Modern Control Theory
STATE-SPACE ANALYSIS OF LINEAR CONTROL SYSTEMS
Solution
Using MATLAB
>> [num,den] = ss2tf(A,B,C,D)
ss2tf
zp2tf ss2zp
tf2zp zp2ss
Zero-Pole-Gain
e l
od
I SOM
a S
f
s eo
s p on
e
ls eR
mpu
I
d el
o
M
O
IM
a M
r
s fo
s e
o n
e sp
R
tep
S EE 0301-761 Modern Control Theory 101
USING MATLAB in CONTROL SYSTEMS
Main Time Response of Systems
The simulation horizon is automatically determined based on the
model dynamics. You can override this automatic mode by specifying
a final time, step(h,10) % Simulates from 0 to 10 seconds or a vector
of evenly spaced time samples.
Right-Click Menus
All the time and frequency response
functions provide right-click menus
that allow you to customize your plots.
106
EE 0301-761 Modern Control Theory
Simulating Models with Arbitrary Inputs and Initial Conditions
Working with the Linear Simulation Tool
specifies
Use append(sys1,sys2)
to specify the block-decoupled LTI
model interconnection.
111
EE 0301-761 Modern Control Theory
MODEL INTERCONNECTION FUNCTIONS
Feedback and Other Interconnection Functions
[P,Z] = PZMAP(SYS) returns the poles and zeros of the system in two
column vectors P and Z. No plot is drawn on the screen.
For arrays SYS of dynamic systems, PZMAP plots the poles and zeros of
each model in the array on the same diagram.
EE 0301-761 Modern Control Theory 119
Using MATLAB
Example1
>> eig(Aa)
ans =
-0.0100 + 0.0000i
-0.3161 + 0.0000i
-0.9299 + 0.0000i
0.0611 + 1.2858i
0.0611 - 1.2858i
-1.2681 + 0.0000i
-0.0041 + 0.0000i
Missile Model:
Am=[0.4743 0 0.0073 0 0 0;0 -0.496 0 0 0 0;-0.0368 0 -0.496 0 0 0;0 -0.0015 0 -0.0008 0 0.0002
0 0 -0.2094 0 -0.0005 0;0 -0.2094 0 0 0 -0.0005]
Bm=[0 0 0;191.1918 0 0;0 191.1918 0;0 0 1;0 232.5772 0;232.5772 0 0]
Cm=eye(6), Dm=zeros(6,3)
>> eig(Am)
ans =
-0.0005
0.4740
-0.4957
-0.0008
-0.0005
-0.4960
Controller Model:
Ac=[0 0 0 1 0 0;0 0 0 0 1 0;0 0 0 0 0 1;-1 0 0 -0.3 0 0;0 -1 0 0 -0.3 0;0 0 -1 0 0 -0.3]
Bc=[zeros(3,6);0 0 0 0 0 0.0001;0.6774 0 0.0052 0 -0.0001 0;zeros(1,6)]
Cc=[eye(3) zeros(3)]; Dc=zeros(3,6)
>> eig(Ac)
ans =
-0.1500 + 0.9887i
-0.1500 - 0.9887i
-0.1500 + 0.9887i
-0.1500 - 0.9887i
-0.1500 + 0.9887i
-0.1500 - 0.9887i
133
MATLAB Simulation of State variable Model
Using MATLAB
Missile tracking a maneuvering Aircraft
>> [a,b,c,d]=ssdata(syst); damp(a)
Pole Damping Frequency Time Constant
(rad/TimeUnit) (TimeUnit)
134
Using MATLAB
Vectored thrust aircraft
The Harrier AV-8B military aircraft
• redirects its engine thrust downward so that it can “hover”
above the ground. Some air from the engine is diverted to
the wing tips to be used for maneuvering.
• As shown in (b), the net thrust on the aircraft can be
decomposed into a horizontal force F1 and a vertical force
F2 acting at a distance r from the center of mass. The Harrier AV-8B military aircraft
Simplified model
• These equations describe the motion of the vehicle as a The Harrier AV-8B military aircraft
set of three coupled second order differential equations.
• In state space form,
Simplified model
Simplified model
Using MATLAB
m = 4;J = 0.0475; r = 0.25; g = 9.8; c = 0.05
A=[0 0 0 1 0 0;0 0 0 0 1 0;0 0 0 0 0 1;0 0 –g –c/m 0 0;
0 0 0 0 –c/m 0;0 0 0 0 0 0]
B=[0 0; 0 0;0 0;1/m 0;0 1/m;r/J 0] The Harrier AV-8B military aircraft
Simplified model
Using MATLAB
B=
A=
0 0
0 0 0 1.0000 0 0 0 0
0 0 0 0 1.0000 0 0 0
0 0 0 0 0 1.0000 0.2500 0
0 0 -9.8000 -0.0125 0 0 0 0.2500
0 0 0 0 -0.0125 0 5.2632 0
0 0 0 0 0 0
eig(A)
C=
ans =
0 1 0 0 0 0 0
0 0 1 0 0 0 0
-0.0125
0
-0.0125
0
eig(A)
ans =
0
0
-0.0125
0
-0.0125
0
According to
A. Newton’s Law of Motion
B. Law of Kirchhoff
C. System structure and parameters
the mathematical expression of
system input and output can be
derived.
Thus, we build the mathematical
model ( suitable for simple systems).
148
Modern Control Theory
MODELING OF MECHANICAL ELEMENTS
149
Modern Control Theory
MODELING OF MECHANICAL ELEMENTS
150
Modern Control Theory
MODELING OF MECHANICAL ELEMENTS
155
Modern Control Theory
MATRIX RANK
where
The coordinates q1 and q2 denote the angular location of the first and second links
relative to the local vertical, respectively. The second link includes a payload located
at its end. The masses of the first and the second links are m1 and m2, respectively.
The moments of inertia of the first and the second links about their centers of mass
are I1 and I2, respectively. The locations of the center of mass of links one and two are
Modern Control Theory 159
determined by l and l , respectively; l is the length of link 1.
SOLUTION OF STATE & OUTPUT EQUATIONS
Given the linear time-invariant system
ᵡ
The output solution is given by:
eat
eAt
If x0 = x(t0), then