Acessibilidade / Reportar erro

Optimal control of a CSTR process

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.

Intelligent control; Genetic learning; PPDC; Reduced rule base


PROCESS SYSTEMS ENGINEERING

Optimal control of a CSTR process

A. SoukkouI,* * To whom correspondence should be addressed ; A. KhellafII; S. LeulmiIII; K. BoudeghdeghIV

IDepartment of Electronics, University of Jijel, BP. 98, Ouled Aissa, Jijel 18000, Algeria. E-mail: soukkou_a@yahoo.fr

IIDepartment of Electronics, University of Ferhat Abbas-Setif 19000, Algeria. E-mail: ah_khellaf@yahoo.fr

IIIDepartment of Electrotechnics, University of Skikda 21000, Algeria. E-mail: leulmi_salah@yahoo.fr

IVDepartment of Chemical Engineering, University of Jijel, BP. 98, Ouled Aissa, Jijel 18000, Algeria. E-mail: kameltan@yahoo.com

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

Recently, with the increasing research activities in the field of structural control, many control methods have been proposed and implemented. These methods are fuzzy control, optimal control, pole placement, sliding mode control, etc. (Cheng-Wu Chen, 2006).

Fuzzy logic has emerged as an alternative approach introduced firstly by L. A. Zadeh in 1965 in a publication called "Fuzzy Sets" (Zadeh, 1965). A fuzzy system is a system based on the concepts of approximate reasoning for representing uncertain and imprecise knowledge. There are two fuzzy modelling approaches depending on the main objective to be considered (Casillas et al., 2005):

▪ linguistic fuzzy modelling mainly developed by linguistic fuzzy rule-based systems (Mamdani, 1974) (or Mamdani- type fuzzy reasoning);

▪ precise fuzzy modelling, mainly developed by Takagi-Sugeno fuzzy rule-based systems (Takagi and Sugeno, 1985).

In the fuzzy modelling, the structure identification/learning task consists of making the following choices:

1) Model type;

2) Model size;

3) Number of linguistic values defined for each input/output variable.

The main steps in the design of a fuzzy model include building control rules, establishing the rule base, stating the Membership Functions (MFs) and tuning the scaling factors (Chih-Hsun Chou, 2006). To design an optimal controller, an efficient optimization technique should be used. In particular, Evolutionary computation has received considerable attention in recent years (Kwee-Bo Sim et al., 2004). Genetic Algorithms (GA) (Goldberg, 1994) have been proposed as a learning method that allows automatic generation of optimal parameters for fuzzy controllers based on an objective criterion.

Concerning the performance of fuzzy control systems, the optimality and robustness have quite often been considered as the important issues. Specifically, on the optimality issue for fuzzy control systems (Yonmook Park et al., 2004).

A good optimal control technique, especially when applied for the first time on a particular process, should (Upreti, 2004):

1) provide consistent, good quality results regardless of starting points;

2) use a reasonable amount of performance index evaluation.

The design problem considered in this paper is essentially a nonlinear optimal and robust control problem due to the nonlinear nature of the Takagi-Sugeno fuzzy system. In order to obtain the latter, which can provide the minimized control effort, we formulate the controller design problem as the Proportional Parallel Distribution Compensation (PPDC) problem (Er et al., 2002), and find the controller by the genetic learning algorithm. The objective is to obtain the optimal control function, which would optimize a desired performance index.

The remaining part of this paper is organized as follows. The design and learning algorithm of the proposed system is described in the next two sections. Then, some simulation results to illustrate the effectiveness of the proposed control system structure are displayed. Finally, conclusions are presented in the last section.

CONTROL DESIGN

CSTR Process Description

In this paper, we consider the control problem of a class of Continuously Stirred Tank Reactor (CSTR) systems (Figure 1) given in (Oysal et al., 2003; Oysal et al., 2006; Aoyama et al., 1995; Zhang, Guay, 2005). The process dynamics are described by (Chia-Feng Juang, 2007)


where σ, τ and β are constants. The component x1(t) is the conversion rate of the reaction component A, 0 < x1(y) < 1, u(t), is a dimensionless coolant temperature x2(t) is the dimensionless temperature and f1 and f2 are given by

The constant parameters are given as:

σ = 0.8

β = 0.3

D = 0.072

H = 8

τ = 2

γ = 20

The parameters of the plant are defined in Table 1 (K. Belarbi et al., 2005). It is assumed that the external disturbances (see Figure 2 (b)) dist_1 (t) and dist_2 (t) are given by the Van der Pol equations and depicted by Figure 2 (a).



The diagram of plant control loop is plotted in Figure 3 that contains four blocks:


▪ optimization / tuning block characterized by GA;

▪ structural block representing the ROFLC;

▪ decisions block defining the performances criteria;

▪ system block to be controlled.

The interaction between these four blocks is summarized by:

1) generate initial population of chromosomes (each chromosome represents a fuzzy knowledge base);

2) projection of each chromosome on the specified structure of ROFLC;

3) for all chromosomes and all (xT, ) ∈ Ω evaluate fitness and classify the chromosomes according to their fitness.

Steps 2 and 3 are repeated until a maximum number of generations is carried out. After the evolution process, the final generation of population consists of highly fit strings that provide optimal or near optimal solutions.

In general, the objective of the control is to determine the process input u such that

where ε is a suitably chosen constant. That is the faster y(k) tracks the reference model yd(k), the better the controller will perform (Bin-Da Liu et al., 2001).

In the CSTR example, the control objective is to have the system states (x1,x2) follows a given reference trajectories (, ). Thus, the tracking errors must be as small as possible and the closed-loop system must be globally stable and robust, i.e. all its parameters are uniformly bounded and the effect of the external disturbances is attenuated to a prescribed level.

Proposed Optimal Controller

The history of the Parallel Distributed Compensation (PDC) started with a model-based design process proposed by Tanaka and Sugeno (Tanaka and Sugeno, 1992). The PDC offers a scheme to design a fuzzy controller from the TS fuzzy model. Compared with the widely used PI, PD and PID controllers that require tuning only two or three parameters, the TS controller using PDC is extremely far removed from ease-of-use (Er et al., 2002). To overcome this disadvantage, a new control scheme called Proportional Parallel Distributed Compensation with Reduced Rule Base (PPDC_RRB), which can significantly reduce the number of parameters in PDC, is proposed in this work.

PPDC_RRB Rule i:

where,

The overall state feedback fuzzy controller is represented by

where

µ(xj(t)) is the grade of membership of xj(t) in fuzzy set and h(i) (x(t)) denotes the normalized weight of each fuzzy rule.

From the expression (8), the optimal control law will be represented by

where ψT (x(t)) (resp. u(t)) is the nonlinear feedback gain vector due to the nonlinear nature of the Takagi-Sugeno fuzzy system.

The problem considered in this paper is to find the optimal PPDC_RRB controller, i.e. the optimal nonlinear gain ψT (x(t)) based on the following objectives:

1) minimize the error absolute between the output signals and reference models (JError);

2) reduce the quantity of the energy of the control signals (coolant flow rate) applied to the system (JEnergy);

3) minimize the number of fuzzy rules (JRule_Base).

These objectives are selected with respect to the imposed constraints (fuzzy constraints membership function and system control constraints). As indicates by the following formula:

Minimize J, with

Subject to

where C(1), C(2) and C(3) are dynamic factors of weightings characterizing the precision, the energy and the complexity of the controller. They represent the relative importance of each objective. A particular case is, where C(1) + C(2) + C(3) = 1. There will be a convex combination of the conceptual factors in this situation. The set of priorities is measured by the capacity of the controller to carry out effectively the aims had by the designer. In our case, the objectives are classified according to the degree of importance of the conceptual factors:

▪ accuracy 'efficiency' and stability;

▪ the reduction of complexity of the control law;

▪ the reduction of the effort of control (energy) to apply to the process.

max_t is the maximum of time and Max_Rl is the maximal number of rules. R_Null is the number of activated rules, defined as

The discrete step values of u equispaced over process operation time are considered as optimization variables. These step values form a control vector uopt. In order to take into account the constraints on the manipulated variables, the following saturation function was defined

where umin and umax are the lower and upper bound of the saturation elements, respectively.

GENETIC LEARNING ALGORITHM

The concrete steps realizing the optimization of PPDC_RRB (PPDC_RRB ≡ ROFLC) is as follows:

Step 1: Initialization

Create some chromosomes randomly. Each chromosome is denoted as a group of controller parameters. The difference between the genetic algorithms used in the literature resides in coding levels of the coding (binary, integer or real) and the genetic operators adapted to every coding type (Sharma et al., 2003).

The use of the mixed coding, binary-floating, multiparametered and concatenated permits to construct the chromosome of the GA. This technique allows or encourages the coding and the successive juxtaposition of the different parameters. Every chromosome can represent a solution of the problem, that is, a fuzzy optimal knowledge base. Figure 4 and Table 2 represent the chromosomes genes and its coding type, respectively.


The partitions are symmetric about the membership function ZE. This approach simplifies the computation while typically giving robust and satisfactory results. It also simplifies the optimisation testing of the GA (Soukkou et al., 2008). We assume that MFs are strictly monotone decreasing (or increasing) and continuous functions with respect to xi, while is a maximal left tolerance limit to bk and is a maximal right tolerance limit to bk. The expressions of different fuzzy constraints MFs used in the fuzzy partitions are given by

In Figure 4, ŁZE1 and ŁZE2 are the widths of the 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.

The main purpose of introducing the GA to the design of a fuzzy controller is not only to use the robust and global benefits of GA but also to develop a systematic design approach of the fuzzy controller.

Step 2: Evaluation of Fitness Value

Calculate the fitness value of each chromosome in the population. In this application the objective function (fitness) responsible for the ordering of the chromosomes in the population is:

where, J is the optimisation index (Eq. 10). The optimisation of the PPDC_RRB is to find the 'best' structure and the parameters, i.e. an optimal fuzzy knowledge base, which can be represented as an extremum problem of optimisation index.

Step 3: Selection

select two individuals for reproduction. The probability of selection for each individual is

calculated as:

where Fit (Parenti) represent the fitness of the ith parent in the population.

Step 4: Reproduction:

Create new individuals by the application of crossover and mutation operators.

▪ Crossover: The crossover operator is the main method to produce new chromosome. Exchange the genetic materiel between Pi and Pj and then get two individuals and . Figure 5 illustrates the different standard forms of crossover operator.


▪ Mutation: Mutation is applied to increase the diversity of the population to enhance the chance forGA to escape from local optima. The actual process of mutation depends on the coding form. In binary coding part of chromosome, mutation only performs 1-bit flip, i.e., the bit value changes from '0' to '1' or from '1' to '0'. If the mutation takes 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 follows:

where Gen is the number of generation and Vi (i=1, ..., m) are codes in real format of the variables constituting the chromosome Ch. Suppose that VK be the element selected to the operation of mutation, the resulting chromosome is:

where r is a random number ∈ [0, 1], UB and LB is the upper and lower bound of the domain of variation of the variable VK, respectively.

where τ is a random number ∈ [0,1] and b is a system parameter which determining the degree of non-uniformity, which is taken to be three in this application.

Step 5: Elitism

To put a limitation to the genetic divergence, one of the elitism strategies has been introduced. The latter, based on the technic of the steady-state selection, permits the constructionof a more effective new generation than the previous (the best member in last generation (Gen-1) will be substituted into the worst member in the actual generation).

If a stop criterion is satisfied, return the chromosome with the best fitness. Otherwise, go to step 2.

SIMULATION

Control of CSTR by PPDC_RRB

The objective of the control is to generate a sequence of actions umin< u < umax allowing the CSTR system to follow the desired regulation trajectory given by (Chia-Feng Juang, 2007)

This trajectory repeats with each 300 samples, which represents one period. The PPDC_RRB is initially characterized by 5 fuzzy subsets for the first input and 5 fuzzy subsets for the second input. This gives 25 rules.

Initially every chain of the population will contain 25*2 +25+ 2 + 2 real numbers + 25 binary digits (25*2 for TS parameter consequences, 25 for proportional coefficients, 2 genes for universe of 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.

In this application, and max_t in (10) equal to (0.50(50%),0.15(15%),0.35(35%)) and 300, respectively.

The general structure of the genetic learning algorithm is shown in Figure 6. Figure 7 indicates the evolution of the fitness function. The number of rules enabled during the evolution of GA is represented in Figure 8.




Only three rules remain at the end of GA execution, i.e. the certainties factors of rules and are equal to the unit, as indicated in the Table 4. Figure 9 shows the trajectory convergence to the reference model from the initial conditions (x1(0),x2(0)) = (0.144,0.8862) (Chia-Feng Juang, 2007).


The feedback vector of gains in equation (7) obtained at the end of the GA execution are given by

By analyzing the Figure 9, it can be remarked that the proposed design strategy accomplishes the design requirements effectively.

Control of CSTR by PD_GO

The continuous form of a PD controller with input e and output u is given by

where KP is the proportional gain and Td is the derivative time constant. We ca also rewrite (22) as

where KD = KP.Td is the derivative gain. Figure 10 displays the PD controller design for CSTR process.


The structure of chromosome adapted for the PD-GO controller contains two real values, one for the proportionality gain and the other for the derivative gain. The plant controller is defined by

where

represent the concentration error and temperature error of CSTR process, respectively.

The GA-PI characteristics are summarized in Table 5. The fitness function chooses in this part of paper is given by

Figures 11 and 12 show the convergence trajectories for performances index and control gains of the PD_GO controller, respectively. The performances of the PD_GO controller are presented by Figures 13 (a), (b) and (c).




By analyzing the Figures 9 and 13, it can be remarked that the proposed design strategy accomplishes the design requirements effectively. The nonlinear optimal controller PPDC_RRB presents good performances. However, a PD_GO controller is effective (see Figures 14 and 15), which justifies the efficiency and robustness of the proposed conception method.



The real–coded GA is robust, accurate and efficient because the floating-point representation is conceptually closest to the real design space and the sting length is reduced to the number of design variables.

The fuzzy optimal topology designed (via the genetic optimization) in this paper is very simple and contains a minimal number of rules. The advantages of the proposed designing methodologies are that it reduces the number of rules and the design complexity of the fuzzy systems. The proposed method is able to reduce 25 rules to 3 maintaining almost the same level of desired performances.

CONCLUSION

This paper contributes a new alternative for the synthesis of fuzzy optimal controller with reduced rule base. The genetic learning algorithm is proposed for constructing a robust fuzzy controller. Simulations demonstrate that the resultant optimal controller gives good performance.

The newly proposed controller has been applied to CSTR control system. The efficiency of this approach is measured by the controller's capacity to achieve the goal aimed by the control loop. One can say that this controller manages to achieve the desired task, which justifies the efficiency and the robustness of the proposed conception method.

Based on the simulation results, the following main conclusions can be stated about the proposed PPDC_RRB:

▪ It is easy, and it exploits the fine abilities and advantages of the fuzzy logic and genetic algorithms.

▪ A reduced number of fuzzy rules was sufficient to achieve the optimal control objective, which permits possible real-time implementations.

(Received: March 12, 2007 ; Accepted: April 24, 2008)

  • Alcaléa R., Alcaléa-Fdez J., Casillas J., Cordéon O., Herrera F., Hybrid learning models to get the interpretabilityaccuracy trade-off in fuzzy modelling, Soft Computing, 10, 717-734 (2006).
  • Aoyama A.; Doyle III, F.J.; Venkatasubramanian, V., A fuzzy neural-network approach for nonlinear process control, Engineering Applications of Artificial Intelligence, 8, No. 5, 483-498 (1995).
  • Belarbi K., Titel F., Bourebia W., Benmahammed K., Design of Mamdani fuzzy logic controllers with rule base minimisation using genetic algorithm, Engineering Applications of Artificial Intelligence, 18, No. 7, 875-880 (2005).
  • Bin-Da Liu, Chuen-Yau Chen and Ju-Ying Tsao, Design of adaptive fuzzy logic controller based on Linguistic-Hedge concepts and genetic algorithms, IEEE Transactions on Systems, Man, and Cybernetics-Part B: Cybernetics, 31, No. 1, 32-53 (2001).
  • Casillas J., Cordon O., del Jesus M. J. and Herrera F., Genetic Tuning of Fuzzy Rule Deep Structures Preserving Interpretability and Its Interaction with Fuzzy Rule set Reduction, IEEE Transactions on Fuzzy Systems, 13, No. 1, 13-29 (2005).
  • Cheng-Wu Chen, Stability conditions of fuzzy systems and its application to structural and mechanical systems, Advances in Engineering Software, 37, 624-629 (2006).
  • Chih-Hsun Chou, Genetic algorithm-based optimal fuzzy controller design in the linguistic space, IEEE Transactions on Fuzzy Systems, 14, No. 3, 372-385 (2006).
  • Chia-Feng Juang, I-Fang Chung, Recurrent fuzzy network design using hybrid evolutionary learning algorithms, Neurocomputing, 44, 1-10 (2007).
  • Chi-Ho Lee, Ming Yuchi and Jong-Hwan Kim, Two phase optimization of Fuzzy Controller by Evolutionary Programming, The 2003 Congress on Evolutionary Computation, 2003, CEC '03, 2003 IEEE, 3, 8-12 Dec. 2003, 1949-1956 (2003).
  • Er M. J., Lin D. H., A new approach for stabilizing nonlinear systems with time delays, International Journal of Intelligent Systems, 17, 289-302 (2002).
  • Goldberg, D.E. Algorithmes génétiques: Exploration, Optimisation et Apprentissage Automatique, Addison-Wesley (1994).
  • Kwee-Bo Sim, Kwang-Sub Byun,and Dong-Wook Lee, Design a fuzzy controller using schema coevolutionary algorithm, IEEE Transaction on Fuzzy Systems, 12, No. 4, 565-568 (2004).
  • Lo K. L. and Sadegh M.O., Systematic method for the design of a fullscale fuzzy PID controller for SVC to control power system stability, IEE Proc. Gener. Transm. Distrib, 150, No. 3, 297-304 (2003).
  • Mamdani, E. H., Application of fuzzy algorithms for simple dynamic plant, Proc. IEE, D-121, pp. 1558-1588 (1974).
  • Oysal Y., Becerikli Y., Ferit Konar A., Generalized modeling principles of a nonlinear system with a dynamic fuzzy network, Computer and Chemical Engineering, 27, 1657-1664 (2003).
  • Oysal Y., Becerikli Y., Ferit Konar A., Modified descend curvature based fixed form fuzzy optimal control of nonlinear dynamical systems, Computer and Chemical Engineering, 30, 878-888 (2006).
  • Sharma S. K. and Irwin G. W., Fuzzy Coding of Genetic Algorithms, IEEE Transactions on Evolutionary Computation, 7, No. 4, 344-355 (2003).
  • Simant R. Upreti,A new robust technique for optimal control of chemical engineering processes, Computer and Chemical Engineering, 28, 1325-1336 (2004).
  • Soukkou A., Leulmi S., Khellaf A., How to Optimize the TS-Fuzzy Knowledge Base to Achieve a Desired Performances: Accuracy and Robustness, International Journal of Optimal Control Applications and Methods (OCAM), 29, No. 1, 19-40 (2008).
  • Takagi T., Sugeno M., Fuzzy identification of systems and its applications to modelling and control, IEEE Trans. Systems Man Cybernet., Vol. 15, No. 1, pp.116-132 (1985).
  • Tanaka K. and Sugeno M., Stability analysis and design of fuzzy control systems, Fuzzy Sets and Systems, 45, No. 2, 135-156 (1992).
  • Yonmook Park, Min-Jea Tahk, and Hyochoong Bang, Design and Analysis of Optimal Controller for Fuzzy Systems with Input Constraint, IEEE Transactions on Fuzzy Systems, 12, No. 6, 766-779 (2004).
  • Zadeh L. A., Fuzzy Sets, Information and Control, 8, 338-353 (1965).
  • Zhang T., Guay M., Adaptive control of uncertain continuously stirred tank reactors with unknown actuator nonlinearities, ISA Transactions, 44, 55-68 (2005).
  • Zhi-Hua Cui, Jian-Chao Zeng and Yu-Bin Xu, Dynamic Circle Nonlinear Genetic Algorithm, Proceeding of the Second International Conference on Machine Learning and Cybernetics, Xi'an, 2-5 November 2003, 1836-1840 (2003).
  • *
    To whom correspondence should be addressed
  • Publication Dates

    • Publication in this collection
      24 Nov 2008
    • Date of issue
      Dec 2008

    History

    • Received
      12 Mar 2007
    • Accepted
      24 Apr 2008
    Brazilian Society of Chemical Engineering Rua Líbero Badaró, 152 , 11. and., 01008-903 São Paulo SP Brazil, Tel.: +55 11 3107-8747, Fax.: +55 11 3104-4649, Fax: +55 11 3104-4649 - São Paulo - SP - Brazil
    E-mail: rgiudici@usp.br