Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
Abstract - Designing an effective criterion and learning algorithm for find the best structure is a major
problem in the control design process. In this paper, the fuzzy optimal control methodology is applied to the
design of the feedback loops of an Exothermic Continuous Stirred Tank Reactor system. The objective of
design process is to find an optimal structure/gains of the Robust and Optimal Takagi Sugeno Fuzzy
Controller (ROFLC). The control signal thus obtained will minimize a performance index, which is a function
of the tracking/regulating errors, the quantity of the energy of the control signal applied to the system, and the
number of fuzzy rules. The genetic learning is proposed for constructing the ROFLC. The chromosome genes
are arranged into two parts, the binary-coded part contains the control genes and the real-coded part contains
the genes parameters representing the fuzzy knowledge base. The effectiveness of this chromosome
formulation enables the fuzzy sets and rules to be optimally reduced. The performances of the ROFLC are
compared to these found by the traditional PD controller with Genetic Optimization (PD_GO). Simulations
demonstrate that the proposed ROFLC and PD_GO has successfully met the design specifications.
Keywords: Intelligent control; Genetic learning; PPDC; Reduced rule base.
been proposed as a learning method that allows described by (Chia-Feng Juang, 2007)
automatic generation of optimal parameters for fuzzy
controllers based on an objective criterion. 1
Concerning the performance of fuzzy control x1 ( t ) = f1 ( x1 ( t ) , x 2 ( t ) ) + − 1 x1 ( t − τ ) (1)
systems, the optimality and robustness have quite σ
often been considered as the important issues.
Specifically, on the optimality issue for fuzzy control x 2 ( t ) = f 2 ( x1 ( t ) , x 2 ( t ) ) +
systems (Yonmook Park et al., 2004). (2)
A good optimal control technique, especially 1
when applied for the first time on a particular − 1 x 2 ( t − τ ) + β.u ( t ) + dist ( t )
σ
process, should (Upreti, 2004):
1) provide consistent, good quality results regardless where σ, τ and β are constants. The component
of starting points;
2) use a reasonable amount of performance index x1 ( t ) is the conversion rate of the reaction
evaluation. component A, 0 < x1 ( t ) < 1 , u ( t ) is a dimensionless
The design problem considered in this paper is coolant temperature x 2 ( t ) is the dimensionless
essentially a nonlinear optimal and robust control
problem due to the nonlinear nature of the Takagi- temperature and f1 and f2 are given by
Sugeno fuzzy system. In order to obtain the latter,
which can provide the minimized control effort, we 1
formulate the controller design problem as the f1 ( x1 ( t ) , x 2 ( t ) ) = − x1 ( t ) +
Proportional Parallel Distribution Compensation σ
(3)
(PPDC) problem (Er et al., 2002), and find the x2 ( t )
controller by the genetic learning algorithm. The Da (1 − x1 ( t ) ) exp
objective is to obtain the optimal control function, 1 + x2 ( t ) γ
which would optimize a desired performance index.
The remaining part of this paper is organized as 1
follows. The design and learning algorithm of the f 2 ( x1 ( t ) , x 2 ( t ) ) = − + β x 2 ( t ) +
proposed system is described in the next two σ
(4)
sections. Then, some simulation results to illustrate
x2 ( t )
the effectiveness of the proposed control system HDa (1 − x1 ( t ) ) exp
structure are displayed. Finally, conclusions are 1 + x2 ( t ) γ
presented in the last section.
The constant parameters are given as:
CC
C
u
Tf
AB CA B
u
T
u Tcf Tc
1
x2v
-1
-2
-3
-2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5
x1v
(a)
0.025 0.03
0.02
0.02
0.015
0.01
0.01
Controller disturbance
Plant disturbance
0.005
0 0
-0.005
-0.01
-0.01
-0.015
-0.02
-0.02
-0.025 -0.03
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time (s) Time (s)
(b)
Figure 2: (a) Phase plane trajectory. (b) Disturbance signals dist _1 ( t ) and dist _ 2 ( t ) .
Brazilian Journal of Chemical Engineering Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
802 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh
GA Performances
criteria d ist _1( t )
Set point
trajectory CSTR process
ROFLC u Output
x ( t ) = f ( x ( t ) ) + g ( x ( t ) ) .u ( x ( t ) )
y
yd + dist ( t )
dist _ 2 ( t )
State variables
( x1 , x 2 ,..., x m )
PPDC_RRB Rule i:
i
i =1,...,M
i i i
R ( ) : IF x1 ( t ) is A1( ) .... AND x m ( t ) is A(m) THEN u = − K ( ) . F( ) . x ( t ) − x d ( t )
i
( )
with {c( )}
F
i
(7)
x( t )
where,
are linguistic values of the fuzzy variables to express the universe of discourse
A1( ) ~A(m)
i i
of the fuzzy set in the antecedent.
K( )
i
represent the proportional coefficients, which differ with different control rules.
i =1,...,M
T
x ( t ) = x1 ( t ) ,..., x m ( t ) is a vector input (system states).
T
x d ( t ) = x1d ( t ) ,..., x dm ( t ) is a vector of set point trajectory (desired input).
is the vector parameters set of the Takagi-Sugeno fuzzy model of the ith rule
F( ) = p1( ) ,..., p(m)
i i i
(in this work p0 = 0 ).
represents the certainty factor (K. Belarbi et al., 2005; Chi-Ho Lee et al., 2003) of
{c( )}
F
i
the ith rule. The latter can take only two values; either 0 or 1 ( c(Fi ) = 1/ 0 , { }
characterizes enabled/disabled rule).
u represents the output variable.
with is the operator modelling the weighting of a rule (Rafael Alcaléa et al., 2006).
The overall state feedback fuzzy controller is From the expression (8), the optimal control law
represented by will be represented by
Brazilian Journal of Chemical Engineering Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
804 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh
JError where u min and u max are the lower and upper bound
of the saturation elements, respectively.
∑ ( C( ) .( x )+
max_t
J=
1 d
1 ( k ) − x1 ( k ) + xd2 ( k ) − x2 ( k ) )
k =1
(1) GENETIC LEARNING ALGORITHM
JEnergy
JRule_Base
max_t
∑ ( C( ) .( u ( k ) )) + ( C( ) .( Max _ Rl − R _ Null))
2 3 The concrete steps realizing the optimization of
PPDC_RRB (PPDC_RRB ≡ ROFLC) is as follows:
k =1
( 2) ( 3)
(10) Step 1: Initialization
Subject to
Create some chromosomes randomly. Each
∑ ( c( ) ) ≥ 1
chromosome is denoted as a group of controller
i
( in Eq. 7 ) parameters. The difference between the genetic
F
i algorithms used in the literature resides in coding
∑ w( ) ( x ( t )) > 0
i=M
i =1
i
( in Eq. 8 ) levels of the coding (binary, integer or real) and the
genetic operators adapted to every coding type
(Sharma et al., 2003).
C(1) , C( 2 ) , C( 3) ≥ 0 The use of the mixed coding, binary-floating,
& multiparametered and concatenated permits to
C(1) + C( 2 ) + C( 3) ≤ 1 construct the chromosome of the GA. This technique
allows or encourages the coding and the successive
where C (1) , C ( 2 ) and C ( 3) are dynamic factors of juxtaposition of the different parameters. Every
weightings characterizing the precision, the energy chromosome can represent a solution of the problem,
and the complexity of the controller. They represent that is, a fuzzy optimal knowledge base. Figure 4 and
the relative importance of each objective. A Table 2 represent the chromosomes genes and its
particular case is, where C(1) + C( 2 ) + C(3) = 1 . There coding type, respectively.
will be a convex combination of the conceptual The partitions are symmetric about the
factors in this situation. The set of priorities is membership function ZE. This approach simplifies
measured by the capacity of the controller to carry the computation while typically giving robust and
out effectively the aims had by the designer. In our satisfactory results. It also simplifies the optimisation
case, the objectives are classified according to the testing of the GA (Soukkou et al., 2008). We assume
degree of importance of the conceptual factors: that MFs are strictly monotone decreasing (or
accuracy ‘efficiency’ and stability ; increasing) and continuous functions with respect
the reduction of complexity of the control law; to xi , while x kL is a maximal left tolerance limit to
the reduction of the effort of control (energy) to b k and x Rk is a maximal right tolerance limit to bk .
apply to the process.
The expressions of different fuzzy constraints MFs
max_t is the maximum of time and Max_Rl is the
used in the fuzzy partitions are given by
maximal number of rules. R_Null is the number of
activated rules, defined as
0 if x i < bi − x iL
( )
∑ ( c( ) )
Max _ Rl L
i x i − bi − x i
R _ Null = F (11) if bi − x iL ≤ x i ≤ bi
i =1
ZE
x iL
µ j ( x i ) = 1 if x i = bi (13)
Ai
x i − bi
The discrete step values of u equispaced over Fuzzy Equal 1 − if bi ≤ x i ≤ bi + x iR
process operation time are considered as x iR
optimization variables. These step values form a 0 if x i > bi + x iR
control vector u opt . In order to take into account the
constraints on the manipulated variables, the In Figure 4, ŁZE1 and ŁZE2 are the widths of the
following saturation function was defined universes of discourses of the fuzzy subsets ZE of
the input variables x1 and x2, respectively. Ҝx1,2
represent the scaling factors of the input variables.
u max if u max ≺ u* The main purpose of introducing the GA to the
u = u* if u min ≤ u* ≤ u max (12) design of a fuzzy controller is not only to use the
u min if u* ≺ u min robust and global benefits of GA but also to develop
a systematic design approach of the fuzzy controller.
x1 , x 2
O ut
cTF
x1 R( )
2 u*
x2
R( )
M
Þ Þ-Þ-Þ Þ
cTF
ҝ ҝ K K–K- K K
T
Ҝx1,2 Ł --- Ł 0 1--0--1 1 cF
ŁZE1,2,.
Rule premises Rule consequent parameters
cTF Binary
Pi :
Parents
Pj :
Offsprings
Pi′
Pj′
Single point Multipoint
crossover Dual points crossover
crossover
Figure 5: Crossover.
Brazilian Journal of Chemical Engineering Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
806 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh
Mutation: Mutation is applied to increase the selection, permits the constructionof a more effective
diversity of the population to enhance the chance new generation than the previous (the best member
forGA to escape from local optima. The actual in last generation (Gen-1) will be substituted into the
process of mutation depends on the coding form. In worst member in the actual generation).
binary coding part of chromosome, mutation only If a stop criterion is satisfied, return the
performs 1-bit flip, i.e., the bit value changes from chromosome with the best fitness. Otherwise, go to
‘0’ to ‘1’ or from ‘1’ to ‘0’. If the mutation takes step 2.
place in the real coded part, we use the nonlinear
mutation (Lo and Sadegh, 2003; Zhi-Hua Cui et al.,
2003). The nonlinear mutation operator is defined as SIMULATION
follows:
Control of CSTR by PPDC_RRB
Ch Gen
v (
= V1 , , VK , , Vm ) (16)
The objective of the control is to generate a
sequence of actions u min ≤ u ≤ u max allowing the
where Gen is the number of generation and Vi (i=1,
CSTR system to follow the desired regulation
..., m) are codes in real format of the variables
trajectory given by (Chia-Feng Juang, 2007)
constituting the chromosome Ch. Suppose that VK be
the element selected to the operation of mutation, the
0.4472 k ≤ 100
resulting chromosome is: x1d ( k ) = 0.7646 100 < k ≤ 200 and
0.4472 200 < k ≤ 300
SGen
v (
= V1 , , VK , )
, Vm ; (20)
(17) 2.7520 k ≤ 100
x d2 ( k ) = 4.7052 100 < k ≤ 200
SGen
v
+1
(
= V1 , , VK' , , Vm ) 2.7520 200 < k ≤ 300
V + ∆ ( Gen, U B -VK ) : if r < 0.5 This trajectory repeats with each 300 samples,
VK' = K (18) which represents one period. The PPDC_RRB is
VK − ∆ ( Gen, VK − L B ) : if r ≥ 0.5 initially characterized by 5 fuzzy subsets for the first
input and 5 fuzzy subsets for the second input. This
where r is a random number ∈ [0, 1], U B and L B is gives 25 rules.
the upper and lower bound of the domain of Initially every chain of the population will
variation of the variable VK, respectively. contain 25*2 +25+ 2 + 2 real numbers + 25 binary
digits (25*2 for TS parameter consequences, 25 for
Gen
b proportional coefficients, 2 genes for universe of
1−
∆ ( Gen, y ) = y. 1 − τ Max _ Gen
(19) discourses of input variables, 2 genes represents the
scaling factors of the input variables and 25 bits
represent the certainties factors). Specifications of
the GA mechanisms are listed in Table 3.
where τ is a random number ∈ [ 0,1] and b is a
In this application, C( ) and max_t in (10) equal
i
system parameter which determining the degree of i =1,2,3
non-uniformity, which is taken to be three in this
application.
to ( 0.50(50%), 0.15(15%), 0.35(35%) ) and 300,
respectively.
Step 5: Elitism The general structure of the genetic learning
algorithm is shown in Figure 6. Figure 7 indicates
To put a limitation to the genetic divergence, one the evolution of the fitness function. The number of
of the elitism strategies has been introduced. The rules enabled during the evolution of GA is
latter, based on the technic of the steady-state represented in Figure 8.
0.985 14
0.984
12
0.983
Sum of certainties factors
10
Objective function
0.982
0.981 8
0.98
6
0.979
4
0.978
0.977 2
0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 250 300 350 400 450 500
Generation Generation
Figure 7: Evolution of the fitness function. Figure 8: Evolution of the enabled rule numbers.
Only three rules remain at the end of GA obtained at the end of the GA execution are given by
execution, i.e. the certainties factors of rules
c(F ) and c(F ) are equal to the unit, as indicated in K ( ) = [99.9901 -46.3158]
19 20 19
and
(21)
K ( ) = [ -29.5662 -69.2295]
20
the Table 4. Figure 9 shows the trajectory
convergence to the reference model from the initial
conditions ( x1 (0 ), x 2 (0 )) = (0.144,0.8862 ) (Chia- By analyzing the Figure 9, it can be remarked that
Feng Juang, 2007). the proposed design strategy accomplishes the design
The feedback vector of gains in equation (7) requirements effectively.
Brazilian Journal of Chemical Engineering Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
808 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh
0.8 5
4.5
0.7
4
0.6
3.5
Concentration
Temperature
0.5 3
0.4 2.5
0.2
1
0.1 0.5
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time (s) Time (s)
(a) (b)
10
5
Coolant flow rate
-5
0 5 10 15 20 25 30
Time (s)
(c)
Figure 9: System states using PDC_RRB: (a) The state x1 ( t ) and its desired value y1d ( t ) .
(b) The state x 2 ( t ) and its desired value yd2 ( t ) . (c) Control signal.
represent the concentration error and temperature accomplishes the design requirements effectively.
error of CSTR process, respectively. The nonlinear optimal controller PPDC_RRB
The GA-PI characteristics are summarized in presents good performances. However, a PD_GO
Table 5. The fitness function chooses in this part of controller is effective (see Figures 14 and 15), which
paper is given by justifies the efficiency and robustness of the
proposed conception method.
−1 The real–coded GA is robust, accurate and
300 10−4. e1 ( k ) + 10−4. e1 ( k ) +
efficient because the floating-point representation is
Fit = 1 + ∑
−4
k =1 10 . u ( k )
(25) conceptually closest to the real design space and the
sting length is reduced to the number of design
variables.
Figures 11 and 12 show the convergence The fuzzy optimal topology designed (via the
trajectories for performances index and control gains genetic optimization) in this paper is very simple
K Pi , K Di of the PD_GO controller, respectively. The and contains a minimal number of rules. The
advantages of the proposed designing
i =1,2 methodologies are that it reduces the number of
performances of the PD_GO controller are presented rules and the design complexity of the fuzzy
by Figures 13 (a), (b) and (c). systems. The proposed method is able to reduce 25
By analyzing the Figures 9 and 13, it can be rules to 3 maintaining almost the same level of
remarked that the proposed design strategy desired performances.
Performances
Criteria
GA d ist _1 ( t )
x1d uC x1
PD_GO_1
CSTR
xd2
Σ x2
uT u*
PD_GO_2
d ist _ 2 ( t )
Characteristic value
Population Size 100
Max_Gen 500
Coding chromosome Real
Gain factors {( KP1, KD1 ) , ( KP2 ,KD2 )} ]0.0, 100.0]
Selection process Tournament
Crossover single point Pc = 0.5
Nonlinear mutation (Eq. 18) Pm = 0.25
Brazilian Journal of Chemical Engineering Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
810 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh
90
1
80
0.95 70
0.986
60
0.984
Objective function
0.9
Control gains
0.982 50
0.98
40
0.978
0.85
Kd1
0.976 30
0.974
20
0.8 0.972
10 15 20 25 30 35 10 Kp2
Kd2 Kp1
0.75 0
0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 250 300 350 400 450 500
Generation Generation
0.8 5
4.5
0.7
4
0.6
3.5
Concentration
Temperature
0.5 3
0.4 2.5
0.2
1
0.1 0.5
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time (s) Time (s)
(a) (b)
10
4
Coolant flow rate
-2
-4
-6
-8
-10
0 5 10 15 20 25 30
Time (s)
(c)
Figure 13: System states using PD_GO: (a) The state x1 ( t ) and its desired value y1d ( t ) . (b) The state x 2 ( t )
and its desired value yd2 ( t ) . (c) Control signal.
0.4 2
0.3 1.5
PD-GO PD-GO
PDC-RRB PDC-RRB
0.2 1
0.5
Temperature error
Concentration error
0.1
0 0
-0.1 -0.5
-1
-0.2
-1.5
-0.3
-2
-0.4 0 5 10 15 20 25 30
0 5 10 15 20 25 30
Time (s)
Time (s)
Figure 14: Concentration error tracking. Figure 15: Temperature error tracking.
Brazilian Journal of Chemical Engineering Vol. 25, No. 04, pp. 799 - 812, October - December, 2008
812 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh
Journal of Intelligent Systems, 17, 289-302 processes, Computer and Chemical Engineering,
(2002). 28, 1325-1336 (2004).
Goldberg, D.E. Algorithmes génétiques: Exploration, Soukkou A., Leulmi S., Khellaf A., How to
Optimisation et Apprentissage Automatique, Optimize the TS-Fuzzy Knowledge Base to
Addison-Wesley (1994). Achieve a Desired Performances: Accuracy and
Kwee-Bo Sim, Kwang-Sub Byun,and Dong-Wook Robustness, International Journal of Optimal
Lee, Design a fuzzy controller using schema Control Applications and Methods (OCAM), 29,
coevolutionary algorithm, IEEE Transaction on No. 1, 19-40 (2008).
Fuzzy Systems, 12, No. 4, 565-568 (2004). Takagi T., Sugeno M., Fuzzy identification of
Lo K. L. and Sadegh M.O., Systematic method for systems and its applications to modelling and
the design of a full–scale fuzzy PID controller for control, IEEE Trans. Systems Man Cybernet.,
SVC to control power system stability, IEE Proc. Vol. 15, No. 1, pp.116-132 (1985).
Gener. Transm. Distrib, 150, No. 3, 297-304 Tanaka K. and Sugeno M., Stability analysis and
(2003). design of fuzzy control systems, Fuzzy Sets and
Mamdani, E. H., Application of fuzzy algorithms for Systems, 45, No. 2, 135-156 (1992).
simple dynamic plant, Proc. IEE, D-121, pp. Yonmook Park, Min-Jea Tahk, and Hyochoong
1558-1588 (1974). Bang, Design and Analysis of Optimal Controller
Oysal Y., Becerikli Y., Ferit Konar A., Generalized for Fuzzy Systems with Input Constraint, IEEE
modeling principles of a nonlinear system with a Transactions on Fuzzy Systems, 12, No. 6, 766-
dynamic fuzzy network, Computer and Chemical 779 (2004).
Engineering, 27, 1657-1664 (2003). Zadeh L. A., Fuzzy Sets, Information and Control, 8,
Oysal Y., Becerikli Y., Ferit Konar A., Modified 338-353 (1965).
descend curvature based fixed form fuzzy optimal Zhang T., Guay M., Adaptive control of uncertain
control of nonlinear dynamical systems, continuously stirred tank reactors with unknown
Computer and Chemical Engineering, 30, 878- actuator nonlinearities, ISA Transactions, 44, 55-
888 (2006). 68 (2005).
Sharma S. K. and Irwin G. W., Fuzzy Coding of Zhi-Hua Cui, Jian-Chao Zeng and Yu-Bin Xu,
Genetic Algorithms, IEEE Transactions on Dynamic Circle Nonlinear Genetic Algorithm,
Evolutionary Computation, 7, No. 4, 344-355 Proceeding of the Second International
(2003). Conference on Machine Learning and
Simant R. Upreti, A new robust technique for Cybernetics, Xi’an, 2-5 November 2003, 1836-
optimal control of chemical engineering 1840 (2003).