Professional Documents
Culture Documents
I. INTRODUCTION
PID (Proportional, Integral, Differential) controllers for
single input single output (SISO) as well as multiple input
multiple output (MIMO) systems are the most common
controllers in industry today. Thus, they are a very interesting
and popular research topic, with many papers published
every year. Dominant pole placement is guaranteed with
PID controllers in [1], using a modified root locus method
and a modified Nyquist plot for systems with time delays.
Naturally, the guaranteed dominant pole placement may not
guarantee specifications in terms of overshoot or settling
time due to the effect of closed loop zeros. However, the
methods are simple and easy to work with. Processes are
approximated by a simple second order transfer function
without regular zeros but with a time delay in [2]. The
PID zeros are then used to cancel the poles of the second
order system, leaving just the time delay, the PID integrator
and a gain to be adjusted to set the closed loop poles. PID
tuning methods have been popular, see e.g. [3] where the
tuning is based on a P controlled step experiment. Another
tuning method for high-order oscillatory systems is reported
in [4]. A MIMO system is decomposed into equivalent single
loops for design of multiloop PI/PID controllers in [5], where
various other MIMO PID methods are also briefly discussed.
An approximation is made such that each controller can be
designed without knowledge of controllers in other loops.
Research on transfer function responses for continuous
as well as discrete time [6],[7] has lead to several research
topics. The general problem on how to optimize zero locations such as to get a system to track a reference system,
is reported in [8] and [9]. Optimized zero locations are
then applied in model reduction in [10]. An optimized PID
controller has also been developed, tracking a given open
1 Department
2 Department
v(t)
Fig. 1.
1
s
c(s)
u(t)
d(t)
y(t)
G(s)
e(t)
G(s) =
710
b(s)
bm sm + bm1 sm1 + + b1 s + b0
Y (s)
=
=
U (s)
a(s)
sn + an1 sn1 + + a0
(1)
v(t)
er (t)
Fig. 2.
1
s
Gr (s)
yr (t)
Thus, the least squares solution of the open loop (10) is the
same as the least squares solution of the closed loop (7).
While this fact is no guarantee of stability, and stability can
indeed be lost for highly underdamped reference systems as
well as for close to unstable plants, it should be noted that
the loss of stability is easily tested for and that systematic
approaches can be designed for modifying the reference
system in these cases, e.g., in a similar vein as proposed
in [13].
Remark 1: A simple choice of the reference system is
given by
r2
(11)
Gr (s) =
s(s + 2r r )
(2)
Y (s)
=
V (s)
1
c(s)b(s)
sa(s)
+ c(s)b(s)
sa(s)
c(s)b(s)
.
sa(s) + c(s)b(s)
(3)
(4)
KD s2 + KP s + KI (bm sm + + b1 s + b0 ) (s
+ 2r r )
2
n
r s + an1 ss1 + + a1 s + a0 .
(13)
br (s)
br (s)
Yr (s)
sar (s)
=
=
.
br (s)
V (s)
sa
(s)
+ br (s)
r
1 + sar (s)
(6)
0 1 n2
0
0
3(n+1) = 0 0 1
n2
0
0
0 0
1
n2
(15)
and
T
.
(16)
C = KI KP KD
.
sa(s) + c(s)b(s)
sar (s) + br (s)
(7)
Then
c(s)b(s)(sar (s) + br (s)) br (s)(sa(s) + c(s)b(s))
(8)
and hence
c(s)b(s)ar (s) br (s)a(s).
(9)
.
a(s)
ar (s)
(10)
711
control signal
2
0
2
4
10
15
25
30
output
1
0
35
40
10
15
20
t(s)
25
30
35
40
Imaginary Axis
Root Locus
2
PID controlled system
reference system
2
2.5
1.5
1
Real Axis
0.5
0.5
Y (s)
D(s)
= A(U (s)
)
Gp1 (s)
Gp (s)
control signal
20
t(s)
2
0
2
4
10
15
20
t(s)
25
30
35
40
20
t(s)
25
30
35
40
output
2
PID controlled system
reference system
1
0
10
15
Imaginary Axis
Root Locus
2
PID controlled system
0
2
2.5
Gp2 (s)
Y (s)
= (1 A)
.
D(s)
1 + Gc (s)Gp (s)
reference system
1.5
1
Real Axis
0.5
0.5
Fig. 4.
Example 1. MC PID for a highly underdamped system with
disturbance rejection - A = 0.75, r = 0.5 and r = 1.
so the root locus is not affected. Note that care must be taken
in implementing 1/Gp (s) by padding it with high frequency
poles of the form 1/(s/N + 1) as is done in a regular PID
controller, where = n m denotes the relative degree of
the plant.
Example 1: We first consider a highly underdamped 3rd
order benchmark system from [14], with = 0.2 and 0 = 1
in the underdamped part and a third pole at 2, given by
1
2
b(s)
=
.
2
a(s)
(s + 2) (s + 0.2s + 1)
(18)
(19)
712
control signal
4
2
0
2
10
15
20
t(s)
25
30
35
40
20
t(s)
25
30
35
40
0.5
output
2
PID controlled system
reference system
1
0
10
15
Imaginary Axis
Root Locus
2
PID controlled system
2
4.5
reference system
3.5
2.5
2
Real Axis
1.5
0.5
Fig. 5. Example 2. MC PID for a system with multiple equal poles with
disturbance rejection - A = 2/3, r = 2 and r = 1.
z
z1
with
KP
KD
K2
1
K1 = 0
K0
0
Gr (z) =
=
(22)
z1
z
+ KI
1
c(z)
z(z 1)
(26)
1
1
KI
1 2 KP
0
1
KD
(27)
(28)
z
z1
r2
z1
+2
r r
z
1
z
2
z r /(1+2r r )
z1 z1/(1+2r r )
(29)
br
z
z1 z+ar
where we replace s by z1
and add a delay, such that the
z
reference system will have a relative degree of one. Further
note that
1/2
br
ar + 1
r =
(30)
and r =
ar
2r ar
+ KP
2
c(z) = K2 z 2 + K1 z + K0
(21)
br (s)
1
=
sar (s)
s(s + 4)
z1
z
where
KD
(23)
1
c(z)b(z)(z + ar ) br a(z)
z2
(31)
or
713
K2 z 2 + K1 z + K0 (bm z m + + b1 z + b0 ) (z
+ ar )
br z 2 z n + an1 z n1 + + a1 z + a0 .
(32)
Here we assume m = n 1. Then, the original system has
a relative degree of one and the degrees of the polynomials
on each
are equal. Thus, the coefficients
side of the sign
T
are now found as the least squares
C = K0 K1 K2
solution to the system
(33)
T C br 0 0 a0 a1 an1 1
where is defined
as in (15) except 2r r 1 is
replaced by ar 1 . We then close the loop using the
z
as shown in Figure 6. The delay in the PIDintegrator z1
part is consistent with replacing the differential operator in
the continuous case with the backward difference operator
in the discrete case.
Step Response
Amplitude
2
1.5
1
0.5
0
e(k)
z
z1
1
z 2 c(z)
u(k)
20
30
Time (sec)
40
50
60
Root Locus
a(z)
0.5
0
0.5
1
2.5
Fig. 6.
10
1
Imaginary Axis
v(k)
d(k)
y(t)
b(z)
1.5
0.5
Real Axis
1.5
Step Response
Amplitude
(34)
0.5
closed loop reference system
PID controlled system
1.5
b(z)
0.5 0.4 0.3z 2
=
a(z)
(z 0.5)(z 0.6)(z 0.7)
KD
0.5
Fig. 7.
Example 3. Discrete time MC PID for a slow underdamped
reference system.
or alternatively
KI KP
10
15
20
25
Time (sec)
30
35
40
45
Root Locus
Imaginary Axis
1
0.5
0
0.5
1
2
1.5
0.5
0.5
1.5
Real Axis
Fig. 8.
(37)
or
(38)
KI
KP
KD
(41)
The resulting closed loop step response and the corresponding root locus are shown in Figure 8, where all closed loop
poles are labeled by on the corresponding root locus.
The PID controlled step response follows the closed loop
reference system quite well.
The resulting closed loop step response and the corresponding root locus are shown in Figure 7, where all closed loop
poles are labeled by on the corresponding root locus. The
PID controlled step response follows the closed loop reference system very well. Reducing ar down to 0.1 produced
a stable but highly oscillating PID controlled system and
stability was lost for ar = 0.08. On the other side stability
is lost for ar = 0.99. The PID controlled system remains
stable even if the system pole at 0.7 slides all the way up to
1.1, but then looses stability. Finally, selecting the reference
pole as one of the system poles, promptly results in the PID
canceling the other two system poles and a complete match
of the two responses.
Example 4: We now consider the same discrete time
system as in Example 3, but this time we choose a faster
reference system with ar = 0.2 and br = 1, corresponding
to r = 2.24 and r = 0.89. Then the reference system in
the z domain is given by
1
br
=
.
z + ar
z 0.2
This results in MC PID coefficients given by
K0 K1 K2 = 12.70 26.63 16.67
V. C ONCLUSIONS
The problem of designing a PID controller is posed in a
setting where a selected reference system presents the design
requirements. This leads to a simple problem of equating
coefficients of like powers in polynomials originating in the
reference system transfer function, the transfer function of
the system to be controlled as well as the PID coefficients.
Effectively, an overdetermined system of equations in the
PID coefficients results, which is solved in the minimum
least square sense. We refer to this controller as the Matching
Coefficients PID (MC PID). The computation is very simple
involving basic high school mathematics only.
In addition, a disturbance rejection scheme based on a
disturbance observer was set up in the continuous time,
in particular to deal with a disturbance entering highly
underdamped system poles. A similar disturbance rejection
scheme may be set up in the discrete time case.
(39)
(40)
714
[8] A.S. Hauksdttir, Optimal zero locations of continuous-time systems with distinct poles tracking first-order step responses, IEEE
Transactions on Circuits and Systems-I: Fundamental Theory and
Applications, Vol. 49, No. 5, May 2002, pp. 685 - 688.
[9] A.S. Hauksdttir, Optimal zero locations of continuous-time systems
with distinct poles tracking reference step responses, Dynamics of
Continuous, Discrete, and Impulsive Systems, Series B: Applications
& Algorithms, Vol. 11, 2004, pp. 353 - 361.
[10] G. Herjlfsson, B. varsson, A.S. Hauksdttir, S.. Sigursson,
Closed Form L2 /H2 Optimizing of Zeros for Model Reduction of
Linear Continuous Time Systems, International Journal of Control, Vol.
82, March 2009, pp. 555-570.
[11] A.S. Hauksdttir, G. Herjlfsson, S.. Sigursson, Optimizing Zero
Tracking and Disturbance Rejecting Controllers - The Generalized
PID controller, The 2007 American Control Conference, New York
City, USA, July 11-13, 2007, pp. 5790 - 5795.
[12] H.I. Hinriksson, An optimized MIMO PID controller, MS thesis,
Department of Electrical and Computer Engineering, University of
Iceland, Reykjavk, Iceland, 2010.
[13] G. Herjlfsson, A.S. Hauksdttir, S.. Sigursson, A Two-Stage Optimization PID Algorithm, to be submitted.
[14] K.J. Astrm, T. Hagglund, Benchmark Systems for PID control, in
Proceedings of the IFAC workshop, Digital Control: Past, Present and
Future of PID Control, Terassa, Spain, 2000, pp. 165-166.
A PPENDIX B: M ATLAB
CODE FORCOMPUTATION
OF PID
COEFFICIENTS K0 K1 K2 , KI KP KD
AND CLOSING OF LOOP IN E XAMPLE 3 - DISCRETE TIME :
b=0.5*0.4*0.3*poly([0 0]);
a=(poly([0.5 0.6 0.7]));
ar=-0.8; br=1; bra=br*[0; 0; a];
hatphi=[conv([ar 1],b) 0 0; ...
0 conv([ar 1],b) 0;0 0 conv([ar 1],b)];
k012=hatphi\bra(end:-1:1);
kPID=[1 1 1;0 -1 -2;0 0 1]*k012(end:-1:1);
cb=k012(1)*[0 0 b]+k012(2)*[0 b 0] ...
+k012(3)*[b 0 0];
cbPID=kPID(3)*([b 0 0]-2*[0 b 0]+ [0 0 b]) ...
+kPID(2)*([b 0 0]-[0 b 0])+kPID(1)*[b 0 0];
zminus1xzxa=[a 0 0]-[0 a 0];
OL=tf(cb,zminus1xzxa,1); LL=feedback(OL,1);
Acknowledgment: This work was supported by the University
of Iceland.
R EFERENCES
[1] Q.-G. Wang, Z. Zhang, K.J. Astrm, L.S. Chek, "Guaranteed dominant
pole placement with PID controllers," Journal of Process Control, 19,
pp. 349-352, 2009.
[2] Q.-G. Wang, T.-H. Lee, H.-W. Fung, Q. Bi, Y. Zhang, "PID tuning
for improved performance," IEEE Transactions on Control Systems
Technology, vol. 7, no. 4, pp. 457-465, July 1999.
[3] M. Shamsuzzoha, S. Skogestad, "The setpoin overshoot method: A
simple and fast closed-loop approach for PID tuning," Journal of
Process Control, vol. 20, pp. 1220-1234, 2010.
[4] G.M. Malwatkar, S.H. Sonawane, L.M. Waghmare, "Tuning PID
controllers for higher-order oscillatory systems with improved performance," ISA Transactions, vol. 48, pp. 347-353, 2009.
[5] H.-P. Huang, J.-C. Jeng, C.-H. Chiang, W. Pan, "A direct method for
multi-loop PI/PID controller design," Journal of Process Control, 13,
pp. 769-786, 2003.
[6] A.S. Hauksdttir, Analytic expressions of transfer function responses
and choice of numerator coefficients (zeros), IEEE Transactions on
Automatic Control, Vol. 41, No. 10, Oct. 1996, pp. 1482 - 1488.
[7] G. Herjlfsson, A.S. Hauksdttir, S.. Sigursson, Closed Form Expressions of Linear Continuous- and Discrete Time Filter Responses,
NORSIG 2006, 7th Nordic Signal Processing Symposium, Reykjavk,
Iceland, June 7-9, 2006.
715