Professional Documents
Culture Documents
Sose16 Exam Solution
Sose16 Exam Solution
H4 (s)
H1 (s)
u − y
H3 (s)
H2 (s)
−
H9 (s) H8 (s) H7 (s) H5 (s)
H6 (s)
H(s)
a) Figure 1 shows a block diagram of a SISO system with input u(t) and output y(t).
What is the transfer function H(s) from u(t) to y(t)? Simplify component fractions,
i.e. represent H(s) in the form
N(s)
H(s) = ,
D(s)
5(s + 2)
H(s) = (1)
s + 2 + s(s + 2)(s + 2)
c) Give MATLAB code for checking the minimality of the state space model in (2).
The workspace is empty.
Problem 2 (25 Marks)
x̂ y
Observer F Plant
−
K(s)
n
Figure 2: Feedback loop
ẋ = Ax + Bu (3)
y = Cx,
i) First assume that the state x is measurable. Consider the problem of finding
a state feedback gain F that minimizes the cost function
Z ∞
J= x⊤ Qx + u⊤ Ru dt
0
design 1 design 2
Qe = B ∗ B ⊤ Qe = 100 ∗ B ∗ B ⊤
Re = I Re = I
A)
B)
2
y(t)
0 2 4 6 8 10
iii) Why does the loop not bring the mean value of the output back to zero when
a step disturbance is applied?
iv) How would you modify the controller to bring the steady state mean value to
zero when a step disturbance is applied?
ẋ = Ax + Bu (4)
y = Cx + Du,
where
−6 9.9 −1 8 −1.5 −0.7 −7 0 0 0
0 −8.0 7 14 1.6 0 −5.5 57 0 0
0 0 −2.8 2.0 2.2 −5.4 5.6 6.3 0 0
0 0 0 −2.1 0 0 6.2 6.9 0 0
0 0 0 0 −5 6.1 80 −7.5 0 0
A= 0
0 0 0 0 −4.2 4.9 2.6 0 0
0 0 0 0 0 0 −3.0 3.2 0 0
0 0 0 0 0 0 0 −3.8 0 0
0 0 0 0 0 0 0 0 .25 3
0 0 0 0 0 0 0 0 0 .05
⊤
B = −0.17 0 0.08 0.026 0 0.008 0.11 −0.13 −0.19 −0.04
C = 1.14 1 1 0 0 1 0.17 0.32 0.12 0.5
D = 0.5
Bode Diagram
5 Frequency (ωd): 0.761
10th order
Damping (ζ): 0.873
Gred1
Magnitude (dB)
0 Gred2
-5
10 -3 10 -2 10 -1 10 0 10 1 10 2
Frequency (rad/s)
Figure 4: Bode magnitude plot of original and reduced open-loop models
Hint1: Use the values from the Bode plot and remember that poles of a second order
system can be approximated by s1,2 = −σ ± jωd where ωd is the damped p frequency
and σ = ωn ζ. The value of ωn can also be approximated from ωd = ωn 1 − ζ 2
Hint2: Even though the eigenvalues of the full-order model are all real, the reduction
procedure might introduce complex poles to approximate the behavior of the system.
i) What happens to the control input u(t) when the controller is implemented?
ii) What is the observed implication of the effect described in (c.i) on the closed-
loop response?
iii) How can you change your tuning, regarding the weights in the cost function
(5) in order to try to avoid the problem described in (c.ii)?
10
y(t)
-5
0
u(t)
-5
-10
0 5 10 15
time [s]
Figure 5: Response of simulation (dashed) and experiment (solid)
Problem 4 (25 Marks)
−2
−0.5 0.1 −1
y(k)
2
k 0 1
u(k) 3 −4
ii) Consider the transfer functions Ga , . . . , Gf from b)-i). Find the corresponding
impulse responses (I) - (VI) in Figure 7. Give reasons.
(I) (II)
0.3
0.2
0.2 0.1
y(k)
y(k)
0.1 0
−0.1
0
0 1 2 3 4 5 0 1 2 3 4 5
k k
(III) (IV)
1.5 10
1 5
y(k)
y(k)
0
0.5
−5
0
0 1 2 3 4 5 0 1 2 3 4 5
k k
(V) (VI)
1 5
0.5 3
y(k)
y(k)
0 1
−1
0 1 2 3 4 5 0 1 2 3 4 5
k k
Figure 7: Impulse responses
Solution
Control Systems Theory and Design
27.02.2015
Solution to Problem 1
a)
b) i) The system is stable, all poles in the LHP (−2, −1, −1).
ii) The state space representation is in controller canonical form, all states can be
controlled by the input u.
iii) The realisation is not minimal, there is a pole-/zero-cancellation for s = −2.
iv) From ii) and iii) it follows that the system is not observable.
c)
1 A = [ 0 1 0 ; 0 0 1 ; −2 −5 −4];
2 B = [ 0 ; 0; 1 ] ; C = [10 5 0 ] ; D = 0;
3 sys = ss ( A , B , C , D ) ;
4 sysr = minreal ( sys ) ;
5 isequal ( sys , sysr )
6 % i f ans = 0 −−> s y s i s not minimal
1
Solution to Problem 2
a) i) Q ∈ R3×3 because the system has 3 states, and Q penalizes the states.
R ∈ R2×2 because the system has 2 inputs, and R penalizes each input.
ii) Design 1 corresponds to A) (dashed plot) and design 2 to the B) (solid plot).
In design 2, the measured output covariance is comparatively smaller than the
process noise covariance, leading to a controller with higher bandwidth (i.e.
faster poles) with little output noise attenuation.
iii) Input disturbance rejection requires integral action in the controller, which is
not present in this case.
iv) The controller has to be augmented with an integrator, whose
input
is the
tracking error. The augmented state feedback gain Faug = F FI is cal-
culated using the
usual procedure,
but considering the agumented matrices
A 0 B
Aaug = , Baug =
−C 0 0
b) i)
x̂˙ = Ax̂ + Bu + L(ŷ − y − n)
x̂˙ = Ax̂ + BF x̂ + L(C x̂ − y − n)
x̂˙ = (A + BF + LC)x̂ − Ly − Ln
u = F x̂
ẋ = Ax + B(u + d)
ẋ = Ax + BF x̂ + Bd
− x̂˙ = (A + BF + LC)x̂ + L(−Cx − n)
x̃˙ = A(x − x̂) + LC(x − x̂) + Bd − Ln
x̃˙ = (A + LC)x̃ + Bd + Ln
ẋ A + BF −BF x B
˙x̃ = 0 A + LC x̃
+
B
d
x
y= C 0
x̃
c) C cl = [zeros(3) eye(3)]
sys = ss(A cl,B cl,C cl,0)
ssgain = dcgain(sys)
x tilde = dcg(:,2)
2
Solution to Problem 3
a) i) From the triangular structure one can see that the system is unstable, to do
balanced truncation/residualization a balanced realization is needed, however,
balanced realization is not defined for unstable systems.
ii) 1. The system must be decomposed in stable and antistable part, such that
G = Gstab + Gastab .
In this case:
−6 9.9 −1 8 −1.5 −0.7 −7 0
0 −8.0 7 14 1.6 0 −5.5 57
0
0 −2.8 2.0 2.2 −5.4 5.6 6.3
0 0 0 −2.1 0 0 6.2 6.9
Astab =
0
0 0 0 −5 6.1 80 −7.5
0
0 0 0 0 −4.2 4.9 2.6
0 0 0 0 0 0 −3.0 3.2
0 0 0 0 0 0 0 −3.8
>
Bstab = −0.17 0 0.08 0.026 0 0.008 0.11 −0.13
Cstab = 1.14 1 1 0 0 1 0.17 0.32
Dstab = 0.5
and
25 3
Aastab =
0 .05
>
Bastab = −0.19 −0.04
Castab = 0.12 0.5
Dastab = 0
2. A balanced realization for Gstab is computed and reduced by truncation/resid-
ualization, resulting in reduced subsystem e.g. Gtrunc . In this case, as the
order of the desired reduced system is 4, and there is 2 unstable poles, the
stable subsystem is reduced to order 2.
3. The reduced system is given by Gred = Gtrunc + Gastab
iii) Gred1 corresponds to balanced truncation and Gred2 to balanced residualiza-
tion. Balanced truncation keeps the same feedthrough value D, which means
that high frequency behavior will be the same as the original system; in the
bode plot Gred1 has the same high frequency behavior as the original system.
Balanced residualization assumes that ”unimportant” states are constant (i.e.
not dynamic), this means that low frequency behavior will be the same as the
original system; in the bode plot, Gred2 has this characteristic.
b) From the bode plot, the stable pole pair of the reduced system has ωd = 0.761 and
ζ = 0.873, it follows then that ωn ≈ 1.5603 so the poles are s1,2 ≈ −1.36 ± 0.761j.
From (a.ii) we know that the reduced system contains these poles plus the unstable
poles of the original plant, therefore the other two poles are s3 = 0.25 and s4 = 0.05.
When R → ∞, control is expensive, stable poles remain where they are and unstable
poles are mirrored with respect to the imaginary axis; for this reason the poles of
Ared1 + Bred1 F are
3
s1,2 ≈ −0.63 ± 0.789j s3 = −0.25 s4 = −0.05
c) i) Actuators have physical limits, in this case the actuator saturates so the control
input u cannot take values beyond −3.5.
ii) The system becomes unstable as the input cannot reach the value commanded
by the controller.
iii) As the controller is LQG, increasing the value of the tuning parameter R would
bring the control effort down, avoiding reaching saturation. This will in turn
make the response slower.
4
Solution to Problem 4
a) i)
0.5 −2 0 1
x(k + 1) = 1 −0.1 0 x(k) + 0 u(k)
0 0 −1 0
y(k) = 2 0 1 x(k)
v)
b) i) G1 ⇔ Gd , G2 ⇔ Ga , G3 ⇔ Gc , G4 ⇔ Ge , G5 ⇔ Gf , G6 ⇔ Gb
ii) Ga ⇔ (I), Gb ⇔ (IV), Gc ⇔ (III), Gd ⇔ (VI), Ge ⇔ (II), Gf ⇔ (V)
⇒ e.g. by calculating the first three output values for the impulse response