Nonlinear Control and Servo Systems (FRTN05)
Nonlinear Control and Servo Systems (FRTN05)
AUTOMATIC CONTROL
Preliminary grades:
3: 12 − 16.5 points
4: 17 − 21.5 points
5: 22 − 25 points
Accepted aid
All course material, except for exercises, old exams, lab instructions, and solutions of
these, may be used as well as standard mathematical tables and authorized “Formel-
samling i reglerteknik”/”Collection of Formulae”. Pocket calculator.
Note!
In many cases the subproblems can be solved independently of each other.
Good Luck!
1
1. Consider the dynamical system
ÿ + sin(ẏ) = −5y 2 + 5
Solution
x˙1 = x2 (1)
x˙2 = −5x21 − sin(x2 ) + 5 (2)
0 = x2 (3)
0 = −5x21 − sin(x2 ) + 5 (4)
Insertion of the first equation into the second yields −5x21 + 5 = 0 ⇔ −x21 +
1 = 0 ⇔ x1 = ±1. Hence, there are two equilibrium points, and these are
(x1 , x2 ) = (−1, 0) and (x1 , x2 ) = (1, 0)
c. Denote by f (x) the right-hand side of state-space representation. First, we
linearize the system.
!
df 0 1
= (5)
dx −10x01 − cos(x02 )
For (-1,0): Insertion of the equilibrium point yields
!
df 0 1
= (6)
dx 10 −1
q̈ = −(q 3 + q̇)
2
Solution
Using the states as suggested by the hint, we write the system on state-space
form. (
ẋ1 = x2
(8)
ẋ2 = −x31 − x2
We see that the origin is an equilibrium point. With c and d positive constants,
we have
V (0) = 0
V (x) > 0 for all x 6= 0
V (x) → ∞ as ||x|| → ∞
We further have V̇ = 4cx31 ẋ1 +2bx2 ẋ2 = 4cx31 x2 −2bx2 (x31 +x2 ). Let for instance
c = 1, d = 2. Then V̇ = −4x22 ≤ 0. The only solution of the state-space system
that yields V̇ = 0 is (x1 , x2 ) = (0, 0). It therefore follows from LaSalle’s theorem
that the origin is globally asymptotically stable.
a. Linearize the system around the limit cycle. In particular, write the linearized
system on the form
δ̇ = A(t)δ
b. The trajectory is periodic and can thus be seen as a limit cycle. Determine
whether this limit cycle is stable or not.
Hint: For this subproblem, introduce polar coordinates r and θ, i.e., let
x1 = r cos(θ)
x2 = r sin(θ)
(2 p)
Solution
3
and the first order Taylor expansion of f around x0 (t) is given by
∂f (x0 )
ẋ = f (x0 ) + δ
∂x
So
∂f (x0 )
ẋ0 + δ̇ = f (x0 ) +
δ
∂x
Since x0 (t) is a solution to the state equation we have ẋ0 = f (x0 ) and thus
∂f (x0 (t))
δ̇ = δ = A(t)δ
∂x
where
∂f1 (x0 (t)) ∂f1 (x0 (t)) !
∂x1 ∂x2 −4 sin2 (t) 1 − 4 sin(t) cos(t)
A(t) = = .
∂f2 (x0 (t)) ∂f2 (x0 (t)) −1 − 4 sin(t) cos(t) −4 cos2 (t)
∂x1 ∂x2
x1 = r cos(θ)
x2 = r sin(θ)
ṙ = r(2 − r2 ) (9)
θ̇ = −1 (10)
√
We see that the the only
√ equilibrium points are 0 and 2 (since r ≥ 0).
Linearizing around r = 2 (i.e. the limit cycle) gives:
r̃˙ = −4r̃
√
Since the eigenvalue is strictly negative, this implies that r = 2 is a locally
asymptotically stable equilibrium point. Hence the limit cycle is stable.
4. Consider an asymptotically stable linear system G(s), of which the Nyquist plot
is shown in Figure 1. The linear system is connected with negative feedback to
a static nonlinearity, Ψ, as shown in Figure 2.
4
Nyquist Diagram
1
0.8
0.6
0.4
0.2
Imaginary Axis
-0.2
-0.4
-0.6
-0.8
-1
-1 -0.5 0 0.5 1
Real Axis
+ P (s)
−Ψ(·) +
a. Use the Circle criterion to determine a sector for Ψ, as large as you can, such
that the feedback system is BIBO stable. (2 p)
b. Is the system BIBO stable for Ψ(·) = sin(·)? (1 p)
Solution
a. Figure 3 shows that the Nyquist plot lies inside the disk D(−0.5; 1). The max-
imal stability sector is therefore (−1; 2).
b. The function Ψ(x) = sin(x) is for instance bounded by the lines l1 = −x and
l2 = x. Since this is within the stability sector (−1; 2), the feedback system is
stable.
5
Figure 3 Nyquist plot of G(s)
ẋ1 = x2 + u
ẋ2 = x1
with the switch function σ(x) = x1 + 2x2 . They turn to you for advice, since
they lack experience in control design.
a. Design a sliding mode controller with the switch function σ(x). (2 p)
b. Determine the sliding set and the sliding dynamics. (1 p)
Solution
σ(x) = pT x = 0 (12)
6
b. The sliding set is where σ(x) = x1 + 2x2 = 0, i.e., the line x1 + 2x2 = 0.
To find the sliding dynamics, we first determine the equivalent control ueq . On
the sliding set we have
and therefore
ueq = −2x1 − x2
Solution
1
P (s) = .
s(s2 + s + 1)
A3 A3
Z 2π
b1 = sin(φ)4 dφ = ,
3π 0 4
A2
N (A) = .
4
7
c. We want to find out the points where ImP (iω) = 0. Some calculations gives
that
−(1 − ω 2 )
ImP (iω) = ,
ω((1 − ω 2 )2 + ω 2 )
which in its turn gives that ω = 1. Finally, this yields that
1 4
P (i) = −1 = − = − 2 ⇒ A = 2.
N (A) A
To conclude: The frequency of the limit cycle is ω = 1 rad/s and its amplitude
is A = 2.
7. Isabelle and Antonio work as control engineers in a toy factory. This year, they
aim to improve the number of toys produced per year, and have encountered
the following optimal control problem as a main challenge.
Z 1
Minimize 4u(t)2 dt + 6x(1)2
0
subject to
ẋ = u
x(0) = 1
Unfortunately, they are not very experienced in optimal control, and the rest
of the staff are on Winter vacation. They kindly ask you for help, since they
know that you have studied nonlinear control. Derive the optimal control law
for the problem above.
(3 p)
Solution
We have a fixed final time, tf = 1. Further,
Φ(x(tf )) = 6x(tf )2
L = 4u2
f (x, u) = u
Hamiltonian:
H = L + λf = 4u2 + λu
Adjoint equation:
λ̇ = −Hx = 0
λ(tf ) = Φx (x(tf )) = 12x(tf )
8
Hence, u = − 23 x(tf ).
The last step is to insert this into the system equation, which yields
Z tf
3 3 3 2
ẋ = − x(tf ) ⇔ x(tf ) − x(0) = − x(tf ) dt ⇔ x(1) − 1 = − x(1) ⇔ x(1) =
2 0 2 2 5