Me Auto
Me Auto
Me Auto
approach
Olivier Sename
Introduction
Modelling
Properties (stability)
State feedback
Olivier Sename control
Problem formulation
Controllability
Grenoble INP / GIPSA-lab Definition
Pole placement control
Specifications
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Introduction Specifications Linear models
Modelling of dynamical systems as Integral Control or how to ensure Linearisation
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
Introduction
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
References approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
Some interesting books: To/from transfer
functions
I K.J. Astrom and B. Wittenmark, Computer-Controlled Systems,
Properties (stability)
Information and systems sciences series. Prentice Hall, New State feedback
Jersey, 3rd edition, 1997. control
Problem formulation
I R.C. Dorf and R.H. Bishop, Modern Control Systems, Prentice Controllability
Definition
Hall, USA, 2005. Pole placement control
Specifications
I G.C. Goodwin, S.F. Graebe, and M.E. Salgado, Control System Integral Control
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
The "control design" process approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
I Plant study and modelling Properties (stability)
I Determination of sensors and actuators (measured and controlled State feedback
control
outputs, control inputs) Problem formulation
Controllability
I Performance specifications Definition
Pole placement control
I Control design (many methods) Specifications
Integral Control
I Simulation tests
Observer
I Implementation, tests and validation Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
The "control design" process in CLEAR approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
About modelling... approach
Olivier Sename
Introduction
Identification based method Modelling
Nonlinear models
I System excitations using PRBS (Pseudo Random Binary Signal) Linear models
Introduction to
Tools: Matlab/Simulink, LMS Imagine.Lab Amesim, Catia-Dymola, optimal control
Conclusion
State space
Simulation of complex system (LMS Imagine.Lab AMESim) approach
Olivier Sename
Introduction
Modelling
System Simulation for Controller Design Nonlinear models
What it means and what is required Linear models
Linearisation
To/from transfer
functions
Properties (stability)
Simulation of the complete system using an assembly
of components State feedback
Components are described with analytical or tabulated control
models Problem formulation
Controllability
Multi-physics / Multi-level approach
Definition
Control-oriented actuator models Pole placement control
Description of physical phenomena based on few Specifications
“macroscopic” parameters Integral Control
Models for static and dynamic responses, in time &
Observer
frequency domains
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
Restricted © Siemens AG 2016 digital control
Page 9 Siemens PLM Software
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Why state space equations ? approach
Olivier Sename
Introduction
Modelling
Nonlinear models
I dynamical systems where physical equations can be derived : Linear models
Properties (stability)
I include physical parameters: easy to use when parameters are
State feedback
changed for design. Need only for parameter identification or control
knowledge. Problem formulation
Controllability
I State variables have physical meaning. Definition
Pole placement control
I Advanced control design methods are based on state space Observer design
Observer-based
equations (reliable numerical optimisation tools) control
Introduction to
digital control
Conclusion
State space
Towards state space representation approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
What is a state space system ? Linearisation
To/from transfer
A "matrix-form" representation of the dynamics of an N- order functions
differential equation system into a FIRST order differential equation in a Properties (stability)
variables, that fully describe the system and its response to any given Specifications
Integral Control
set of inputs. Observer
Mathematically, the knowledge of the initial values of the state variables Observation
Observability
at t0 (namely xi (t0 ), i = 1, ..., n), together with the knowledge of the Observer design
system inputs for time t ≥ t0 , are sufficient to predict the behavior of the Observer-based
control
future system state and output variables (for t ≥ t0 ).
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Definition of a NonLinear dynamical system approach
Olivier Sename
Introduction
Modelling
Many dynamical systems can be represented by Ordinary Differential Nonlinear models
Linear models
Equations (ODE). Linearisation
A nonlinear state space model consists in rewritting the physical To/from transfer
functions
equation into a first-order matrix form as Properties (stability)
( State feedback
ẋ(t) = f ((x(t), u(t), t), x(0) = x0 control
(1) Problem formulation
Introduction to
digital control
Conclusion
State space
Example of a one-tank model approach
Olivier Sename
Introduction
Usually the hydraulic equation is non linear and of the form Modelling
Nonlinear models
Linear models
dH Linearisation
S = Qe − Qs To/from transfer
dt functions
Properties (stability)
where H is the tank height, S the tank
√surface, Qe the input flow, and State feedback
Qs the output flow defined by Qs = a H. control
Problem formulation
√ Introduction to
with x = H, f (x, u) = − Sa x + S1 u optimal control
Introduction to
digital control
Conclusion
Example: Underwater Autonomous Vehicle UAV Aster x
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Actions: axial propeller to control the velocity in Ox direction and 5 Observer design
independent mobile fins : Observer-based
I 2 horizontals fins in the front part of the vehicle (β1 , β10 ). control
Introduction to
I 1 vertical fin at the tail of the vehicle (δ ). optimal control
Conclusion
State space
UAV modelling approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Physical model: Linear models
Linearisation
To/from transfer
M ν̇ = G(ν)ν + D(ν)ν + Γg + Γu (3) functions
Properties (stability)
State feedback
η̇ = Jc (η2 )ν (4) control
Problem formulation
Controllability
where: Definition
- M: mass matrix: real mass of the vehicle augmented by the Pole placement control
Specifications
"water-added-mass" part, Integral Control
Introduction to
digital control
Conclusion
State space
UAV state definition approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
T Linearisation
A 12 dimensional state vector : X = η(6) ν(6) . To/from transfer
functions
T
I η(6): position in the inertial referential: η = η1 η2 with Properties (stability)
T T State feedback
η1 = x y z and η2 = φ θ ψ . x, y and z are the control
positions of the vehicle , and φ , θ and ψ are respectively the roll, Problem formulation
Controllability
pitch and yaw angles. Definition
Pole placement control
I ν(6): velocity vector, in the local referential (linked to the vehicle) Specifications
describing the linear and angular velocities (first derivative of the Integral Control
T Observer
position, considering the referential transform: ν = ν1 ν2 with Observation
T T Observability
ν1 = u v w and ν2 = p q r Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Exercise: a simple pendulum approach
Olivier Sename
Let consider the following pendulum
Introduction
Modelling
T Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
l State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
θ Observation
Observability
Observer design
M Observer-based
control
Introduction to
optimal control
where θ is the angle (assumed to be measured), T the controlled Introduction to
torque, l the pendulum length, M its mass. Give the dynamical digital control
equations of motion for the pendulum angle (neglecting friction) and Conclusion
Olivier Sename
Introduction
Modelling
A continuous-time LINEAR state space system is given as : Nonlinear models
Linear models
(
ẋ(t) = Ax(t) + Bu(t), x(0) = x0 Linearisation
To/from transfer
(5) functions
y (t) = Cx(t) + Du(t) Properties (stability)
State feedback
I x(t) ∈ Rn is the system state (vector of state variables), control
Problem formulation
Observer-based
n is the order of the state space representation. control
Matlab : ss(A,B,C,D) creates a SS object SYS Introduction to
optimal control
representing a continuous-time state-space model
Introduction to
digital control
Conclusion
State space
A state space representation of a DC Motor approach
Olivier Sename
Introduction
Modelling
Assumption: only the speed is measured. Nonlinear models
Linear models
The dynamical equations are : Linearisation
To/from transfer
functions
di
Ri + L + e = u e = Ke ω Properties (stability)
dt State feedback
dω control
J = −f ω + Γm Γm = K c i Problem formulation
dt Controllability
Definition
System of 2 equationsof order
1 =⇒ 2 state variables. Pole placement control
Specifications
ω
A possible choice x = It gives: Integral Control
i Observer
Observation
−f /J Kc /J 0
A= B= C= 0 1 Observability
Observer-based
How to extend this definition when: measurement= motor angular control
position θ ? Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Examples: Suspension approach
Olivier Sename
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
where x1 is the relative position (measured), M1 the system mass, k1 Observer design
the spring coefficient, u the force generated by the active damper, and Observer-based
control
F1 is an external disturbance. Applying the mechanical equations
Introduction to
around the equilibrium leads to: optimal control
Introduction to
M1 ẍ1 = −k1 x1 + u + F1 (6) digital control
Conclusion
State space
Examples: Suspension cont. approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
x1 To/from transfer
The choice x = gives functions
ẋ1 Properties (stability)
State feedback
ẋ(t) = Ax(t) + Bu(t) + Ed(t) control
Problem formulation
y (t) = Cx(t) Controllability
Definition
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Example : Wind turbine modelling from CAD software approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Some important issues approach
Olivier Sename
Introduction
Modelling
I A complete ADAMS or CATIA model can include 193 DOFs to Nonlinear models
represent fully flexible tower, drive-train, and blade components ⇒ Linear models
Linearisation
simulation model To/from transfer
functions
I Different operating conditions according to the wind speed Properties (stability)
I Control objectives: maximize power , enhance damping in the first State feedback
control
drive train torsion mode, design a smooth transition different Problem formulation
modes Controllability
Definition
I The control model is obtained by a linearisation of a non linear Pole placement control
Specifications
electro-mechanical model (done by the software): Integral Control
Observer
ẋ(t) = Ax(t) + Bu(t) + Ed(t) Observation
Observability
y (t) = Cx(t) Observer design
Observer-based
where x1 = rotor-speed x2 = drive-train torsion spring force, x3 = control
Conclusion
State space
Homework approach
Olivier Sename
Introduction
Modelling
Let the following quarter car model with active suspension. Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Observer-based
Choose some state variables and give a state space representation of control
Introduction to
digital control
Conclusion
State space
Linearisation: how to get a linear model from a nonlinear approach
(7) Linearisation
Properties (stability)
Defining
x̃ = x − xeq , ũ = u − ueq , ỹ = y − yeq State feedback
control
Problem formulation
this leads to a linear state space representation of the system, around Controllability
the equilibrium point: Definition
Pole placement control
˙
( Specifications
x̃(t) = Ax̃(t) + B ũ(t), Integral Control
(8)
Observer
ỹ (t) = C x̃(t) + D ũ(t) Observation
Observability
∂f
with A = |
∂ x x=xeq ,u=ueq
, B = ∂∂uf |x=xeq ,u=ueq , Observer design
∂g
C= |
∂ x x=xeq ,u=ueq
and D = ∂∂ gu |x=xeq ,u=ueq Observer-based
control
Introduction
Modelling
Observer
Then the transfer function matrix of system (10) is given by Observation
Observability
Observer design
N(s)
G(s) = C(sIn − A)−1 B + D = (11) Observer-based
D(s) control
Introduction to
optimal control
Olivier Sename
Introduction
Modelling
Nonlinear models
There mainly three cases to be considered Linear models
Linearisation
Simple numerator To/from transfer
functions
y 1
= G(s) = 3 2
Properties (stability)
u s + a1 s + a2 s + a3 State feedback
control
Numerator order less than denominator order Problem formulation
Controllability
y b s2 + b2 s + b3 N(s) Definition
= G(s) = 3 1 2
= Pole placement control
u s + a1 s + a2 s + a3 D(s) Specifications
Integral Control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Canonical forms approach
Olivier Sename
Introduction
Modelling
For the strictly proper transfer function: Nonlinear models
Linear models
Linearisation
sn−1
c0 + c1 s + . . . + cn−1 To/from transfer
G(s) = functions
State feedback
a very well-known specific state space representations, referred to as control
Problem formulation
the controllable canonical form is defined
as: Controllability
0 1 0 ... 0 0
Definition
. Specifications
.. .. .. .. ..
Integral Control
A= . . . . . , B = . and
.. Observer
0 .. Observation
. 0 1 0 Observability
Observer design
−a0 −a1 . . . . . . −an−1 1
Observer-based
C= c0 c1 ... cn−1 . control
Introduction to
digital control
Conclusion
State space
What is a canonical form for a physical system? approach
Olivier Sename
It is worth noting that the following state space representation
Introduction
0 1 0 ... 0 0
Modelling
Nonlinear models
0 0 1 0 ... .. Linear models
.. .. .. .. ..
.
Linearisation
d ny d n−1 y
Observation
Observability
n
+ an−1 n−1 + . . . + a1 ẏ + a0 y = u Observer design
dt dt
Observer-based
control
This indeed can be reformulated into N simultaneous first-order
Introduction to
differential equations defining the state variables : optimal control
Introduction to
d n−1 y digital control
x1 = y , , x2 = ẏ , , . . . xn = ,
dt n−1 Conclusion
State space
How to compute the solution x(t) of a linear system? approach
Olivier Sename
Introduction
This theoretical problem is solved now using simulation tools (as Modelling
Simulink) Nonlinear models
Linear models
function eAt , which can be done following one of the 3 methods to Observer
compute eAt : Observation
Observability
Observer-based
2. Diagonalisation of A control
Introduction to
3. Cayley-Hamilton method optimal control
Conclusion
State space
How to compute the solution x(t) of a linear system ? approach
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
State feedback
Z t control
At A(t−τ)
x(t) = e x(0) + e Bu(τ)dτ (13) Problem formulation
|0
| {z } Controllability
{z } Definition
free response
forced response Pole placement control
Specifications
Integral Control
Observer
Simulation of state space systems Observation
Observability
Example: Observer-based
control
t = 0:0.01:5; u = sin(t); lsim(sys,u,t) Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
Properties control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Non unicity approach
Olivier Sename
Introduction
Linearisation
State feedback
the transfer matrix being G(s) = C(sIn − A)−1 B + D,
and consider the control
Problem formulation
change of variables x = Tz (T being an invertible matrix). Replacing Controllability
Observer
y (t) = CTz(t) + Du(t) (16) Observation
Observability
Observer-based
Introduction to
y (t) = CTz(t) + Du(t) (18) optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Defining à = T −1 AT , B̃ = T −1 B and C̃ = CT , the transfer function of Modelling
the previous system is: Nonlinear models
Linear models
Linearisation
−1
G̃(s) = C̃(sIn − Ã) B̃ + D (19) To/from transfer
functions
−1 −1 −1
= C T (sIn − T AT ) T B +D (20) Properties (stability)
State feedback
(21) control
Problem formulation
Observer-based
and give the equivalent state space representation. control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Stability approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Definition Linear models
Linearisation
An equilibrium point xeq is stable if, for all ρ > 0, there exists a η > 0 To/from transfer
Properties (stability)
Observer-based
These notions are equivalent for linear systems (not for non linear control
ones). Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Stability Analysis approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
The stability of a linear state space system is analyzed through the To/from transfer
functions
Re(λi ) < 0, ∀i, where λi , ∀i, are the eigenvalues of A. Integral Control
Observer
Using Matlab, if SYS is an SS object then pole(SYS) computes the Observation
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
The Phase Plane approach
It consists in plotting the trajectory of the state variables (valid also for Olivier Sename
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Objective of any control system approach
Olivier Sename
Nominal Performance (NP): The system satisfies the performance Pole placement control
Specifications
specifications with the nominal model (no model Integral Control
uncertainty) Observer
Observation
Robust stability (RS): The system is stable for all perturbed plants Observability
Observer design
about the nominal model, up to the worst-case model
Observer-based
uncertainty (including the real plant) control
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
How to design a controller using a state space representation ? Linearisation
Two classes of controllers do exist (in red those studied in the course): To/from transfer
functions
State feedback
I Dynamic controllers (output feedback or observer-based) control
Problem formulation
Observer
I Model tracking Observation
Observability
I Input/Output decoupling Observer design
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Why state feedback and not output feedback? approach
Olivier Sename
y (s) 1
Exercise: G(s) = u(s) = s2 −s Introduction
Follow the steps below:
Modelling
Nonlinear models
1. Define x1 = y , x2 = ẏ . Write the differential equations that the Linear models
state variables (x1 , x2 ) do satisfy. Deduce the state space system Linearisation
To/from transfer
representation, and check that this corresponds to the controllable functions
State feedback
2. Case of output feedback= Proportional control : control
Let us consider u = Kp (yref − y ) Problem formulation
Controllability
I Compute the transfer function of the closed-loop system (with unitary Definition
feedback), and check that the closed-loop system poles are those Pole placement control
Olivier Sename
det(C ) 6= 0. Observer
Observation
Observability
Using Matlab, if SYS is an SS object then crtb(SYS) returns the Observer design
Introduction to
Test the controllability of the previous examples: DC motor, suspension, digital control
inverted pendulum. Conclusion
State space
Definition of the state feedback control approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Properties (stability)
.. 2
Observation
.
. = .. .
Observability
.. .
.. Observer design
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
State feedback (2): stabilization approach
Olivier Sename
simplicity D = 0) Modelling
Nonlinear models
ẋ(t) = (A − BF )x(t), Linear models
(24)
y (t) = Cx(t) Linearisation
To/from transfer
functions
The stability (and dynamics) of the closed-loop system is then given by Properties (stability)
the eigenvalues of A − BF . State feedback
Indeed, in that case, the solution y (t) = C exp(A−BF )t x0 converges control
Problem formulation
asymptotically to zero! Controllability
Definition
Pole placement control
Specifications
But what happens if the closed-loop system must also track a Integral Control
We might select u(t) = r (t) − Fx(t). Therefore the closed-loop transfer Observability
Observer design
matrix is :
Observer-based
y (s)
= C(sIn − A + BF )−1 B (25) control
r (s) Introduction to
optimal control
for which the static gain is C(−A + BF )−1 B and may differ from 1!! Introduction to
digital control
The control law must be completed.
Conclusion
State space
State feedback (3): complete solution for reference tracking approach
Olivier Sename
When the objective is to track some reference signal r , i.e
Introduction
y (t) −→ r (t), Modelling
t→∞ Nonlinear models
Linear models
the state feedback control must be of the form: Linearisation
To/from transfer
functions
u(t) = −Fx(t)+Gr (t) (26) Properties (stability)
State feedback
where G is a m × p real matrix to be determined. control
Introduction to
optimal control
F Need to adapt when D 6= 0 Introduction to
digital control
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
How to synthetize the state feedback control gain F ? approach
Introduction
Modelling
Problem definition Nonlinear models
Given a linear system (5), does there exist a state feedback control law Linear models
Linearisation
(23) such that the closed-loop system poles are in predefined locations To/from transfer
functions
(denoted γi , i = 1, ..., n ) in the complex plane ? Properties (stability)
State feedback
Proposition control
Problem formulation
Let a linear system given by A, B, and let γi , i = 1, ..., n , a set of Controllability
complex elements (i.e. the desired poles of the closed-loop system). Definition
Pole placement control
There exists a state feedback control u = −Fx such that the poles of Specifications
Integral Control
the closed-loop system are γi , i = 1, ..., n if and only if the pair (A, B) is
Observer
controllable. Observation
Observability
In Matlab, use F=acker(A,B,P) or F=place(A,B,P) where Observer design
Here we assume that the system state space model is of the form: Olivier Sename
0 1 0 ... 0 0
Introduction
0 0 1 0 ... .. Modelling
.
.. .. .. .. ..
Nonlinear models
A= . . . . . , B = . and
.. Linear models
Linearisation
0 ..
To/from transfer
. 0 1 0 functions
sn−1
Definition
c0 + c1 s + . . . + cn−1 Pole placement control
G(s) =
a0 + a1 s + . . . + an−1 sn−1 + sn Specifications
Integral Control
Observer
Let F = [ f1 f2 ... fn ] Observation
Then Observability
Observer design
0 1 0 ... 0 Observer-based
control
0 0 1 0 ... Introduction to
.. .. .. .. ..
optimal control
A − BF =
. . . . .
(29) Introduction to
.. digital control
0 . 0 1 Conclusion
Olivier Sename
State feedback
control
(s − γ1 )(s − γ2 )...(s − γn ) = sn + αn−1 sn−1 + . . . + α1 s + α0 Problem formulation
Controllability
Observer
ensures that the poles of A − BF are {γi }, i = 1, n. Observation
Observability
Observer design
Observer-based
Remark control
the case of controllable canonical forms is very important since , when Introduction to
optimal control
we consider a general state space representation, it is first necessary to Introduction to
use a change of basis to make the system under canonical form, which digital control
will simplify a lot the computation of the state feedback control gain F . Conclusion
State space
How to specificy the desired closed-loop performances? approach
Olivier Sename
The required closed-loop performances should be chosen in the
following zone Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
which ensures a damping greater than ξ = sin φ . digital control
−γ implies that the real part of the CL poles are sufficiently negatives Conclusion
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
Some useful rules for selection the desired pole/zero locations (for a functions
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Specifications(3) approach
Olivier Sename
Some rules do exist to shape the transient response. The ITAE (Integral
of Time multiplying the Absolute value of the Error), defined as: Introduction
Z ∞ Modelling
Nonlinear models
ITAE = t|e(t)|dt Linear models
0 Linearisation
To/from transfer
can be used to specify a dynamic response with relatively small functions
overshoot and relatively little oscillation (there exist other methods to do Properties (stability)
so). The optimum coefficients for the ITAE criteria are given below (see State feedback
control
Dorf & Bishop 2005). Problem formulation
Controllability
Order Characteristic polynomials dk (s) Definition
Introduction to
optimal control
and the corresponding transfer function is of the form:
Introduction to
digital control
ωnk
Hk (s) = , ∀k = 1, ..., 6 Conclusion
dk (s)
State space
Specifications(4): responses of the optimum ITAE approach
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Integral Control or how to ensure disturbance attenuation approach
Introduction
Properties (stability)
Introduction to
optimal control
BUT
Introduction to
A state feedback controller may not allow to reject the effects of digital control
disturbances (particularly of input disturbances)!! Conclusion
State space
Formulation of the Integral Control approach
Olivier Sename
Without integral
Let consider the state feedback control u(t) = −Fx(t) + Gr (t) for the Introduction
system
Modelling
Nonlinear models
ẋ(t) = Ax(t) + Bu(t) + Ed(t), x(0) = x0 Linear models
(31)
y (t) = Cx(t) Linearisation
To/from transfer
functions
The tracking and disturbance rejection objectives can be formulated as Properties (stability)
y
I −−→ 1 ? i.e. C(−A + BF )−1 BG = 1 ?
r − State feedback
t→∞ control
Problem formulation
y
I −−→ 0? i.e. C(−A + BF )−1 BE = 0 ?
d − Controllability
t→∞ Definition
Pole placement control
However, there are few chances to find F and G such that both Specifications
objectives, together with the pole placement one, are achieved! Integral Control
Observer
A solution to solve both problems: add and integral term Observation
Observability
A very useful method consists in adding an integral term (as usual on Observer design
the tracking error) to ensure a unitary static closed-loop gain. Therefore Observer-based
control
the control law is chosen as:
Introduction to
Z t optimal control
Conclusion
Now the question is: how to find H? (and F too since a single design
procedure is better in order to get a solution)
State space
Synthesis of the Integral Control approach
Olivier Sename
Properties (stability)
which leads, for the whole system, to define the extended state vector
State feedback
x control
.
z Problem formulation
Controllability
Then the new open-loop state space representation is given as: Definition
Pole placement control
Specifications
Integral Control
ẋ(t) A 0 x 0 B E
= + u(t) + r (t) + d(t) Observer
ż(t) −C 0 z 1 0 0 Observation
Observability
x Observer design
y (t) = C 0
z Observer-based
control
Introduction to
optimal control
Let us denote:
Introduction to
digital control
A 0 B
Ae = , Be = , Ce = C 0 Conclusion
−C 0 0
State space
approach
Olivier Sename
The new state feedback control is now defined as:
Introduction
x Modelling
u(t) = −[F H] = −Fx(t)−Hz(t) Nonlinear models
z Linear models
Linearisation
Then the synthesis of the control law u(t) (i.e of Fe = [F H]) requires: To/from transfer
functions
I the verification of the extended system controllability, i.e of (Ae , Be ) Properties (stability)
State feedback
I the specification of the desired closed-loop performances, i.e. a control
set Pe of n + 1 desired closed-loop poles has to be chosen, Problem formulation
Controllability
ẋ(t) A − BF BH x 0 E Observability
= + r (t) + d(t) Observer design
ż(t) −C 0 z 1 0
Observer-based
control
x
y (t) = C 0 Introduction to
z optimal control
Introduction to
digital control
Conclusion
State space
Integral control scheme approach
Olivier Sename
Introduction
Modelling
Nonlinear models
The complete structure has the following form: Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
When an observer is to be used (see next chapter), the control action Observability
Observer design
simply becomes: Observer-based
u(t) = −F x̂(t) − Hz(t) control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
control Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Introduction approach
Olivier Sename
To implement a state feedback control, the measurement of all the state Modelling
Nonlinear models
variables is necessary. If this is not available, we will use a state Linear models
The estimation theory is based on the famous Kalman contribution to State feedback
control
filtering problems (1960), and accounts for noise induced problems. Problem formulation
The observation theory has been developed for Linear Systems by Controllability
Definition
Luenberger (1971), and doe snot consider the noise effects. Pole placement control
Specifications
Integral Control
Other interest of observation/estimation Observer
In practice the use of sensors is often limited for several reasons: Observation
Observability
feasibility, cost, reliability, maintenance ... Observer design
An observer is a key issue to estimate unknown variables (then non Observer-based
measured variables) and to propose a so-called virtual sensor. control
Introduction to
Objective: Develop a dynamical system whose state x̂(t) satisfies: optimal control
Olivier Sename
Let consider (
ẋ(t) = Ax(t) + Bu(t), x(0) = x0 Introduction
(32) Modelling
y (t) = Cx(t) Nonlinear models
Linear models
and given that we know the measurement, the inputs (and the system Observer
Observation
matrices), we can just perform some few computation to compute x(t) Observability
−1 Observer-based
C y (t)
control
CA ÿ (t)
− F (u(t), u̇(t), . . . , u n−2 Introduction to
x(t) = .. .. (t)) This
optimal control
.
.
Introduction to
CAn−1 n−1
y (t) digital control
requires the system to be observable (but still cannot work in practice Conclusion
when faced to measurement noises, modelling errors ....)
State space
A preliminary property: Observability approach
Olivier Sename
Observability refers to the ability to estimate a state variable (often not Introduction
C
Observer
Observation
CA Observability
Olivier Sename
Using Matlab, if SYS is an SS object then obsv(SYS) returns the
observability matrix of the state-space model SYS with realization Introduction
Compare the transfer function of the two different systems* To/from transfer
functions
Properties (stability)
ẋ = −x + u
State feedback
control
y = 2x Problem formulation
Controllability
and Definition
Pole placement control
Specifications
−1 0 1
ẋ = x+ u Integral Control
0 −2 1 Observer
Observation
Observability
y = 2 0 x Observer design
Observer-based
control
Exercices Introduction to
optimal control
Test the observability of the previous examples: DC motor, suspension, Introduction to
inverted pendulum. digital control
sensors.
State space
Open loop (OL) observers: estimation from input data approach
Olivier Sename
computer), a simulation of the system model feeded by the known input Modelling
Nonlinear models
variables. Linear models
For a linear system, it means that we may define the OL observer as: Linearisation
To/from transfer
functions
˙
(
x̂(t) = Ax̂(t) + Bu(t), given x̂(0) Properties (stability)
(33) State feedback
ŷ (t) = C x̂(t) + Du(t) control
Problem formulation
Introduction
variables, use an on line comparison of the measured system output y Nonlinear models
Linear models
and the estimated output ŷ . Linearisation
To/from transfer
Observer description: functions
Properties (stability)
˙
x̂(t)
= Ax̂(t) + Bu(t) + L(y (t) − ŷ (t)) State feedback
control
(34)
| {z }
Problem formulation
Correction
ŷ (t) = C x̂(t) + Du(t) Controllability
Definition
Pole placement control
with x̂0 to be defined, and wherex̂(t) ∈ Rnis the estimated state of x(t) Specifications
Integral Control
and L is the n × p constant observer gain matrix to be designed.
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Analysis of the observer properties approach
Olivier Sename
Introduction
C
Observability
Observer design
CA Observer-based
where O = .. .
control
.
Introduction to
CAn−1 optimal control
Introduction to
digital control
Conclusion
State space
Observer design approach
Olivier Sename
The observer design is restricted to find L such that A − LC is stable (so
that (x(t) − x̂(t)) −−−→ 0) and has some desired eigenvalues (so that Introduction
t→∞
Modelling
(x(t) − x̂(t)) → 0 as fast as possible). This is still a pole placement Nonlinear models
Usually the observer poles are chosen around 5 to 10 times higher than Properties (stability)
State feedback
the closed-loop system, so that the state estimation is good as early as control
possible. This is quite important to avoid that the observer makes the Problem formulation
Controllability
closed-loop system slower. Definition
Pole placement control
Specifications
Design method Integral Control
Observer
I In order to use the acker Matlab function, we will use the duality Observation
Olivier Sename
Introduction
Written below for D = 0.
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
About the robustness of the observer approach
Olivier Sename
Introduction
Let assume that the systems is indeed given by Modelling
Nonlinear models
( Linear models
ẋ(t) = Ax(t) + Bu(t) + Edx (t), x(0) = x0 Linearisation
(36) To/from transfer
y (t) = Cx(t) + Nν(t) functions
Properties (stability)
where dx can represent input disturbance or modelling error, and ν State feedback
control
stands for measurement noise. Problem formulation
Then the estimated error satisfies: Controllability
Definition
Pole placement control
ė(t) = (A − LC)e(t) + Edx − LNν (37) Specifications
Integral Control
Introduction to
I Design optimal observer when dx and ν represent noise effects optimal control
(Kalman - lqe, see next course ) Introduction to
digital control
Conclusion
State space
Implementation approach
Olivier Sename
Introduction
Rules Modelling
I use a state-space block in Simulink Nonlinear models
Linear models
Properties (stability)
I Choose x̂(0) 6= x(0),
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
I alternative use of estim digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
Observer-based control
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Observer-based control approach
Olivier Sename
Introduction
Modelling
Nonlinear models
When an observer is built, we will use as control law: Linear models
Linearisation
Properties (stability)
The closed-loop system is then
State feedback
control
ẋ(t) = (A − BF )x(t) + BF (x(t) − x̂(t)), Problem formulation
(39) Controllability
y (t) = Cx(t) Definition
Pole placement control
Therefore the fact that x̂(0) 6= x(0) will have an impact on the Specifications
Integral Control
closed-loop system behavior. Observer
The stability analysis of the closed-loop system with an observer-based Observation
Observability
state feedback control needs to consider an extended state vector as: Observer design
T Observer-based
xe (t) = x(t) e(t) control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Observer-based control: stability analysis approach
Olivier Sename
Introduction
Defining Modelling
T Nonlinear models
xe (t) = x(t) e(t) Linear models
Linearisation
The closed-loop system with observer (34) and control (38) is: To/from transfer
functions
Properties (stability)
A − BF BF BG
ẋe (t) = xe (t) + r (t) (40) State feedback
0 A − LC 0 control
Problem formulation
Observer
If the observer and the control are designed separately then the Observation
closed-loop system with the dynamic measurement feedback is stable, Observability
Observer design
given that the control and observer systems are stable and the
Observer-based
eigenvalues of (40) can be obtained directly from them. control
This corresponds to the so-called separation principle. Introduction to
optimal control
Remark: check pzmap of the extended closed-loop system. Introduction to
digital control
Conclusion
State space
Closed-loop analysis approach
Olivier Sename
Introduction
The closed-loop system from r to y is then computed from:
Modelling
T Nonlinear models
y = [C 0] x(t) e(t) Linear models
Linearisation
To/from transfer
which leads to functions
y
= C(sIn − A + BF )BG Properties (stability)
r State feedback
control
However if some disturbance acts as for: Problem formulation
( Controllability
ẋ(t) = Ax(t) + Bu(t) + Ed(t), x(0) = x0 Definition
Observer
where d is the disturbance, then the extended system writes Observation
Observability
Observer design
A − BF BF BG E Observer-based
ẋe (t) = xe (t) + r (t) + d(t) (42) control
0 A − LC 0 E
Introduction to
optimal control
which is a problem for the performances of closed-loop system and of Introduction to
the estimation (see later the Integral control). digital control
Conclusion
State space
How to define the observer+state feedback control as a approach
Introduction
Modelling
The observer-based controller is nothing else than a 2-DOF Dynamic Nonlinear models
Linear models
Output Feedback controller. Linearisation
To/from transfer
Indeed it comes from functions
Properties (stability)
˙
x̂(t) = Ax̂(t) + Bu(t) + L(y (t) − ŷ (t))
(43) State feedback
u(t) = −F x̂(t) + Gr (t) control
Problem formulation
Controllability
which can be written as (when D = 0) Definition
Pole placement control
˙
Specifications
x̂(t) = (A − BF − LC)x̂(t) + BGr (t) + Ly (t)
(44) Integral Control
Observer-based
U(s) = Kr (s)R(s) − Ky (s)Y (s) control
Introduction to
with Kr (s) = G − F (sIn − A + BF + LC)−1 BG and optimal control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Introduction approach
Olivier Sename
Introduction
The objective of an optimal control is to minimize a cost function which Modelling
penalizes
R∞
simultaneously the state and input behaviors, of the form Nonlinear models
Linear models
0 L(x, y )dt, i.e to reach a tradeoff between the transient response and Linearisation
To/from transfer
the control effort. functions
This objective is defined through the following criteria always Properties (stability)
J= (x T Qx + u T Ru)dt Controllability
Definition
0
Pole placement control
Specifications
In that form: Integral Control
Conclusion
State space
Linear-Quadratic Regulator (LQR) design approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
AT P + PA − PBR −1 B T P + Q = 0 Controllability
Definition
Pole placement control
−1 T Observer
K =R B P Observation
Observability
minimizes the quadractic criteria J (for given Q and R). Observer design
Observer-based
This problem is handled in Matlab through the lqr command. control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Toward digital control approach
Olivier Sename
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
This requires the use of the discrete theory. Observation
Observability
m (Sampling theory + Z-Transform) m Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Definition of the Z-Transform approach
Olivier Sename
Introduction
Modelling
Mathematical definition Nonlinear models
Because the output of the ideal sampler, x ∗ (t), is a series of impulses Linear models
Linearisation
with values x(kTe ), we have: To/from transfer
functions
∞ Properties (stability)
x ∗ (t) = ∑ x(kTe )δ (t − kTe ) State feedback
k =0 control
Problem formulation
Controllability
by using the Laplace transform, Definition
Pole placement control
∞ Specifications
∗ −ksTe
L [x (t)] = ∑ x(kTe )e Integral Control
k =0 Observer
Observation
Observability
Noting z = esTe , we can derive the so called Z-Transform Observer design
Observer-based
∞ control
X (z) = Z [x(k )] = ∑ x(k )z −k Introduction to
k =0 optimal control
Introduction to
digital control
Conclusion
State space
Properties approach
Olivier Sename
Introduction
Modelling
Definition Nonlinear models
Linear models
∞ Linearisation
−k
X (z) = Z [x(k )] = ∑ x(k )z To/from transfer
functions
k =0
Properties (stability)
Introduction to
digital control
Conclusion
State space
Zero order holder approach
Olivier Sename
Introduction
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Zero order holder (cont’d) approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Model of the Zero order holder Linearisation
To/from transfer
The transfer function of the zero-order holder is given by: functions
Properties (stability)
1 e−sTe State feedback
GBOZ (s) = − control
s s Problem formulation
1 − e−sTe Controllability
= Definition
s Pole placement control
Specifications
Integral Control
Observer
Influence of the D/A and A/D Observation
Note that the precision is also limited by the available precision of the Observability
Observer design
converters (either A/D or D/A).
Observer-based
This error is also called the amplitude quantization error. control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Representation of the discrete linear systems approach
Olivier Sename
Introduction
The discrete output of a system can be expressed as:
Modelling
Nonlinear models
∞
Linear models
y (k ) = ∑ h(k − n)u(n) Linearisation
n=0 To/from transfer
functions
State feedback
control
Y (z) = Z [h(k )]U(z) = H(z)U(z) Problem formulation
Controllability
Definition
H(z) = 0 = Specifications
a0 + a1 z + · · · + an z n U Integral Control
Observer
where n (≥ m) is the order of the system Observation
Observability
Corresponding difference equation: Observer design
Observer-based
1 control
y (k ) = b u(k − n) + b1 u(k − n + 1) + · · · + bm u(k − n + m)
an 0 Introduction to
optimal control
− a0 y (k − n) − a2 y (k − n + 1) − · · · − an−1 y (k − 1) Introduction to
digital control
Conclusion
State space
Some useful transformations approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
x(t) X (s) X (z) functions
ω zsin(ωTe ) Observer
sin(ωt) s2 +ω 2 z 2 −2zcos(ωTe )+1 Observation
s z(z−cos(ωTe )) Observability
cos(ωt) s2 +ω 2 z 2 −2zcos(ωTe )+1 Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Poles, Zeros and Stability approach
Olivier Sename
Introduction
Equivalence {s} ↔ {z}
Modelling
The equivalence between the Laplace domain and the Z domain is Nonlinear models
Linear models
obtained by the following transformation: Linearisation
To/from transfer
sTe functions
z =e
Properties (stability)
Two poles with a imaginary part witch differs of 2π/Te give the same State feedback
control
pole in Z. Problem formulation
Controllability
Definition
Stability domain Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Approximations for discretization approach
Olivier Sename
Introduction
Modelling
Properties (stability)
z −1
s= State feedback
Te control
Problem formulation
Controllability
Definition
Pole placement control
Observer
Observation
Observability
z −1 Observer design
s= Observer-based
zTe control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Approximations for discretization (cont’d) approach
Olivier Sename
Trapezoidal difference (Tustin)
Introduction
Modelling
Nonlinear models
Linear models
2 z −1 Linearisation
s=
Te z + 1 To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Systems definition approach
Olivier Sename
A discrete-time state space system is as follows:
Introduction
(
x((k + 1)h) = Ad x(kh) + Bd u(kh), x(0) = x0 Modelling
(45) Nonlinear models
Properties (stability)
Matlab : ss(Ad ,Bd ,Cd ,Dd ,h) creates a SS object SYS
State feedback
representing a discrete-time state-space model control
From a discretization step (c2d) we have: Problem formulation
Controllability
Z h Definition
Pole placement control
Ad = exp(Ah), Bd = ( exp(Aτ)dτ)B Specifications
0 Integral Control
Observer
For discrete-time systems, Observation
Observability
Introduction to
the discrete transfer function is given by optimal control
Introduction to
G(z) = Cd (zIn − Ad )−1 Bd + Dd (47) digital control
Conclusion
where z is the shift operator, i.e. zx(kh) = x((k + 1)h)
State space
Solution of state space equations - discrete case approach
Olivier Sename
Introduction
Modelling
xn = And x0 + ∑ An−1−i
d Bd ui (53) Observer-based
control
i=0
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
State space analysis (discrete-time systems) approach
Olivier Sename
Introduction
Stability Modelling
Nonlinear models
A system (state space representation) is stable iff all the eigenvalues of Linear models
Linearisation
the matrix F are inside the unit circle. To/from transfer
functions
State feedback
control
Definition Problem formulation
Given two states x0 and x1 , the system (45) is controllable if there exist Controllability
Definition
K1 > 0 and a sequence of control samples u0 , u1 , . . . , uK1 , such that xk Pole placement control
Observer
Definition Observer-based
control
The system (45) is said to be completely observable if every initial state
Introduction to
x(0) can be determined from the observation of y (k ) over a finite optimal control
number of sampling periods. Introduction to
digital control
Conclusion
State space
State space analysis (2) approach
Olivier Sename
Introduction
Modelling
Controllability Nonlinear models
Linear models
Cd (A = rg[Bd Ad Bd . . . An−1
d Bd ] = n Properties (stability)
d ,Bd )
State feedback
control
Problem formulation
Observability Controllability
Definition
The system is observable iff Pole placement control
Specifications
Integral Control
O(Ad ,Cd ) = rg[Cd Cd Ad . . . Cd An−1
d ]
T
=n Observer
Observation
Observability
Observer design
Duality Observer-based
Observability of (Cd , Ad ) ⇔ Controllability of (ATd , CdT ). control
Introduction to
Controllability of (Ad , Bd ) ⇔ Observability of (BdT , ATd ). optimal control
Introduction to
digital control
Conclusion
State space
About sampling period approach
Olivier Sename
Introduction
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
The closer to zero the poles are , the faster the system is. Introduction to
digital control
Conclusion
State space
Frequency analysis approach
Olivier Sename
As in the continuous time, the Bode diagram can also be used. Introduction
Example with sampling Time Te = 1s ⇔ fe = 1Hz ⇔ we = 2π): Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Note that, in our case, the Bode is cut at the pulse w = π. Observability
Observer design
see SYSD = c2d(SYSC,Ts,METHOD) in MATLAB. Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Frequency analysis approach
Olivier Sename
As in the continuous time, the Bode diagram can also be used. Introduction
Example with sampling Time Te = 1s ⇔ fe = 1Hz ⇔ we = 2π): Modelling
Nonlinear models
Linear models
Linearisation
To/from transfer
functions
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Note that, in our case, the Bode is cut at the pulse w = π. Observability
Observer design
see SYSD = c2d(SYSC,Ts,METHOD) in MATLAB. Observer-based
control
Sampling ↔ Limitations Introduction to
optimal control
Recall the Shannon theorem which imposes the sampling frequency at
Introduction to
least 2 times higher than the system maximum frequency. Related to digital control
the anti-aliasing filter. . . Conclusion
State space
About sampling period and robustness approach
Olivier Sename
Introduction
Properties (stability)
State feedback
control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
But reducing the sampling time modify poles location. . . Poles and
Observer-based
zeros become closer to the limit of the unit circle ⇒ can introduce control
Conclusion
State space
Stability approach
Olivier Sename
Recall Introduction
A linear continuous feedback control system is stable if all poles of the Modelling
closed-loop transfer function T (s) lie in the left half s-plane. Nonlinear models
State feedback
control
Jury criteria Problem formulation
Controllability
The denominator polynomial (den(z) = a0 z n + a1 z n−1 + · · · + an = 0) Definition
Pole placement control
has all its roots inside the unit circle if all the first coefficients of the odd Specifications
Observer
an Observation
b0 = a0 − an Observability
1 a0 a1 a2 ... an−k ... an a0 Observer design
2n + 1 s0 bn−1
ck = bk − bn−1−k Conclusion
b0
State space
How to get a discrete controller approach
Olivier Sename
Introduction
Modelling
First way Nonlinear models
Linear models
Linearisation
I Obtain a discrete-time plant model (by discretization) To/from transfer
functions
I Design a discrete-time controller Properties (stability)
Observer-based
Now the question is how to implement the computed controller on a control
real-time (embedded) system, and what are the precautions to take Introduction to
optimal control
before?
Introduction to
digital control
Conclusion
State space
Discretisation approach
Olivier Sename
Introduction
Modelling
The idea behind discretisation of a controller is to translate it from Nonlinear models
Linear models
continuous-time to discrete-time, i.e. Linearisation
To/from transfer
functions
A/D + algorithm + D/A ≈ G(s) Properties (stability)
State feedback
To obtain this, few methods exists that approach the Laplace operator control
(see lecture 1-2). Problem formulation
Controllability
Definition
Observer
z −1
s = Observation
Te Observability
Observer design
z −1
s = Observer-based
zTe control
Introduction to
2 z −1 optimal control
s =
Te z + 1 Introduction to
digital control
Conclusion
State space
Implementation characteristics approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Anti-aliasing Linear models
Linearisation
Practically it is smart to use a constant high sampling frequency with an To/from transfer
functions
analog filter matching this frequency. Then, after the A/D converter, the
Properties (stability)
signal is down-sampled to the frequency used by the controller.
State feedback
Remember that the pre-filter introduce phase shift. control
Problem formulation
Controllability
Sampling frequency choice Definition
Pole placement control
The sampling time for discrete-time control are based on the desired Specifications
speed of the closed loop system. A rule of thumb is that one should Integral Control
sample 4 − 10 times per rise time Tr of the closed loop system. Observer
Observation
Observability
Tr Observer design
Nsample = ≈ 4 − 10
Te Observer-based
control
where Te is the sampling period, and Nsample the number of samples. Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Delay approach
Olivier Sename
Introduction
Modelling
Problematic Nonlinear models
Linear models
Sampled theory assume presence of clock that synchronizes all Linearisation
measurements and control signal. Hence in a computer based control To/from transfer
functions
there always is delays (control delay, computational delay, I/O latency). Properties (stability)
State feedback
Origins control
Problem formulation
There are several reasons for delay apparition Controllability
Definition
I Execution time (code) Pole placement control
Specifications
I Preemption from higher order process Integral Control
Observer
I Interrupt Observation
Observability
I Communication delay Observer design
Introduction to
digital control
Conclusion
State space
Delay (cont’d) approach
Olivier Sename
Modelling
I Measure the phase margin: PM = 180 + ϕw0 [ř], where ϕw0 is the Nonlinear models
Linear models
phase at the crossover frequency w0 , i.e. |G(jw0 )| = 1 Linearisation
To/from transfer
PMπ
I Then the delay margin is DM = 180w0 [s]
functions
Properties (stability)
State feedback
Exercise: compute delay margin for these 3 cases control
Problem formulation
Controllability
Definition
Pole placement control
Specifications
Integral Control
Observer
Observation
Observability
Observer design
Observer-based
control
Introduction to
optimal control
Introduction to
digital control
Conclusion
State space
Conclusion approach
Olivier Sename
Introduction
Modelling
Nonlinear models
Linear models
I A state space approach for continuous-time and discrete-time Linearisation
I A first insight in optimal control... that can be extended towards Properties (stability)
order to Controllability
Definition
I design H∞ controllers Pole placement control
I provide a robustness analysis in the presence of parameter Specifications
Integral Control
uncertainties
I prove the stability of a closed-loop system in the presence of non Observer
Observation
linearities (as state or input constraints) Observability
I design non linear controllers (feedback linearisation...) Observer design
I solve an optimisation problem using efficient numerical tools as Linear Observer-based
Matrix Inequalities control
Introduction to
optimal control
Introduction to
digital control
Conclusion