Professional Documents
Culture Documents
Automatic Control 1
Automatic Control 1
1 / 18
Introduction
,/0*/0)1--!2$'3
',#0+,((-+
!"#$%&'$()*+,'-..
u(k)
A,B
x(k)
y(k)
y(k)
=
=
Ax(k) + Bu(k)
Cx(k)
{z
}
state-space model
Automatic Control 1
N(z)
Y(z) =
U(z)
D(z)
{z
}
|
transfer function
2 / 18
Root locus
Re
Re
Im
!
-3
!
-2
Im
!
-3
!
-2
!
4
rlocus(sys)
(1920-1999)
Prof. Alberto Bemporad (University of Trento)
Automatic Control 1
3 / 18
v(k) +
u(k)
+
A,B
x(k)
y(k)
state feed
back
Y(z) =
NK (z)
DK (z)
V(z)
where
NK (z)
DK (z)
= C(zI A BK)1 B,
NK (z)
DK (z)
C Adj(zI A BK)B
det(zI A BK)
We can assign the roots of DK (z) arbitrarily in the complex plane by properly
choosing the state gain K Rn (complex poles must have their conjugate)
Prof. Alberto Bemporad (University of Trento)
Automatic Control 1
4 / 18
A=
0
.
.
.
0
a0
In1
a1
...
an1
, B =
0
.
.
.
0
1
Let K = k1 . . . kn
The closed-loop matrix
A + BK =
0
.
.
.
0
(a0 k1 )
In1
(a1 k2 )
...
(an1 kn )
Automatic Control 1
5 / 18
0
1
0
0
0
1 , B = 0 , K = k3
A= 0
a3 a2 a1
1
k2
k1
Compute N(z)
z2 + a1 z + a2
a3
Adj(zI A)B =
a3 z
z + a1
z(z + a1 )
a2 z a3
1
1
0
z 0 = z
1
z2
z2
Automatic Control 1
6 / 18
Can we use the estimate x(k) instead of x(k) to close the loop ?
Automatic Control 1
7 / 18
Dynamic compensator
Dynamic compensator
!"#$%&'$()*+,'-..
u(k)
v(k)
A,B
x(k)
x(k)
y(k)
.0$0-.0&%$0,+
!"#$%&'),/0*/0)1--!2$'3)',#0+,((-+
Automatic Control 1
8 / 18
Dynamic compensator
Closed-loop dynamics
Lets combine the dynamics of the system, observer, and feedback gain
y(k) = Cx(k)
Take x(k), x(k) as state components of the closed-loop system
x(k)
I 0
x(k)
=
(it is indeed a change of coordinates)
x(k)
x(k)
I I
The closed-loop dynamics is
x(k + 1)
A + BK
=
0
x(k + 1)
y(k)
BK
A LC
x(k)
x(k)
Automatic Control 1
x(k)
x(k)
B
0
v(k)
9 / 18
Dynamic compensator
Closed-loop dynamics
The transfer function from v(k) to y(k) is
G(z)
zI A BK
0
(zI A BK)1
0
C(zI A BK)1 B =
BK
zI A + LC
1
B
0
?
(zI A + LC)1
B
0
N(z)
DK (z)
Automatic Control 1
10 / 18
Dynamic compensator
Separation principle
Separation principle
The design of the control gain K and of the observer gain L
can be done independently
BK
det(zI A+BK
0 ALC ) = det(zI A BK) det(zI A + LC) = DK (z)DL (z)
A zero/pole cancellation of the observer poles has occurred:
N(z)DL (z)
B
1
BK
G(z) = C 0 (zI A+BK
)
=
0 ALC
0
DK (z)DL (z)
Automatic Control 1
11 / 18
Dynamic compensator
y(1)
x(0)
for v(k) 0
Cx(0)
x(0)
A+BK BK
C 0
0 ALC
x(0)
(A+BK)x(0)BKx(0)
C 0
= C(A + BK)x(0) CBKx(0)
(ALC)x(0)
x(1)
A+BK BK
C 0
0 ALC
x(1)
=
y(2)
x(0)
Automatic Control 1
12 / 18
Dynamic compensator
Intuitively, if x(k) is a poor estimate of x(k) then the control action will also
be poor
Rule of thumb: place the observer poles 10 times faster than the
controller poles
Automatic Control 1
13 / 18
Dynamic compensator
Zero/pole cancellations
We have zero/pole cancellations, the system has uncontrollable and/or
unobservable modes
Intuitively:
x does not depend on v x is not controllable
y depends on x during transient x observable
i
A+BK BK
A+BK BK 2n1 B
B
B
R =
0
0
0
0 ALC
0 ALC
2n1
B (A + BK)B (A + BK)
B
=
0
0
0
Since (A, B) is reachable, rank(R) = n < 2n uncontrollable modes
The observability matrix doesnt have a similar structure
Automatic Control 1
14 / 18
Dynamic compensator
Dynamic compensator
!"#$%&'$()*+,'-..
u(k)
v(k)
A,B
x(k)
x(k)
y(k)
.0$0-.0&%$0,+
!"#$%&'),/0*/0)1--!2$'3)',#0+,((-+
MATLAB
con=-reg(sys,K,L)
Prof. Alberto Bemporad (University of Trento)
Automatic Control 1
15 / 18
Dynamic compensator
K
s3
+ s2
+ s
MATLAB
K=1; beta=.3; alpha=1;
G=tf(K,[1 beta alpha 0]);
MATLAB
% Closed-loop system, state=[x;xhat]
bigA=[A,B*K;L*C,A+B*K-L*C];
bigB=[B;B];
bigC=[C,zeros(1,3)];
bigD=0;
clsys=ss(bigA,bigB,bigC,bigD,ts);
x0=[1 1 1];
% Initial state
xhat0=[0 0 0]; % Initial estimate
T=20;
initial(clsys, [x0;xhat0],T);
pause
t=(0:ts:T);
v=ones(size(t));
lsim(clsys,v);
Automatic Control 1
16 / 18
Dynamic compensator
2.5
1.5
2
1
1.5
0.5
1
0
0.5
0.5
0
x(0) =
10
time (s)
15
20
h1i
h0i
1 ,
x(0) = 0 , v(k) 0
1
Automatic Control 1
0
0
10
time (s)
x(0) = x(0) =
15
20
h0i
0 , v(k) 1
0
17 / 18
Dynamic compensator
English-Italian Vocabulary
root locus
separation principle
dynamic compensator
Automatic Control 1
18 / 18