## Hybrid predictive controller based on Fuzzy-Neuro model

02. August, 2010, Autor článku: **Paulusová Jana**, Elektrotechnika, Informačné technológie

Ročník 3, číslo 8
Pridať príspevok

In this paper a hybrid fuzzy-neuro model based predictive control (HFNMBPC) is addressed, proposed and tested. The proposed hybrid fuzzy-neuro convolution model consists of a steady-state fuzzy-neuro model and a gain independent impulse response model. The proposed model is tested in a model based predictive control scheme of the concentration control in the chemical reactor, manipulating its flow rate. The paper deals with theoretical and practical methodology, offering approach for intelligent fuzzy-neuro robust control design and its successful application.

**1 Introduction**

Predictive control has become popular over the past twenty years as a powerful tool in feedback control for solving many problems for which other control approaches have been proved to be ineffective. Predictive control is a control strategy that is based on the prediction of the plant output over the extended horizon in the future, which enables the controller to predict future changes of the measurement signal and to base control actions on the prediction.

The proposed hybrid fuzzy-neuro convolution model can be considered as a gain-scheduled convolution model. This paper shows advantages of a combination of static nonlinearity and gain- independent dynamic part.

The steady-state behavior of the process is represented by a fuzzy-neuro model structure, which is based on a linguistic knowledge about the steady- state behavior of the process. The parameters of the rule consequents are identified using input and output data gathered from process.

The dynamic part is represented by an impulse response model.

The proposed hybrid fuzzy-neuro convolution model is applied in model predictive control. The HFNMBPC has been received well in process industry.

The paper is organized as follows. First, design of the hybrid fuzzy-neuro convolution model is briefly introduced in Section 2. Then, the fuzzy-neuro model based predictive controller is discussed in Section 3. The reliability and effectiveness of the presented method is shown on application in Section 4 – control of the concentration control in the chemical reactor by manipulating its inlet flow rate. Summary and conclusions are given in Section 5.

**2 The Hybrid Fuzzy-Neuro Convolution Model (HFNCM)**

The output of the model can be formulated as (Abonyi, et al. 2000)

(1) |

where is steady-state part, which is described by fuzzy-neuro model (ANFIS) and is dynamic part of the model (the impulse response model). The gain independent impulse response model is , the previous input values are over *N* horizon, *K* is steady-state gain, and are steady -state input and output, are other operating parameters having effects on the steady-state output.

The convolution is multiplied by steady-state gain

(2) |

**2.1 The steady-state part of HFNCM**

The steady state part is described by fuzzy-neuro model. A nonlinear discrete system can be expressed by fuzzy-neuro model (ANFIS) with n rules. The i-th rule of the model is described as follows (Paulusová, et al. 2008):

(3) |

wher is the number of inputs, is a vector of inputs of the model, is the -th antecedent fuzzy set referring to the *j*-th input, where is the number of the fuzzy set on the *j*-th input domain.

The first element of the input vector is the steady- state input .

The output is computed as weighted average of the individual rules’ consequents

(4) |

where the weights are computed as , where is fuzzy operator, usually been applied as the *min* or the *product* operator and *m* is number of rules.

In our research we examined various types of membership functions. In this paper Gaussian membership functions were described in detail.

Gaussian membership functions were employed for each fuzzy linguistic value as shown in Figure 1.

The membership functions are defined as follows:

(5) | |

where , , are the centre, , , dhe width of the fuzzy sets and .

**Figure 1** Membership function used for the fuzzy model

The gain of the steady-state fuzzy model can be computed as

(6) |

where

**2.2 Dynamic part of the HFNCM**

The dynamic state part is described by the impulse response model (IRM). Parameters of the discrete IRM where N is the model horizon) can be easily calculated from the input-output data ( and ) of the process.

(7) |

In matrix form

The parameters are given as follows

(8) |

**3 Hybrid Fuzzy-Neuro Model Based Predictive Controller**

The nonlinear HFNCM can be easily applied in model based predictive control scheme.

In most cases, the difference between system outputs and reference trajectory is used in combination with a cost function on the control effort. A general objective function is the following quadratic form (Paulusová, et al. 2005)

(9) |

Here, *r* is desired set point, and are weight parameters, determining relative importance of different terms in the cost function, and are the control signal and its increment, respectively. Parameter *p* represents length of the prediction horizon, *m* is the length of the control horizon. Output predicted by the nonlinear fuzzy model is .

(10) |

where are the step response coefficients and the change on the control variable is .

Model predictions along the prediction horizon *p* are

(11) |

Disturbances are considered to be constant between sample instants

(12) |

where represents the measured value of the process output at time *k*.

So

(13) |

where

(14) |

Prediction of the process output along the length of the prediction horizon, can be written compactly using matrix notation

(15) |

Matrix *S* is called the system’s dynamic matrix (16) (Morari, et al. 1989).

(16) |

By minimizing its objective function (9) the optimal solution is then given

(17) |

In many control applications the desired performance cannot be expressed solely as a trajectory following problem. Many practical requirements are more naturally expressed as constraints on process variables such as manipulated variable constraints, manipulated variable rate constraints or output variable constraints. The solution calls into existence of quadratic programming solution of the control problem.

**3.1 Algorithm for the HFCM based control**

The algorithm has the following steps (Abonyi, et al, 1999):

- Calculation impulse response model from (8),
- Calculation of from , considering the inversion of the fuzzy-neuro model,
- Calculation of the value of the steady-state gain
*K*by (6), - Calculation of
*S*by (16) and*e*by (12), - Calculation of the controller output from the first element of the calculated vector generated from (17).

**4 Case Study and Simulation Results**

**4.1 Case study**

The application considered involves an isothermal reactor in which the Van Vusse reaction kinetic scheme is carried out. In the following analysis, *A* is the educt, *B* the desired product, *C* and *D* are unwanted byproducts (Paulusová, et al. 2006).

(18) |

From a design perspective the objective is to make and small in comparison to by appropriate choice of catalyst and reaction conditions. The concentration of *B* in the product may be controlled by the manipulating the inlet flow rate and/or the reaction temperature.

The educt flow contains only cyclopentadiene in low concentration, . Assuming constant density and an ideal residence time distribution within the reactor, the mass balance equations for the relevant concentrations of cyclopentadiene and of the desired product cyclopentanol, and , are as follows:

(19) | |

This example has been considered by a number of researchers as a benchmark problem for evaluating nonlinear process control algorithm.

By normalizing the process variables around the following operating point and substituting the values for the physical constants, the process model becomes:

(20) | |

where the deviation variable for the concentration of component *A* is denoted by , the concentration of component *B* by , and the inlet flow rate by .

The simulation scheme of this process is in Figure 2.

**Figure 2** Simulation scheme of the nonlinear process described by (20)

**4.2 Simulation results**

The comparison of HFNCM with nonlinear plant is shown in Figure 3. Time responses of the controlled and reference variables under HFNMBPC are shown in Figure 4.

**Figure 3** Time responses of output from the nonlinear plant and the HFNCM model

**Figure 4** Time responses of the controlled and reference variables under HFNMBPC ($latex m = 5, \, p = 10, \, \Gamma_y = K, \, \Gamma_u = \gamma K^2, \gamma = 1)

**5 Conclusions**

The HFMBPC uses the advantage of fuzzy systems in the representation of the steady-state behavior of the system. Other advantage is that it tries to combine knowledge about the system in form of apriori knowledge and measured data in the identification of a control relevant model.

Simulation example illustrates the potential offered by the HFNCMBPC.

**Acknowledgements**

This paper has been supported by the Slovak Scientific Grant Agency, Grant No. 1/0544/09.

**6 References**

- ABONYI, J.; BÓDIZS, Á., NAGY, L., SZEIFERT, F. (2000). Hybrid fuzzy convolution model and its application in predictive control. Chemical Engineering Research and Design 78 (2000), pp. 597-604.
- ABONYI, J.; NAGY, L., SZEIFERT, F. (1999). Fuzzy Model Based Predictive Control by Instantaneous Linearisation. Fuzzy Sets and Systems, 1999.
- ABONYI, J.; NAGY, L., SZEIFERT, F. (1999). Adaptive Fuzzy Inference System and its Application in Modelling and Model Based Control, Chem. Eng. Res. Des, 77, A, 281-290, 1999.
- MORARI, M.; LEE, J.H.; GARCIA, C.E. (1989). Model Predictive Control. Automatica, vol. 25, no. 3, pp. 335-348, 1989.
- PAULUSOVÁ, J.; KOZÁK, Š. (2005). Predictive Fuzzy Control Application. EUROCON 2005- The international Conference on “Computer as a Tool”, Belgrade, Serbia and Montenegro: 21- 24 November, s. 241
- PAULUSOVÁ, J.; KOZÁK, Š. (2006). Robust Predictive Fuzzy Control. In.: 7th Portuguese Conference on Automatic Control, CONTROLO’ 2006, Lisbon, Portugal: 11-13 September 2006, MA-7-1. ISBN.
- PAULUSOVÁ, J.; KOZÁK, Š.; DÚBRAVSKÁ, M. 2008. Hybrid Predictive Controller based on Fuzzy Model. In: International Slovak Society for Cybernetics and Informatics, Ždiar, Slovak Republic: 10-14 February 2008, pdf 46. ISBN.

Coauthor of this paper is M. Dúbravska, Institute of Control and Industrial Informatics, Faculty of Electrical Engineering and Information Technology, Slovak University of Technology, Ilkovičova 3, 812 19 Bratislava, Slovak Republic