


















































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!



















































































A system is defined as autonomous if, given the state 𝑥 (which can be a scalar or a vector of n elements), its
derivative 𝑥̇ = 𝑓(𝑥) (state equation) is only function of 𝑥 and not also of time t => simplified mathematics.
The equilibrium configuration is a constant solution of the differential state equation:
If we assume to have a first order system (n=1 → scalar state) and the
equilibrium solution is 𝑥( 0 ) = 𝑥̅ then, for definition of equilibrium, the
state remains constant.
Stability means study the behavior of the state of the system when
perturbed. According to Lyapunov definition, a system is stable if for all ε > 0 there exists δ = δ(𝜀) > 0
such that:
The system is asymptotically stable if it is stable and lim
𝑡→∞
OSS: If the state is a vector we can choose any norm we want (definition of stability is independent from
the type of norm used).
Graphically we can say:
limited
around 𝑥̅ tend to zero
Let 𝑥 = 0 an equilibrium for nonlinear system 𝑥̇ = 𝑓
; instead of studying the nonlinear system we can
approximate the right-hand side to a first order approximation (can be computed both numerically and
analytically), such that:
𝑥= 0
By studying the eigenvalues of matrix A we can define a local condition for stability:
𝑖
) < 0 for all the eigenvalues of A;
𝑖
) > 0 for at least one the eigenvalues of A.
this is only a sufficient condition because the study of eigenvalues allows me to say if the system is AS or
not but from the asymptotical stability I cannot say that alle eigenvalues as a negative real part.
OSS: There is no condition for simple stability → not true that if 𝑅𝑒(λ 𝑖
) = 0 then stable system.
EXAMPLE: Pendulum with friction
State equation for pendulum (mass m and length l) is:
1
2
2
1
2
We can linearize in the vicinity of the stable equilibrium configuration 𝑥 = 0 :
1
2
2
1
2
Since the eigenvalues has a negative real part then 𝑥 = 0 is an AS equilibrium configuration.
Pendulum without friction (never stops)
State equation for pendulum (mass m and length l) is:
1
2
2
1
We can linearize in the vicinity of the stable equilibrium configuration 𝑥 = 0 :
1
2
2
1
The eigenvalues are imaginary, so the linearization criterion does not allow us to conclude about
the stability of the equilibrium → since analytical method fails, we can try to look at the problem
from a different perspective.
Another method to solve the stability problem is the energy-based approach: the total mechanical energy
of pendulum is given by the sum of a potential contribution (related to angular position) and a kinetic one
(related to first time derivative):
1
2
2
OSS: The term ( 1 − 𝑐𝑜𝑠(𝑥 1
)) is equal to 0 when the
pendulum points down, while is greater than 0 if you perturb
the angle or the angular rate.
By looking at the graph, we are qualitatively studying the rate
of change of the energy → along the level curves the energy
is constant, and its value is dictated by the initial conditions
(the reference for potential energy was such that 𝐸
while inside the curves the energy is less or equal than the
energy level defined by the level curve.
1
2
2
Having checked that 𝑉( 0 ) = 0 and 𝑉(𝑥) > 0 in −π < 𝑥
1
< π (we limit 𝑥
1
in order to avoid
periodicity problems due to the presence of cosine), we can compute the derivative along the
trajectory of the system:
1
1
2
2
1
2
1
2
Therefore we can prove that origin is stable.
EXAMPLE: Pendulum with friction
We can define the Lyapunov function as:
1
2
2
Having checked that 𝑉( 0 ) = 0 and 𝑉(𝑥) > 0 in −π < 𝑥
1
< π , we can compute the derivative
along the trajectory of the system:
1
1
2
2
2
2
In this case we are left with the friction term that allows us to conclude that the equilibrium is
stable but we cannot say anything about asymptotical stability ( problem ) → to prove asymptotical
stability we can either resort to linearization or use other tools.
is negative with respect to 𝑥
2
but not with respect to 𝑥
1
; if I move along 𝑥
1
I will have
1
= 0 => not asymptotically stable (but we know that it has to be asymptotically stable).
Assume that 𝑥 = 0 is an asymptotically stable equilibrium; then for which initial 𝑥 the solution of the state
equation converges to 0? We need to define the region of attraction as the set of point 𝑥 such that:
lim
𝑡→∞
Where 𝜙(𝑡, 𝑥) is the solution of the state equation.
In principle, to compute the region of attraction we can use the set 𝛺 𝑐
𝑟
∶ 𝑉(𝑥) ≤ 𝛽}. Indeed, if
𝑉(𝑥) satisfies the condition for AS, then all trajectories starting in 𝛺
𝑐
will be confined to the set and will
converge to 𝑥 = 0.
In general, we can start perturbing the equilibrium with small perturbations:
OSS: We cannot define the boundary of the region of attraction.
The equilibrium conditions for which lim
𝑡→∞
= 0 ∀𝑥 are called globally asymptotically stable (GAS).
An important theorem associated to this topic is the Barbashin-Krasovski theorem (similar to Lyapunov
theorem): let 𝑥 = 0 an equilibrium of the system and choose a smooth function 𝑉
such that:
Where V is a radially unbounded function. Then, if those conditions are satisfied the equilibrium is GAS.
OSS: If 𝑥 = 0 is GAS, then it is the sole equilibrium of the system.
OSS: Pendulum is an almost GAS because the set of initial conditions for which you don’t fall back in a set of
isolated points.
EXAMPLE: Consider the first order system given by:
2
Verify that 𝑥 = 0 is an equilibrium and study its stability.
The equilibrium condition is then:
2
Which has the unique solution 𝑥 = 0 , so this point is the only equilibrium of the system.
We then try a graphical approach to the stability analysis (by exploiting the fact that we have a first
order system), using the definition of stability. A plot of 𝑥̇ = −𝑥
2
allows us to study the sign of the
derivative as a function of the value of the state. Hence, we can study if at a given value of 𝑥 the
corresponding derivative is positive (increasing state) or negative (decreasing state).
To understand if we have a stable or AS
system we can try to perturb the system:
0
< 0 → 𝑥̇ < 0 => state will
decrease and will tend far away
from equilibrium point.
0
0 → 𝑥̇ < 0 => state is going to
decrease and remain negative until
it reaches 0.
Since we have found (arbitrarily small)
perturbations leading to unbounded motion
of the state away from equilibrium we can
conclude that the equilibrium is unstable.
EXAMPLE: Consider the first order system given by:
3
Verify that 𝑥 = 0 is an equilibrium and study its stability.
The equilibrium condition is then:
3
Angular motion is governed by the Euler equations:
Where 𝑀 is the vector of external moments.
If we assume 𝑀 = 0 then the equilibrium configuration is 𝜔 = 0 => we are looking for control law to define
1
2
and 𝑀
3
such that 𝜔 = 0 is verified:
This control law is proportional the angular velocity and 𝑘 is defined as the gain of the controller. This value
can be chosen in different ways:
OSS: If I work with principal axes K can be diagonal, otherwise K shall be a full matrix.
I can now substitue the control law into the Euler equation → feedback system
To prove that the controller works I have to verify that 𝜔 = 0 → I can use Lyapunov theorem:
Where 𝑉(𝜔) can be defined as a quadratic term that represents the kinetic energy of the system:
𝑇
1
1
2
2
2
2
3
3
2
Which satisfies the conditions. Let’s compute the derivative:
1
1
1
2
2
2
3
3
3
𝑇
We notice that this is equal to the left-hand side of the state equation; therefore:
𝑇
𝑇
𝑇
𝑇
The second term can be rewritten as:
𝑇
1
1
2
2
2
2
3
3
2
Which is for sure negative (gains must be positive).
The first term isntead is a cubic expression and therefore is not easy to study its sign → 2 ways:
derivative of kinetic energy (for physical reasons).
𝑇
as a consequence, 𝑉
< 0 and 𝜔 = 0 is an AS equilibrium. Since 𝑉
is radially unbounded then it is
also a GAS configuration.
OSS: Our controller makes 𝜔 = 0 AS but also destoys all the other possible equilibria => we have only 1
equilibrium condition.
It is observable that we have no informations regarding the time required to complete the detumbling →
we are trying to see if there is a correlation between the gain 𝑘 and the time of the transient.
Let’s for example take 𝑘 = 𝛼𝐼; then:
𝑇
Where − 2 𝛼 is the eigenvalue of the system. From this we can recover the time constant associated to the
system:
possibility for kinetic energy to increase (it monotonically decrease). As a consequence, a smart choice of
the gain allows to trick analytically the quantification of the performance.
OSS: Theoretically speaking we can choose 𝛼 as large as we want (to improve performance) but in practice
the torque 𝑀 is limited due to physical limits of actuators → saturation happens to every system. There are
2 ways to deal with saturation:
Let’s prove again the asymptotical stability:
𝑇
1
1
1
2
2
2
3
3
3
To check if our controller still works we have to check every term (in linear case):
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Consequently 𝜔 = 0 is still a GAS even if saturation occurs → stability is preserved but predicting
the behaviours of the transient is more complicated.
In case of saturation the transient is give by 2 phases: the first one where at least one of the
branches is saturated, and the second where I’m close enough to the equilibrium and the behaviour
is exponential.
In some cases it is useful to prove instability of an equilibrium rather than its stability or asymptotical
stability.
Ther exist a number of instability theorem, like Chetaev theorem.
Consider a linar system:
With unknown 𝑎 and let’s verify that the controller garantees globally that 𝑦(𝑡) → 0 for 𝑡 → ∞.
zero
no matter what value 𝑎 assumes, the request is always satisfied.
additional equation (
2
) which modifies the value of 𝑘 depending on the
behaviour of the system. The problem with this method is that is not easy to prove that 𝑘
will converge to a constant value that is appropriate to drive 𝑦 to zero.
We can try to apply method 1 and write ste state space system, letting 𝑥
1
= 𝑦 and 𝑥
2
1
1
1
2
2
1
2
= γ𝑥
1
2
From the equations we can see that the line 𝑥 1
= 0 (with 𝑥
2
arbitrary value) is an equilibrium set for the
feedback system.
2
= 𝑎 is not an equilibrium set because the second equation is not satisfied.
What we need to prove now is that no matter what is the value of 𝑎 =, the system will converge to the
equilibrium set (means that we are driving 𝑦 to zero) → we shall define a special function (like we did for
Lyapunov):
1
2
2 γ
2
2
And compute its derivative along the trajectories of the system:
1
1
2
2
1
2
2
1
2
2
1
2
(𝑥) = 0 when 𝑥
1
= 0 (set of equilibria => 𝑥
2
1
) = 0 ) → now I need to find the largest invariant
contained in 𝑥 1
= 0 , which is the set itelf => for this system no matter what initial conditon we give to the
set and no matter what initial condition we give to the gain, for 𝑡 → ∞, 𝑥 will tend to the equilibria set and
the gain will tend to some value that right now we don’t know.
OSS: The Lyapunov function depends on a parameter 𝑏 which has to satify 𝑏 > 𝑎. The value of 𝑏 is not
known explicitly but we know that it always exists.
Let’s now analyze some responses of 𝑦 and 𝑘 (𝛾 = 1 ):
gain.
the output if different from zero).
OSS: In this case we cannot use Lyapunov because we are proving convergence to a set not to an
equilibrium => we need to know the steady state of the value of the gain beforehand but this is not
possible because it is unknown.
In L+ state space the gain can be represented as seen in the figure below. In all cases (green, blue and red
lines) the output goes to zero but follows different trajectories.
How do we check the closed-loop stability and/or design R(s) for closed-loop stability? The calssical tools
used are:
applications sucha as rotorcraft (most helicpters are open-loop unstable)
give information about the behaviour of the output or of the error (it depends only on R(s) ang
G(s)).
OSS: The most robustness indicators are: phase margin and gain margin.
To define SISO performance we can assume that closed-loop system is asymptotically stable; then the
Laplace transform of the output is:
0
0
Where 𝐿(𝑠) is the cascade of R(s) (which is the regulator) and G(s) (which is the system transfer function).
If the input is a step, then 𝑦(𝑡) will tend to a
constant value and the shape of the transfer
function will affect both the shape (if system
is damped or not → oscillations) and the
duration (settling time) of the transient.
A typical example of step response is
reported in the figure on the right, where
the oscillations may or may not be tollerable
depending on the problem.
STATIC ERROR = difference between the real
behaviour and the mean value.
The loop performance is completely described by
2 transfer functions only:
1
1 +𝐿(𝑠)
S(s) describest the effect of 𝑦
0
and 𝑑 on
the error 𝑒 (ideally 0).
Its low frequency behaviour will affect the static behaviour of the system.
𝐿(𝑠)
1 +𝐿(𝑠)
F(s) describes the effect of 𝑛 on 𝑒 (ideally 0) but also the effect of 𝑦
0
on 𝑦 (ideally 1) → problem:
you wan to make is small and large at the same time
We can now express the output and error in Laplace space as:
0
OSS: S(s) and F(s) are not independent:
This is a big contraint because whenever S(s) is small, F(s) is large and viceversa.
Static performance is studied in sense of the response to standard inputs:
point changes
With canonical inputs the Laplace transform of the input and of the error are defined as:
0
𝑟
0
𝑟
As the closed-loop system is asymptotically stable (we assumed it at the beginning) we can study
what happens at steady state using the Final value theorem :
lim
𝑡→∞
𝑒(𝑡) = lim
𝑠→ 0
𝑠 𝐸(𝑠) = lim
𝑠→ 0
𝑟
To compute this limit we must know the L(s) function → general form:
𝑔
𝑖
𝑖
𝑖
𝑖
2
𝑛𝑖
2
𝑖
𝑛𝑖
𝑖
2
𝑛𝑖
2
𝑖
𝑛𝑖
𝑖
Where the first term represents poles/zeros in the origin (we know it for physical reasons), the
second one represents real poles/zeros, and the third term represents complex coniugate
poles/zeros.
Therefore the static error is given by:
lim
𝑡→∞
𝑒(𝑡) = lim
𝑠→ 0
𝑠 𝐸(𝑠) = lim
𝑠→ 0
𝑔
𝑔
𝑟− 1
Let’s now analyze the results in detail:
𝑡→∞
𝑒(𝑡) = lim
𝑠→ 0
𝑠
𝑔
𝑠
𝑔
+𝜇
1
1 +𝜇
𝑡→∞
𝑒(𝑡) = lim
𝑠→ 0
𝑠
𝑔
𝑠
𝑔
+𝜇
1
1 +𝜇
Let’s now study the effect of noises on the error (F(s)). Assume that the Laplace transform of 𝑛 is
give by:
2
2
Then the Laplace transform of the error will be given by:
2
2
2
2
The magnitude of the complementary sensitivity is then given by:
𝑐
𝑐
Output is be affected by input and distrubances ; therefore, if F(s) is high then we need to check
that the disturbances aqre not (possibly) in the bandwidth of the complementary sensitivity.
OSS: The effect on a sinusoidal input on the control error can be analyzed directly from the Bode
plots of the frequency response of L(s).
OSS: It is necessary to perform acuurate tradeoffs between disturbance attenuation and tracking
performance.
The goal here is to relate the transient characteristic to suitable parameters of the frequency response of
L(s) → we focus on the shape and duration of the transient due to the variations of 𝑦 0
(we focus on F(s)).
If F(s) is not a II order function, then we seek a second order approximation :
2
𝑛
2
2
𝑛
𝑛
2
The problem now is how to choose 𝜔 𝑛
and 𝜉 to model F(s) in an accurate way.
In order to get a slope change at 𝜔 = 𝜔 𝑐
we can set 𝜔
𝑛
𝑐
and choose 𝜉 such that:
𝑐
2
𝑐
Which means that I can reach the same resonance peak.
Therefore, recalling that
𝑐
= 1 and ∠𝐿
𝑐
𝑚
𝑐
(crossover phase), we get that:
𝑐
𝑐
𝑐
𝑗𝜙
𝑐
|
We can now notice that:
𝑗𝜙
𝑐
= 𝑒
𝑗(𝜋−𝜙
𝑚
)
𝑗𝜙
𝑐
= 1 + cos(𝜋 − 𝜙
𝑚
𝑚
) = 1 − cos(𝜙
𝑚
𝑚
𝑗𝜙 𝑐
1 − cos
𝑚
2
𝑚
2
1 + cos
2
𝑚
𝑚
2
− 2 cos
𝑚
= √ 2 − 2 cos(𝜙
𝑚
1 − cos
𝑚
𝑚
Therefore:
𝑐
𝑗𝜙
𝑐 |
𝑚
2
𝑐
𝑐
2
𝑐
2
𝑐
2
𝑐
2
From which:
𝑚
𝑚
𝑚
°
Therefore, the settling time of the approximate second order model will be given by:
𝐴
𝑛
𝑚
𝑐
The second order model also makes it possible to predict the shape of the transient and the overshoot of
the oscillations(if any):
%
−𝜉𝜋
√ 1 −𝜉
2
So far the only effect of inputs on 𝑒 and 𝑦 has
been studied, but in practical cases we have to
understand how the control command 𝑢
behaves (check the control) → we shall
introduce control sensitivity function :
Which represents the effect of both 𝑦
0
and 𝑑 on 𝑢.
Its magnitude can be defined as:
𝑐
𝑐
In summary, one can say that the shape of the frequency response of the sensitivity function defines the
actual closed-loop performance of the feedback system → different aspects of performance relate different
properties of the frequency response, but is should be possible to represent requirements concisely as
frequency-dependent weights on the response:
𝑝
𝑝
Where 𝑊 𝑝
(𝑗𝜔) is the weight transfer function (in this case associated to the sensitivity function). It can be
choses to have:
𝜏
ℒ
𝜏
ℒ
For all 𝑢 ∈ ℒ and 𝜏 ∈ [ 0 , ∞) → if I can compute 𝛾 (unknown), it tells me how large the effect of the input is
on the output with respect to the norm chosen.
OSS: ℒ-stability and Lyapunov stability are different: the former studies the stability of the system with an
input, the latter studies the stability of a system with no input.
When ‖(𝐻𝑢)
𝜏
ℒ
𝜏
ℒ
the inequality is true for 𝛾 = 𝑛 then it is also true for 𝛾 = 𝑛 + 1 and so on). If the smallest 𝛾 is well defined,
then it is called gain of the system.
The ℒ 2
gain plays a significant role in many control problems → used to guarantee ℒ
2
feedback system, but also to maximize the attenuation of the disturbances. Therefore, it is useful to find
ways to compute or at least upper bound the ℒ 2
gain for some classes of systems.
Let’s consider the generical AS LTI system:
Which can be represented by the following transfer function:
− 1
Then, the ℒ 2
gain of the system is 𝑠𝑢𝑝
𝜔∈ℝ
2
2
gain is the maximum over the frequency of the magnitude of the
frequency response of G(s) : 𝑠𝑢𝑝
𝜔∈ℝ
2
𝜔∈ℝ
2
2
gain is the 𝐻
∞
norm of the transfer function G(s): 𝑠𝑢𝑝
𝜔∈ℝ
2
𝜔∈ℝ
𝑚𝑎𝑥
𝑇
𝑚𝑎𝑥
Let’s now prove that the gain is ≤ than the 𝑠𝑢𝑝
𝜔∈ℝ
2
. Let 𝑥( 0 ) = 0 and introduce the Fourier
transform of 𝑢 and 𝑦:
−𝑗𝜔𝑡
∞
0
−𝑗𝜔𝑡
∞
0
Which are related by 𝑌(𝑗𝜔) = 𝐺(𝑗𝜔)𝑈(𝑗𝜔).
The ℒ 2
norm of 𝑦(𝑡) is by definition:
ℒ
2
2
𝑇
∞
0
Using the Parseval’s theorem (property of the Fourier transform) we can write the ℒ 2
norm (if it exists) as:
ℒ 2
2
𝜔∈ℝ
2
ℒ 2
2
And therefore:
ℒ
2
𝜔∈ℝ
ℒ
2
Which can be simply verified graphically.
𝜔∈ℝ
is what we obtain if we assume G constant amd equal to its maximum value.
We can now take into account a non-linear system → input-affine system (𝑥̇ is not a generical funtion of the
input but it has a preicse form):
With the initial condition 𝑥
= 0 , such that 𝑓
= 0 and ℎ
For 𝛾 > 0 , the system is ℒ 2
stable with finite gain less that 𝛾 and for all 𝑥
0
if there exists a function 𝑉(𝑥) ≥
0 (must be non negative) such that:
2
𝑇
𝑇
𝑇
This expression is called Hamilton-Jacobi inequality , where
𝜕𝑉
𝜕𝑥
𝑓(𝑥) is related to the behaviour of the system
in case the input is zero.
If now we consider a LTI system:
And choose as HJ function:
𝑇
Then 𝑉(𝑥) satisfies the HJ inequality if and only if 𝑃 satisfies the inequality:
𝑇
2
𝑇
𝑇
This relation is called performance inequality and it has no frequency dependenc. We can observe that if
𝛾 → ∞, then
1
𝛾
𝑇
𝐵𝑃 → 0 and 𝐶
𝑇
𝐶 will be positive (is a square) therefore we obtain a similar expression
to Lyapunov.
Therefore, the system is ℒ 2
stable with finite gain less than 𝛾 if and only if this condition holds. The ℒ
2
norm can also be defined in time domain.
Recall that for SISO feedback system performance was defined as the inequality:
𝑝
Which is equivalent to:
𝜔∈ℝ
𝑝