Fuzzy Gain Scheduling of PID Controllers PDF
Fuzzy Gain Scheduling of PID Controllers PDF
5, SEPTEMBER/OCTOBER 1993
Abstract- This paper describes the development of a fuzzy trol actions. Although they do not have an apparent struc-
gain scheduling scheme of PID controllers for process control. ture of PID controllers, fuzzy logic controllers may be
Fuzzy rules and reasoning are utilized on-line to determine the
considered nonlinear PID controllers whose parameters
controller parameters based on the error signal and its first
difference. Simulation results demonstrate that better control can be determined on-line based on the error signal and
performance can be achieved in comparison with Ziegler- their time derivative or difference.
Nichols controllers and Kitamori's PID controllers. In this paper, a rule-based scheme for gain scheduling
of PID controllers is proposed for process control. The
new scheme utilizes fuzzy rules and reasoning to deter-
I. INTRODUCTION
mine the controller parameters, and the PID controller
HE BEST-KNOWN controllers used in industrial
T control processes are proportional-integral-derivative
(PID) controllers because of their simple structure and ro-
generates the control signal. It is demonstrated in this pa-
per that human expertise on PID gain scheduling can be
represented in fuzzy rules. Furthermore, better control
bust performance in a wide range of operating conditions. performance can be expected in the proposed method than
The design of such a controller requires specification of that of the PID controllers with fixed parameters.
three parameters: proportional gain, integral time con-
stant, and derivative time constant. So far, great effort has II. PID CONTROLLER
been devoted to develop methods to reduce the time spent
on optimizing the choice of controller parameters [8], The transfer function of a PID controller has the fol-
[15]. The PID controllers in the literature can be divided lowing form:
into two main categories. In the first category, the con- Gc(s) = «, + Ki/s + Kds (1)
troller parameters are fixed during control after they have where Kp , Ki, and Kd are the proportional, integral, and
been tuned or chosen in a certain optimal way. The derivative gains, respectively. Another useful equivalent
Ziegler-Nichols tuning formula is perhaps the most well- form of the PID controller is
known tuning method [5], [19]. Some other methods exist
for the PID tuning (see e.g., [1], [6], [7]). The PID con- + l/(Tis) + Tds)
Gc(s) = Kp (1 (2)
trollers of this category are simple, but cannot always ef- where T, = Kp/ K, and Td = Kd/ K p. T, and Td are known
fectively control systems with changing parameters, and as the integral and derivative time constants, respectively.
may need frequent on-line retuning. The controllers of the The discrete-time equivalent expression for PID control
second category have a structure similar to PID control- used in this paper is given as
lers, but their parameters are adapted on-line based on
n K
parameter estimation, which requires certain knowledge
of the process, e.g., the structure of the plant model [2],
u(k) = Kpe(k) + «, T, i~1 e(i) + T: l1e(k).
[17]. Such controllers are called adaptive PID controllers
Here, u (k) is the control signal, e (k) is the error between
in order to differentiate them from those of the first cate-
the reference and the process output, T, is the sampling
gory. period for the controller, and l1e(k) ~ e(k) - e(k - 1).
The application of knowledge-based systems in process
control is growing, especially in the field of fuzzy control
The parameters of the PID controller Kp , s; and or «,
K p , Ti, and Td can be manipulated to produce various re-
[9], [10], [12]-[14]. In fuzzy control, linguistic descrip-
sponse curves from a given process. Finding optimum ad-
tions of human expertise in controlling a process are rep-
justments of a controller for a given process is not trivial.
resented as fuzzy rules or relations. This knowledge base
In the following section, an on-line gain scheduling
is used by an inference mechanism, in conjunction with
scheme of the PID controller based on fuzzy rules is in-
some knowledge of the states of the process (say, of
troduced.
measured response variables) in order to determine con-
Manuscript received April 10, 1992; revised October 3, 1992. III. Fuzzy GAIN SCHEDULING
Z.-Y. Zhao was with the Department of Mechanical Engineering, Uni-
versity of California at Berkeley, Berkeley, CA 94720, and is currently Fig. 1 shows the PID control system with a fuzzy gain
with Omron Advanced Systems, Inc., in Santa Clara, CA. scheduler. The approach taken here is to exploit fuzzy
M. Tomizuka is with the Department of Mechanical Engineering, Uni- rules and reasoning to generate controller parameters.
versity of California at Berkeley, Berkeley, CA 94720.
S. Isaka is with Omron Advanced Systems, Inc., Santa Clara, CA 95054.
It is assumed that Kp , K; are in prescribed ranges
IEEE Log Number 9209681. [Kp.min' Kp,max] and [Kd . min' K p,max], respectively. The ap-
0018-9472/93$03,00 © 1993 IEEE
ZHAO et al.: FUZZY GAIN SCHEDULING OF PID CONTROLLERS 1393
NB NM NS ZO PS PM PB
Input
+
x=e(k) or t.e(k)
Fig. 2. Membership functions for e(k) and lie (k).
Fig. 1. PID control system with a fuzzy gain scheduler.
value of t1e(k).
Based on lJ.i' the values of K~ and K d for each rule are
determined from their corresponding membership func- that are due to (3) and (5):
tions. The implication process of a fuzzy rule is shown in (lla)
Fig. 6.
By using the membership functions in Fig. 2, we have (lIb)
the following condition [18]:
(lIe)
2:
i= I
lJ.i = I. (9) Based on an extensive simulation study on various pro-
cesses, a rule of thumb for determining the range of Kp
Then, the defuzzification yields the following: and the range of Kd is given as
Kp.min = O.32K u ' Kp,max = O.6Ku
(lOa) (12)
TABLE II
Fuzzy TUNING RULES FOR K J
tle(k)
NB NM NS ZO PS PM PB
NB S S S S S S S
NM B B S S S B B
NS B B B S B B B
e(k) ZO B B B B B B B
PS B B B S B B B
PM B B S S S B B
PB S S S S S S S
TABLE III cal entity like a supervisor is desired to monitor the per-
Fuzzy TUNING RULES FOR a
formance of the control system. Instability is detected
tle(k) preferably in an early stage if the system is unstable. Once
stability is identified during process monitoring, certain
NB NM NS ZO PS PM PB
corrective action is taken. For example, the controller pa-
NB 2 2 2 2 2 2 2 rameters are switched to a set of known stabilizing param-
NM 3 3 2 2 2 3 3 eters that guarantees that the control system will remain
NS 4 3 3 2 3 3 4
stable; or the system is shut down by setting Kp to zero if
e(k) ZO 5 4 3 3 3 4 5
PS 4 3 3 2 3 3 4 necessary .
PM 3 3 2 2 2 3 3 There are several practical methods available to iden-
PB 2 2 2 2 2 2 2
tify instability. Anderson et al. [1] suggest monitoring the
magnitude of peaks and the system is determined to be
unstable when peaks are growing in magnitude for three
Ai peaks in row. Nesler [11] uses the ratio of short-term av-
erage of the error to that of the absolute value of the error
~Ai to detect instability. Gertler and Chang [3] propose an
instability indicator by observing the output. It is also
possible to combine the above quantitative indexes with
e(k) e rule-based logic to make more accurate and reliable de-
cisions.
In some situations, a hybrid controller may be more
J.l Bj K' .
P,I K'P change and
useful reliable. For example, if a large set point
is made, the fuzzy gain scheduling scheme is first
employed to yield a fast transient response. When the er-
ror e (k) is small, i.e., the output is settling to the set point,
the scheme is then switched to a fixed gain PID controller.
M(k) ~e The stability of the closed-loop control system can be
Fig. 6. Implication process of a fuzzy rule. guaranteed while maintaining some level of control.
Sometimes a set of PID parameters are good for set point
responses but may be inappropriate for load disturbance
where K'po, K:o, K do are constant. Although these rules rejection [4], [16]. Hang [4] finds that the heuristic
have different forms, they are equivalent to each other un- Ziegler-Nichols design rule gives a set of PID parameters
der certain conditions. It seems relatively easier to set the that are good at load disturbance rejection. Therefore, a
fuzzy tuning rules by (6). PID controller with a set of fixed parameters that are ob-
tained by the Ziegler-Nichols rule can be used after the
transient stage of the process response.
IV. STABILITY
Since the parameters of the present PID controller are V. SIMULATION RESULTS AND DISCUSSIONS
functions of time, it is very difficult to analyze the stabil-
ity of the closed-loop control system. Even if the asymp- The fuzzy gain scheduling scheme has been tested on a
totic stability is assured, wild start-up transients may be variety of processes. Table IV shows the representative
intolerable in many applications. Therefore, a hierarchi- simulation results of the following second-, third-, and
1396 IEEE TRANSACTIONS ON SYSTEMS. MAN. AND CYBERNETICS. VOL. 23, NO.5, SEPTEMBER/OCTOBER 1993
Output y Output Y
1,4r---~-~:------~----------, 1.2..---......,..---------,----,-----,-----,
-r-, I'
,',\
,
1.2 ........ ·~ .: .... ...:-\- ...\./:..,.,~<:~.;>. ....-:~......----.----;-----+---___l
I: ,
" , I •
fourth-order processes:
Output y
e -0.55 1.4r-----:-----,-----,------:-------,
G) (s) = -(s-+-I-:;:)2 (13a) , .. ",,:,
1.2 / :.'\ , ;..
I . \
4.228
(13b) ....,/ .... -.':.>\.~..,.:~.~:'i~.,-;~~ .-=:;.~-~~--..-=" ......~--'---~-1
(s + 0.5)(S2 + 1.64s + 8.456)
0.8
0.4 . zeigl~r~~i~hOIS
In the table, Yo; represents the percent maximum over- :. • • • Kitamon
shoot, T5 stands for the 5 percent settling time, and IAE, 0.2 '
ISE are the integral of the absolute error and the integral
of the squared error, respectively [8]. The time responses 2 4 6 10
are plotted in Fig. 7, Fig. 8, and Fig. 9, respectively. The TIME (sec)
results obtained by using Ziegler-Nichols PID controllers Fig. 9. Comparison of step responses of the controlled fourth-order pro-
and Kitamori's PID controllers are also presented for cess.
TABLE IV
SUMMARY OF SIMULATION RESULTS
"The PID parameters of the Kitamori's controller are not available for the process G, (s) because it has
a small damping ratio, 0.282. Yo, is the percent maximum overshoot, T, is the 5 percent settling time. and
IAE. ISE are the integral of the absolute error and the integral of the squared error. respectively.
(ao = al = 1)
where a is a time-scaling factor, which is chosen as small
as possible. A set of a's standard values is given
{a;} = {l, 1,0.5,0,15,0.03, , .. }
that would result in a time response with adequate damp-
ing characteristics and a short rise-time, The closed-loop
transfer function of the PID controlled system is then
4 6 10 12 14 given
TIME (sec)
Fig. 10. PID parameters of the fuzzy gain scheduler for the control of the W(s)
second-order process. 1 + I/(P(s)C(s)) 1 + sia' Ie)
where
performance improvements by fine tuning the ranges as a' ab+a;+a2s2+
well as by modifying the tuning rules in Table I through
Table III. These points require further research and de-
velopment. Equating GM(s) to W(s) gives
e = sa' I (a - 1),
ApPENDIX Expanding the right side of the above equation in s yields
KITAMORI'S PID CONTROLLER
pes)
ab + a;s + a2s2 + , ..
))
+ a-Cal - (3) J' S-
3 a~ 2 a;
and the PID controller is + [a aa2 ----7 + a (a~ + a 3 ( 2a2a3
(3) ---;
ab ao ao
,
Co + CIS + C2S-
C(s)
S
1398 IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS. VOL. 23, NO. S, SEPTEMBER/OCTOBER 1993
where ao = al = 1, By matching the coefficient in s from [15] Y. Takahashi, M. J. Rabins, and D. M. Auslander, Control and Dv-
low order to high order, we obtain namic Systems. Menlo Park, NJ: Addison-Wesley, 1970. .
[16] J. G. Truxal, Automatic Feedback Control System Synthesis. New
York: McGraw-Hill, 1955.
Co ao/ a [17] T. Yamamoto, S. Omatu, and H. Ishihara, "A construction of self-
tuning PID control system," Trans. SICE Japan., vol. 25, pp. 39-
aO(a;/ao 45.1989 (in Japanese).
118] Z. Y. Zhao, M. Tomizuka, and S. Sagara, "A fuzzy tuner for fuzzy
C2 aO{a2lao aa2a;/aO + a2(a~ - (3)}/a logic controllers," in Proc. 1992 Amer. Control Conf'., Chicago, IL,
June 24-26, 1992, pp. 2268-2272.
where a is obtained by choosing the smallest positive root [19] J. G. Ziegler and N. B. Nichols, "Optimum settings for automatic
of the following equation: controllers," Trans. ASME, vol. 64, pp. 759-768, 1942.