Adaptive Receding Horizon Control of a Distributed ... - CiteSeerX

0 downloads 0 Views 203KB Size Report
Dec 15, 2005 - literature on adaptive receding horizon control for nonlinear systems is scarce, with [1] providing a significant example. As for MPC (Model ...
Proceedings of the 44th IEEE Conference on Decision and Control, and the European Control Conference 2005 Seville, Spain, December 12-15, 2005

MoIB18.4

Adaptive Receding Horizon Control of a Distributed Collector Solar Field J.M. Igreja, J. M. Lemos∗ and R. N. Silva Abstract— This paper presents an adaptive receding horizon control algorithm for a distributed collector solar field which explicitly explores its distributed parameter character. The plant considered is a distributed collector solar field, being described by a nonlinear hyperbolic partial differential equation (PDE) which models the temperature dynamics. A lumped parameter model is obtained by applying Orthogonal Collocation. This model is then used as a basis for controller design. Stability is ensured for the lumped parameter model by resorting to Control Lyapunov function methods. Simulation results using a detailed physically based simulator of the solar field are provided.

I. INTRODUCTION Distributed collector solar fields are the subject of a rich bibliography, which investigates many theoretical and practical aspects concerning their dynamics and control. See [4], [9] for a detailed review and references covering a wide variety of control design methods. The interest for such research topic stems from the economic relevance of renewal energies to modern society as well as from pure scientific interests. Indeed, distributed collector solar fields are representative of an important class of distributed parameter plants in which transport phenomena of mass and energy with no diffusion occurs in one dimension. Therefore, studying this problem sheds light on the control of a class of plants with great technological interest. Furthermore, the availability of such a field for open experiments at Plataforma Solar de Almeria (PSA), located in the south of Spain, stimulated the studies performed by several research groups.

Fig. 1. A view of one collector loop with the pipe in the focus of the concentrating mirrors. J. M. Igreja is with INESC-ID and ISEL, R. Alves Redol 9 1000-029 Lisboa, Portugal [email protected] J. M. Lemos is with INESC-ID and IST, R. Alves Redol 9 1000-029 Lisboa, Portugal [email protected] ∗ Corresponding author. R. N. Silva is with FCT,UNL, Monte da Caparica 2829-516 Caparica, Portugal [email protected] This work was supported by the project FLOW POSI/EEASRI/61188/2004.

0-7803-9568-9/05/$20.00 ©2005 IEEE

The ACUREX field of PSA, considered here as a case study, is made of curved mirrors which concentrate direct incident sun light in a pipe located at their focus. Inside this pipe flows an oil able to store thermal energy Fig. 1 shows a view of one collector loop with the pipe in the focus of the concentrating mirrors. In broad terms, the control objective consists in manipulating the oil flow such that the temperature of the oil at the outlet of the pipe tracks a prescribed reference value. This paper presents a still unexplored approach to the control of distributed collector solar fields. Starting from a partial differential equation (PDE) which represents the dominant plant dynamics, a lumped parameter nonlinear (bilinear) model is obtained by applying Orthogonal Collocation [11], [8]. This lumped model is then used as a basis to design an adaptive controller based on the use of Control Lyapunov Functions [10], [7], as in [1]. Predictive control based on the receding horizon method is a powerful idea, which has been used with success for nonlinear plants [2]. Nevertheless, as discussed in [6], the literature on adaptive receding horizon control for nonlinear systems is scarce, with [1] providing a significant example. As for MPC (Model Predictive Control) applications to systems described by hyperbolic PDEs, [14] describes a method in which the distributed model is converted into ODEs using PDE characteristic curves. The resulting ODEs are linearized for prediction. The method is applied to a tubular reactor with no diffusion in which two series reactions occur, the manipulated variable being the fluid velocity. According to the authors, one of the advantages is the reduction of the computational load, but this advantage is lost when the model includes more than one variable. The paper [12] applies MPC with active constraints to a parabolic PDE model of autoclave composite processing. The model approximation is performed implicitly by the optimization routine of the controller, the manipulated variable being a boundary condition. The paper [13] applies DMC (Dynamic Matrix Control) to a linearized version of a tubular reactor in which a toluen hydro-dealkylation process takes process. The distributed model is reduced to a lumped parameter model using a projection method (Galerkin’s method) in which the basis functions are obtained by eigenfunctions, singular value decomposition and the Karhunen-Lo`eve expansion. In this case, the models are of parabolic type with constant coefficients (opposite to the situation considered here in which the coefficient of the first order space derivative is the manipulated variable).

1282

None of the above papers considers neither parameter adaptation nor state estimation. Instead, paper [15] describes the adaptive control of a tubular bio-reactor of hyperbolic type in which the distributed model is reduced to a system of ODEs by orthogonal collocation (as in here) the control being based in output feedback linearization assuming complete access to the state of the lumped model. In [5], a strategy combining approximated feedback linearization and MPC for the control of the ACUREX field is described, but stability is not ensured. The contribution of the current paper is twofold: First, it provides an application case study for Receding Horizon Adaptive Control. Second, by using Orthogonal Collocation [11], [8], [15] it applies the methods of [7], [1] to the class of distributed parameters described by hyperbolic PDEs. The paper is organized as follows: After stating the paper’s contributions and relating them to existing literature in this introduction, a reduced complexity solar field model is used in section II, together with Orthogonal Collocation, to obtain a bilinear state space finite dimensional model. The Receding Horizon control law, incorporating a condition which ensures closed loop stability, is obtained in section III and the adaptation law is obtained in section IV. Section V presents simulation results obtained by combining the adaptive receding horizon controller deduced with a detailed physical model. Finally, section VI draws conclusions. II. A REDUCED COMPLEXITY SOLAR FIELD MODEL In this section a distributed parameter model of the solar field is presented and reduced to a lumped parameter model by othogonal collocation. A. Distributed parameter plant model. In simple terms, the ACUREX distributed collector solar field consists of a pipe located at the focus of parabolical concentrating mirrors. Inside the pipe flows an oil which is to be heated. The manipulated variable is the oil speed (proportional to oil flow) and the aim consists in regulating the outlet oil temperature. The main disturbances are the solar radiation intensity and the inlet oil temperature. See [9] for further details on the plant and the associated control problem. For the purposes of this paper, the field may be modelled by the following simple hyperbolic PDE: ∂T (z, t) u(t) ∂T (z, t) + = α R(t) (1) ∂t L ∂z Here, T(z,t) is the oil temperature at normalized position z measured along the field and at time t, u is the oil velocity and R is the intensity of solar radiation, assumed to depend only on time t. The parameter L is the pipe length. The actual space coordinate (measured in [meters]) is given by zL. The parameter α is assumed to be unknown and it will be called ”efficiency”since it is related to mirror efficiency, although it also depends on other factors, such as oil conductivity which is a nonlinear function of temperature. The domains of the variables z and t, representing respectively space and time, are:

z ∈ [0, 1]

t ∈ [0, +∞[

where L is the length of the pipe. Actually, a detailed model of the field is more complicated [4] and such a type of models has been actually used in this work for the purpose of simulation. The point to be made is that eq. (1) provides a description of the dominant nonlinear dynamics of the plant. As shown in [3], [5], this description together with the adaptation of the parameter α is suitable for controller design. B. Orthogonal Collocation. Eq. (1) provides a distributed parameter model of the field and has therefore an infinite dimensional state. According to the approach followed here, before proceeding to controller design, it will be approximated by a lumped parameter model by using the Orthogonal Collocation Method (OCM) [15], [11], [8]. In order to apply the OCM to approximate (1) by a set of ordinary differential equations, it is assumed that the temperature along the pipe T (z, t) is represented by the weighted sum T (z, t) =

N +1 

ϕi (z) Ti (t)

(2)

i=0

where the functions ϕi (z) are Lagrange interpolation polynomials, orthogonal at the so called interior collocation points zi for i=1,..., N and at the boundary collocation points z0 and zN +1 . The polynomials ϕi (z) verify thus at the collocation points  1 i=j ϕi (zj ) = (3) 0 i = j Inserting (2) into eq.(1) results in the ordinary differential equation verified by the time weights Ti (t): N +1 

ϕi (z)

i=0

N +1 dTi (t) u  dϕi (z) =− Ti (t) + α R(t) (4) dt L i=0 dz

Compute now (4) at each of the collocation points z = zj . Since (3) holds, and individuating the term i = 0 corresponding to the boundary conditions, it follows that N +1  dTj (t) dϕ0 (zj ) u  dϕi (zj ) =− Ti (t) + T0 (t) +αR(t) dt L i=1 dz dz (5) By making j = 1, . . . , N + 1, i. e. by considering all the collocation points apart from the first, the PDE (1) is therefore approximated by n=N+1 ordinary differential equations (ODE). The state of this nonlinear ODE system is given by the temperatures at the collocation points. In matrix form, this lumped parameter model is written x˙ = − where

1283

x=

u (Ax + Bx0 ) + C α R(t) L



T1

T2

· · · TN +1

T

(6)

(7)

with Ti (t) ≡ T (zi , t), the matrices A, B and C are given by: ⎡ ⎤    ϕ2 (z1 ) ··· ϕN +1 (z1 ) ϕ1 (z1 )    ⎢ ϕ (z2 ) ϕ2 (z2 ) ··· ϕN +1 (z2 ) ⎥ 1 ⎢ ⎥ A=⎢ ⎥ (8) .. .. .. .. ⎣ ⎦ . . . .    ϕ1 (zN +1 ) ϕ2 (zN +1 ) · · · ϕN +1 (zN +1 ) ⎡ ⎤ ⎡ ⎤  ϕ0 (z1 ) 1 ⎢ ϕ (z2 ) ⎥ ⎢ 1 ⎥ 0 ⎢ ⎥ ⎢ ⎥ B=⎢ C=⎢ . ⎥ (9) ⎥ .. ⎣ ⎦ ⎣ .. ⎦ . 

ϕ0 (zN +1 ) where 

ϕj (zi ) ≡

1

dϕj (z) |z=zi dz

(10)

The receding horizon controller (RHC) is now designed as in [7] such as to regulate the state around an equilibrium point, together with a condition which ensures stability in closed loop. For that sake, and motivated by the approximate feedback linearizing control law of [3], define the control law given by α R∗ L (11) u∗ = ∗ r − x0 where r∗ is the set-point of the outlet oil temperature x∗n . Let x∗ be the corresponding equilibrium state and consider the dynamics of the error e = x − x∗ . This is obtained by subtracting equation (6) and

where P is an arbitrary symmetric positive definite matrix. The constraint (16) is equivalent to impose to the RHC that, at each iteration, the norm of the error at the end of the optimal sequence is bounded by the same norm resulting from the error when u = u∗ . The existence of a control law, defined for u = u∗ , which stabilizes the closed loop, allows to interpret V0 as a Control Lyapunov Function [10] and is a sufficient condition to ensure Global Asymptotic Stability of the loop closed by the RHC [7].

In this section a state estimator and an adaptation law which are asymptotically stable when inserted in the closed loop are obtained.

(12)

−A e − A x∗ − B x0 −A ∗ ˜ (13) u e+ u ˜+C αR L L ˜ = R − R∗ . As shown in the where u ˜ = u − u∗ and R ˜ Appendix, for u ˜ = 0 and R = 0 the error dynamics is stable whenever the matrix A¯ = − A L is stable. It is not easy to prove a general result concerning the stability of matrix A when generated by the OCM and hence, its eigenvalues must be checked for each application. Define then the RHC for the error dynamics by

To (6) associate the state estimator with output error reinjection, where x ˆ is the estimate of x: u x ˆ˙ = − (Aˆ ˆ R(t) + K(t)(y − Dˆ x) x + Bx0 ) + C α L   y = Dx = 0 0 · · · 1 x (19) ˆ verifies: The error dynamics e1 := x − x u ˆ ) R(t) − K(t)D e1 e˙1 = − A e1 + C (α − α L with K(t) the observer gain, or, else, by e˙1 (t) = Ae e1 + C α ˜ R(t)

u

t+T t

eT (τ )P e(τ ) + γ u ˜2 (τ )dτ

(14)

−A e − A x∗ − B x0 −A ∗ u e+ u ˜ L L V0 (t + T ) ≥ Vrhc (t + T )

u Ae := − A − K(t)D L B. Lyapunov adaptation law

(22)

Consider the candidate Lyapunov function V1 = eT1 Qe1 +

1 2 α ˜ γ

(23)

where γ > 0 is a parameter, Q is a positive definite matrix and the parameter estimation error α ˜ is defined as α ˜ (t) := α−α ˆ (t) where α ˆ is the estimate of α. Its derivative is given by: 2 ˙ V˙ 1 = eT1 (ATe Q + QAe )e1 + 2α ˜ (CR(t))T Qe1 + α ˜α ˜ (24) γ Stability holds if

from which the following adaptation law follows: (15)

α ˆ˙ = ρ(CR(t))T Qe1

(16)

It is remarked that M (t) > 0 is ensured by the following choice of the observer gain: u (26) K(t) = K0 L

in which r∗ is given by (11), V0 (T ) = eT0 (T )P e0 (T )

(21)

˜˙ = −ρ(CR(t))T Qe1 −M (t) = (ATe Q + QAe ) < 0 and α

subject to e˙ =

(20)

where

e˙ =

min J =

(18)

A. State observer

III. T HE RECEDING HORIZON CONTROLLER .

u∗ (Ax∗ + Bx0 ) + C α R∗ L The error dynamics is given by

Vrhc (T ) = eT (T )P e(T )

IV. A DAPTATION LAW.

and T0 (t) is the boundary condition.

x˙ ∗ = −

where e0 = x − x∗ and x is obtained with u = u∗ + u ˜ and

(17)

1284

(25)

5

Indeed, since the velocity u is bounded above and below by strictly positive values: umax ≥ u ≥ umin > 0

4

(27)

3

this choice of K(t) yields

2

ATe Q + QAe =

1 Im(s)

 |u|  (−A − K0 D)T Q + Q(−A − K0 D) = L |u| (28) = − M0 = −M (t) L with the matrix M0 selected as the positive definite solution of the Lyapunov equation =

(−A − K0 D)T Q + Q(−A − K0 D) = −M0

0

−1

−2

−3

−4

(29)

−5 −5

−4.5

which exists if the pair (A, D) is observable and choosing K0 such that −A − K0 D is stable. This ensures stability because, from (28) and the adaptation law (25): |u| umax T V˙ 1 = −eT1 M (t)e1 = − eT1 M e1 ≤ − e1 M e1 ≤ 0 L L (30) By La Salle’s Invariance Principle, it follows that ˜ (t) limt→0 e1 (t) = 0. The parameter estimation error α will tend to zero if u satisfies a persistency of excitation condition. C. RHC computational algorithm A computational efficient version of the the adaptive RHC is thus given by

t+T eT (τ )P e(τ ) + γ u ˜2 (τ )dτ (31) min J = u1 ,...,uNu

t

subject to x˙ = x(t) = u(t¯) = umax ≥ V0 (x(t + T )) ≥

u ˆ R(t) (Ax + Bx0 ) + C α L x ˆ(t) seq{u1 , . . . , uNu } −

Fig. 2.

−3

−2.5 −2 Re(s)

−1.5

−1

−0.5

0

0.5

Eigenvalues of matrix −A/L.

If the minimization is not feasible, than one may apply u(t) = u∗

(33)

which preserves the closed loop stability. V. S IMULATION RESULTS . Simulation results of the proposed RHC have been performed in a detailed model of the solar field [4] using experimental sequences for R(t) and T0 (t). The reduced model uses 3 interior collocation points z = [0.113 0.500 0.887]. Matrix A is given by ⎡ ⎤ 3.87298 2.06559 −1.29099 0.67621 ⎢ −3.22749 0.00000 3.22749 −1.50000 ⎥ ⎥ A=⎢ ⎣ 1.29099 −2.06559 −3.87298 5.32379 ⎦ −1.87836 2.66667 −14.78831 13.00000

γ = 1 × 105 K0 = [15 15 15 15]T

with V0 computed by (17) with x and α replaced by their estimates. The estimate of u∗ is given by: α ˆ R(t) L r(t) − x0 (t)

−3.5

and the eigenvalues of −A/L have all negative part (fig 2). In order to configure the controller. the following parameter choices have been made:

u ≥ umin > 0 Vrhc (xt + T ))

u ˆ∗ =

−4

(32)

Here, x ˆ and α ˆ are obtained using the state estimator (19), the adaptation law (25), u(t¯) is a sequence of step functions with amplitude ui (i = 1, . . . , Nu ) and duration NTu The variable t¯ represents time during the minimization horizon t¯ ∈ [0, T [. Once the minimization result u(t¯) is obtained, according to a receding horizon scheme u1 is applied to the plant at t + δ and the whole process is restarted, δ being an interval of time which is at least the time needed to compute the solution.

ρ = 1.5 × 10−10 Hereafter, two sets of simulations are reported, with different values of the horizon T and Nu selected accordingly. In the first: T = 60 s Nu = 2 In the second: T = 180 s

Nu = 26

Figures (3) through (6) show the results for the controller configuration with T = 60 s, while figures (7) through (9) show the results for the configuration with T = 180 s. Apart from the value of Nu (number of ”strips”in which the prediction horizon is decomposed for the numerical

1285

computation of the control sequence), the major difference between these two controller configurations is the prediction horizon T which is larger in the second case. As expected, a larger horizon yields smoother input and output signals. Comparing fig. 3 (T = 60) with 7 (T = 180) it is seen that, by increasing the horizon the output response becomes less oscillatory. This is also true for the manipulated variable (compare fig. 5, T = 60, with fig. 8, T = 180). The test planned includes a strong and fast disturbance at time 4.5h, as seen in the radiation plots of both figs.5 and 8. This disturbance is very well rejected. See fig. 4 for a detail of the response in the case of the horizon T = 60 s. Comparing the estimates of mirror efficiency α, fig. 6 (T = 60) and fig. 9 it is seen that with the larger horizon the convergence is slightly slower, but the reference transitions disturb it less, a consequence of the improvement in control performance.

9

8

7

6

5

4

3

2

0

1

2

3

4

5

6

7

Time [h]

Fig. 5. Closed loop with RHC having T = 60 s. Radiation (disturbance – above) (×1 × 10−2 ) [W/m2 ] and oil flow (manipulated variable – below) (×1 × 104 ) l/s.

300 −4

12

x 10

250 11

200

10

9

150 8

100 7

50

6

5

0

0

1

2

3

4

5

6

7

Time [h] 4

Fig. 3. Closed loop with RHC having T = 60 s. Outlet oil temperature and reference and temperature estimates at the collocation points.

0

1

2

3

4

5

6

7

Time [h]

Fig. 6. Closed loop with RHC having T = 60 s. Mirror efficiency estimate, α. ˆ

300 270

265

250

260

200 255

250

150

245

100 240

235

50

230 1.5

2

2.5

3

3.5 4 Time [h]

4.5

5

5.5

0

6

0

1

2

3

4

5

6

7

Time [h]

Fig. 4. Closed loop with RHC having T = 60 s. Outlet oil temperature and reference. Detail

Fig. 7. Closed loop with RHC having T = 180 s. Outlet oil temperature and reference and temperature estimates at the collocation points.

1286

provides an approach which can be used in a class of plants of technological interest. Furthermore, it provides a case study on adaptive nonlinear receding horizon control, extending recent algorithms to distributed parameter plants.

9

8

7

VII. A PPENDIX Consider the linear time varying equation

6

¯ ∗ (t)e(t) e(t) ˙ = Au

5

with 4

3

2

0

1

2

3

4

5

6

7

Time [h]

Fig. 8. Closed loop with RHC having T = 180 s. Radiation (disturbance – above) (×1 × 10−2 ) [W/m2 ] and oil flow (manipulated variable – below) (×1 × 104 ) l/s.

0 < umin ≤ u∗ (t) ≤ umax

∀t≥0

(35)

¯ and such that A¯ = −A/L is a stability matrix with λ a negative number greater than the largest real part of its eigenvalues. Use the Gronwall-Bellman inequality [16] to conclude that

t ¯ ∗ (τ )dτ } e(t) ≤ e(0)exp{ Au (36) 0

Considering (35), this implies ¯

e(t) ≤ e(0)eλumin t

−4

12

(34)

x 10

(37)

¯ < 0, this establishes asymptotic stability of (34). Since λ

11

R EFERENCES 10 9 8 7 6 5 4

0

1

2

3

4

5

6

7

Time [h]

Fig. 9. Closed loop with RHC having T = 180 s. Mirror efficiency estimate, α. ˆ

VI. D ISCUSSION AND C ONCLUSIONS . Adaptive nonlinear receding horizon control of a distributed collector solar field has been address. A distributed parameter model which represents the dominant dynamics of the field is used as a basis for control design. In order to apply receding horizon control, a lumped parameter model is generated by using the Orthogonal Collocation method. This results in a low order finite state bilinear model. For the same level of approximation, finite difference methods would require a much higher order. Receding horizon minimization of a functional with adequate constraints is then performed. It should be mentioned that stability of the closed loop with the RHC is ensured only when the state is available for direct measurement. The approach has been tested in a detailed physical plant model with good results. The interest of the work reported is twofold: First, it

[1] Adetola, V. and M. Guay (2004). Adaptive receding horizon control of nonlinear systems. Proc. 6th IFAC Symp. on Nonlinear Control Systems – NOLCOS 2004, Stuttgart, Germany, 1055-1060. [2] Allg¨ower, F. and A. Zheng (eds.) (2000) Nonlinear Model Predictive Control: Assessment and Future Directions, Birkhauser. [3] Bar˜ao M., Lemos J. M. and Silva, R. N (2002). Reduced complexity adaptative nonlinear control of a distributed collector solar field, J. of Process Control, 12:131-141. [4] Camacho, E. F., Berenguel, M., Rubio, F. (1994) Advanced Control of Solar Plants, Springer-Verlag. [5] Igreja, J. M.; J. M. Lemos, M. Bar˜ao and R. N. Silva(2003). Adaptive Nonlinear Control of a Distributed Collector Solar Field. Proc. of European Control Conference 2003, ECC03, Cambridge U. K. [6] Mayne, D. Q., J. B. Rawlings, C. V. Rao and P. Scokaert (2000). Constrained model predictive control: Stability and Optimality. Automatica, 36(6):789-814. [7] Primbs, J. A., V. Nevisti´c and J. Doyle (1998). A Receding Generalization of Pointwise Min-Norm Controllers, citeseer.nj.nec.com, 1998. [8] Rice, G. R. and D. D. Do (1995). Applied Mathematics and Modeling for Chemical Engineers, John Willey & Sons. [9] Silva, R. N., J. M. Lemos and L. M. Rato (2003). Variable sampling adaptive control of a distributed collector solar field. IEEE Trans. Control Syst. Technol., 11(5):765-772. [10] Sontag, E. (1998). Mathematical Control Theory Springer-Verlag, 2nd Ed. [11] Villadsen, J. and M. L. Michelsen (1978). Solution of Differential Equation Models by Polynomial Approximations, Prentice-Hall, Englewood Cliffs, NJ. [12] Dufour, P., Michaud, D. J., Tour´e, P. S., Dhurjati, P. S., A partial differencial equation model predictive control strategy: application to autoclave composite processing, Computer & Chemical Enginieering 28 (2004) 545-556. [13] Zheng, Hoo, K. A., Low-order model identification for implementable control solutions of distributed parameter systems, Computer & Chemical Enginieering 26 (2002) 1049-1076. [14] Shang, H., Forbes, J. F., Guay, M., Characteristic-based Model Predicitve Control of Distributed Parameter Systems, in proceedings of the American Control Conference, 2002. [15] Dochain, D., Babary, J. P., Tali-Maamar, Modelling and Adaptive Control of a Nonlinear Distributed Parameter Bioreactors via Orthogonal Collocation, Automatica, Vol. 28, No. 5, pp. 873-883, 1992. [16] W. J. Rugh. Linear System Theory. 2nd ed. (1996). Prentice- Hall.

1287