Professional Documents
Culture Documents
G(s)
Fitting to a parametric model
K
K − sL
G ( s) = e
1 + sT
0.632 K
Different methods to
fit the model parameters
exist (area method,
L method of moments etc.)
T1
T2
Fitting to a parametric model (cont.)
Basic models:
K
G1 ( s) = e − sL Identification of the process model
1 + sT
Approximation of a low order
K model
G2 ( s ) =
(s + a)
n
Design of an adaptive controller
K
G3 ( s ) =
(1 + α1s )(1 + α 2 s )(1 + α 3 s )
K (1 − α s )
G4 ( s ) =
(s + a)
n
Fitting to a parametric model (cont.)
1
Example: GP ( s ) =
(1 + s )(1 + 0.2s )(1 + 0.05s )(1 + 0.01s )
Appr 1. 1
GP ( s ) ≈ , τ = τ 1 + τ 2 + τ 3 + τ 4 = 1.26
1+τ s
1
Appr 2. GP ( s ) ≈
(1 + s )(1 + 0.26s )
Fitting to a parametric model (cont.)
Appr 1.
dB
w
1 10
w
1 10
Fitting to a parametric model (cont.)
Appr 2.
dB
w
1 10
w
1 10
Autotuners
Standard PID
⎡ 1
t
de(t ) ⎤
y (t ) = K p ⎢e(t ) + ∫ e(τ )dτ + Td ⎥
⎣ Ti 0 dt ⎦
⎡ 1 ⎤
Y ( s ) = K p ⎢1 + + Td s ⎥ E ( s )
⎣ Ti s ⎦
⎡ ⎤
⎢ 1 Ts ⎥
Y ( s ) = K p ⎢1 + + d ⎥ E ( s ), N ≈ 3 − 10
T
⎢ Ti s 1 + d s⎥
⎣ N ⎦
In Ziegler-Nichols tuning
1.2T
Kp = K p = 0.6 K u
KL
Ti = 2 L Ti = 0.5Tu
Td =
L Td = 0.125Tu
2
Modifications of the PID algorithm
”Non-interacting
P
u
form”
e
I +
⎡ 1 ⎤
Y ( s) = K p ⎢1 + + Td s ⎥ E ( s )
⎣ Ti s ⎦
D
”Interacting
D I
form”
e u
⎛ 1 ⎞
G '( s ) = K ' ⎜ 1 + ⎟ (1 + sTd ' )
+ P +
⎝ sTi ' ⎠
Modifications of the PID .. (cont.)
K'=
K
2
(1 + 1 − 4Td / Ti )
Non-interacting Æ Interacting T
(
Ti ' = i 1 + 1 − 4Td / Ti )
2
(assume Ti ≥ 4Td )
Ti
(
Td ' = 1 − 1 − 4Td / Ti
2
)
Setpoint weighting
⎡ 1
t
dy ⎤
u = K c ⎢ β yr − y + ∫ e(τ )dτ − Td ⎥ , β ∈ [ 0,1]
⎣ Ti 0 dt ⎦
⎪ T /2
⎪Γ = e As ds B
⎪⎩ ∫0
Identification: method of moments
K
Ex. G (s) = e − sL A three-parameter model:
1 + sT K gain, T time constant,
L dead time
s (t ) = K ⎡⎣1 − e − (t − L ) / T ⎤⎦ , t ≥ L
Method of moments (cont.)
∫ ( s(∞) − s(t ) ) dt
Tar = 0
= L +T
K
K Tar
s(t)
A1 = ∫0
s (t )dt = KTe −1
0.632 K
A1 eA1
T=
A0 K
A0 eA1
L = Tar − T = −
L
K K
T1
∞
G ( ) (0) = ( −1) ∫ h(t )dt
n n n
t
0
Method of moments (cont.)
∫ h(t )dt
0
∞ ∫ th(t )dt
Tar = ∫ tf (t )dt = 0
∞
0
∫ h(t )dt
0
Method of moments (cont.)
and it follows
∞ ∞
and assuming the first
∫ th(t )dt = [ −tg (t )] + ∫ g (t )dt
∞
0
0
0
term to be zero
∞
∫ ( s(∞) − s(t ) ) dt
Tar = 0
s (∞ )
Method of moments (cont.)
K
G ( s) = e − sL
1 + sT
∞
K = G (0) = ∫ h(t )dt
0
∫ t h(t )dt
2
G ''(0)
T2 = − Tar2 = 0
∞
− Tar2
G (0)
∫ h(t )dt
0
1
If, for example G ( s) = s + 1 8
( )
8 72
G '( s) = − , G ''( s ) =
( s + 1) ( s + 1)
9 10
K = 1, Tar = 8, T 2 = 72 − 64 = 8
T = 2 2 ≈ 2.8, L = 8 − 2 2 ≈ 5.2
Nonlinear transformations
θ A pendulum is controlled by
l a horizontal force.
Fcosθ Governing equations: Basic
θ equation of motion (circular
mg sinθ
F
θ orbit)
θ I (moment of inertia),
mg M (moments)
Iθ = ∑ M ⇒ ml 2θ = −mg sinθ ⋅ l + F cosθ ⋅ l
g F
⇒ θ = − sinθ + cosθ
l ml
Nonlinear transformations (cont.)
we get
⎧ x1 = x2
⎪
⎪ g u
⎨ 2
x = − sin( x1 ) + cos( x1 ) = −sin( x1 ) + u cos( x1 )
⎪ l ml
⎪⎩ y = x1