Mathematical Problems in Engineering

Volume 2009, Article ID 471540, 18 pages

http://dx.doi.org/10.1155/2009/471540

## An LPV Fractional Model for Canal Control

^{1}Automatic Control Department, Technical University of Catalonia, Pau Gargallo 5, 08028 Barcelona, Spain^{2}Electronics Engineering Department, Technical University of Catalonia, c/Urgell 187, 08036 Barcelona, Spain

Received 6 February 2009; Revised 27 April 2009; Accepted 24 May 2009

Academic Editor: José Roberto Castilho Piqueira

Copyright © 2009 Rubén Martínez-González et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

An LPV rational order control model of an irrigation canal is derived from system identification experiments. This model is experimentally obtained by using the described LPV fractional identification procedure. This procedure consists of the identification of a rational order model in each operation point in an experimental test canal. Global LPV model is obtained from polynomial interpolation of local model parameters. Validation results demonstrate that rational order models are more accurate than integer order models. Therefore rational order control models have an important role to play in management and efficient use of water resources.

#### 1. Introduction

Water is becoming a precious and very scarce resource in many countries due to the increase of industrial and agricultural demands, as well as population growth. Irrigation is the main water consuming activity in the world, as it represents about 80 of the available fresh water consumption. There is growing interest for the application of advanced management methods that prevent wastage and facilitate the efficient use of this vital resource [1].

Unfortunately, for control design purposes control techniques and their implementation are directly proportional to the complexity of proposed control models. Then, it is essentially a noncomplex and simple control model that represents in a precise way water behavior of open-flow canals. However, this type of systems corresponds to long distributed systems with complex dynamics. Furthermore, these systems involve mass energy transport phenomena which behave as intrinsically distributed parameter systems, and their characteristics are very complex such as the variation of parameters with operation points, large delays that vary with operation point, and numerous interactions between different consecutive subsystems and strong nonlinearity. Their complete dynamics is represented by nonlinear partial differential hyperbolic equations (PDEs) that depend on the time as well as the spatial coordinates: Saint-Venant's equations. This equation system has unknown analytical solution in real geometry and it has to be solved numerically (characteristic method, Preissman implicit scheme, etc.) [2].

Resulting time consuming simulation models are therefore suitable for scientific purposes but they are too complex for on-line applications and control needs. Moreover, linearizations or simplifications of Saint-Venant's equations are currently studied by irrigation control research community [3]. Distributed parameters systems, considered as systems with a very large number of states could be approximated with low-order linear time invariant (LTI) models in order to use classical linear control design tools, as an usual practice in control engineering. There are two main approaches that are followed to obtain a linear model for irrigation main canals: the use of linearized Saint-Venant equations [4, 5] and the use of identification methods [6–8]. In case of open canal hydraulic system, identification is a classical method because their operational data are widely available and resulting models are suitable for design control.

Normally, classical identification methods [9] are used to obtain LTI discrete models which describe dynamics of irrigation water. However, in such systems LTI models lose information about these characteristics (non-linearity, coupling between pools, dynamics parameters changing over operation time in a wide range variation*Ě*). Then, a simplified control model structure that still preserve their information is needed. Such a structure can be provided by linear parameter varying (LPV) models consisting of a linear lumped parameter model in which parameters are not constant, but they depend on external parameters and/or system states and/or operating conditions of the system.

One of the main motivations for using LPV gain scheduling control versus classical gain scheduling control is that the former, as opposed to the latter, rigorously guarantees system stability [10]. Gain scheduling control is a heuristic method that consists in dividing the parameter space into small regions, in which the plant is observed as an LTI system, and LTI controllers are designed for every fixed set of parameters to achieve a synthetic controller with the use of interpolation or other techniques as switching techniques or fuzzy control. Heuristic gain scheduling controllers normally guarantee control system stability when parameters perform a slow variation [11] but sometimes may lead to unstability or chaotic behavior [12]. Furthermore, benefits of using gainscheduling techniques instead of robust control are obvious in this type of systems because of conservative results of robust control since model errors are partly due to non-linear effects and partly to the strong unknown perturbations considered as uncertainties [13]. Then, it is convenient to identify an LPV model for control canal purposes. Mainly, there are two approaches of identifying LPV models: since an LPV model is essentially a parameterized family of LTI models, a first identification approach is to collect data enough at each operating point to identify its corresponding LTI model [14]. Identified LTI coefficients are used to interpolate LPV coefficients as polynomial functions of scheduling variables.

Alternatively, a second approach that can be carried out in “one shot” , by assuming a linear dependence of parameters with operating points. Here, according to [15], identification problem can be reduced to a linear regression that may be solved using an extended regressor in the Least Mean Square (LMS) algorithm. In general, both methods lead to similar models. These identified LTI integer models do fit good enough with the dynamics of the canal system in each operating point in order to lineary control the system in such points. But, due to (i) that recently some control researchers have used fractional control methods for canal control purposes with satisfactory results [16] and (ii) noninteger models describe completely the behaviour of distributed systems [17], such as irrigation canals, in this article authors have carried out an LPV fractional identification using the former mentioned LPV approach. This fractional identification approach has been developed to model an irrigation prototype canal. Some properties of fractional calculus are applied in order to obtain a noninteger order model in each operation point.

#### 2. LPV Noninteger Order Modeling for Irrigation Canal Pool

The last two decades have witnessed considerable development in the use of fractional differentiation in various fields. Fractional control is now mature enough and is widely used to design control for representing systems that present diffusive phenomena, electromechanical diffusion, and transport phenomena. This last phenomenon corresponds to the case of irrigation pools. In this section, LPV identification methodology used for the experimental modelling of a pilot canal plant is described.

##### 2.1. Pilot Canal Plant Description

An experimental canal prototype (this experimental test canal is a part of a more complex laboratory research canal available at Automatic Control Dept, UPC, Barcelona) is used in the research presented in this paper (Figure 1). This plant consists on two tanks, and (Figure 2), with a top side view shown in Figure 3. On one side of pool there is a pump (, ) to empty the pool. The output-flowing liquid of is collected in , where there is a second pump (, ) to empty the pool. The output-flowing liquid of is collected in a reservoir, , located under . The reservoir supplies flow to the pool by another pump (, ). In fact, the plant is a closed system, where the liquid that arrives to the reservoir from the pool returns to the pool via the pump. Lengthening the water path, tank plant is easily converted into a canal plant. The water path can vary placing methacrylate plates along the structure, (Figure 3). Here, the plates are separated away creating a zigzag path. Then, pools are enlarged from to long, wide, and the maximum allowed level is . To know pools' levels after the zigzag path, that is, the pool level at the end of their path, two ultrasonic level sensors, and , with a precision of are used. The sensors are attached to the canal metallic structure.

##### 2.2. Preliminary Definitions in Fractional Modeling

The mathematical definition of fractional derivatives has been the subject of several different approaches [17]. In this paper the following definition of fractional discrete derivative, where will be used; is the order of the fractional difference.

The fractional order models are clasificated in commensurable and non-commensurable order models. In this work, commensurable models are used.

*Definition 2.1. **A system is of commensurable order if it can be represented by a differential equation where all the orders of derivation are integers multiple of an order basis, **, that is, systems where the next condition is fulfilled:*

So, the differential equation (2.3) can be written as follow:

*Definition 2.2. **A system is of rational order, if it is a commensurable order system and besides fulfills the condition of ** for all **.*

From the previous definition and based on the property of “q”, *an integer order system is a particular case of rational order systems, where **. *

Consider the fractional discrete linear system, described by the state-space equations where , , are the state, input, and output vectors and , , . Using Definition 2.1, equations (2.5) can be written in the form

##### 2.3. LPV Fractional Identification Methodology

LPV identification method used in this article is a two-step procedure where () nonfractional models are identified at several different equilibrium (operating condition) by classical methods [9]; () a global multimodel is obtained by interpolating among the local nonfractional models [14]. In this paper, a nonlinear leastsquares estimation method, based on Levenberg-Marquardt [18, 19], is used to obtain the parameters of the rational identified model in each operation point [20]. Local identification method forces rational local models to fit the system separately and locally. This local identification procedure (in each operation point) is standard and it can be itemized as follows: () design of the experiment and collection of input-output data in each operation mode from the process to be identified; () model structure selection in each operation point; () parameter estimation in each operation point; () model validation in each operation point.

As the LPV model is interpolated between local rational models, varying parameters of LPV model can be locally interpreted as parameters of the interpolated rational model. Varying parameters in each operation point are interpolated in a polynomical way. This polynomial depends on a scheduling parameter vector , in this case , that corresponds to the integral of pump activation in each canal that changes in their operating ranges. These values correspond to the upstream levels and are proportional to the upstream flow of each pool. Once the LPV model is obtained, it is validated globally.

In this paper, this system identification procedure is used to obtain a reliable dynamic model of a main irrigation canal when the design of a model-based control system is requested.

#### 3. Experiment Design and Model Structure Selection

For identification of the pilot canal system different experiments have been carried out. These canal pools are operated by means of a downstream water level regulation method. Available measurements are downstream water levels ( for pool and for pool ) and pump voltage ( for pump and for pump ). Then, for the identification of the control model canal, as output variables, downstream levels are used, and as input variables integral pump voltage variables ( and ) are used. According to literature [5, 21, 22], this model obtained after identification corresponds to a first-order model with delay with an integrator or to a second order model with delay with an integrator, depending on the geometry of the pool.

The appearance of integrator pole, or in other words, the fact that a reach has similarities with a swimming pool or a tank, is not a real surprise and is, in some case, expected. As mentioned before, this pole appears clearly in the uniform case regime and has been successfully included in several simplified models proposed in other works (Integrator Delay (ID) model [23], Integrator Delay Zero (IDZ) model [4], etc.). It is known that the identification of a system with integrators is very erratic about the exact localization of its poles. For this reason, the identified model relates the downstream levels (model outputs) and the integral of pump voltages (model inputs: for pool and for pool ).

##### 3.1. Experiment Design

To obtain data containing the maximum information about the canal pools dynamic behaviour, pools must be excited with a persistent input signal that contains the largest number of frequencies representative of the system dynamics [9]. Then a pseudorandom binary sequence (PRBS) is a kind of signal that fulfills these conditions. Since these signals are suitable to identify linear systems and our system is nonlinear and timevarying, a PBRS is used in each operating point within the working range of the system. These signals are integrated (because the system has implicitly an integrator [5]) generating the input for the identification process, and .

The sampling time was selected to be second because it is enough dueto the system dynamics. Pools act in different operating points. As the pool dynamics are different (due to their input pumps) five points have been selected for pool (, ) and eight points for pool (, ); see Tables 1 and 2.

##### 3.2. Model Structure Selection

The model structure selection constitutes one of the most important and difficult decisions in system identification procedure because model complexity influences the accuracy of the description of the real process and the control schemes. Saint-Venant equations [24] represent the dynamics of an open flow canal in a precise and complete manner. This pair of partialdifferential equations constitutes a nonlinear hyperbolic system, which has no analytic solution for arbitrary geometry. However, such equations are not useful for designing a controller using linear theory as already noticed by [4, 25]. In these references, a simplified control-oriented model methodology is proposed that describes an -pool canal system. In this methodology each pool is modeled around a given operating point using the transfer function matrices: where and are the upstream and downstream water levels of pools, respectively, and and are the upstream and downstream flow levels of pools considered here. and because, normally, control models do not take into account the strong coupling between canals because SISO controllers and decouplers are used [26], and the model structure for each pool: where and are transfer functions relating downstream flows with upstream levels. Additionally, there is a relationship between discharge flow and pump voltage. The upstream flow of each pool can be related with its upstream level equivalent to the integral of pump voltages, respectively in a linear way. The following additional relationship should be considered [27]:

The second-order system behaviour can be clearly observed in Figures 4 and 5 when the integral of pump voltage is used as input of the identification model. As it is studied in literature, in backwater part of each pool the dynamics are complicated: waves move up and down and reflect against the boundaries. However, at low frequencies, the water level “integrates” flow variations in the backwater part. In other words, the backwater can be considered to behave as an integrator or reservoir for low frequencies, and for this reason the integrator is included in the control model.

In order to identify the canal system, the continuous model is discretized by using zero-order hold method. Furthermore we assume that control model is LPV (as it is explained in Section 2.3). For each operating point in each pool ( for pool and for pool , see Tables 1 and 2), the discretized model can be expressed as

Observing and analyzing the PRBS responses obtained at each operation point (see Figures 4 and 5) in our prototype canal, the canal dynamics can be represented by a seconds order equation with delay, as it is often used in the literature by Hayami model in linear and integer control [1]. As canals are systems that vary according to the operation point, an LPV Hayami model is more suitable [28]. Besides, as canals are nonlinear systems and with distributed parameters, fractional control models are suitable because they yield a more accurate behavior representation. It is desirable to hold the maximum degree of the dynamical equation (second order). So, our models in each operation point are of -rational order with . Then, as defined by (2.5), the proposed model structure for and is where , , and and .

For and , the proposed model structure is where , , and , , , and are the coefficients to be determined in operation points proposed in Tables 1 and 2. As it can be appreciated in (3.4), (3.5), and (3.7), both canals have been considered uncoupled, a widely common practice in literature [26].

Parameters of models (3.4)–(3.7) in each operation points and pools are independently identified. To test the improvement of these rational order models (3.5) and (3.7) with respect to the LTI model with delay (3.4) in each pool, a parametric estimation of each model has been carried out. This estimation consists in the computation of parameter vectors and for integer model, and for non-integer models ( and , resp.).

The estimation method used in this work is the previously mentioned in Section 2.3 (see [18, 19]). This methodology guarantees robust convergence, even when the parameters are initialized with values far from the optimal value.

In the case of integer model, there exists a delay which is estimated using correlation analysis [9], providing an estimation of the canal impulse response with regard to the integral of pump activation. This method computes intervals for the delay with a given confidence, and only the nominal values are chosen.

Parameters of models obtained in both pools, and , are gathered in Tables 3, 4, and 5, respectively.

Parameters are estimated experimentally by applying the set of input PRBSs, explained in Section 3.1, sweeping all the operating points in each pool (Figures 4 and 5). Each linear varying parameter depends on the gain scheduling variable . Hence, it is assumed that the variation of parameters and for integer model and and for non-integer models according to the scheduling variable can be approximated by a polynomial function of where with for pool , and with for pool .

For instance, for non-integer model Figures 6 and 7 graphically depict polynomial approximations of in both pools that correspond to the following functions: where the values of () are shown in Tables 6 and 7.

#### 4. Model Validation

Model validation is the core of the identification problem because it makes possible to evaluate the model quality, that is, if the method fits the measured experimental data with accuracy enough, if it is valid for its purpose, and if the model describes correctly the real process [9]. Figures 8 and 10 show the performance in all the operation points for rational models as well as for integer model in pools and , respectively. Globally, in Figures 8 –11 it can be appreciated that rational models track better measured downstream level in transitory case and also in permanent regime case than integer models.

In order to assess how suitable models respect validation data set, mean absolute error (MAE) is quantified as As its name suggests, the mean absolute error is an average of absolute errors , where is the prediction value and the real value. The values of MAE for operating points in each pool are shown in Tables 8 and 9, being the integer case (3.4) and and the rational models (3.5) and (3.7), respectively. As it can be observed, most of errors in the integer case are higher than errors in the rational case, indicating that rational models give an improvement in the accuracy in each control model.

However, the lower the value of is, the higher is the number of coefficients to be determined (see Tables 3, 4, and 5).

#### 5. Conclusions

In this article, an LPV rational order model-based control-oriented system identification procedure for irrigation canals has been developed. This identification procedure has been applied in an experimental prototype canal. In this case, rational local models for an irrigation pool in different operation points have been obtained and interpolated to reach the complete model: the LPV rational model. Resulting LPV rational order control model normally describes the plant with a lower error than the corresponding LPV integer order control model. The lower the value (degree of the rational order models) is, the lower the error is. Nevertheless, there exists a relevant trade-off between values and model complexity for control purposes, because the lower the values are, the higher is the number of coefficients to be computed. This amount of data increases controller computational complexity but on the other hand controller design techniques become simpler.

#### Acknowledgments

Authors would like to thank Inter-Ministerial Commission of Spanish Government (DPI2004-5414, MCYT), Catalan Autonomous Government (VIS, Consolidated Research Group), European Commission (FP6-2005-IST-6, URUS-045062), and Cooperation Spanish Agency for International Development (AECID) for funding this research. Authors also want explicitly to thank reviewers' comments that have largely improved this article.

#### References

- X. Litrico, “Modélisation et commande robuste de systèmes barrage-rivière,”
*La Houille Blanche*, no. 3-4, pp. 86–90, 2001. View at Google Scholar - J. A. Cunge, F. M. Holly, and A. Verwey,
*Practical Aspects of Computational River Hydraulics*, Pitman Advanced Publishing, London, UK, 1980. - X. Litrico and V. Fromion, “Variations autour de la Performance Optimale de Systèmes Hydrauliques à Surface Libre,” in
*Colloque Automatique et Agronomie*, pp. 197–207, INRA, Montpellier, France, 2003. View at Google Scholar - X. Litrico and V. Fromion, “Analytical approximation of open-channel flow for controller design,”
*Applied Mathematical Modelling*, vol. 28, no. 7, pp. 677–695, 2004. View at Publisher · View at Google Scholar · View at Zentralblatt MATH - X. Litrico and V. Fromion, “Frequency modeling of open-channel flow,”
*Journal of Hydraulic Engineering*, vol. 130, no. 8, pp. 806–815, 2004. View at Publisher · View at Google Scholar - Y. Bolea, J. Blesa, and V. Puig, “LPV modelling and identification of an open canal for control,” in
*Proceedings of the European Control Conference (ECC '07)*, Kos, Greece, 2007. View at Publisher · View at Google Scholar - S. K. Ooi, M. P. M. Krutzen, and E. Weyer, “On physical and data driven modelling of irrigation channels,”
*Control Engineering Practice*, vol. 13, no. 4, pp. 461–471, 2005. View at Publisher · View at Google Scholar - E. Weyer, “System identification of an open water channel,”
*Control Engineering Practice*, vol. 9, no. 12, pp. 1289–1299, 2001. View at Publisher · View at Google Scholar - L. Ljung,
*System Identification: Theory for the User*, Prentice-Hall, Englewood Cliffs, NJ, USA, 1987. - D. J. Leith and W. E. Leithead, “Survey of gain-scheduling analysis and design,”
*International Journal of Control*, vol. 73, no. 11, pp. 1001–1025, 2000. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - W. J. Rugh and J. S. Shamma, “Research on gain scheduling,”
*Automatica*, vol. 36, no. 10, pp. 1401–1425, 2000. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - D. J. Leith, R. N. Shorten, W. E. Leithead, O. Mason, and P. Curran, “Issues in the design of switched linear control systems: a benchmark study,”
*International Journal of Adaptive Control and Signal Processing*, vol. 17, no. 2, pp. 103–118, 2003. View at Publisher · View at Google Scholar · View at Zentralblatt MATH - X. Litrico and D. Georges, “Robust continuous-time and discrete-time flow control of a dam-river system. (II) Controller design,”
*Applied Mathematical Modelling*, vol. 23, no. 11, pp. 829–846, 1999. View at Publisher · View at Google Scholar · View at Zentralblatt MATH - J. Abonyi and R. Babuska, “Local and global identification and interpretation of parameters in Takagi-Sugeno fuzzy models,” in
*Proceedings of the IEEE International Conference on Fuzzy Systems*, vol. 2, pp. 835–840, San Antonio, Tex, USA, 2000. - B. Bamieh and L. Giarré, “Identification of linear parameter varying models,”
*International Journal of Robust and Nonlinear Control*, vol. 12, no. 9, pp. 841–853, 2002. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - V. Feliu, R. Rivas, and F. J. Castillo, “Fractional robust control to delay changes in main irrigation canals,” in
*Proceedings of the 16th IFAC World Congress*, Prague, Czech Republic, 2005. - I. Podlubny,
*Fractional Differential Equations*, vol. 198 of*Mathematics in Science and Engineering*, Academic Press, San Diego, Calif, USA, 1999. View at MathSciNet - D. W. Marquardt, “An algorithm for least-squares estimation of nonlinear parameters,”
*SIAM Journal on Applied Mathematics*, vol. 11, pp. 431–441, 1963. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - J. J. Moré, “The Levenberg-Marquardt algorithm: implementation and theory,” in
*Numerical Analysis*, G. A. Watson, Ed., vol. 630 of*Lecture Notes in Mathematics*, pp. 105–116, Springer, Berlin, Germany, 1978. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - R. Malti, S. Victor, O. Nicolas, and A. Oustaloup, “System identification using fractional models: state of the art,” in
*Proceedings of the ASME International Design Engineering Technical Conferences and Computers and Information in Engineering Conference (DETC '07)*, pp. 295–304, Las Vegas, Nev, USA, 2007. - Y. Bolea, V. Puig, J. Blesa, M. Gómez, and J. Rodellar, “An LPV model for canal control,” in
*Proceedings of the 10th IEEE International Conference on Methods and Models in Automation and Robotics (MMAR '04)*, Miedzyzdroje, Poland, 2004. View at Publisher · View at Google Scholar - E. F. Camacho,
*Model Predictive Control*, Springer, New York, NY, USA, 1999. - J. Schuurmans,
*Control of water levels in open-channels*, Ph.D. thesis, Delft University of Technology, Delft, The Nederlands, 1997. - V. T. Chou,
*Open Channel Hydraulics*, MacGraw-Hill, New York, NY, USA, 1959. - J. Schuurmans, O. H. Bosgra, and R. Brouwer, “Open-channel flow model approximation for controller design,”
*Applied Mathematical Modelling*, vol. 19, no. 9, pp. 525–530, 1995. View at Publisher · View at Google Scholar · View at Zentralblatt MATH - X. Litrico, V. Fromion, and J.-P. Baume, “Tuning of robuts distant downstream PI controllers for an irrigation canal pool: (II) implementation issues,”
*Journal of Irrigation and Drainage Engineering*, vol. 132, no. 4, pp. 369–379, 2006. View at Publisher · View at Google Scholar - R. S. Sánchez-Peña, Y. Bolea, and V. Puig, “MIMO Smith predictor: global and structured robust performance analysis,”
*Journal of Process Control*, vol. 19, no. 1, pp. 163–177, 2009. View at Publisher · View at Google Scholar - Y. Bolea, V. Puig, and J. Blesa, “Gain-scheduled smith PID controllers for LPV systems with time varying delay: application to an open-flow canal,” in
*Proceedings of the 17th IFAC World Congress*, Seoul, South Korea, 2008. View at Publisher · View at Google Scholar