You are on page 1of 6

Using Fuzzy Logic in Control

Applications: Beyond Fuzzy


PID Control
Stephen Chiu

substantial portion of the literature change in actuator command. The fuzzy The misconception in equating fuzzy
on fuzzy control deals with the use controller would execute control rules of control with nonlinear PID control has
of fuzzy rules to implement nonlinear pro- the form: if set-point error is positive big steered many engineers away from ex-
portional-integral-derivative (PID) type and error change is positive small, then ploiting the full potential of fuzzy logic in
control. As a result, many control engi- actuator output is negative big. When control applications. The purpose of this
neers are led to believe that using fuzzy used in this way, fuzzy control is not much article is to point out the many ways that
rules to implement nonlinear PID control different from conventional PID con- fuzzy logic can be used in control applica-
is the prime use of fuzzy logic for control. trol-it is solving the same set-point regu- tions beyond fuzzy PID control. In partic-
However, when we examine commercial lation problem addressed by PID control ular, the emphasis here is on the use of
products in which fuzzy control is said to and solving it in essentially the same way fuzzy logic to perform high-level control
be incorporated, we rarely see fuzzy logic as PID control, except that fuzzy control functions that fall outside the domain of
being used to implement nonlinear PID provides a nonlinear input/output map- conventional control methods. We will
(proportional-integral-derivative) con- ping. Hence, fuzzy control is often viewed examine industrial applications where
trol; fuzzy logic is used mostly to handle as a form of nonlinear PID control, and fuzzy logic was employed for supervisory
high-level control functions that tradi- control, for selecting discrete control ac-
comparisons of fuzzy control versus con-
tional control methods do not address. tions, for identifying the operating envi-
ventional PID control abound in litera-
This article discusses different ways ronment, and for evaluating controller
ture. Many engineers lose interest in
that fuzzy logic can be used in high-level performance.
fuzzy control after finding the perfor-
control functions. Specifically, we exam- mance improvement offered by fuzzy PID
ine the use of fuzzy logic for supervisory Supervisory Control
control cannot offset the increased com-
control, for selecting discrete control ac- Fuzzy control in the form of nonlinear
plexity in computation and controller tun-
tions, for identifying the operating envi- PID control has not found much accep-
ing, or after finding nonlinear PID control
ronment, and for evaluating controller tance in industry, because conventional
can be more efficiently implemented
performance. The purpose of this article is PID control is well entrenched, simpler,
to stimulate the use of fuzzy logic to pro- through other mechanisms (e.g., gain
scheduling or look-up table) than through low cost, and works satisfactorily for
vide new control functions that are out- most applications. For the instances
s i d e t h e d o m a i n of t r a d i t i o n a l fuzzy rules. Conventional PID control is
where fuzzy logic is applied to set-point
control-where fuzzy control is likely to well-established and can satisfy the per-
regulation, it is typically used in a
provide the greatest payoff. formance requirements of most set-point
high-level module that supervises a con-
regulation problems at minimal cost; ventional PID controller. Here we give
Introduction there is little incentive to switch from con- several examples to illustrate different
Much of fuzzy control research is fo- ventional PID control to a more complex, forms of fuzzy supervisory control.
cused on the set-point regulation problem, nonlinear form of PID control unless the The temperature controller produced
where the control objective is to drive a conventional controller is doing an unsat- by Yokogawa Electric [I] is a good exam-
process variable (e.g., motor shaft posi- isfactory job. Hence, the fuzzy PID con- ple of how fuzzy logic can be used for su-
tion, oven temperature) to a commanded troller that is ubiquitous in technical pervisory control. Temperature control
set-point. If one reads a paper on fuzzy literature rarely appears in actual com- usually involves processes that have a
control, chances are the paper will de- mercial applications; commercial appli- long time delay; for many processes, it is
scribe a fuzzy controller with set-point er- cations of fuzzy control are largely also imperative that the temperature does
ror and error change as its inputs, and the focused on high-level, task-oriented con- not overshoot the desired set-point. How-
output is an actuator command or a trol rather than set-point regulation. ever, it is difficult to avoid overshoot

100 IEEE Control Systems


when a process has a long time delay, ex- pervisory module scales the output of the examples of fuzzy supervisory control
cept by using low feedback gains, which tuner (the gain adjustment commands) can be found in [ 5 ] .
results in slow system response. In based on the resultant system perfor-
Yokogawa Electrics temperature con- mmce (see Fig. 2). The fuzzy module Selection of Discrete Control
troller, fuzzy logic is used to determine ar- adaptively scales the tuners output based Actions
tificial set-points that are fed to a on the amount of performance improve- Control problems that require the se-
conventional PID controller. The control ment after each tuning cycle and the con- lection of discrete control actions, such as
architecture is shown in Fig. 1. The PID sistency of the performance improvement choosing to turn left or right, are not ad-
controller is allowed to have high feed- oaer the past few tuning cycles. The dressed by control theory. This type of
back gains for fast system response. As tuiers output is scaled up if the system control problem is surprisingly common,
the fuzzy supervisory module detects im- performance is consistently improving, and each application is open to novel so-
pending overshoot, it fools the PID con- and scaled down if the tuner becomes in- lutions simply because there is no stan-
troller by commanding the PID controller effective in further improving perfor- dard method for handling these problems.
to aim for a temperature value that is mince or if the performance vacillates. In other words, they are ripe for the appli-
somewhat lower than the actual set-point. In a steam turbine control application cation of fuzzy logic. The control of auto-
As the temperature rises to (and over- at General Electric, a fuzzy supervisory matic transmission in automobiles is one
shoots) the artificial set-point, the fuzzy m3dule is used to combine the output of such problem (i.e., choosing to shift up,
module gradually raises the artificial several conventional PID controllers [3]. shift down, or stay in the current gear).
set-point toward the actual set-point. In The turbine control system employs three Conventional automatic transmissions
this way, the fuzzy supervisory module PID controllers for regulating the turbine select shift action based on only the vehicle
leads the PID controller along a tempera- te nperature, speed, and stress, respec- speed and throttle opening. Fig. 4 shows a
ture trajectory that can quickly reach the tively. However, there is only one control typical shift pattern for the gears as a func-
actual set-point without overshoot. actuator (the bypass valve) for regulating tion of the vehicle speed and throttle open-
In a motion controller produced by Al- t h s e three parameters. Therefore, the dif- ing. In general, increasing speed andor
len-Bradley, fuzzy logic is used to super- ferent, often conflicting actuator com- decreasing throttle opening lead to higher
vise the automatic tuner of a conventional mands from the three PID controllers gears, while decreasing speed and/or in-
PID controller [2]. The tuner observes the must be resolved into a single command. creasing throttle opening lead to lower
system response and automatically ad- The fuzzy supervisory module assigns gears. This simple shift selection function
justs the PID controller feedback gains wl:ights to the different PID controller does not consider the many other factors
during successive tuning cycles to obtain outputs based on the high-level control that affect a human drivers shift action
desired system response characteristics. ohjective specified by an operator and on (e.g., type of road and the road incline) and
To facilitate fast convergence to the opti- the current system state (temperature, therefore the behavior of the automatic
mal gain values, and to protect the system speed, and stress). For example, if the ob- transmission often does not match the
against incorrect gain changes, a fuzzy su- je-tive is to prewarm the turbine as fast as drivers intention. For example, if the
possible, then temperature control would driver releases the gas pedal (decreases
be given higher priority than speed and throttle opening) to coast down a steep hill,
I Artificial I stress control unless the speed or stress are the automatic transmissions will typically
PID Process
si,:nificantly misbehaving. This control shift to a higher gear instead of lowering
architecture is shown in Fig. 3. the gear to provide engine braking torque.
I I
In most process control applications, a To address this deficiency, Nissan Motors
I I
Temperature
human operator must determine the has developed a fuzzy automatic transmis-
set-points for numerous PID controllers sion controller that provides more intelli-
Fig. 1. Conventional PID control is as
arid periodically adjust the set-points to gent selection of the shift action [6].
sisted by a fuzzy supervisor to prevent
adapt to changing process conditions. An- Nissans fuzzy automatic transmission
overshoot.
other type of fuzzy supervisory control in- controller selects shift action based on
volves converting the human operators more input information than a conven-
knowledge into a set of fuzzy rules, and tional automatic transmission controller.
I . , I thus creating a high level controller that The inputs to the fuzzy controller are the
I
automatically determines the set-points vehicle speed, throttle opening, change in
PID
Tuner fcr the low-level PID controllers. Froese, speed during the last two seconds, change
et al., [4]describes an example of this type in speed during the last five seconds,
Change of fuzzy supervisory control applied to change in throttle during the last clock pe-
-
Setpoint slurry treatment. riod, change in throttle during the last two
The capability of a control system can clock periods, and an estimate of the vehi-
be greatly enhanced by adding a supervi- cles running resistance. For each possi-
I
Controlled Variable sory module to complement conventional ble gear, a set of fuzzy membership
control algorithms. The implementation functions is defined for these input vari-
Fig. 2. A fuzzy supervisor scales the output of intelligent supervisory functions is usu- ables; the membership functions describe
of a PID tuner based on the effectiveness ally straightforward using fuzzy logic. the specific condition under which the
and consistency of the tuner in improving T i e examples described above provide particular gear should be used. For
PID controller pe$ormance. only a glimpse of the possibilities; other example, the set of membership functions

October 1998 101


for gear 2 would describe the range of speed, limited range of operating conditions. The use of fuzzy logic to characterize
throttle opening, change in speed, change in Thus, many control systems require the operating environment is illustrated
throttle opening, etc., that is appropriate for switching between different control laws by another automatic transmission con-
gear 2. The fuzzy controllerevaluates the de- as the operating condition changes. Gain troller developed by Nissan Motors [7].
gree to which the present driving condition scheduling, whereby the controller feed- This alternative automatic transmission
matches the condition defined for each gear, back gains are switched to different val- controller holds a set of conventional shift
and thus obtains a measure between 0 and 1 ues as the plant state moves from one patterns that are optimized for different
that indicates the suitability of each gear for operating region to another, is commonly driving environments (e.g., highway driv-
the present condition. used in conventional control systems to ing, mountain driving, city driving), and
Two additional sets of fuzzy member- compensate for the limitations of linear selects the appropriate shift pattern ac-
ship functions are defined to describe suit- control laws. cording to the driving environment. For
able conditions for upshift and downshift, For set-point regulation problems, example, human drivers prefer to main-
respectively. The fuzzy controller also switching between different control laws is tain a constant gear when driving on a
evaluates, according to these membership usually a straightforward function of the winding road, although the throttle must
functions, the degree to which the present measured plant states (e.g., speed, altitude, change constantly. Therefore, driving on
driving condition calls for upshifting and temperature). However, at higher levels of a winding road calls for a shift pattern that
downshifting. Let the degree of suitability control,switching between different control is less sensitive to throttle change than a
for using the ith gear be denoted by Gi, laws, or control strategies, is based on high shift pattern designed for highway driv-
the degree of suitability for upshift be de- level characterizations of the operating en- ing. In this automatic transmission con-
noted by Gup, and the degree of suitability vironment (e.g., driving on a highway or troller, fuzzy logic is not used to directly
for downshift be denoted by Gdown; the city street, cooling a room full of people or control shifting, but to identify the driving
fuzzy controller determines whether to an empty room). Because the high level environment so that the appropriate con-
perform an upshift or a downshift by eval- characteristics of interest are often not di- ventional shift pattern can be selected to
uating the following function: rectly measurable, the characteristics often control shifting.
need to be inferred from indirect sensor Because there are no suitable sensors
measurements. In such cases, fuzzy logic is for identifying the driving environment,
extremely useful for encoding the heuristics Nissan engineers used fuzzy logic to infer
to infer the characteristics. the driving environment from the drivers

where i is the present gear number. The Fuzzy


controller commands an upshift if S is Supervisor
greater than one by some threshold, and Temperature I
commands a downshift if Sis less than one
by some threshold. Thus, in order to com-
mand an upshift, the suitability of the
higher gear and the suitability of upshift
must both be high. The gear number i is
cleverly included in the evaluation func- Temperature
tion to induce a preference to remain in the
same gear as the gear becomes higher.
In addition to the key point that this Speed
control application requires the selection PID #2
of discrete control actions, another notable
point is that this fuzzy controller does not
use any fuzzy if-thenrules. In this appli-
cation we see that only fuzzy membership
functions are employed to obtain a mea-
sure of the degree of matching between
1
Speed

conditions; and the degrees of matching


are used as parameters in an analytical cri-
terion function for decision making.
Hence, fuzzy control does not necessarily
involve explicit if-then rules; however,
I
Stress
the analytical criterion function may be
viewed as an implicit rule.

High Level Objective


Identification of Operating Selected by Operator
Environment
Typically a simple control law can Fig. 3. A fuzzy supervisor assigns weights to the output of different PID controllers accord-
provide good performance within only a ing to the current system state and the control objective specij?ed by a human operator.

102 IEEE Control Systeins


thr: use of the human driver as the must specify an optimality measure from
environment sensor. Creatively infer- which to search for the best control law.
ring information from indirect sensors The optimality measure defines the ideal
(often sensors that seem unrelated to the system behavior and provides a quantita-
characteristic that we want to measure) tive measure of the closeness to the ideal
is at the heart of many successful fuzzy behavior. Analytic optimality measures,
CO ntrol applications. such as the quadratic cost function, give
The fuzzy controlled vacuum cleaner the human designer a very limited lan-
an11 washing machine from Matsushita guage for expressing how to judge which
Electric both incorporate creative use of system behavior is closer to the ideal. As
sensors to infer characteristics of the envi- an example, consider the common use of
ronment. The Matsushita vacuum cleaner the root-mean-square (RMS) error as an
Fig. 4. Typical shift pattern for conven- automatically adjusts suction power and optimality measure in system modeling.
tional automatic transmissions. The nota- beater bar speed based on the amount of The ideal system behavior is one that pro-
tion 23,for example, indicates shifting dust and floor type. An infrared LED sen- duces zero error; however, in judging
from gear 2 to gear 3. sor in the vacuum cleaner counts the num- which system behavior is closer to the
ber of dust particles that pass through the ideal, a designer may want to consider not
air tube. The floor type is inferred from the only the RMS error, but also the maxi-
Driving on Highway
4 rate of change in the number of dust parti- mum error, the average percentage error,
cles counted; the number of dust particles and whether the errors occur on the con-
tends to decrease slowly when vacuuming servative side. Complex trade-offs be-
on a thick carpet (more difficult to pick up tween these error types may be involved
dust), decrease faster on a normal carpet, in selecting the best system behavior.
100 200 300 and decrease rapidly when vacuuming on The RMS error is only a rough approxi-
9 Time (sec) a wood floor (see Fig. 7). mation of how the human designer judges
The fuzzy controlled washing machine optimality.
from Matsushita has an infrared LED sen- The key point here is that a system
, Driving on Winding Road sor that measures the turbidity of the exit- considered optimal according to an ana-
in,$ water. If the turbidity increases lytic measure is not necessarily optimal
rapidly as a function of time, then it is in- according to human judgment. It is also
ferred that the clothes were soiled by mud important to keep in mind that analytic
(mhich washes off easily). If the turbidity optimality measures are only mathemati-
U
increases slowly, then it is inferred that cal tools for expressing what a designer
100 200 300 the clothes were soiled by oil. wants a system to do; the true judge of
2 Time (sec)
(b)
The intelligence of a controller is de-
pendent on the amount of information
Fig. 5. A driver produces distinctive accel- available to the controller. When there is a
erator input behaviors when driving on a lack of directly measurable information,
highway versus driving on a winding road. our tendency is to try to design a robust
controller that provides acceptable perfor- 6
mmce under all variations of the un- W
accelerator input. For example, the accel-
known (e.g., an automatic transmission c
erator input tends to be small and constant
shift pattern that works adequately for all
when driving on a highway, while the ac- 20 40
drwing environments). Instead of accept- Accelerator Input (deg)
celerator input fluctuates wildly when ing merely adequate performance, we (a)
driving on a winding road (see Fig. 5). should challenge ourselves to find ways to
Fuzzy membership functions were de- obtain the information needed for optimal
fined to characterize the accelerator input, performance. In many cases, the informa-
variance in accelerator input, and vehicle tion needed to optimize control choices
speed that the driver produces in each can be inferred from indirect sensor mea-
driving environment (see Fig. 6). The surements. Creativity of the system de-
controller evaluates the degree to which si::ner in inferring information from
the accelerator and speed data match the indirect sources, coupled with the power
condition associated with each driving en- of fuzzy logic for easily encoding the
vironment. Based on the driving environ- heuristics, plays an important role in im- 200 400
ment with the highest degree of match, the pl Zmenting truly intelligent controllers. Variance of Accelerator Input (des2)
appropriate shift pattern is applied to con- (b)

trol shifting. Define Optimality Measure Fig. 6. Fuzzy membership functions char-
In addition to using fuzzy logic to in- How do we compare two system be- acterize the accelerator input and vari-
fer the operating environment, another haviors and judge which one is better? ance in accelerator inputproduced by the
interesting aspect of this application is This issue arises when a control engineer driver in different driving environments.

October 1998 103


of safety of the predicted speed, closeness
of the predicted stoppingposition to the de-
sired stopping position, amount of notch
change, and the elapsed time since the last
c
notch change. Here fuzzy rules rate the dif-
Sensor ferent control outcomes by balancing mul-
infrared LED -
n
c Thick Carpet
tiple objectives in a way that reflects
Dus\Pqrtrcl:s. humans sensibility of optimal. The

a
E Normal Carpet notch position associated with the optimal
Wood Floor, Mat outcome is then selected as the notch
F command.
Operating Time
In many control applications we know
how we want a system to behave but find it
Fig. 7. The,fuzzy vacuum cleaner from Matsushita infers the floor type from the rate of difficult to express the desired behavior in
decrease of dust. an analytic formula. Fuzzy logic is a power-
ful tool for expressing human preferences
optimality is the human designer, not the tion/deceleration is controlled by setting a and making the control system behavior ac-
numerical value produced by the analytic power lever and a brake lever at different curately reflect these preferences.
measure. Unfortunately, we tend to notch positions. Changing the notch posi-
choose an optimality measure based on tion frequently or in large increments cre- Conclusion
whether it has nice mathematical proper- ates an uncomfortable ride. In addition to There are many ways that fuzzy logic
ties, not based on whether it can express riding comfort, the controller must con- can be used in a control system to enhance
what is in the designers mind. sider safety, on-time arrival, energy con- capabilities and reduce operating
The use of fuzzy logic to express s u m p t i o n , and stopping the train The high payoff applications are us
optimality measures is perhaps the most accurately at a specified position along not in replacing a conventional PID con-
valuable benefit that fuzzy logic brings to the station platform. Optimizing train troller with a fuzzy PID controller, but in
control applications. Fuzzy membership control requires trading off between these using fuzzy logic at higher levels of con-
function is a natural framework for ex- multiple, often conflicting objectives. trol. The previous application examples
pressing the human designers conception The control method is based on pre- illustrate the wide range of opportunities
of the ideal system behavior and of how to dicting the outcome of each possible con- that exist and the many different ways that
measure closeness to the ideal behavior. trol action and then choosing the action fuzzy logic can be used to complement
Fuzzy logic can also provide smooth tran- that corresponds to the optimal outcome. conventional controllers. A designer who
sitions in the optimality measure to em- A simple simulation of the train dynamics wishes to exploit the full potential of
phasize certain control objectives as the is used to predict the resultant speed, stop- fuzzy logic must maintain a broad view of
operating condition changes. ping position, and time of arrival for each the different aspects of a control problem
The subway train control system de- possible choice of notch position. The and be creative in applying fuzzy logic
veloped by Hitachi [8] is an example optimality of each predicted outcome is where appropriate.
where fuzzy logic was applied to evaluate then rated by a set of fuzzy rules, taking The essence of fuzzy logic is that it lets
the optimality of control actions. For this into account factors such as the degree to you express whats on your mind. It is not
particular system, the trains accelera- which the train is on schedule, the degree surprising that most commercial applica-
tions of fuzzy control has been for high
level, task-onented control, where there
Stephen L. Chiu i s a Research Scientist at Rockwell Science are no standard analytic solutions but an-
ple human intuition.
Center. He received the B.S. degree in mechanical engmeer-
ing and nuclear engineering from U.C. Berkeley in 1983 and
the S.M. degree in mechanical engineering from M.I.T. in References
[ l ] Yokogawa, UT15RJT14 Digital Indicating
1985. He has conducted research in robotics, fuzzy control, Controllers, technical informatlon publication TI
and neuro-fuzzy systems. His current work is focused on 5B4A7-01E, Yokogawa Electnc, Tokyo, Japan,
neuro-fuzzy systems and on managing a smart motor devel- 1990.
opment project. He is presently an associate editor of the Jour- [2] S Chand, On-line, self-monitoring tuner for
nal ofhtelligent and Fuzzy Systems and a member of the board proportional integral derivative controllers,
of the North Amencaii Fuzzy Information Processing Society. He served previ- Proc. IEEE Conf Decision and Control, Brigh-
ously as an associate editor of IEEE Control Systems Magazine and as a co-guest ton, England, Dec 1991
editor of the Proceedings of IEEE in a special issue on fuzzy logic. [3] P Bonissone, V Badami, K Chiang, P
The author is with Rockwell Science Center, 1049 Camino Dos Rios, Thou- Khedkar, K Marcelle, and M Schutten, Indus-
sand Oaks, CA 91360 (slchiu@rsc.rockwell.com). Portions of this article were trial applications of fuzzy logic at General Elec-
published in the proceedings of the IEEE/IFIP International Conference on Infor- tnc, Proc IEEE, vol 83, no 3, pp 450-465,
mation Technology for Balanced Automation Systems, Prague, August 1998. March 1995
These portions are used with permission from Kluwer Academic Press. [4] T Froese, C von Altrock, and S Franke, Op-
timization of a water-treatment system with fuzzy

04 IEEE Control Systems


logic control, Proc. Third IEEE Intl Con$ Fu.
Systems, Orlando, USA, 161&1619, June 199
[5]K. Passino and S . Yurkovich, Fuzzy Conti
Addison-Wesley Longman, 1998.
V E R , S I O N 4
[6]H. Takahashi, Fuzzy control system for au
matic transmission, U S . Patent 4,841,815,
sued June 27, 1989.
[7] H. Takahashi, A method for predicting t
driving environment using fuzzy reasonin!
Proc. IEEE Round Table Discussion on Fuzzy a
Neural Systems, and VehicleApplications, Tokj
Japan, Nov. 1991.
[SI S. Yasunobu and S. Miyamoto, Automa
train operation system by predictive fuzzy cc
trol, Industrial Applications of Fuzzy Contr;
ed. M. Sugeno, North-Holland, Amsterdam,
1-18, 1985.

The Transistor
Turns 50! You can customizeProgram CC by incorporating
powerful macros and user-addedcommands. Ppogram CC
can easily link to other software.
The PROCEEDINGS OF THE IEEE will
proudly honor the invention of the
Transistor as it turns 50. Our January so much so that our
1998 issue will be devoted to all
aspects of this pivotal anniversary!
A chronicle of one of the most New Package The Classical Control package can now be
significant developments in the history purchased separately and may be upgraded to include Modern
of technology, this Special Issue is Control at any time. Our Complete Program CC includes both
destined to become a collectors item! Classical Control and Modern Control in one package.

S Y S T E M S
TECHNOLOGY
and receive 12 issues for $23.00
IEEE Member Price: $23.00 list Price 5375 00 INCORPORATED
Subrcriphon Older No 500501
Outside USA, Canada ond Mexicoplease odd 525 shippmg ond handlhg
Call 1 800 678-IEEE or 1 732 981-0060

9 E-mail: curtomer.rervice@ieee.org

IEEE lnrhtute of Elechrolond ElethonicsEngineers, Inc


fz$;$ 445 Hoes lane, PO Box 1331, Pirtatowoy, NI 08855 distributors outside the U.SA
GA, EGA, VGA and Hemrlss

October 1998 Reader Service Number 11

You might also like