Professional Documents
Culture Documents
Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
Session Focus
We will emphasize the use of the Internal Model Control design procedure as a means for tuning PID controllers:
d r + e
+ y
Integral Derivative Proportional Kc t de u(t) = u + Kc e(t) + e(t )dt + KcD I 0 dt e(t) = r(t) y (t)
Equation A
PID -y
c(s) = Kc 1 + 1s + Ds I
Equation B
Ds+1 c(s) = Kc 1 + 1 s I Ds + 1
PI
1 c(s) = Kc 1 + 1 + Ds I s F s + 1
Low-Order Difference Equation Form
-y
Equation C
PD
-y
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
Internal Model Control Structure d
r + e
+ y
P ~ P
+ y + +
C = Q(I-PQ)-1 Q = C(I+PC)-1
d r +
P ~ P
+ y + +
=p c(1 + p c)1
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
Performance and Robustness Measures
Integral Square Error (ISE): J = ISE =
0 (y
r)2dt
Step 1: Factor out all deadtime and Right-Half Plane Zeros in the model P(s) = P+(s) P-(s) IAE-Optimal (for step inputs) P+(s) =e-s -is + 1
i n
Re(i)>0
r|dt
Re(i)>0
which leads to a controller that is stable and causal Q(s) = P-1 - (s)
Internal Model Control Design Procedure (Cont) Step 2: Augment the optimal controller with a filter F(s) which insures that the final control system is proper: Qfinal (s) = Q(s) F(s) Example: F(s) = 1 ( s + 1) nf
0 : : 2 : : 2
0 : : 0 : : 2 +
To note: Closed-loop transfer function P C 1+P C -1= P+(s) F(s) Filter time constants reflect closed-loop speed-of-response Filter time constants can be optimized for robust performance (Zafiriou and Morari, 1986)
1 c(s) = Kc 1 + 1s + Ds I F s + 1
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
Example 1: PI Control
A PI tuning rule arises from applying IMC to the rst-order model: p = K s + 1 >0 (1)
We can now solve for the classical feedback controller equivalent c(s) to obtain q 1 c= = (1 + ) (3) 1 pq K s which leads to the tuning rule for a PI controller (4) Kc = K (5) I = The corresponding nominal closed-loop transfer functions for this control system are = 1 s + 1 p 1 = s + 1 k (s + 1) = s s + 1 (6)
under the condition that d and r are step input changes. Step 1: Factor and invert p ; since p + = 1, we obtain: q = s + 1 K 1 (s + 1) (2)
s + 1 q= K (s + 1)
again under the assumption that the inputs to r and d are steps. Step 1: Use the IAE-optimal factorization for step inputs: p + = (s + 1) Step 2: Use a rst-order lter f= 1 (s + 1) q= ( s + 1) K (s + 1) K p = ( s + 1) ( s + 1) q = K
again under the assumption that the inputs to r and d are steps. Step 1: No nonminimum phase behavior in p ; since p + = 1, we obtain: p = K (s + 1) ( s + 1) q = ( s + 1) K (s + 1)
Solving for the classical feedback controller leads to another tuning rule for a PI controller: 1 ) c(s) = Kc(1 + I s Kc = I = K ( + )
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
Example 1c: PI with Filter Control (cont.)
Solving for the classical feedback controller c = for an PI with lter controller:
q 1p q
again under the assumption that the inputs to r and d are steps. Step 1: Use the IAE-optimal factorization for step inputs: p + = (s + 1) p = K (1s + 1)(2s + 1) (8)
c(s) = Kc 1 +
1 1 I s (F s + 1)
Kc = K I = F =
In IMC design, the presence of a Left-Half Plane zero in the model leads a low-pass lter element in the classical feedback controller!
(1s + 1)(2s + 1) (9) K Step 2: Use a rst-order lter (even though this means that q will still be improper). q = f= 1 (s + 1) q= (1s + 1)(2s + 1) K (s + 1) (10)
Kc =
1 + 2 K ( + ) I = 1 + 2 1 2 D = 1 + 2
and subject to step inputs to the closed-loop system. Applying the IMC design procedure gives: Step 1: Use the ISE-optimal factorization p + = s + 1 s + 1 p = K (s + 1) (1s + 1)(2s + 1) (17)
q=
f=
1 s + 1
(18)
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
Example 3: PID with Filter Control (Continued)
Solving for c(s) as before results in a ltered ideal PID controller c = Kc(1 + with the associated tuning rule Kc = ( 1 + 2 ) K (2 + ) I = 1 + 2 1 2 D = 1 + 2 F = 2 + (19) (20) (21)
q=
1 1 + D s) I s (F s + 1)
and step setpoint/output disturbance changes to the closed-loop system. Step 1: The optimal factorization (IAE, ISE, or otherwise) is p + = es, resulting in: s + 1 1 q = p = K Step 2: A rst-order lter makes q semiproper; s + 1 K (s + 1) = es (s + 1) (24)
(22)
Note the insight given by IMC design procedure regarding on-line adjustment (by changing the value for the IMC lter parameter ).
which can be expressed as a PI controller using the Smith Predictor structure (see Figure 17.4, page 605 in Ogunnaike and Ray).
Plant
K (s+1) s K (s+1) s K (s+1) s K (s+1) s K (s+1) s( s+1)
= pq =p +f
s+1 s+1 (s+1) (s+1)(s+1) (s+1)[( +2)s+1] (s+1)2 (s+1) [2( +)s+1] s+1) (s+1)2 (s+1) [2( +)s+1] s+1) (s+1)2
Controller c(s) No Oset Conditions P P with lter PI PI with lter PID with lter Steps only Steps Only Steps and Ramps Steps and Ramps Steps and Ramps
Equation (26) for simple plants with integrator leads to IMC-PID rules, as summarized in the previous table.
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
IMC-PID Tuning Rules for First-Order With Deadtime Processes
Ideal Form Parameters
Controller KKc I D F
Recommended ( > 0.2 always )
(26)
PI
2 + 2 2 + 2 + 2 + 2( + )
+ 2 + 2 + 2
> 1.7
The Pad e-approximated plant is a second-order plant with RHP zero; using the analysis from Example 2: PID Control leads to a PID tuning rule: Kc = 2 + K (2 + ) I = + 2 D = 2 + (27) (28) (29)
PID
2 + 2 +
> 0.8
PID w / filter
2( + )
> 0.25
p(s) = K e- s , is an adjustable parameter s+1 Rivera, Morari, Skogestad, "Internal Model Control. 4. PID Controller Design," Ind. Eng. Chem. Proc. Des. Dev., Vol 25, No. 1, 1986, pgs. 252-265.
As shown in Rivera et al. the ISE objective function for this control system can be plotted as a function of , independent of .
10
12
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
IMC-PID Tuning - Comparison With Other Rules
O.L. Z-N: Open-Loop Ziegler-Nichols; C.L. Z-N: Closed-loop Ziegler-Nichols, C-C: Cohen-Coon
resulting, as shown in Example 1: PI control in the tuning rule: 2 + (31) 2K I = + (32) 2 For the Improved PI rules, closed-loop performance varies as a function of / . Kc =
D.E. Rivera, ChE 461/598: Process Dynamics and Control; Introduction to Internal Model Control with Application to PID Controller Tuning
"Improved" IMC-PI Tuning Comparison (lambda/theta = 1.7)
Solid: J/Jopt Dashed: M
The IMC-PID with lter tuning parameters lead to higher ISE than the IMC-PID for the same value of /; however, the PID with lter settings display much smoother closed-loop responses. In industrial practice, the smoothness of the response may well be worth the loss of performance in terms of ISE.
IMC-PID with filter (solid) versus IMC-PID (dashed) response (lambda/theta = 0.45 vs lambda/theta = 0.8)