Professional Documents
Culture Documents
Tuning of Fractional PID Controllers With Ziegler-Nichols-type Rules
Tuning of Fractional PID Controllers With Ziegler-Nichols-type Rules
Abstract
In this paper two sets of tuning rules for fractional PIDs are presented. These rules are quadratic and require the same
plant time–response data used by the first Ziegler–Nichols tuning rule for (usual, integer) PIDs. Hence no model for the
plant to control is needed—only an S-shaped step response is. Even if a model is known rules quickly provide a starting
point for fine tuning. Results compare well with those obtained with rule-tuned integer PIDs.
r 2006 Elsevier B.V. All rights reserved.
0165-1684/$ - see front matter r 2006 Elsevier B.V. All rights reserved.
doi:10.1016/j.sigpro.2006.02.020
ARTICLE IN PRESS
2772 D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784
Even though fractional PIDs have been increas- It is worth noticing that, when n is positive but non-
ingly used over the last years, methods proposed to integer, operator D still needs integration limits c
tune them always require a model of the plant to and x; in other words, D is a local operator for
control [3,4]. (An exception is [5], but the proposed natural values of n (usual derivatives) only.
method is far from the simplicity of tuning rules for The Laplace transform of D follows rules rather
integer PIDs.) This paper addresses this issue similar to the usual ones:
proposing two sets of tuning rules for fractional
L½0 Dnx f ðxÞ
PIDs. Proposed rules bear similarities to the first rule 8 n
proposed by Ziegler and Nichols for integer PIDs, > s F ðsÞ if np0;
<
and make use of the same plant time response data. ¼ n
P k nk1
n1
>
: s F ðsÞ s 0 Dx f ð0Þ if n 1onon 2 N:
The paper is organised as follows. Section 2 sums k¼0
up the fundamentals of fractional calculus needed to
understand fractional PIDs. Then, in Section 3, two ð4Þ
analytical methods for tuning fractional PIDs when This means that, if zero initial conditions are
a plant model is available are addressed; these are assumed, systems with a dynamic behaviour de-
used as basis for deriving the tuning rules given in scribed by differential equations involving fractional
Section 4. Section 5 gives some examples of derivatives give rise to transfer functions with
application and Section 6 draws some conclusions. fractional powers of s.
Even though n may assume both rational and
2. Fractional order systems irrational values in (4), the names ‘‘fractional’’
calculus and ‘‘fractional’’ order systems are com-
2.1. Definitions monly used for purely historical reasons. Some
authors replace ‘‘fractional’’ with ‘‘non-integer’’ or
Fractional calculus is a generalisation of ordinary ‘‘generalised’’, however.
calculus. The main idea is to develop a functional Thorough expositions of these subjects may be
operator D, associated to an order n not restricted found in [2,6,7].
to integer numbers, that generalises the usual
notions of derivatives (for a positive n) and integrals 2.2. Integer order approximations
(for a negative n).
Just as there are several alternative definitions of The most usual way of making use, both in
(usual, integer) integrals (due to Riemann, Lebes- simulations and hardware implementations, of
gue, Steltjes, etc.), so there are several alternative transfer functions involving fractional powers of s
definitions of fractional derivatives that are not is to approximate them with usual (integer order)
exactly equivalent. The most usual definition is due transfer functions with a similar behaviour. So as to
to Riemann and Liouville and generalises two perfectly mimic a fractional transfer function, an
equalities easily proved for integer orders: integer transfer function would have to include an
Z x infinite number of poles and zeroes. Nevertheless, it
n ðx tÞn1
D
c x f ðxÞ ¼ f ðtÞ dt; n 2 N, (1) is possible to obtain reasonable approximations
c ðn 1Þ!
with a finite number of zeroes and poles.
Dn Dm f ðxÞ ¼ Dnþm f ðxÞ; m 2 Z One of the best-known approximations is due to
0 _ n; m 2 N0 . (2)
Manabe and Oustaloup and makes use of a
The full definition of D becomes recursive distribution of poles and zeroes. The
n
approximating transfer function is given by [8]
c Dx f ðxÞ
8 Y
N
1 þ ðs=oz;n Þ
> R x ðx xÞn1 sn k ; n40. (5)
>
> f ðxÞ dx if no0;
> c
> GðnÞ 1 þ ðs=op;n Þ
>
> n¼1
<
¼ f ðxÞ if n ¼ 0; The approximation is valid in the frequency range
>
>
>
> Dn ½c Dxnn f ðxÞ if n40; ½ol ; oh . Gain k is adjusted so that both sides of (5)
>
>
>
: shall have unit gain at 1 rad/s. The number of poles
n ¼ minfk 2 N : k4ng:
and zeroes N is chosen beforehand, and the good
ð3Þ performance of the approximation strongly depends
ARTICLE IN PRESS
D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784 2773
t
in
po
A first set of rules is given in Table 1. This is to be
n
io
read as
ct
fle
in
at
P ¼ 0:0048 þ 0:2664L þ 0:4982T
output
nt
ge
þ 0:0232L2 0:0720T 2 0:0348TL
n
ð33Þ
ta
Table 2
Parameters for the second set of tuning rules
1.5
P I l D m
output
T 0:3544 0:7921 0:0492 0:0771 0:0675
L2 46:7325 0:4508 1:7317 28:0388 2:4387
T2 0:0021 0:0018 0:0006 0:0000 0:0013
LT 0:3106 1:2050 0:0380 1:6711 0:0021 0.5
gain / dB
N ¼ 20 dB. ð47Þ 0
0
5. Examples -200
phase / °
-400
In this section the rules from Section 4 are applied
to three different plants. The performance of the -600
results is then asserted and compared to the
(b) 10-2 10-1 100 101 102
performance obtained with integer PIDs tuned with
the first Ziegler–Nichols rule. 0
Two comments. Firstly, as stated above, rules
gain / dB
-20
frequency, or the same phase margin. Actually,
these two performance indicators vary widely as L -40
1.5 1.5
1 1
output
output
K
0.5 0.5
K
0 0
0 10 20 30 40 50 0 10 20 30 40 50
(a) time / s (a) time / s
50 50
gain / dB
gain / dB
0 0
-50
-50
10-2 10-1 100 101 102
10-2 10 -1
10 0
101
102
ω / rad × s-1
ω / rad × s-1
0
0
-200
phase / °
-200
phase / °
-400
-400
-600
-600
(b) 10-2 10-1 100 101 102
(b) 10-2 10-1 100 101 102
0
0
gain / dB
gain / dB
-20
-20
-40
-40
10-2 10-1 100 101 102
10-2 10-1 100 101 102
ω / rad × s-1
ω / rad × s-1
0
0
-20
gain / dB
-20
gain / dB
-40
-40
-60
-60
-80
-80 (c) 10-2 10-1 100 101 102
(c) 10-2 10 -1
10 0
10 1
10 2
1
Fig. 6. (a) Step response of (51) controlled with (54) when K is 32 ,
1
Fig. 5. (a) Step response of (51) controlled with (53) when K is 32 , 1 1 1 1
, , , and 1 (thick line). (b) Open-loop Bode diagram when
1 1 1 1 16 8 4 2
, , ,
16 8 4 2, 1 (thick line). (b) Open-loop Bode diagram when K ¼ 1. K ¼ 1. (c) Closed-loop function gain (top) and sensitivity
(c) Closed-loop function gain (top) and sensitivity function gain function gain (bottom) when K ¼ 1.
(bottom) when K ¼ 1.
ARTICLE IN PRESS
2778 D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784
5.1. First-order plant with delay according to the 10–90% rule and the settling time
is reckoned according to the 5% rule.)
The plant considered was The corresponding open-loop Bode diagrams and
the gains of sensitivity and closed-loop functions are
K 0:1s also given in those figures. They show that the
GðsÞ ¼ e . (51)
1þs desired conditions—given by Eqs. (27)–(31)—are
The nominal value of K is 1. Controllers obtained reasonably—though not exactly—followed. The
with the two tuning rules from the previous section approximations incurred by the least-squares fit
and with the first Ziegler–Nichols rule are are responsible for the conditions being only
approximately verified.
0:5158
C 1 ðsÞ ¼ 0:4448 þ þ 0:2045s1:0202 , ð52Þ
s1:4277 5.2. Second-order plant
1:3106
C 2 ðsÞ ¼ 1:2507 þ 1:1230 0:2589s0:1533 , ð53Þ
s The plant considered was
60:0000 K K
C ZN ðsÞ ¼ 12:0000 þ þ 0:6000 s. ð54Þ GðsÞ ¼ e0:2s
s 4:3200s2 þ 19:1801s þ 1 1 þ 20s
(Note that due to the approximations involved one (55)
of the gains is negative. This will not, however, with a nominal value of K of 1. The approximation
affect results.) Corresponding step responses are stems from the values of L and T obtained from its
given in Figs. 4–6. These show what happens for step response.
several values of K, the plant’s gain, which is Controllers obtained with the two rules given
assumed to be known with uncertainty. It should be above and with the first Ziegler–Nichols rule are
noticed that fractional PIDs can deal with a clearly
6:5185
broader range of values of K. This is likely because C 1 ðsÞ ¼ 0:0880 þ þ 2:5881s0:6957 , ð56Þ
the specifications the integer PID tries to achieve are s0:6751
different: that is why responses are all faster, at the 12:4044
C 2 ðsÞ ¼ 6:9928 þ 0:6000 þ 4:1066s0:7805 , ð57Þ
cost of greater overshoots. More important is that s
the overshoot is fairly constant with fractional 300:0000
C ZN ðsÞ ¼ 120:0000 þ þ 12:0000 s. ð58Þ
PIDs—at least for those values closer to 1. This is s
because fractional PIDs attempt to verify (31), The step responses obtained (together with open-
which the integer PID does not. Data on these loop Bode diagrams and sensitivity and closed-loop
responses are summed up in Table 3. (In this and functions’ gains) are given in Figs. 7–9. Table 4
the following tables, the rise time is reckoned presents data on the step responses. This time, since
Table 3
Data on step responses of Figs. 4–6
Rise time Overshoot Settling time Rise time Overshoot Settling time Rise time Overshoot Settling time
(s) (%) (s) (s) (%) (s) (s) (%) (s)
there is no delay, the plant is easier to control and a that is more constant—in spite of the plant having
wider variation of K is supported by all controllers. a structure different from that used to derive the
But fractional PIDs still achieve an overshoot rules.
1.5 1.5
output
output
1 1
0.5 0.5
K
0 0
0 10 20 30 40 50 0 10 20 30 40 50
(a) time / s (a) time / s
100 100
gain / dB
gain / dB
50 50
0 0
-50 -50
-4 -2 0 2
10 10 10 10 10-4 10-2 100 102
ω / rad × s -1
ω / rad × s -1
0 0
phase / °
-50 50
phase / °
-100 -100
-150 - 150
(b) 10-4 10-2 100 102 (b) 10-4 10-2 100 102
0 0
gain / dB
gain / dB
-20 -20
-40 -40
-60 -60
-80 -80
10-4 10-2 100 102 10-4 10-2 100 102
ω / rad × s-1 ω / rad × s -1
0 0
gain / dB
gain / dB
-50 -50
-100 -100
(c) 10-4 10-2 100 102 (c) 10-4 10-2 100 102
1 1
Fig. 7. (a) Step response of (55) controlled with (56) when K is 32 , Fig. 8. (a) Step response of (55) controlled with (57) when K is 32 ,
1 1 1 1 1 1 1 1
16, 8, 4, 2, 1 (thick line), 2, 4, 8, 16 and 32. (b) Open-loop Bode 16, 8, 4, 2, 1 (thick line), 2, 4, 8, 16 and 32. (b) Open-loop Bode
diagram when K ¼ 1. (c) Closed-loop function gain (top) and diagram when K ¼ 1. (c) Closed-loop function gain (top) and
sensitivity function gain (bottom) when K ¼ 1. sensitivity function gain (bottom) when K ¼ 1.
ARTICLE IN PRESS
2780 D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784
-50
The step responses obtained (together with open-
phase / °
Table 4
Data on step responses of Figs. 7–9
Rise time Overshoot Settling time Rise time Overshoot Settling time Rise time Overshoot Settling time
(s) (%) (s) (s) (%) (s) (s) (%) (s)
the terms with the first derivative: The usefulness of these rules is that of all sets of
rules: they may be applied even if no model of the
2 plant is available, provided a suitable time response
C IMC2 ¼ 1 þ þ s1=2 , ð65Þ
s is; they may be used as a departing point for fine-
1 2 1 1=2 tuning (this is, for instance relevant if the optimisa-
C IMC1 ¼ þ þ s . ð66Þ
2 s 2 tion tuning method is used, since its results depend
significantly from the initial estimate provided);
Step responses obtained are shown in Fig. 13 and they are easier and faster to apply than analytic
compare well with those of Figs. 10 and 11. It is seen methods. Their drawbacks are also those of all sets
that rule-tuned fractional PIDs perform nearly as of rules: their performance is often inferior to the
well as those found with IMC. one sought, fine-tuning being often needed; they
perform worse than controllers tuned analytically;
6. Comments and conclusions they cannot be applied to all types of plants, but
only to those with a particular sort of time response.
In this paper, two analytical methods (among Fractional PIDs tuned with these new rules
others published in the literature) for tuning the compare well with integer PIDs tuned according
parameters of fractional PIDs were reviewed. The to the first Ziegler–Nichols rule, even though the
optimisation method of [4] was then used for comparison is made difficult because Ziegler–
developing two sets of tuning rules similar to those Nichols rules achieve different specifications for
of the first set of Ziegler–Nichols rules. These new different values of T and L while the new rules
tuning rules make use of two parameters (L and T) attempt to always keep a uniform result. The
of the unit-step response of the plant, which should advantage fractional PIDs provide is a roughly
be S-shaped: otherwise they cannot be applied. constant overshoot when the gain of the plant
The most obvious difference is that the new rules undergoes variations. (It is of course likely that
are clearly more complicated than those of Ziegler– carefully tuned integer PIDs perform better than
Nichols: they have to be quadratic (approximations rule-tuned fractional PIDs—just as carefully tuned
of lower order were tried but proved unsatisfac- fractional PIDs are likely to perform better than
tory). And the broader the application range of the rule-tuned integer PIDs.)
rules is to be, the more complicated they become: It is surely possible to improve these tuning rules.
the first rule needs two tables of parameters, while Rules similar to the second Ziegler–Nichols rule
the second, good for a narrower interval of values of (making use of a closed-loop response of the plant)
L only, needs only one. are certainly possible, and are currently being
ARTICLE IN PRESS
2782 D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784
1.4 1.4
1.2 1.2
1 1
0.8 0.8
output
output
0.6 0.6
0.4 0.4
K
K
0.2 0.2
0 0
0 10 20 30 40 50 0 10 20 30 40 50
(a) time / s (a) time / s
80
80
60
60
gain / dB
40
gain / dB
40
20
20
0
0
-20
-20
10-2 10 -1
10 0
10 1
10 2
10-2 10-1 100 101 102
ω / rad × s-1
ω / rad × s-1
0
0
phase / °
phase / °
-500
-500
-1000
(b) 10-2 10-1 100 101 102 -1000
(b) 10-2 10-1 100 101 102
0
0
gain / dB
gain / dB
-20
-20
-40
-40
10-2 10-1 100 101 102
ω / rad × s-1 10-2 10-1 100 101 102
ω / rad × s -1
0
0
-20
gain / dB
-20
gain / dB
-40
-40
-60
-60
-80
(c) 10-2 10 -1
10 0
10 1 2
10 -80
(c) 10-2 10-1 100 101 102
Fig. 10. (a) Step response of (59) controlled with (60) when K is
1 1 1 1 1 Fig. 11. (a) Step response of (59) controlled with (61) when K is
32, 16, 8, 4, 2, 1 (thick line) and 2. (b) Open-loop Bode diagram 1 1 1 1 1
when K ¼ 1. (c) Closed-loop function gain (top) and sensitivity 32, 16, 8, 4, 2
and 1 (thick line). (b) Open-loop Bode diagram when
function gain (bottom) when K ¼ 1. K ¼ 1. (c) Closed-loop function gain (top) and sensitivity
function gain (bottom) when K ¼ 1.
ARTICLE IN PRESS
D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784 2783
Settling time
1.4
1.2
3.1 s
(s)
–
–
–
–
–
–
1
0.8
output
Overshoot
0.6
(%)
Controller of Eq. (54)
31
0.4
–
–
–
–
–
–
0.2
Rise time
0
0 10 20 30 40 50
0.6 s
(a) time / s
(s)
–
–
–
–
–
–
80
60
gain / dB
40
Settling time
20
0
86.6
47.7
27.1
16.0
9.6
5.6
-20
(s)
–
10-2 10-1 100 101 102
ω / rad × s -1
Overshoot
phase / °
-500 (%)
Controller of Eq. (53)
7
7
8
9
9
8
–
-1000
(b) 10-2 10-1 100 101 102
Rise time
0
26.5
14.7
8.2
4.6
2.4
1.1
gain / dB
(s)
-20 –
-40
Settling time
0
(s)
gain / dB
-20
-40
-60
Overshoot
Data on step responses of Fig. 10–12.
-80
(c) 10-2 10-1 100 101 102
(%)
Controller of Eq. (52)
26
27
28
29
27
23
17
Fig. 12. (a) Step response of (59) controlled with (62) when K is
1
32.(b) Open-loop Bode diagram when K ¼ 1. (c) Closed-loop
function gain (top) and sensitivity function gain (bottom) when
K ¼ 1.
Rise time
25.1
15.8
10.3
6.9
4.4
2.7
1.5
(s)
32
16
1
1
2
1
8
1
4
1
2
ARTICLE IN PRESS
2784 D. Valério, J.S. da Costa / Signal Processing 86 (2006) 2771–2784
1.4 References
1.2
[1] T. Hägglund, K. Åström, Automatic tuning of PID
controllers, in: W.S. Levine (Ed.), The Control Handbook,
1
CRC Press, Boca Raton, FL, 1996, pp. 817–826.
0.8 [2] I. Podlubny, Fractional Differential Equations: An Intro-
output