Académique Documents
Professionnel Documents
Culture Documents
01998 IEEE
0-~7803-4104-X/98/$10.00
797
variable FLC are replaced by those found by the genetic considered that the purpose of using GA in a real-time
search, if they fit better for the current control task than application is for learning in contrast to its traditional
the existing parameters. The purpose of the fixed FLC, use, optimization. Therefore, any good solution found
which is designed off-line, is to ensure the stability. within the available time would be acceptable though it
may not be the optimum solution. Based on the above
3. Design of Fuzzy Controllers Using Genetic
observations, we propose a new strategy for effectively
Algorithms
using the available computing time. Instead of
I - FUZZY Controller -1 formulating a separate genetic search to locate
membership functions at each control time step, a
perpetual evolutionary process that continues through
control steps is maintained. Appropriate membership
functions are located at each control step by dynamically
focusing the evaluation criteria of this continuous
evolutionary process on “immediate control task”. At a
given time point, the available best fitting individual for
I U U I the current task is accepted as the solution. Figure 3
Fig. 2 Fuzzy logic controller shows an outline of the proposed algorithm. The goal of
Figure 2 illustrates arrangement of a fuzzy controller. the genetic search changes with the time responding to
The two inputs to the fuzzy controller are control error changes in the environment. These changes in the goal
may induce an acceleration or deceleration in the
e and the rate of change of control error e . The output evolutionary process.
of the fuzzy controller is the input to the controlled
process, LI. In addition to the fuzzifier, rule base, If the process error becomes greater than a specified
inference engine, and defuzzifier, it needs a set of scaling threshold, adaptive process starts causing the activation
factors to normalize the input and output data. Usually, of search. When activated, GA tuner gets information
the output of the defuzzifier is directly input to the plant. about the current plant status and modifies the objective
However, the configuration shown in Fig 2 has the of the search to suit for current control task. This is
characteristic of a parameter time varying PID controller achieved by modifying the starting point, the reference
due to the integration term at the output and exhibit trajectory, and period of time (I”,,,,,)for controlling the
superior performance [SI. simulation model during the fitness evaluation. Then the
number of generations to evolve in the present control
The complete design of the fuzzy controller involves time step (G,rie,,)is chosen depending on the selected
deterinination of the scaling factors, input and output simulation length. To comprehend this, see Fig 4, which
fuzzy partitions, membership functions, and the rule illustrates a possible choice of reference trajectory. If the
base. The most straightforward approach is to define current operating point is at point OP,, which is far from
rules and membership functions subjectively using expert the set point, we are interested in a controller that can
knowledge and testing the design for specified
performance. This however, is a difficult task in most begin
cases due to inadequate control knowledge. Recently, set index g=O
CAS have been successfully used to obtain optimum initialize the population P(g)
initialize fixed-flc with the off-line design of FLC
parameters for FLCs. This requires representation of the initialize variable_flc with the off-line design of FLC
parameters to be searched in a coded string. A suitable while (plant in operation) do
objective f’unction is required to evaluate the fitness of begin
if (error > errorm,”)
competing FLCs represented as a population of strings. begin
Usually, fitness is coinputed as a weighted sum of the get the current plant status
suimnations of squared errors and efforts when the FLC set starting point and simulation scenario
is used to control a simulation model of the actual set simulation length TSi,
set number of generation for this control step Gstep
process. evaluate P(g) for current control task
set index g’=O
4. Perpetual Evolution as a Strategy for Real-time while (g’c G S e , )do
Adaptation of Fuzzy Controllers begin
g g+1, g’=g’+1
Once the structure and scaling factors are fixed, the select P(g) from P(g-1)
response of a fuzzy controller can be fine-tuned via the recombine P(g)
evaluate P(g) for current control task
adjustment of membership functions. Genetic algorithms, end
which were used to locate optimal membership functions select the best Individual p
during the off-!he design, are difficult to use for real- evaluate variable-flc for current control task
time adaptation due to associated long computation evaluate fixed-flc for current control task
iffitness(p) > fitness(variab1e-flc) then
times. However, we noticed that faster convergence can begin
be achieved, if the genetic search is initiated with a replace variable-flc by p
population having high average fitness. It was also end
compute fitness(variab1e-flc) / fitness(fixed-flc)
observed that when GA is used to optimize FLC end
parameters, much of the coinputation time is used for the end
simulations during the fitness evaluation. Further, we Fig. 3 Algorithm for adaptive fuzzy control
798
bring the plant as quickly as possible towards the set is controlled by adjusting the heater's power level.
point. So in such a situation the simulation length can be Dynamic equations for this nonlinear process are
restricted to T\ir7L!.
On the other hand, if the plant is obtained from [9].
operating at point OP3 , which is very close to the set
The design of complete control system comprise of the
point, we are interested in a controller that is capable of
stabilizing the plant at the set point. In this case an following major steps: identification experiment to
obtain ANN training data, development of neural
extended simulation time (ex. TlLnz3) is required to
adcquatcly test the fitness of a prospective controller. network model, design of fixed fuzzy controller by using
T
CA off-line, and the design of CA tuner. It should be
noted that the development of ANN model itself is an
.,'
imposing task for a complex system, though that topic is
not discussed in this paper.
plant set poin!....-0 O P ~
,, 7 ....
. . ..... . . .. . . Design of fixed fuzzy controller
I, The standard genetic algorithm was used to find the
parameters for the fixed fuzzy controller, including
scaling factors, number of fuzzy partitions for error and
error rate, and the membership function parameters. The
coding scheme used resulted in a real valued string of 39
bit positions. Crossover and mutation operations
described in [4] were used on the real valued strings with
probabilities of 0.99 and 0.02 respectively. Population
size was set to 100. GA was terminated after 100
generations. Previously (obtained neural network model
was used for evaluation with thc following objective
function.
c
v= ..
1 1
I =o ,=I1
+ (F, - N e . N , )
Where r is the reference, y is the plant output, U is the
controller output and N e and N , are the number of
fuzzy partitions of the inputs e and e respectively. F,, F2
and F3 are constants. After setting an upper limit of 11
for N e and N e , F3 was set to 121, which is the
maximum possible nuniber of rules in a controller.
Proper values for F , and. F2 could be selected only after
few trail runs.
Design of GA tuner
The variable fuzzy controller was initialized with the
parameters found for the fixed fuzzy controller in the
previous step. In our experiments, adaptation was
restricted only to membership functions, keeping the
structure and the scaling factors fixed. When the bit
positions for scaling factors and the number of input
partitions are omitted, the length of a chromosome
reduces to 33 bits. In order to minimize the computation
time, population size was set to 30, takmg into account
the guidelines suggested in [3] for minimum population
size. The probabilities of crossover and mutation were
set as 0.99 and 0.02 respectively. Many control
performance specifications such as overshoot, rise-time,
settling time, etc. are specified related to the step
response. Therefore, a reference trajectory similar to that
shown in Fig 4, which include two step changes in the set
point, was used for evaluating the fitness of competing
controllers. Simulation length, set point changes and
number of generations per control step were chosen as
F i g 5 Chemical reactor system used for simulations given in Table 1 for the ;simulation experiments.
799
Fable 1 Choice of T,,, and GIrep plant output, though it appears to be trying to compensate
Error (e) Simulation Set point changes Gem for disturbances.
length (Ar)mollm3 per step These oscillations in the process output may have caused
by the process of adaptation itself, when changes occur
0 5<e<6 0 +5 at 150, -15 at 225 in the controller parameters. Unlike iii adaptive schemes
60<e<110 t 5 at 150 where parameter changes occur gradually, GA may select
11 O<e None a completely different parameter set for the next control
step, if it shows a better fitness for the current control
Simulation results task. The fixed FLC was made used to suppress this
effect by computing the final output of the control system
In the first simulation experiment, the final output of the as given below.
controller was determined as following. If the fitness of
fixed FLC is greater than that of the variable FLC for the 1.1 = O.U/i,& + (1 - Q).uvarLnb,e (7)
current task, the output of fixed FLC is applied to the 1
plant. Otherwise the output of variable FLC is applied to a = l+[fit(variable_fc)lfit(fixed- f c ) ] (8)
the plant. This appeared to be the most logical approach
in the first instance. During the experiment, two product The second simulation was a repeat of the first
concentration set point changes of +21 and +I5 were experiment but with the new scheme for computing the
effected at 800 inin and 1800 min respectively. In final controller output. The simulation results are shown
addition, disturbances were introduced by increasing the in Fig 7. The names of the curves have the same meaning
feed flow rate from 0.5 to 0.7 at 200 min and then by as in the previous case. It can be seen that the adaptive
decreasing the feed flow rate to 0.45 at 1100 min. Figure control system shows very nice performance this time.
6 shows results obtained from the simulations. The Performance at the points where feed flow changes were
curves named “without feed flow change”, “static”, and introduced has significantly improved over that of the
“adaptive” are referred to the variation of product nonadaptive controller. Step response of the system has
concentration when controlled only using the fixed FLC also improved with less overshoot and slightly shorter
for the case of no disturbances, controlled using only the rise time. A good coordination between the fixed and
fixed controller, and controlled with the proposed variable FLCs is evident where variable FLC assists to
adaptive control system respectively. Contrary to our improve the performance of fixed FLC while fixed FLC
expectation, the adaptive control system showed very helps to smooth out the response of variable FLC.
poor performance introducing lot of oscillation into the
570
570 1 560
0
E 550
1
v
540
4 530
520
510
0 400 800 1200 1600 2000
0 400 800 1200 1600 2000 time (min)
time ( m i n ) ...........,.“,, no UA change static -adaptive
ll__l
570 7
800
In the third experiment, an unmodeled disturbance was framework. However, there are numerous aspects of this
introduced by changing the value of heat transfer technology that must be further investigated.
coefl‘icieiit between the reactor and heating water system
(deiioted by UA). Performance was examined under two References
types of variations in UA: first a gradual reduction of UA [ I ] Linkens D.A., Nyongesa H.O., “Learning Systems in
at a rate of about 0.01% per control step was introduced Intelligent Control: An Appraisal of Fuzzy, Neural and
during the time interval from 100-350 min, and then a Genetic Algorithm Control Applications”, IEE
step drop of 16% was introduced at 1200 min. Further, Proceedings on Control Theory, Vol. 143, No. 4, July
two product concentration set point changes of -15 and - 1996, pp. 367-386.
20 were effected at 800 min and 1800 min respectively.
The results of this experiment are shown in Figs 8 and 9. [2] Dumitrache I, Buiu (2. , “Fuzzy Controllers: From
The curve named as “without UA change” refers to the Manual Design and Tuning to Geno-Fuzzy Control”,
case of using fixed FLC for controlling the plant without Pre-Prints of IFAC Symposium on Artificial Intelligence
disturbance. Other two curves have the same meanings as in Real Time Control ’97, 22-25 September 1997, Kuala
in the previous cases. Once again the response of the Lumpur, Malaysia.
adaptive controller show improved performance [3] Man K.F., Tang :K.S., Kwong S., “Genetic
compared to the non-adaptive case with respect to Algorithms: Concepts and Applications”, IEEE
disturbance rejection. However, at the last set point Transactions on Industrial Electronics, Vol. 43, No. 5,
change, adaptive controller gives a slightly larger October 1996, pp. 519-53:3.
overshoot. This experiment shows the importance of the
on-line ANN model and its ability to learn unmodeled [4] Hanebeck U.D., Schmidt G.K, “Genetic Optimization
phenomena that occur in the process. The variation of a of Fuzzy Networks”, Fuzzy Sets and Systems, Vol. 79,
shown in Fig 9 suggests that there is more contribution to 1996, pp. 59-68.
controller output from variable FLC during the [ 5 ] Homaifar A., McCornlick Ed, “Simultaneous Design
transients. The instances when the parameters of variable ol‘ Membership Functions and Rule Sets for Fuzzy
FLC were updated by GA tuner are shown by “+” marks. Controllers Using Genetic Algorithms”, IEEE
Concentration of “-t”marks around the transients also Transactions on Fuzzy Systems, Vol. 3, No. 2, May
suggests the effectiveness of the proposed GA tuner. 1995, pp. 129-138.
In application of the proposed adaptive control system [6] Kim J., Zeigler B.P., “Designing of Fuzzy Logic
for a particular process, the control engineer has to Controllers Using a Multiresolutional Search Paradigm”,
develop a proper scheme for evaluating trial fuzzy IEEE Transactions on F:uzzy Systems, Vol. 4, No.3,
coritrollcrs. The number of generations per control time August 1996, pp. 213-2261.
step has to be specified considering the sampling rate and
the speed of the control computer. Simulation results [7] Karr C.L., Jain L.C., “Genetic Learning in Fuzzy
indicate that the proposed adaptive technique works Control” and “Cases in Geno-Fuzzy Control”, Hybrid
satislactory even with the extremely small values chosen Intelligent Engineering Systems, Editors Jain L.C and
for Cne,, (2-4 generations compared to over 100 Jain R.C, World Scientific, Singapore, 1997.
generations in traditional GA). We expect improvement [8] Qiao W.Z., Mizunioto M., “PID Type Fuzzy
in the performance if some memory element is employed Controller and Parameters Adaptive Method”, Fuzzy
in CA tuner to keep copies of best performing Sets and Systems, Vol. 78, , 1996, pp. 23-35.
individuals classified according to some criteria and
introduce those into the population under similar [9] Fan, J.Y., Nikolaou, Pd., and White, R.E., “Approach
situations. to Fault Diagnosis of Chemical Process via Neural
Networks”, AIChE Journal, Vol. 39, No. 1, Jan. 1993.
6. Conclusion
In this study, the objective was to utilize GAS as a tool to
provide real-time adaptive capabilities to a fuzzy control
sys#tem. Architecture of an adaptive control system
consisting of an on-line ANN process model, a GA tuner,
a fixed FLC and a variable FLC was presented. Perpetual
evolution of a population of competing FLC’s using
dy nainic evaluation criteria was introduced as a strategy
for efficiently using the available computing time when
using GA for real-time control. The proposed technique
was used to develop a GA tuner which alters the
membership functions of a FLC in real-time and its
effectiveness was investigated by using this system to
control a sirnulation model of a chemical process. The
sirnulation results, which showed improved control
performance with the proposed adaptive control system,
indicate that GAS can be successfully used to provide
FLCs with real-time adaptive capabilities in the proposed
80 1