Control Theory
Control Theory
Kim Mathiassen
15.02.2011
Control theory
Mass spring damper system
Modeling
Open loop vs. closed loop
Second order system
Stability
PID control
P - Proportional
I - Integral
D - Derivative
Optimal control
LQR
15.02.2011
x = displacement [m]
f = force applied [kg m/s 2 ]
15.02.2011
Spring force: f1 = kx
Damping force: f2 = f
External force: f3 = u
x
t
= f x
f
m x
k
mx
1
mu
4
Modeling domains
Frequency domain (Transfer functions)
x(s)=h(s)u(s)
h(s)=
1
m
f
k
s2+ m
s+ m
x=Ax
+ Bu
15.02.2011
x 1 =x2
k
x 2 = m
x1
f
m x2
1
mu
Block diagrams
u
-
1
m
x 2
x2 = x 1
x1
15.02.2011
15.02.2011
Process
Process
Controller
Process
Closed-loop
r
Controller
Process
15.02.2011
Mesurements
H(s) =
s2 +
1
m
f
ms
k
m
1
m
(s 1 )(s 2 )
Solution
The generic solution gives three cases depending on pole
placemend. The three cases are called under-damped, over-damped
and critially damped
!
r
f
km
{1,2} =
1 14 2
(1)
2m
f
15.02.2011
(1 +2 )
2 1 2
Critically damped, = 1 (1 = 2 )
Fastes system responce without oscillations
10
15.02.2011
11
From Wikimedia Commons
Stability
Consider the system y (s) = h(s)y0 (s) where y0 (s) has finite length
and amplitude
Asymptotically stable
The system is asymptotically stable if y 0 when t
Marginally stable
The system is marginally stable if |y | < for all t 0
Unstable
If the system is not stable, it is unstable
15.02.2011
12
PID control
We want to make the system stable and controllable with a
controller. The PID controller is a simple controller that may
acheive this goal. The PID controller is often analyzed in the
frequency domain.
PID controller
Z
u = Kp e + Ki
15.02.2011
e( )d + Kd e
13
Proportional
I
High gain may cause oscillations and may make the system
unstable
15.02.2011
14
Proportional
15.02.2011
15
From Wikimedia Commons
Integral
I
15.02.2011
16
Integral
15.02.2011
17
From Wikimedia Commons
Derivative
I
15.02.2011
18
Derivative
15.02.2011
19
From Wikimedia Commons
PIDstop
From http://www.pidstop.com/demo
PID games
http://www.pidstop.com/demo
15.02.2011
20
Optimal control
I
15.02.2011
21
Optimal control
e Controller
Process
15.02.2011
Observer
Mesurements
22
Cost function
J=
15.02.2011
1
2
e T Qe + u T Pudt
t
23
References
J. B. Balchen, T. Andresen, and B. A. Foss.
Reguleringsteknikk.
Institutt for teknisk kybernetikk, 2004.
PID controller.
http://en.wikipedia.org/wiki/pid_controller, February 2011.
Damping.
http://en.wikipedia.org/wiki/damping, February 2011.
O.A. Solheim and Norges tekniske hgskole Institutt for teknisk
kybernetikk.
Optimalregulering.
Tapir, 1976.
15.02.2011
24