Services on Demand
- Cited by SciELO
- Access statistics
Print version ISSN 0104-6632
On-line version ISSN 1678-4383
Braz. J. Chem. Eng. vol.24 no.3 São Paulo July/Sept. 2007
PROCESS SYSTEMS ENGINEERING
F. A. CubillosI, *; G. AcuñaII; E.L. LimaIII
IDepto. Ing. Química, Universidad de Santiago de Chile, Fax: 56-2-6817135, Casilla 10233, Santiago, Chile.E-mail: email@example.com
IIDepto. Ing. Informática, Universidad de Santiago de Chile, Fax: 56-2-6817135, Casilla 10233, Santiago, Chile
IIPrograma de Engenharia Química, COPPE, Universidade Federal do Rio de Janeiro,C.P.68502 CEP 21945-970, Rio de Janeiro - RJ, Brasil
This paper investigates the feasibility of using grey-box neural models (GNM) in Real Time Optimization (RTO). These models are based on a suitable combination of fundamental conservation laws and neural networks, being used in at least two different ways: to complement available phenomenological knowledge with empirical information, or to reduce dimensionality of complex rigorous physical models. We have observed that the benefits of using these simple adaptable models are counteracted by some difficulties associated with the solution of the optimization problem. Nonlinear Programming (NLP) algorithms failed in finding the global optimum due to the fact that neural networks can introduce multimodal objective functions. One alternative considered to solve this problem was the use of some kind of evolutionary algorithms, like Genetic Algorithms (GA). Although these algorithms produced better results in terms of finding the appropriate region, they took long periods of time to reach the global optimum. It was found that a combination of genetic and nonlinear programming algorithms can be use to fast obtain the optimum solution. The proposed approach was applied to the Williams-Otto reactor, considering three different GNM models of increasing complexity. Results demonstrated that the use of GNM models and mixed GA/NLP optimization algorithms is a promissory approach for solving dynamic RTO problems.
Keywords: Grey-box neural models; Real Time Optimization ; Genetic Algorithms.
In the middle seventies various papers that changed the classical perception about the industrial process control were published in the scientific literature, most of them originated from industry. These works analyzed some relevant industrial process characteristics, discussing real necessities in terms of automatic control (Barkelew, l976, Ellingsen, l976, Latour, 1976, Lee and Weekman, l976).
One of the most important process characteristics that the authors pointed out was the effect of non stationary external perturbations on the optimal operating point of the process. It was realized that in most cases the optimum is close to the intersection of constraint boundaries, which change under the effect of non-stationary perturbations (varying market conditions, changing raw materials, different product specifications, and the like), resulting in a dynamic environment. Such instabilities require a continuous tracking of an itinerant operating point.
The immediate consequence of these publications was the interest from academy (and industry) in searching for strategies that could be efficiently used to follow the optimum. The problem is of such a huge complexity that during the last thirty years it has been receiving increasing attention, and represents an area of intensive and permanent research (Marlin and Hrymak, l997, Zanin et. al., 2000).
The process of tracking the best operating point has been known by different names as for example: optimizing control (Arkun and Stephanopoulos, 1980), on-line optimization (White, 1997) and real time optimization (RTO). Today it seems to be an agreement on RTO (Yip and Marlin, 2004).
Three consecutive tasks must be executed during RTO:
- assessment of current plant operation status
- search for the new optimum
- implementation of results
Each of these tasks involves many complex and not totally well established activities.
Plant status assessment requires process variable measurements, which involves for instance, availability of reliable physical sensors (Bagajewicz, 2000), development of virtual sensors (Tham et al., 1989) if necessary, definition of sample times, pre-treatment of data, fault detection (Venkatasubramanian et al., 2004) and data reconciliation (Romagnoli and Sánchez, 2000). Searching for the new operating point involves the solution of an optimization problem, which requires a clear definition of the objective function, constraints and the method of solution. Four different approaches have been used (Bhattacharya and Joseph, l982): perturbation methods, direct methods, indirect methods, and dynamic model methods. Finally the implementation task involves a careful analysis of the optimization results, which may not represent a real option, due to errors from different sources (Marlin and Hrymak, l997). After deciding the implementation of the new optimum, it is necessary to choose an efficient way to take the process from the original to the new operating point, which involves advanced techniques like model predictive control (Qin and Badgwell, 2003).
The complexity, uncertainty and, mainly, the magnitude of chemical plant processes represent important factors for RTO research be in an enthusiastic and permanent stage of development. The driving force of this enthusiasm is the significant return of investment associated to well succeed RTO (White, l998; Nath and Alzein, 2000).
The RTO systems reduce the plant/model mismatch by updating the model with actual and historical plant data sets (Yip and Marlin, 2002). The performance of an RTO system is measured by the expected profit achieved, which is strongly influenced by the quality of the model used (Loeblein and Perkins, 1998, 1999). Since the early beginning it becomes clear that the non stationary behavior of chemical process operations require an RTO based on dynamic models (Bamberger and Isermann, l978). Because the RTO execution is time consuming, simple phenomenological adaptable steady state models are currently used. In practical situations, however, it is difficult to reach the steady state among each RTO execution period, leaving the plant in a permanent state of slow dynamic changes. The problem is that the adaptation procedure requires the plant to be stationary, a very unreal situation in industrial plants (Bamberger and Isermann, 1978).
Under this condition model is not entirely consistent and an inefficient update process could reduce the economic performance of the plant. The key to solve this problem is the use of phenomenological dynamic plant models, which have the disadvantages of being difficult to obtain and update in real time. Various proposals have been suggested to reduce these problems (Sequeira et al., 2004, Yip and Marlin, 2004), but there is still plenty of room for new alternatives. Biegler et al. (2002) present a complete study about the simultaneous solutions of the dynamic RTO based on DAE models. These authors improve the optimization solver adding a novel filter in the line search and preconditioning the conjugated gradient. Also, the problem of moving finite elements was addresses trough an algorithms that adjust elements to track the optimal movements.
In this work we have investigated the feasibility of using grey-box neural models (GNM) in RTO. These models are based on a suitable combination of fundamental conservation laws and neural networks (NNs), and can be used in at least two different ways: to complement available phenomenological knowledge with empirical information, or to reduce dimensionality of complex rigorous physical models (Van can et. al., 1996). The benefits of using these simple adaptable models are counteracted by some difficulties associated with the solution of the optimization problem. Nonlinear Programming (NLP) algorithms failed in finding the global optimum due to the fact that neural networks can introduce multimodal objective functions. One alternative considered to solve this problem was the use of some kind of evolutionary algorithms, like Genetic Algorithms (GA). Although these algorithms produced better results in terms of finding the appropriate region, they took long periods of time to reach the global optimum. It was found that a combination of genetic and nonlinear programming algorithms can be use to fast obtain the optimum solution. The proposed approach was applied to the Williams-Otto reactor, considering three different GNM models of increasing complexity.
In this paper we considered that the introduction of multimodal objective functions due to the NN in the GNM is less disadvantageous than maintaining the complex first principles model in the RTO formulation because robust global optimization algorithms that allow fast solutions are easily available. Instead, solutions for complex models have more convergence problems.
The paper is organized as follows. In Section 2, the RTO problem, the GNM paradigm and the Otto-Williams reactor are summarized. Section 3 illustrates and discusses the implementation of RTO with different GNM models and optimization algorithms. Finally, the paper is concluded in Section 4.
A typical RTO system, as shown in Figure 1, includes the following elements: model updater, model-based optimizer, result analysis and process control.
Real-time measurements are made for plant status assessment and used for model parameter estimation. The updated model is used by the optimizer to find the optimum operating point. This information is analyzed and, if approved, transmitted to the process controllers. Only significant changes in optimization variables are forwarded to the process controllers for implementation. Naturally, design decisions strongly affect the closed-loop RTO performance. Design procedures have been developed to select an appropriate model for RTO system (Forbes et al., 1994). Parameters for updating are selected by minimizing the offset and variability (Forbes and Marlin, 1996).
The optimum operating policy is determined based on the updated model and an economic objective function. In this work, only material and energy balances, which are equality constraints, are considered in the model. The economic optimization problem that must be solved for RTO can be stated as
where P is the economic objective function, f is a vector representing the process model, b is a vector of the parameters to be estimated for process model updating, and x is a vector of the optimization variables, including dependent and independent variables.
Grey-box Neural Models combine a phenomenological model of the system with neural networks and enable the synthesis of simpler mathematical models than purely phenomenological ones, with more robust generalization properties than purely black-box neural models. These two properties make the GNM especially attractive in tasks associated with Process Identification, Process Control and Optimization, (Cubillos and Lima, 1998; Xiong and Jutan , 2002).
The GNM approach consists of the formulation of a process model by equations derived from phenomenological principles - such as mass, energy and momentum balances - and neural networks, which estimate uncertain parameters or the ones difficult to model. Such approach represents an attempt to add prior knowledge to black-box neural models, in order to reduce their complexity and improve their adaptive and predictive properties (Psichogios and Ungar, 1992). Thompson and Kramer (1994) classified these grey-box models into two main types: models with the NN bringing intermediate values (parameters or variables) to be used in the phenomenological model (series grey-box models) or models with the NN in parallel with the dynamic model compensating the plant/model mismatch (parallel grey-box models). Figure 2 shows the series scheme for a grey-box model as used in this work.
The proposed approach was applied to the simulated continuous system tank reactor (CSTR) from the Otto-Williams benchmark plant modified by Forbes and Marlin (1996), as illustrated in Figure 3.
The following reactions are conducted in the reactor:
Assuming an ideal CSTR with no reactor temperature dynamics, the model equations for each species are given by:
In these equations Fi are the species mass flow rates, xi are the species mass fractions, Vr is the reactor mass hold-up and Tr is the reactor temperature. The values of the kinetic parameters ki, k0i, and Bi are given in Table 1.
To study the feasibility of the use of the GNM type models in RTO, three different modelling schemes were selected as described in Forbest et al. (1994):
i) Single reaction approximation (M1): A+2B®P+E
ii) Two-reaction approximation (M2): A+2B® P+E; A+B+P®G
iii) Complete three-reaction system (M3) as described in (3).
Each GNM was synthesized considering the non stationary mass balance for each species. Feedforward neural networks were used to estimate the hypothetical reaction rates with unknown kinetic, Rj. Target values for these parameters were calculated directly from a discrete version of the mass balances. For example, for a single reaction model (M1), the reaction rate R1 may be estimated using a discrete version of the P component balance, as follows
where (k) denotes actual discrete time and Dt the time interval.
The decision variables of the optimization problem were chosen as the reactor temperature, Tr, and the flow rate of component B, Fb. The flow rate of component A, Fa, and reactor mass holdup, Vr, were fixed at 2 kg/s and 2010 kg, respectively. Under these conditions, the true optimum was calculated as Fb = 5.1869 kg/s and Tr = 90.85 ºC; the corresponding instantaneous profit was P = 198.45($). In order to obtain adequate data for the estimation of the reaction rates, pseudo random binary input sequences were used for Fb and Tr, with a sample period of 1000 s. Operating conditions and output concentrations were recorded to be used during the NN training procedure. Model updating, consisting of the NN adaptation, was carried out using a second order recursive optimization algorithm (Chen et al. 1990). The best NN structures were found by a systematic training procedure, considering the output concentrations of components A and B, and the reactor temperature as input variables to the networks. Finally, networks with one hidden layer, four nodes and sigmoidal activation functions were selected.
A similar approach was used to derive the other GNM models, where the NNs were used to estimate the respective reaction rates with equal topology as used in the first approach. Figure 4 shows the prediction of the output concentration for E product using M2 model, with pseudo random binary perturbations on the input variables. Similar results were found for M1 and M3 models, showing that the GNM scheme is able to adequately track the process dynamics.
IMPLEMENTATION AND RESULTS
Based on the updated dynamic GNM it was possible to derive an equivalent steady state model, able to be used in the RTO formulation. To illustrate the approach, considering the second approximation (M2), it is necessary to estimate two reaction rates (R1 and R2) by means of neural networks. Steady state GNM model equations are M2:
The complete model is composed by these five equations and two NNs to calculate R1 and R2. Decision variables Fb and Tr are explicit in the equations and implicit in the NNs inputs
(xa, xb, Tr).
The GNM approach with the three alternative adaptive models were tested in the RTO scheme considering similar operating conditions as used by Forbes and Marlin (1996), with feed flow rate and reactor temperature as the optimization variables. The optimization objective is to maximize the profit, as indicated in Equation 4, constrained by the corresponding GNM models. At this stage, the NN parameters were kept constant. Additional bounds were incorporated in Fb and Tr in order to improve convergence properties. The optimization problem is given by:
Concerning Figure 1, model update parameters were made off-line with the dynamical data base (Figure 4), instead the optimizer was linked on-line with the process. No validation procedures were considered.
A dynamic test was applied considering the reactor operating in a non optimum point. At a pre-established time, the RTO was connected to the plant, running each sample time in order to position the process at the optimum. Current reactor states were used as initial guess to the next optimization step. The optimization problem was solved using the SQP algorithm (Edgard and Himmelblau, 1988) included in the optimization toolbox of Matlab. Figure 5 shows the behavior of the RTO system for the three GNM models and the true (nominal) model over a time horizon of 4200s (21 RTO executions). Figure 6 shows the Tr movements, Fb is fixed in the optimum value (Fb= 4.7 kg/s) at the first sample by the optimizer in all models.
Results indicate that all GNM models were able to find an optimal set of variables close to the true optimum and maintain these conditions over the time. It can be observed that deviations from the nominal optimum are as more severe as less exact is the process model used in the RTO. Other issue observed is the sensitiveness of the RTO/GNM system to the initial conditions in the optimizer. In order to compare the performances of the models considered in this work, a dynamic performance index, defined as the total profit obtained over the time window was calculated. It can be observed that results improve as the process/model mismatch is reduced as presented in Table 2
As mentioned above, it was observed that the performance of the NLP approach was very sensitive to the initial condition. Several tests were carried out in order to find the cause of this behaviour, and finally it was found that the NN training quality was the main factor. Most of the analyzed GNM models presented multimodal behaviour with local optimum values, mainly for less intensive trained NNs. To illustrate this behaviour Figure 6 shows the profit response surface after a long training cycle of the NN (10000 epochs). The presence of a local minimum is evident.
To cope with this problem, it was considered the use of a global optimization solver based on genetic algorithms.
Genetic algorithms are stochastic optimization methods based on the biological principles of natural selection (Goldberg, 1989). These methods are especially suitable for multimodal objective functions, often observed in models based on neural networks, as they are less probable to get trapped in local optima. In GA, the decision variables are encoded into bit strings and submitted to crossover and mutation mechanisms based on the evolutionary theory. The reproduction is determined by a fitness function associated with the capability of survival of an individual. The main characteristics of GA are: search from a population and evaluation of fitness (performance) function as a black box. The efficiency of a GA is closely linked with the objective function and set-up parameters as: encoded strings, bit resolution, initial population, number of generations, and operator probabilities. Experience indicates that due to the large number of GA parameters, a suitable set-up should be determined for each particular problem.
In order to evaluate the performance of the proposed approach, the previous dynamic test was applied. As the main objective of this work is to evaluate grey-box neural models in RTO, a simple GA with no special effort in parameter setting-up was used. Component B flow rate and reactor temperature were encoded in binary strings of 16 bits. A population size of 50 pairs of individuals was kept constant over the generations. A total of 30 generations was used to find the optimum.
The obtained results shown good agreement with the same problem solved by the NLP technique, getting the process near of the true optimum. The cumulative profit and an index of affectivity of each algorithm ( i.e. % to reach the true optimum) for the nominal and the M3 model RTO scheme, using both NLP and GA methods, are given in Table 3.
A comparative analysis indicates that the GNM-GA approach is more computers demanding than the GNM-NLP one, but is more stable as it does not depend on the initial guess. On the other hand, GNM-GA was not able to position the system in the true optimum. This is inherent to the GA formulation and it could be improved if an interval mixed GA-NLP optimization scheme is applied (Valdes-Gonzalez et al, 2003).
Based on the previous results, a hybrid GA/NLP scheme was developed and tested to solve the RTO problem. In this scheme each execution starts with a short GA (50 data pair and 10 generations) to find the region that contains the global optimum. This G.A. setting was obtained in order to have an adequate compromise between speed and precision. Subsequently, a NLP algorithm, starting with a random point inside this region is used to find the optimum. The results with the GA/NLP scheme have shown an excellent performance. These results are better than the ones of the schemes previously analyzed in terms of algorithm stability and quality of the optimum obtained. The cumulative profit and the affectivity index values for the nominal and the M3 model RTO scheme, with NLP, GA and GA/NLP optimization algorithms, are given in Table 3. Tests carried out in a dynamic environment achieved 99% of effectiveness to find the optimum starting from several non optimum operational conditions. Obviously, the computational effort of this approach is bigger than the one required by each method separately, with about 50% increment of float point operations in each cycle of solution.
The ability of RTO systems to track the optimum operating point of a plant depends on the accuracy of model structure and model adaptability (efficient parameter estimation). In this work, different dynamic grey-box neural models for RTO are studied in order to reduce dimensionality and favor adaptability. From these models it is possible to obtain good information of the steady state characteristic of the plant, even if the steady state condition was not reached because the dynamic process data are used to fit a dynamical GNM model of the process and this GNM model is first principles consistent. Consequently, the model parameters (kinetics rates) may be used in an equivalent steady state model for the optimization step. The proposed models were successfully used for RTO of the Otto-Williams reactor.
The solution of the optimization problem by classical NLP techniques was possible, but not guaranteed, as the neural network in the GNM model may result in multimodal objective functions. To cope with this problem, a strategy based on GA was implemented. Such strategy guarantees reasonable convergence to the global optimum; however, the results were not as good as the ones obtained when NLP converges. Also, it requires a greater computational effort. Finally a hybrid GA-NLP was successfully applied to solve the problem with an efficient global optimum determination. The above mentioned approach may be used even in the presence of process disturbances if they are measured and considered as inputs in the GNM model.
The suggested approach introduces improvements in the RTO technology, allowing extension to highly nonlinear plants and a feasible on-line adaptation using dynamic information.
Authors wish to acknowledge the collaboration of the Professor Jose Romagnoli by the valuable comments and suggestions in the final version of this work. Also, we appreciate the financial support provided by FONDECYT (Projects 1040208) and Dicyt-Usach, Grant 0611CM.
|Bj||activation parameter in reaction||j|
|Fi||flow rate of component||i|
|kj||kinetic constant in reaction||j|
|k0,j||frequency factor in reaction||j|
|P||economic objective function||(-)|
|Rj||reaction rate in reaction||j|
|Vr||mass reactor hold-up||(-)|
|x||vector of process variables||(-)|
|xi||mass fraction of component||i|
|b||vector of model parameters||(-)|
Arkun, Y, Stephanopoulos, G, l980, Studies in the Synthesis of Control Structures for Chemical Processes, Par IV. Design of Steady-State Optimizing Control structures for Chemical Process Unit, AIChE J., 26(6), 975-991. [ Links ]
Bagajewicz, M., 2000, Process Plant Instrumentation: Design and Upgrade, CRC Press. [ Links ]
Bamberger, W., Isermann, R., 1978, Adaptive On-Line Steady-State Optimization of Slow Dynamic Processes, Automatica, 14, 223-230. [ Links ]
Barkelew, C. H., 1976, Modern Process Control-State of the Art in Petroleum Refining, AIChE Symp. Ser., 159, 72. [ Links ]
Bhattacharya, A., Joseph, B., l982, On-line Optimization of Chemical Processes, Proc. ACC, 334-337. [ Links ]
Biegler L, Cervantes A, and Wachter A, 2002, "Advances in simultaneous strategies for dynamic process optimization", Chem,Eng:Sci, (57), 575,593. [ Links ]
Chen S. Cowan C. Billings S. and Grant P., 1990, "Parallel recursive prediction error algorithm for training layered neural networks," Int.J.Control,51,6. [ Links ]
Cubillos F. and Lima E., 1998, Adaptive hybrid neural models for process control, Computers and Chemical Engineering, Vol 22, S989-S992. [ Links ]
Edgard T. and Himmelblau D. "Optimization of Chemical Processes," McGraw Hill Book Co., New York,1988. [ Links ]
Ellingsen. W. R., l976, Implementation of Advanced Control systems, AIChE Symp. Ser., 159, 72. [ Links ]
Forbest F. Marlin T. and MacGregor J., 1994, Model Adequacy Requirements For Optimizing Plant Operations , Computers and Chemical Engineering, Vol 18, pp. 497-510. [ Links ]
Forbes, J. F. and Marlin, T. E.,1996, Design Cost: A Systematic Approach to Technology Selection for Model-Based Real-Time Optimization Systems. Computers and Chemical Engineering, Vol 20, 717-734. [ Links ]
Goldberg, D.,1989, "Genetic Algorithms in Search, Optimization and Machine Learning", Addison-Wesley. [ Links ]
Latour, P. R., 1976, Comments on Assessments and Needs, AIChE Symp. Ser., 159, 72. [ Links ]
Lee, W. Weekman Jr., W. V., 1976, Advanced Process Practice in the chemical Process Industry: A View from Industry, AIChE J., 22. [ Links ]
Loeblein C. and Perkins J, 1998, Economic analysis of different structures of on-line process optimization systems, Computers and Chemical Engineering, Vol. 22, pp.1257-1269. [ Links ]
Loeblein C. and Perkins J.,1999, "Structural Design for On-Line Process Optimization: I Dynamic Economics of MPC", AIChE J., Vol. 45, Nº5 [ Links ]
Marlin, T. E., Hrymak, A. N., l997, Real-Time Operations Optimization of Continuous Processes, AIChE Symp. Ser., 316, 156-164. [ Links ]
Nath,R; and Alzein Z.,2000, On-line dynamic optimization of olefins plants, Computers and Chemical Engineering, Vol 24,533-5338. [ Links ]
Psichogios D. and Ungar L., 1992, A hybrid neural networks-first principles approach to process modeling , AIChE J.,38,1 [ Links ]
Qin, S. J. and Badgwell, T. A., 2003, A survey of industrial model predictive control technology, Control Engineering Practice, 11, 733-764. [ Links ]
Romagnoli, J. A., Sánchez, M. C., 2000, Data Processing and Reconciliation for Chemical Process Operations, AP Process System Engineering, volume 2. [ Links ]
Sequeira, S.E. Herrera, M. Graells, M. Puigjaner, L.2004, On-line process optimization: parameter tuning for the real time evolution (RTE) approach, Computers and Chemical Engineering, Vol 28,5. [ Links ]
Tham, M. T., Morris, A. J., Montague, G. A., 1989, Soft-Sensing: A Solution to the Problem of Measurement Delays, Chem. Eng. Res. Dev., 67, 547-554. [ Links ]
Thompson M. and Kramer M., 1994, Modeling chemical processes using prior knowledge and neural networks , AIChE J.,40,132. [ Links ]
Valdés-González, H, Flaus J.M, and Acuña,G., 2003, "Moving Horizon State Estimation with Global Convergence Using Interval Techniques: Application to Biotechnological Processes", Journal of Process Control, Vol. 13/4, pp. 325-336. [ Links ]
Van Can, HJL, Hellinga, C, Luyben, KAM and Heijnen, JJ , 1996, Strategy for Dynamic Process Modeling Based on Neural Networks in Macroscopic Balances, AIChE J. 42:3403-3418, (1996). [ Links ]
Venkatasubramanian, V., Rengaswamy, R., Yin, K., Kavuri, S., 2004, A Review of Process Fault Detection and Diagnosis. Part I: Quantitative Model-Based Methods, Chemical engineering Science, 56, 2133-2148. [ Links ]
White, D. C., l997, Online optimization: what, where and estimating ROI, Hydrocarbon Processing, June, 43-51. [ Links ]
White, D. C., l998, Online optimization: what have we learned?, Hydrocarbon Processing, June, 55-59. [ Links ]
Xiong Q. and Jutan A., 2002, Grey-box modelling and control of chemical processes, Chemical Engineering Science, Volume 57, 6, 1027-1039. [ Links ]
Yip, W. S. and Marlin, T. E., 2002, Multiple data sets for model updating in real-time operations optimization, Computers and Chemical Engineering, 26, 1345-1362. [ Links ]
Yip, W. S. and Marlin, T. E., 2004, The effect of model fidelity on real-time optimization performance, Computers and Chemical Engineering, 28, 267-280. [ Links ]
Zanin,A; Tvrzka de Gouvea,M and Odloak,D, 2000, Industrial implementation of a real-time optimization strategy for maximizing production of LPG in a FCC unit", Computers and Chemical Engineering, Vol 24,525-531 [ Links ]
(Received: March 3, 2005 ; Accepted: March 13, 2007)
* To whom correspondence should be addressed