Sei sulla pagina 1di 14

Brazilian Journal

of Chemical ISSN 0104-6632


Engineering Printed in Brazil
www.abeq.org.br/bjche

Vol. 25, No. 04, pp. 799 - 812, October - December, 2008

OPTIMAL CONTROL OF A CSTR PROCESS


A. Soukkou1*, A. Khellaf2, S. Leulmi3 and K. Boudeghdegh4
1
Department of Electronics, University of Jijel, BP. 98, Ouled Aissa, Jijel 18000, Algeria.
E-mail: soukkou_a@yahoo.fr
2
Department of Electronics, University of Ferhat Abbas-Setif 19000, Algeria.
E-mail: ah_khellaf@yahoo.fr
3
Department of Electrotechnics, University of Skikda 21000, Algeria.
E-mail: leulmi_salah@yahoo.fr
4
Department of Chemical Engineering, University of Jijel, BP. 98,
Ouled Aissa, Jijel 18000, Algeria.
E-mail: kameltan@yahoo.com

(Received: March 12, 2007 ; Accepted: April 24, 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.

INTRODUCTION ƒ precise fuzzy modelling, mainly developed by


Takagi-Sugeno fuzzy rule-based systems (Takagi
Recently, with the increasing research activities and Sugeno, 1985).
in the field of structural control, many control In the fuzzy modelling, the structure
methods have been proposed and implemented. identification/learning task consists of making the
These methods are fuzzy control, optimal control, following choices:
pole placement, sliding mode control, etc. (Cheng- 1) Model type;
Wu Chen, 2006). 2) Model size;
Fuzzy logic has emerged as an alternative 3) Number of linguistic values defined for each
approach introduced firstly by L. A. Zadeh in 1965 input/output variable.
in a publication called “Fuzzy Sets” (Zadeh, 1965). The main steps in the design of a fuzzy model
A fuzzy system is a system based on the concepts of include building control rules, establishing the rule
approximate reasoning for representing uncertain base, stating the Membership Functions (MFs) and
and imprecise knowledge. There are two fuzzy tuning the scaling factors (Chih-Hsun Chou, 2006).
modelling approaches depending on the main To design an optimal controller, an efficient
objective to be considered (Casillas et al., 2005): optimization technique should be used. In particular,
ƒ linguistic fuzzy modelling mainly developed by Evolutionary computation has received considerable
linguistic fuzzy rule-based systems (Mamdani, 1974) attention in recent years (Kwee-Bo Sim et al., 2004).
(or Mamdani- type fuzzy reasoning); Genetic Algorithms (GA) (Goldberg, 1994) have

*To whom correspondence should be addressed


800 A. Soukkou, A. Khellaf, S. Leulmi and K. Boudeghdegh

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:

CONTROL DESIGN σ = 0.8 β = 0.3 D = 0.072 H = 8 τ = 2 γ = 20

CSTR Process Description


The parameters of the plant are defined in Table 1
In this paper, we consider the control problem of (K. Belarbi et al., 2005). It is assumed that the
a class of Continuously Stirred Tank Reactor external disturbances (see Figure 2 (b)) dist _1 ( t ) and
(CSTR) systems (Figure 1) given in (Oysal et al., dist _ 2 ( t ) are given by the Van der Pol equations and
2003; Oysal et al., 2006; Aoyama et al., 1995;
Zhang, Guay, 2005). The process dynamics are depicted by Figure 2 (a).

CC

C
u
Tf
AB CA B
u
T

u Tcf Tc

Figure 1: Continuous Stirred Tank Reactor.

Brazilian Journal of Chemical Engineering


Optimal Control of a CSTR Process 801

Table 1: CSTR parameters


Parameter Description
CA ( t ) Chemical concentration of component A
CAf Feed concentration of component A
T(t) Reactor temperature
x1 Dimensionless concentration x1 ( t ) = Cf − C ( t ) Cf ( )
Q Process flowrate
Tcf Inlet coolant temperature
Tf Feed temerature
Tj0 Nominal feed temerature
γ Dimensionless activation energy γ = E a RTj0

x2 Dimensionless temperature x 2 ( t ) = T ( t ) − Tj0 γ Tj0 ( )


u Dimensionless coolant temperature u ( t ) = ( Tcf − Tj0 ) γ Tj0

H Dimensionless heat of reaction H = −∆HCf γ C p Tj0


∆H Heat of reaction
Da Damkohler number Da = Vk 0 e γ Q
k0 Reaction velocity constant
V Volume of tank
β Dimensionless cooling rate β = UA QCp
A Heat transfer surface area
Ea R Activation energy
U Overall heat transfer capacity
ρc Liquid densities
Cp Volumetric heat capacities

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

x1v ( k + 1) = x1v ( k ) + 0.2.x 2v ( k ) lim y ( k ) − yd ( k ) ≤ ε (6)


k →∞
x 2v ( k + 1) = −2.x1v ( k ) + x 2v ( k ) −
(5) where ε is a suitably chosen constant. That is the
0.1 ( 2
x1v ( k ) − 1) x 2v ( k ) faster y (k ) tracks the reference model yd ( k ) , the
better the controller will perform (Bin-Da Liu et al.,
dist _1 ( k ) = 0.01.x1v ( k ) 2001).

 In the CSTR example, the control objective is to
dist _ 2 ( k ) = 0.01.x 2v ( k ) have the system states ( x1 , x 2 ) follows a given

The diagram of plant control loop is plotted in (


reference trajectories x1d , x d2 . Thus, the tracking )
Figure 3 that contains four blocks: errors must be as small as possible and the closed-
ƒ optimization / tuning block characterized by GA; loop system must be globally stable and robust, i.e.
ƒ structural block representing the ROFLC; all its parameters are uniformly bounded and the
ƒ decisions block defining the performances effect of the external disturbances is attenuated to a
criteria; prescribed level.
ƒ system block to be controlled.
The interaction between these four blocks is Proposed Optimal Controller
summarized by:
1) generate initial population of chromosomes (each The history of the Parallel Distributed
chromosome represents a fuzzy knowledge base); Compensation (PDC) started with a model-based
2) projection of each chromosome on the specified design process proposed by Tanaka and Sugeno
structure of ROFLC; (Tanaka and Sugeno, 1992). The PDC offers a
3) for all chromosomes and all ( x T , yd ) ∈ Ω evaluate scheme to design a fuzzy controller from the TS
k
fuzzy model. Compared with the widely used PI, PD
fitness and classify the chromosomes according to and PID controllers that require tuning only two or
their fitness. three parameters, the TS controller using PDC is
Steps 2 and 3 are repeated until a maximum extremely far removed from ease-of-use (Er et al.,
number of generations is carried out. After the 2002). To overcome this disadvantage, a new control
evolution process, the final generation of population scheme called Proportional Parallel Distributed
consists of highly fit strings that provide optimal or Compensation with Reduced Rule Base
near optimal solutions. (PPDC_RRB), which can significantly reduce the
In general, the objective of the control is to number of parameters in PDC, is proposed in this
determine the process input u ( k ) such that work.

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 )

Figure 3: Control and optimization structure.

Brazilian Journal of Chemical Engineering


Optimal Control of a CSTR Process 803

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

∑ i=1 w(i) ( x ( t )).c(Fi) .K(i) .{F(i) .x ( t )} =


i=M
− u ( t ) = −Ψ T ( x ( t ) ) .x ( t ) (9)
u(t) =
∑ i=1 w(i) ( x ( t ) )
i =M

where Ψ T (x(t )) (resp. u (t ) ) is the nonlinear


(8)
i=M feedback gain vector due to the nonlinear nature of
− ∑
i =1
h ( ) ( x ( t ) ) .c(F ) .K ( ) .F( ) ⋅ x ( t )
i i i i
the Takagi-Sugeno fuzzy system.
The problem considered in this paper is to find
Ψ T ( x( t ) ) the optimal PPDC_RRB controller, i.e. the optimal
nonlinear gain Ψ T ( x ( t ) ) based on the following
where
objectives:
1) minimize the error absolute between the output
) ∑
 i =M w (i ) x t > 0
j= m
 ( ( ))
w( ) ( x ( t )) =
i
∏ (
j=1
µij x j ( t ) ,  i =1
( i)
 w ( x ( t ) ) ≥ 0
signals and reference models ( J Error );
2) reduce the quantity of the energy of the control
i =1,...,M
signals (coolant flow rate) applied to the system
( J Energy );
w( ) ( x ( t )) ∑
 i=M h(i ) x t = 1
( ( ))
i
 i =1
h( ) ( x ( t )) = 3) minimize the number of fuzzy rules
i
,  (i )
∑ w ( x ( t ) )  h ( x ( t ) ) ≥ 0
i=M (i ) ( J Rule_Base ).
i =1
These objectives are selected with respect to the
imposed constraints (fuzzy constraints membership
( )
µij x j ( t ) is the grade of membership of x j ( t ) in function and system control constraints). As
indicates by the following formula:
A(j ) h( ) ( x ( t ))
i i
fuzzy set and denotes the
normalized weight of each fuzzy rule. Minimize J, with

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.

Brazilian Journal of Chemical Engineering


Optimal Control of a CSTR Process 805

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

Figure 4: Chromosome structure and corresponding rule base.


Table 2: GA coding-type
Parameter Coding-type
(i ) (i)
Ҝx1,2 ; p1,2 ; K ; ŁZE1,2,. Real

cTF Binary

Step 2: Evaluation of Fitness Value calculated as:


Pop _ size
Calculate the fitness value of each chromosome
in the population. In this application the objective
Pi ( select ) = Fit ( Parent i ) ∑ =
i 1
Fit ( Parent i ) (15)
function (fitness) responsible for the ordering of the
chromosomes in the population is: where Fit ( Parent i ) represent the fitness of the ith
Fit = (1 + J )
−1
(14) parent in the population.
Step 4: Reproduction:
where, J is the optimisation index (Eq. 10). The
optimisation of the PPDC_RRB is to find the ‘best’ Create new individuals by the application of
structure and the parameters, i.e. an optimal fuzzy crossover and mutation operators.
knowledge base, which can be represented as an ƒ Crossover: The crossover operator is the main
extremum problem of optimisation index. method to produce new chromosome. Exchange the
Step 3: Selection genetic materiel between Pi and Pj and then get two
individuals Pi′ and Pj′ . Figure 5 illustrates the
Select two individuals for reproduction. The
probability of selection for each individual is different standard forms of crossover operator.

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.

Brazilian Journal of Chemical Engineering


Optimal Control of a CSTR Process 807

Table 3: Specifications of the GA


Parameters Value/Type
Population Size 10
Max_Gen 500
Representation Mixed binary-real
Initialization Random
Scaling factors K x1,2 [5, 20]

Proportional coefficients K( i ) ] 0,10 × max( u min , u max )]


TS parameters and LZE1,2 [-1, 1]
Crossover operator Dual-point with probability Pc = 0.8
Mutation operator Mixed, uniform and non-uniform with probability Pm= 0.01

Procedure GA( Gen)


{
Initialisation(); Procedure Evaluation()
Evaluation(); {
Keep_The_Best_Individual(); For (k = 0; k < Pop_size; k++){
Gen =0; Evaluate J in Eq. 10;
Repeat { IF one of objectives is not carried out THEN
Selection(); Repeat {
Crossover(); Reject the corresponding chromosome;
Nonlinear mutation(); Regenerate another chromosome;
Evaluation(); Calculation fitness Fit; }
Elitism strategies(); Until (All objectives satisfied);
Gen++;} }}
Until (Gen < Max_Gen);
}
Figure 6: General structure of genetic learning algorithm.

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

Table 4: The rule base of PPDC_RRB

0.8 5

4.5
0.7

4
0.6
3.5
Concentration

Temperature
0.5 3

0.4 2.5

Plant output 2 Plant output


0.3
Reference model Reference model
1.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.

Control of CSTR by PD_GO where K D = K P .Td is the derivative gain. Figure 10


displays the PD controller design for CSTR process.
The continuous form of a PD controller with
input e and output u is given by The structure of chromosome adapted for the PD-
GO controller contains two real values, one for the
 de ( t )  proportionality gain and the other for the derivative
u ( t ) = K P  e ( t ) + Td  (22) gain. The plant controller is defined by
 dt 

u ( t ) = FPD _ GO _1 ( e1 ( t ) ) + FPD _ GO _ 2 ( e2 ( t ) ) (24)


where K P is the proportional gain and Td is the
derivative time constant. We ca also rewrite (22) as
where
de ( t )
u ( t ) = K P .e ( t ) + K D . = FPD _ GO ( e ( t ) ) (23) e1 ( k ) = x1d ( k ) − x1 ( k ) and e 2 ( k ) = x d2 ( k ) − x 2 ( k )
dt
Brazilian Journal of Chemical Engineering
Optimal Control of a CSTR Process 809

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 )

Figure 10: Control and optimization structure.

Table 5: Specifications of the PD_GO

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

Figure 11: Fitness function. Figure 12: Convergence of PD control gains K Pi , K Di .


i =1,2

0.8 5

4.5
0.7

4
0.6
3.5
Concentration

Temperature

0.5 3

0.4 2.5

Plant output Plant output


2
Model reference Model reference
0.3
1.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.

Brazilian Journal of Chemical Engineering


Optimal Control of a CSTR Process 811

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.

CONCLUSION Belarbi K., Titel F., Bourebia W., Benmahammed


K., Design of Mamdani fuzzy logic controllers
This paper contributes a new alternative for the with rule base minimisation using genetic
synthesis of fuzzy optimal controller with reduced algorithm, Engineering Applications of Artificial
rule base. The genetic learning algorithm is proposed Intelligence, 18, No. 7, 875-880 (2005).
for constructing a robust fuzzy controller. Bin-Da Liu, Chuen-Yau Chen and Ju-Ying Tsao,
Simulations demonstrate that the resultant optimal Design of adaptive fuzzy logic controller based
controller gives good performance. on Linguistic-Hedge concepts and genetic
The newly proposed controller has been applied algorithms, IEEE Transactions on Systems, Man,
to CSTR control system. The efficiency of this and Cybernetics-Part B: Cybernetics, 31, No. 1,
approach is measured by the controller’s capacity to 32-53 (2001).
achieve the goal aimed by the control loop. One can Casillas J., Cordon O., del Jesus M. J. and Herrera
say that this controller manages to achieve the F., Genetic Tuning of Fuzzy Rule Deep
desired task, which justifies the efficiency and the Structures Preserving Interpretability and Its
robustness of the proposed conception method. Interaction with Fuzzy Rule set Reduction, IEEE
Based on the simulation results, the following Transactions on Fuzzy Systems, 13, No. 1, 13-29
main conclusions can be stated about the proposed (2005).
PPDC_RRB: Cheng-Wu Chen, Stability conditions of fuzzy
ƒ It is easy, and it exploits the fine abilities and systems and its application to structural and
advantages of the fuzzy logic and genetic algorithms. mechanical systems, Advances in Engineering
ƒ A reduced number of fuzzy rules was sufficient to Software, 37, 624-629 (2006).
achieve the optimal control objective, which permits Chih-Hsun Chou, Genetic algorithm-based optimal
possible real-time implementations. fuzzy controller design in the linguistic space,
IEEE Transactions on Fuzzy Systems, 14, No. 3,
372-385 (2006).
REFERENCES Chia-Feng Juang, I-Fang Chung, Recurrent fuzzy
network design using hybrid evolutionary
Alcaléa R., Alcaléa-Fdez J., Casillas J., Cordéon learning algorithms, Neurocomputing, 44, 1-10
O., Herrera F., Hybrid learning models to get (2007).
the interpretability–accuracy trade-off in fuzzy Chi-Ho Lee, Ming Yuchi and Jong-Hwan Kim, Two
modelling, Soft Computing, 10, 717-734 phase optimization of Fuzzy Controller by
(2006). Evolutionary Programming, The 2003 Congress
Aoyama A.; Doyle III, F.J.; Venkatasubramanian, on Evolutionary Computation, 2003, CEC '03,
V., A fuzzy neural-network approach for 2003 IEEE, 3, 8-12 Dec. 2003, 1949-1956
nonlinear process control, Engineering (2003).
Applications of Artificial Intelligence, 8, No. 5, Er M. J., Lin D. H., A new approach for stabilizing
483-498 (1995). nonlinear systems with time delays, International

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).

Brazilian Journal of Chemical Engineering

Potrebbero piacerti anche