Professional Documents
Culture Documents
Ece5530 CH07
Ece5530 CH07
7–1
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–2
The Nyquist test
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–3
■ No encirclements of "1, Nc D 0.
■ No open-loop unstable poles Np D 0.
■ N´ D Nc C Np D 0: Closed-loop system is stable.
Gain margin
■ Uncertainty in plant may be
G.s/
modeled as
r.t / Go .s/ g y.t /
G.s/ D gGo .s/
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–4
g 1500s " 100
G.s/ D I K.s/ D :
s 2 " 2s C 1 s 2 C 30s C 400
The gain g is uncertain but bounded 0:8 # g # 1:2.
■ The Nyquist map for this system is plotted (for g D 1).
1
■ The map crosses the real axis at "0:25
0.5
Imaginary axis
and at "1:8.
0
■ GM C D 1=0:25 D 4:0.
GM " D 1=1:8 D 0:56. −0.5
−1
■ The system is therefore “robustly stable.” −2 −1.5 −1 −0.5 0
Real axis
Phase margin
■ Uncertainty may also be G.s/
modeled as an uncertain r.t / Go .s/ e "j! y.t /
phase shift
K.s/
G.s/ D e "j! Go.s/:
■ This is a simplified model of an uncertain delay G.s/ D e
"s"
Go.s/ or
G.j!/ D e "j!" Go .j!/, which is frequency dependent and harder to
analyze.
■ Multiplying a frequency response by e "j! results in a phase shift/
rotation of ! of each point in the Nyquist map.
■ System becomes unstable when rotation causes map to go through
the point "1.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–5
■ Phase margin is the amount of rotation required to cause instability ➠
Determined by intersection point between Nyquist map and unit circle.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–6
7.2: Robustness of LQR
C´ ´.t /
u
r.t / Bu .sI " A/"1 K
x
■ Define
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–7
u D "Kx
K D R"1BuT P
(1) BuT ."sI " AT /"1PBu D BuT ."sI " AT /"1 PBu R"1 R D LT ."s/R:
„ ƒ‚ …
KT
(2) BuT ."sI " AT /"1Q.sI " A/"1 Bu D BuT ."sI " AT /C´T C´ .sI " A/"1Bu .
■ Consider the case with only one input. L.s/ is scalar. Let s D j!.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–8
1 T
Œ1 C L."j!/#Œ1 C L.j!/# D 1 C C ."j!/C.j!/
R
1
2
j1 C L.j!/j D 1 C jC.j!/j2:
R
1
■ Since jC.j!/j2 $ 0 then we get
R 1 C L.j!/
the inequality
j1 C L.j!/j2 $ 1:
."1; 0/. Recall that the point ."1; 0/ is the critical point for stability
analysis using Nyquist.
■ For stability, we need to determine how many times the loop transfer
function encircles the point ."1; 0/.
■ We know that the optimum controller stabilizes the system, so
counting encirclements will not be very enlightening.
■ More important: What if the system changes or our model is
wrong—will the number of encirclements be different than we
expected? ➠ Instability.
■ Basic robustness question.
■ But, note that LQR guarantees that L.j!/ is some distance from the
critical point so it will take quite large changes to the system to
change number of encirclements.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–9
■ The optimal LQR controller has very large gain/phase margins.
➠ If open-loop system is stable, then any g 2 .0; 1/ yields a stable
closed-loop system.
➠ If open-loop system is unstable, then any g 2 .1=2; 1/ yields a
stable closed-loop system.
➠ LQR phase margin of at least ˙60ı.
LQR GAIN MARGIN : Consider an example system
with two unstable O.L. poles. Nyquist plot
terminates at origin, stays outside the unit circle
at "1, and encircles the "1 point twice.
■ The negative real axis intercept is to the left of "2 ➠ We could cut the
% ŒI C L.j!/# $ 1 8 !:
■ Singular values measure “size” of MIMO transfer-function matrix.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–10
7.3: Robustness of LQG; LTR
P
x.t/ D Ax.t/ C Bu u.t/ C Bw w.t/
with w; v white.
" # " # " #
1 1 0 1 h i
AD ; Bu D ; Bw D ; Cy D 1 0 ;
0 1 1 1
" #
1 1
QD ; Sw D Q; Sv D R:
1 1
■ Steady-state LQE/LQR gains are
h i
N
KDK 1 1 ; KN D fn.R/
" #
1
L D LN ; N D fn.R/:
L
1
■ This is fine so far, but what do the gain and phase margins look like?
First look at example when R D 1. (MATLAB code in appendix).
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–11
Doyle Example: LQG Nyquist Doyle Example: LQG Nyquist (zoom) Doyle Example: LQR Nyquist
0.1 1.5
0.6
R=1 1
0.4 0.05
0.5 R=1
0.2
Imag
Imag
Imag
0 0 0
−0.2
−0.5
−0.4 −0.05
−1
−0.6
−0.1 −1.5
−1 −0.5 0 −1.1 −1.05 −1 −0.95 −0.9 −2 −1 0
Real Real Real
Imag
Imag
0 0 0
−0.2
−0.5
−0.4 −0.05
−1
−0.6
−0.1 −1.5
−1 −0.5 0 −1.1 −1.05 −1 −0.95 −0.9 −2 −1 0
Real Real Real
■ Example shows that LQR retains guaranteed stability margin, but that
stability margin of “optimal” LQG system may be arbitrarily small.(!)
■ This does not mean that every LQG controller will have small margins.
■ This does mean that you should be careful and check!
P
x.t/ D Ax.t/ C Bu u.t/ C Bw w.t/ C Bu wf .t/
" #
h i w.t/
D Ax.t/ C Bu u.t/ C Bw Bu ;
wf .t/
and " #
Sw 0
S" w # D :
0 Swf I
wf
■ LTR increases spectral density of fictitious noise until acceptable
robustness is achieved.
■ Can show (see text) that robustness approaches LQR robustness if #
measurements $ # control inputs and plant is minimum-phase.
Alternate LTR
■ An alternative form of LTR uses the cost function
h ! " i
T T T
J D E x .1/ Q C $Cy Cy x.1/ C u .1/Ru.1/ :
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–14
Frequency-shaped LTR
xP i D Ai xi C Bui u C Bwi w; i D 1 : : : m:
■ Set up Ji for each.
■ Use the models to capture something about the uncertainty.
■ Effective, but requires numerical search. Takes a while.
3. Guaranteed methods?
■ Much research going on right now.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–15
7.4: Modeling uncertainty
%N f&0g # &max.j!/
Gain
1000 rad s"1. −2
10
Frequency (rad/s)
■ The uncertainty is coupled into standard form as:
&.s/
P .s/
U.s/ M.s/
K.s/
p1 D 1 C ı1 I p2 D 4 C ı2
1 4
ı1 ı2
1 4
0:1
&1
Wd .s/ &.s/ Yd .s/
&2
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–20
7.5: Four classic problems
■ Will the techniques we have already learned work well if plant
dynamics are uncertain? ➠ Analysis.
■ How do we design controllers to account for the uncertainty explicitly?
➠ Synthesis.
Nominal stability
■ Controller stabilizes nominal system Go .s/.
■ Will generalize notion of stability to internal stability.
■ Consider the following diagram.
E1 .s/
U1 .s/ Go .s/ Y1 .s/
E2 .s/
Y2 .s/ K.s/ U2 .s/
■ Consider
2 3 2 32 3
E1.s/ .I C KGo /"1 ".I C KGo/"1K U .s/
4 5D4 54 1 5;
E2.s/ .I C Go K/"1Go .I C GoK/"1 U2.s/
which are the transfer functions from the inputs to the “errors”.
(equivalent to transfer functions from inputs to outputs).
■ System is internally stable if all four transfer functions are stable.
■ Nominal stability a relatively easy problem. For example, you might
use pole-placement techniques from ECE4520/5520.
Robust stability
■ More interesting because we acknowledge uncertainty in our model.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–21
■ Now we must define what we think is wrong with the model ➠ Use
structured or unstructured uncertainty models.
■ Define ' to be the set of all admissible G.s/ given the nominal Go .s/
and uncertainty model.
Nominal performance
Robust performance
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–22
■ Disturbance rejection must be good for all possible G.s/.
# $
K.s/ D arg min max Œenergy.y/#
H d;&
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–23
7.6: Robust stability [analysis for unstructured uncertainty]
U.s/ D K.s/M.s/
where
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–24
E2.s/
Y2.s/ &.s/ U2.s/
■ The book examines the transfer function E1=U2. All three other
transfer functions have exactly the same condition for robust stability.
k&.s/k1 # 1;
1
and controller K.s/ D " :
2
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–26
ag replacements &.s/
Yd .s/
Wd .s/
10
U.s/ s"1 M.s/
P .s/
1
"
2
■ We can compute
Nyd wd .s/ D Pyd wd C Pyd u.I " KPmu /"1KPmwd
' ' (' (("1 ' (
1 10 1
D 0 C .1/ 1 " " " .1/
2 s"1 2
' ( ' (
s C 4 "1 1 " 12 .s " 1/
D " D :
s"1 2 sC4
■ The nominal closed-loop system has a pole at s D "4 (stable). Is the
system robustly stable?
■ Compute
p
1 !2 C 1
%N fNyd wd .j!/g D jNyd wd .j!/j D p :
2 ! 2 C 16
The 1-norm is (the max is at ! ! 1)
p
2
%Ny w .j!/% D sup 1 p ! C 1 D 1 :
% %
d d 1
! 2 ! 2 C 16 2
■ Therefore the system is robustly stable.
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–27
7.7: Robust stability [analysis for structured uncertainty]
■ When the uncertainty has structure, the robust stability test
% %
%Ny w % < 1 is overly conservative.
d d 1
■ If this value is greater than 1 (the maximum size of &) then the
system is robustly stable.
■ Easier to solve if we define
1
)&N .N / D :
min&2&N f%N Œ&# W detfI " Nyd wd &g D 0g
■ )&N is called the “Structured Singular Value”.
■ Then, the system is robustly stable iff
supf)&N ŒNyd wd .j!/#g < 1:
!
2 3
1 2 3
6 d1 .s/ Il1 %%% 0
6
7
7 d1 .s/In1 %%% 0
6 7
6 :: ::: :: 7
Nyd wd .s/ 6 :: ::: :: 7
6
6 : : 7
7 4 : : 5
4 1 5 0 % % % dn.s/Inn
0 %%% Il
dn .s/ n
or
2 3
&1.s/ % % % 0
6 7
6 :: : : : :
: 7
4 : : 5
0 % % % &n .s/
DR .s/Nyd wd .s/D"1
L .s/
■ We see that
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–29
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–30
1.3
Max. σ value
Gain
1.2 µ value
1.1
1 −2 −1 0 1 2
10 10 10 10 10
Frequency (rad/s)
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–31
7.8: Performance robustness [analysis]
■ Robust performance is defined in different ways than we are
accustomed to.
■ Bounds are placed on certain performance variables, such as
steady-state error, disturbance in the output, control effort.
■ These bounds are scaled in standard form, such that the transfer
function between the reference- and disturbance inputs and the
performance outputs must be bounded by infinity-norm 1:
% %
%Tyw % < 1;
1
where Tyw is the closed-loop transfer function between the inputs and
performance variables.
■ The closed loop transfer function is
Tyw D Nywd .s/ŒI " &.s/Nyd wd .s/#"1&.s/Nyd w .s/ C Nyw .s/:
N.s/
0:2
1
K
sC1
W .s/
1.5
SSV
0.5
0 0 1 2
10 10 10
Frequency (rad/s)
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–34
■ We will encounter familiar concepts such as:
! Cost functions,
! Riccati equations,
! Hamiltonian systems,
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–35
Appendix: Doyle code
% DOYLE.M - Demonstrate LQG lack of robustness w/ Doyle's example.
% m-file originally by Jonathan How. Modified by G. Plett 10 Feb 1999.
Q=ones(2); Sw=Q;
R=1; Sv=R;
[K,P]=lqr(A,Bu,Q,R);
[L,Sigmae]=lqr(A',Cy',Sw,Sv); L=L';
circ=exp(pi*s/max(abs(s)));
clf; subplot(131);
plot(-1,0,'r+','markersize',18); hold on;
plot(Gp.*Gcl); plot(conj(Gp.*Gcl));% Nyquist LQG
plot(circ,'-.'); plot(-circ,'-.');
plot(-1+circ,':'); plot(-1-circ,':');
plot([0 0],[-2 2],'y--'); plot([-2 2],[0 0],'y--');
axis([-1.25 .25 -.75 .75]); axis('square')
text(-.5,.5,['R = ',num2str(R)]);
plot(-1,0,'r+','markersize',18);
title('Doyle Example: LQG Nyquist'); xlabel('Real'); ylabel('Imag');
subplot(132);
plot(-1,0,'r+','markersize',18); hold on;
plot(Gp.*Gcl); plot(conj(Gp.*Gcl));% Nyquist LQG
plot(circ,'-.'); plot(-circ,'-.');
plot(-1+circ,':'); plot(-1-circ,':');
plot([0 0],[-2 2],'y--'); plot([-2 2],[0 0],'y--');
axis([-1.1 -.9 -.1 .1]); axis('square');
plot(-1,0,'r+','markersize',18);
title('Doyle Example: LQG Nyquist (zoom)'); xlabel('Real'); ylabel('Imag')
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett
ECE5530, INTRODUCTION TO ROBUST CONTROL 7–36
subplot(133);
plot(-1,0,'r+','markersize',18); hold on;
plot(Glqr); plot(conj(Glqr));
plot(circ,'-.'); plot(-circ,'-.');
plot(-1+circ,':'); plot(-1-circ,':');
plot([0 0],[-2 2],'y--'); plot([-3 2],[0 0],'y--');
axis([-2.5 .5 -1.5 1.5]); axis('square')
text(-1.5,.5,['R = ',num2str(R)]);
plot(-1,0,'r+','markersize',18);
title('Doyle Example: LQR Nyquist'); xlabel('Real'); ylabel('Imag');
Lecture notes prepared by Dr. Gregory L. Plett. Copyright © 2016, 2010, 2008, 2006, 2004, 2002, 2001, 1999, Gregory L. Plett