Parallelized POD-based suboptimal economic model predictive control of a state-constrained Boussinesq approximation
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1016/j.camwa.2021.09.004
- 저널
- Computers & Mathematics with Applications
- 발행년도
- 2021
- 발행기관
- Elsevier BV
- 피인용수
- 4
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.camwa.2021.09.004
- 토픽
- Heat and Mass Transfer in Porous Media
- OpenAlex ID
- W3202051021
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
초록이 없습니다.
본문 43,394자
본문 펼치기
섹션 본문 103문단 · 40,518자
(제목 없음)
1Motivated by an energy efficient building application, we want to optimize a quadratic cost functional subject to the Boussinesq approximation of the Navier-Stokes equations and to bilateral state and control constraints. Since the computation of such an optimal solution is numerically costly, we design an efficient strategy to compute a sub-optimal (but applicationally acceptable) solution with signifcantly reduced computational effort. We employ an economic Model Predictive Control (MPC) strategy to obtain a feedback control. The MPC sub-problems are based on a linear-quadratic optimal control problem subjected to mixed control and state constraints and a convectiondiffusion equation, reduced with proper orthogonal decomposition. To solve each sub-problem, we apply a primal-dual active set strategy. The method can be fully parallelized, which enables the solution of large problems with real-world parameters.
Introduction
2Coupled heat-convection phenomena like those occurring in heating, cooling and airconditioning (HVAC) of residual buildings can be accurately modeled by the incompress-ible Navier-Stokes equations; see [2,38,40], for instance. These equations describe how the physical quantities temperature, air velocities and pressure are connected and how they influence each other. While the underlying physical principles are completely described by the equations, working with them directly for the purpose of control of HVAC processes has turned out to be challenging due to the high computational complexity. Instead, simplified models of varying granularity are used in control applications.
3One common simplification that still retains much of the relevant physical relations in the HVAC regime is the Boussinesq approximation [38,40]. The general idea is to reduce the coupling between heat and airflow by only considering bouyancy induced changes of the fluid velocity. More specifically, we only consider density variations along the gravity field which lead to, e.g., the rise of warmer air. Although we obtain a simplified model, this simplification is not enough to prevent high computational cost for computing its solution. Many degrees of freedom (DOFs) are in fact necessary to accurately capture the involved dynamics, especially when dealing with real-world parameters; see, e.g., [5].
4One viable approach is to apply model order reduction (MOR). This field was extensively developed during the last two decades and several techniques were proposed. Among all, in case of computational fluid dynamics, proper orthogonal decomposition (POD) seems the one to guarantee best performances for nonlinear dynamical systems; see, e.g., [6,24,37]. In the particular case of the Boussinesq approximation, the PODbased MOR approach is also certified by an a-posteriori error analysis [32,33], that guarantees the validity of approximation for the computed reduced order model. Due to the request of computing many PDE solutions, MOR techniques are naturally applied in the field of optimal control. In [22], for example, a POD-based model predictive control (MPC) algorithm is considered to approximate a feedback solution to the Boussinesq equation.
5MPC is a well-established model-based control method, sometimes also called Receding Horizon Control; cf. [16,34]. The key idea is to decompose an infinite time horizon optimal control problem into several finite horizon sub-problems and, therefore, to optimize predictions of the model behavior in relatively short time. After a sub-problem is solved, the initial part of the computed optimal control is stored and used as feedback control, the time horizon is shifted and it is possible to update the problem parameters before the procedure is iterated. This technique is particularly useful in HVAC applications. It permits, in fact, to merge predictions, such as weather forecast, with system measurements [30,43]. Let us mention that POD-based MPC is considered also in [10,12,27,29] for different models. Furthermore, we are particularly interested in economic MPC; cf. [4,9,11,17,19,31]. In this particular branch of MPC, more general cost functionals than those employing tracking type costs are allowed. In our specific application, the cost functional depends only on the control variables, without any dependence on the state variable. The focus is then to keep the system trajectory inside pre-defined bounds with less control effort as possible and it deals perfectly with the usual requests of HVAC applications.
6This work aspires to unify the above mentioned contributions in a reliable method, in order to compute a suboptimal solution to an optimal control problem subject to the Boussinesq approximation and bilateral state and control constraints. In particular, starting from [5,27,31], we propose a POD-based economic MPC scheme which considers linear-quadratic subproblems governed by convection-diffusion equations with a virtual control approach [26,27] and possible updates of the reduced order model through parallel solution of the Boussinesq approximation [5]. Furthermore a primal-dual active set strategy (PDASS) [21,25] is considered to solve each sub-problem. The goal is to have a robust and reliable method that speeds up the computational time.
7In Section 2, we present the optimal control problem. Section 3 describes the virtual control approach and the PDASS for linear-quadratic optimal control problems, while Section 4 contains a brief explanation of the POD method and the a-posteriori error estimate. The POD-based economic MPC algorithm is explained in Section 5 and further details about the implementation are given in Section 6. Finally, we test our algorithm for a simplified problem in Section 7.
82 The setting of the optimal control problem The Boussinesq approximation of the Navier-Stokes equations is described by the following PDE:
9where v : Q → R 2 is the air velocity, p : Q → R stands for the air pressure, and y : Q → R is the temperature, Ω ⊂ R 2 denotes an open and bounded domain with sufficiently smooth boundary, T > 0 is the time horizon, g ∈ R 2 is the gravitational acceleration, v • , y • are given initial conditions andỹ ∈ R is the reference temperature at which we measure:
10• the (constant) density ρ > 0,
11• the (constant) kinematic viscosity ν > 0,
12• the (constant) coefficient of thermal expansion α > 0,
13• the (constant) thermal conductivity κ > 0,
14• the (constant) isobaric specific heat c p > 0 of the studied fluid (air in our case). In addition, we consider time-varying boundary conditions of the following form
15Γ c Γ \ Γ c Figure 1: Domain Ω in case of underfloor heating system.
16where Γ = ∂Ω and γ, γ c > 0 are fixed parameters. The function u ∈ U = L 2 (0, T ) is a control input placed at a predefined part of the domain's boundary, namely Γ c , and it represents a device for controlling the temperature in the room, e.g. a radiator or an underfloor heating system; cf. Figure 1. The quantity y out ∈ L 2 (0, T ) represents the outside temperature. We are interested in the weak solution to (1). For more details of the straightforward variational formulation for (1) we refer to [2,38] and [22] for more details.
17The goal is to minimize the control effort while keeping the temperature y inside desired bounds, i.e. we are interested in minimizing
18subject to (s.t.) the weak formulation of (1) and the inequality constraints
19Here y is the (weak) solution of (1), u a , u b ∈ U given control constraints and y a , y b ∈ C(Q) given state constraints. It follows from [38, Chap. III, §3] that (1) admits a unique weak solution
20where V = H 1 (Ω) and the Hilbert spaceṼ is the closure of the space {v ∈ C ∞ 0 (Ω) 2 | ∇ · v = 0} with respect to the norm · V ×V . Moreover, we have W (0, T ;Ṽ ) = L 2 (0, T ;Ṽ ) ∩ H 1 (0, T ;Ṽ ), and the set W (0, T ; V ) is defined analogously; see [8,Chap. XVIII] for more details. Thus, considering the control-to-state map
21and the admissible set U B,ad = u ∈ U u and y = S B (u) satisfy (2b) and (2c), respectively , problem (2) can be rewritten as the following purely control-constrained optimization problem min J (u) s.t. u ∈ U B,ad .
22We call (P B ) the reduced problem because -in contrast to (2) -it is an optimization problem in the control variable only. Note that (P B ) admits a global solutionū B ∈ U B,ad provided U B,ad has non-empty interior; cf., e.g., [23]. Throughout the work a bar indicates optimality.
23While the Boussinesq approximation already reduces numerical effort for simulation of the fluid processes compared to the full compressible Navier-Stokes equations, the nonlinearity induced by the two-way coupling of temperature and velocity still makes it computationally infeasible, when it is used, e.g., as the prediction model in an MPC scheme. This is because each step of the MPC algorithm typically requires many evaluations of the prediction model, which would be too costly for an online application of the method.
24For that reason we elaborate a simplified strategy that aims at decreasing the computational cost significantly. We introduce several simplifications from a model and optimal control perspectives. At first, we notice that the buoyancy effect in the Boussinesq model has a big impact only for large time horizons, therefore in the MPC open-loop problem, one can consider to fix the current velocity field v and solve only the linear convection-diffusion equation (1d).
25However, we will still carry out occasional simulations of the Boussinesq approximation in order to generate the source for so-called snapshots of the system state. From those we can then construct a local (with respect to time) reduced-order model of the convectiondiffusion equation (1d) system using POD. This reduced model summarizes information about the essential dynamics currently going on in the system and is much smaller than the original system which allows us to use it for fast computation of an approximated solution of optimal control problems within the MPC algorithm.
26One may ask, why not performing POD directly for the coupled system (1), as in [32,33]. Although this is a viable approach, the use of the velocity field v as datum of the problem and not as unknown improves and simplifies further the POD approximation. This has the double advantage of using less basis functions and easier (mathematically and computationally) a-posteriori error estimator for the problem, which may result in tighter estimates compared to the one for the fully coupled system.
27The last challenge is caused by the state constraints. These do not guarantee the existence of regular (L 2 ) Lagrange multipliers (cf. e.g. [42]) , introducing additional computational effort. To overcome this issue, we employ a virtual control approach together with a primal-dual active set strategy.
Virtual control approach and PDASS for the linear-quadratic problem
28As mentioned in Section 2, as first simplification we assume that the velocity field v is given and we focus on a model based only on the heat equation (1d)-(1e) with convection together with the boundary conditions (1g)-(1h). It is well-known that this equation admits a unique weak solution y ∈ Y = W (0, T ; V ) for any given control u ∈ U; cf., e.g., [8]. Let S : U → Y be the control-to-state map for the heat equation, then we define the admissible set of controls U ad = u ∈ U u and y = S(u) satisfy (2b) and (2c), respectively .
29We are, thus, interested in solving the strictly convex optimal control problem
30which admits a unique solutionū if the set U ad has non-empty interior; see, e.g., [23]. Note that the difference between (P B ) and (P) relies on the different control-to-state map, i.e. on the different underlying state model. As said, we expect thatū B andū will be close for short time horizon T , since the buoyancy effect influences the temperature trajectory y only on larger time scales. This will allow computing a good enough approximation of the velocity field v for (1d), to be used as datum of the problem. We will explain in Section 6 how we compute this approximation. What is important to clarify now is how to compute the solution to (P). As mentioned, the presence of pointwise state constraints leads to non-regular Lagrange multipliers; cf. [7,35,36]. To overcome this issue, we apply a virtual control approach as in [26,27,28]. Let w ∈ W = L 2 (Q) be an additional (artificial) control. For given ε > 0 we relax the bilateral state constraints (2c) as follows:
31and introduce the artificial constraints
32with fixed (safeguard) scalars w a 0 and w b 0, i.e., sufficiently small and large, respectively. Furthermore, we define the admissible set of controls Z ε ad = (u, w) ∈ U × W u, w and S(u) satisfy (2b), (3), (4) . Now we are interested in solving
33with σ > 0. Note that (P ε ) admits a unique solution (ū ε ,w ε ) ∈ U × W for each ε > 0 provided Z ε ad has non-empty interior (cf. [23,27]).
Remark 1.
34We point out that the artificial bounds w a , w b are necessary to guaranteē u ε →ū in U as ε → 0 with an order of convergence O( √ ε); cf. [27, Section 1.3.3]. They can be omitted if ε is taken small but fixed. In this case, the existence of a unique solution is still guaranteed [28]. Moreover, we can choose w a and w b as large in absolute value as one desires, because they do not have any physical meaning [27]. ♦ Let us define the non-symmetric continuous weakly-coercive bilinear form a(t; · , ·) :
35Then the first-order necessary optimality conditions for (P ε ) are as follows (cf. [27]):
36for all ϕ ∈ V and a.e. in [0, T ] and the optimality system
37Moreover,
38for arbitrarily chosen η, η u , η w > 0, where the max-and min-operations are interpreted componentwise in the pointwise everywhere sense.
39Remark 2. The well-defined bounded solution operator A : W → Y is defined as follows: for given β ∈ W the function p = Aβ is the unique solution to
40for given β ∈ W; cf. Remark 2.3 in [28]. Then,p ε = A(β ε ) solves (5b). ♦ Letting ν = (u, w, θ) ∈ N = U × W × W, we define the active sets corresponding to
41Similarly, the associated inactive sets are
42One can solve (5) applying a primal-dual active set strategy or, equivalently, a semismooth Newton method; see, e.g., [21,25,27]. Doing so, at each iteration k of the semi-smooth Newton method we have to solve the following system
43Taking into account (5), conditions (7) lead to the following coupled equations:
44for all ϕ ∈ V and a.e. in (0, T ), together with the conditions
being the indicator functions of the sets
45, respectively. Summarizing, the coupled system of equations (8) can be formulated only in the variables y k+1 and p k+1 :
46where the operators A k 11 and A k 22 are of the form
47and C stands for the heat-convection operator, which does not depend on k. A discretization of (9) leads to a discretized system of the form
48where C stands for the discretized heat-convection operator, which is again independent of k. For further details, we refer to [27]. We summarize the PDASS in Algorithm 1.
Algorithm 1 (Primal-dual active set strategy)
491: Choose starting value ν 0 = (u 0 , w 0 , ϑ 0 ) ∈ N, set k = 0 and flag = false; 2: Determine y 0 = Su 0 and
50Compute the solution (y k+1 , p k+1 ) by solving (10); 6: Compute ν k+1 = (u k+1 , w k+1 , ϑ k+1 ) ∈ N from (7) and set k = k + 1; end if 15: until flag = true; Remark 3. The discrete linear system (10) can be obtained discretizing the primal and dual equations (8), for example, with piecewise linear finite elements (FE) in space and the implicit Euler scheme in time. Let V h ⊂ V be the FE space with dim V h = N x and N t be the number of time steps. Notice that the matrix in (10) has the size
51. Clearly, its dimension may cause problems regarding memory consumption and computational time. In our application, in fact, N x is not small, since a coarse FE grid can not capture the complexity of the dynamics involved. Therefore, we apply POD-based reduced-order modeling to approximate the solution of (10) by a reduced-order system of dimension 2 N t with N x , gaining computational time but paying in approximation; cf. Section 4. The number of time steps may not be small either, since the time horizon T could be extremely large (e.g. one month) and the time step small (e.g. a minute). This is not a disadvantage for us, since because we apply an MPC method, we iteratively solve optimal control subproblems on a smaller time horizon, computing a feedback control that approximates the optimal controlū ε ; cf. Section 5. Finally, note that the matrix in (10) has a sparse block structure that allows to store only the FE matrices, e.g., the mass and stiffness matrices, which have dimension N x ×N x . These blocks will then be projected into the POD space. Doing that we can save memory significantly, in particular when the number of FE nodes is large. Note that, in comparison to the Boussinesq approximation, we gain even more, since in general computing the solution of this model requires an additional picewise quadratic FE approximation of the velocity space, which would definitely become infeasible in combination with the PDASS.
POD and a-posteriori error estimate
52Model order reduction and, in particular, POD is a well established field of numerical analysis, which was intensively developed in the past 20 years. The key idea is to construct a low-dimensional subspace V ⊂ V h = span {ϕ 1 , . . . , ϕ Nx }, spanned by the so-called POD basis functions. For the sake of completeness, in the first part of this section, we describe briefly the POD method in the discrete case, but we focus on one snapshot ensemble for brevity. For more details we refer the reader to [20], for instance. Let t j = j∆t, j = 0, . . . , n, be the time discretization for a suitable time interval with constant time step ∆t > 0. By {y j } n j=0 ⊂ V h we denote a given discrete trajectory, also called snapshots ensemble. We define the snapshot subspace V n = span {y 0 , . . . , y n } ⊂ V h . Let d n = dim V n ≤ n + 1. For any ∈ {1, . . . , d n } we are interested in finding an orthonormal set {ψ i } i=1 ⊂ V n , which is the solution of the following minimization problem
53where δ ij is the Kronecker delta and α j > 0 are given (trapezoidal) weights. We set V = span
54Introducing the weighting matrices D = diag (α 0 , . . . , α n ) ∈ R (n+1)×(n+1) and W = ((W ij )) ∈ R Nx×Nx with W ij = ϕ j , ϕ i V , a solution {ψ j } j=1 to (11) can be computed as follows:
55• Solve the symmetric eigenvalue problem
56• Define the vectors ψ j = Y D 1/2 φ j / λ j ∈ R Nx for 1 ≤ j ≤ and the matrix
57Using a Galerkin ansatz, the reduced-order version of (8) can be derived replacing the test functions ϕ by the POD basis {ψ i } i=1 . We indicate with S the POD solution operator corresponding to the reduced-order model. We can then construct the discretized system A k,
58of which the matrix belongs to R (2 Nt)×(2 Nt) . From (12), one can easily implement a POD-based PDASS following the structure of Algorithm 1. Now, a first question is how to check that the chosen number of POD basis is good enough to guarantee a small approximation error in reconstructing the snapshots. For this, the following error formula holds
59More importantly, to check that the constructed POD basis is able to reconstruct the full-order optimal solutionū ε , we need an a-posteriori error estimator. Letū ε, be the solution of the POD-based PDASS, then the following result from [27] holds:
60ad be the optimal solution to (P ε ). Suppose that z ap = (u ap , w ap ) ∈ Z ε ad is given arbitrarily. Then, there exists a perturbation ζ = (ζ u , ζ w ) ∈ U × W, which is independent of (ū ε ,w ε ), so that
61where σ ap := min{σ, 1} > 0 and T is defined as
62where I U and I W are the identities on U and W, respectively. The perturbation ζ is computed as follows: Let ξ = (ξ u , ξ w ) ∈ U × W be given as the solution of the linear system T ξ = ∇Ĵ(z ap ), i.e.,
63then
64and
65for (t, x) ∈ I W (z ap ).
(16b)
66Remark 4. Note that we can easily decouple the equations in system (15) by computing ξ w = σ w w ap /ε from the second equation. Then ξ u = −S ξ w + u ap = −σS w ap /ε + u ap . Moreover, we recall that S : W 0 (0, T ) → U denotes the dual operator of the linear solution operator S; see [41,Lemma 2.4]. Finally, we remark that in our numerical realization z ap is given by the POD suboptimal solution pair (ū ε, ,w ε, ). Thus, (14) can be utilized as an a-posteriori error estimate. For further details regarding the a-posteriori error estimator, we refer to [27]. ♦
Economic MPC
67MPC is a well-established method for computing a closed-loop control for a dynamical system on an infinite (or large) time horizon. MPC splits the solution of such problems into the consecutive solution of problems on a small finite time horizon, the so called prediction horizon. The goal is to reduce the complexity of the problem in time, while at the same time being able to react to model uncertainties, disturbances, and possible parameter changes. We are interested in economic MPC [4,11]. This term comprises all MPC schemes in which the cost function does not merely penalize the distance to a pre-defined target. Here we do not have such a pre-defined target. Rather, the goal is to minimize the control effort, while satisfying certain control and state constraints; see, e.g., [17,19,31]. Applying MPC to the virtual control problem (P ε ) has several advantages, which will be more clear after having introduced the method. Let N ∆t, N ∈ N, be the prediction horizon. We define the Hilbert spaces
68for j = 0, . . . , N t and with the notation t j = j∆t for j > N t . Then the MPC cost functional is
69and the MPC admissible sets are Z ε,j N,ad = (u, w) ∈ U j N × W j N : u, w, Su + εw satisfy u a (t) ≤ u(t) ≤ u b (t) a.e. in (t j , t j+N ], w a ≤ w(t, x) ≤ w b , y a ≤ Su + εw ≤ y b a.e. in (t j , t j+N ] × Ω, respectively , for j = 0, . . . , N t . Furthermore, note that the fully discretized version of (5a) can be rewritten as the following discrete dynamical system
70where the function f comprises all the formulas that come from the discretization and the model, which we avoid to write for brevity. The MPC method is then summarized in Algorithm 2. To guarantee well-posedness and existence of the optimal control to each Algorithm 2 Model predictive control 1: Choose an initial state y 0 , an MPC prediction horizon N and the regularization parameter ε > 0; 2: for each time instant j = 0, 1, 2, . . . , N t do 3: Measure the current state of the system y j and the model parameters;
4:
71Solve the optimal control problem
72to obtain the open-loop optimal control sequenceū ε N ;
5:
73Apply the first element ofū ε N as a control to the system (17) during the next sampling period, i.e. use the feedback law µ N (y j ) =ū ε N (0). 6: end for open-loop optimal control problem in Algorithm 2, we assume that the admissible sets Z ε,j N,ad have non-empty interior for all j = 0, . . . , N t . Algorithm 2 produces a sequence of optimal controls in discrete time and uses the first element of each optimal control sequence as a feedback control value. This results in a closed-loop sub-optimal trajectory, which solves (17) for u j = µ N (y j ), j = 0, . . . , N t . Note that in step 3 of the MPC algorithm it is possible to measure (and update) the parameters of the model. This is particularly advantageous for our application, since usually we do not have, e.g., a precise weather forecast for the entire long-time horizon T . In this way, we can update the outside temperature while the algorithm runs. To determine y j typically an estimator is needed to process available sensor data properly to reconstruct the spatial-temporal distribution. In addition, we can take advantage for the velocity field v. We mentioned already that this will be provided from an approximation of the Boussinesq velocity fields. We thus gain the possibility of updating this approximation while the simulation runs, improving the accuracy of our simplified model.
74The optimal control problems (18) are solved on a much smaller time horizon (t j , t j+N ) since N N t . This guarantees a good computational speed-up. For general optimal control problems it is not necessarily the case that the MPC closed-loop trajectory is approximately optimal on the long time horizon N t . However, in recent years structural conditions were discovered that allow to conclude this property for N large enough; cf. [16,Chapter 7] and [11,19]. The most important among these conditions are the turnpike property and the closely related strict dissipativity property [39,14]. The turnpike property can be seen as a similarity condition for optimal trajectories on different time horizons and we will check numerically that this property holds for the optimal control problem considered in this paper; cf. Section 7.1. It is also possible to check the quality of the MPC horizon and trajectory with a-posteriori error estimators, such as in [13,15], but we do not utilize them in this work.
75What remains to be explained is how to successfully combine MPC and POD. The challenge is to guarantee a small approximation error for the reduced-order model while Algorithm 3 MPC-POD 1: Choose an initial state y 0 , an MPC prediction horizon N , the regularization parameter ε > 0, and tolerances τ 1 for the a-priori estimate (13) and τ 2 for the a-posteriori estimate; 2: Set t 0 = 0, y 0 (0) = y • , and flag = true; 3: for j = 0, 1, 2, . . . , N t do 4:
76Measure the current state y j of the system at time t j ; 5: if flag = true then 6: Update the model parameters;
7:
77Compute primal and dual snapshots; Solve the MPC-POD optimal control problem
78to obtain the open-loop suboptimal control sequenceū ε, N ;
12:
79Apply the first element ofū ε, N as a control to the system (17) during the next sampling period, i.e. use the feedback law µ N (y j ) =ū ε, N (0);
13:
80Compute the a-posteriori error estimate e = T ζ U ×W from (14); 14: if e > τ 2 then
15:
81Set flag = true; 16: end if 17: end for the MPC algorithm proceeds. This is clearly a big challenge if one thinks about the fact that the problem parameters are not only time-variant, but that the parameter values at a certain time instant in the future may also change when new measurement information becomes available. When this happens, it means that we need to update the POD model. Luckily, the a-posteriori error estimate from Proposition 1 is a useful tool to check whether this should be done or not. We report the MPC-POD algorithm in Algorithm 3. For further details, we refer to [27,29]. The admissible sets in (19) are defined as
82where we recall that S is the POD solution operator for the reduced-order state equation. Obviously, to guarantee existence and uniqueness of the suboptimal controls solution to (19), we assume that the sets Z ε, ,j N,ad have non-empty interior for all j = 0, . . . , N t .
83The only aspect to be explained is how to compute the snapshots in Algorithm 3. We will explain this in the next section. Let us mention that other possibilities are explored in [10,12,27,29].
Computational details and additional parallelization issues
84In this section, we clarify some aspects of our simplification strategy to compute an an approximate solution to (P B ). We give details about the implementation of the algorithm, mentioning which parts can be performed in parallel. Looking at Algorithm 3, there are still some unclear aspects. At first, it is not clear how to compute the POD snapshots in Step 7. At iteration j = 0, we initialize our model by solving the Boussinesq approximation (1) with a given initial control u 0 for the time horizon [0, T + N ∆t] using the FE method for the spatial and the implicit Euler method for the temporal discretization. The intervall [0, T + N ∆t] is discretized by t j = j∆t, j = 0, . . . , m with m = N t + N . Exploiting the power of parallel computing we obtain, therefore, the solution sequence {(v 0 j,h , y 0 j,h )} m j=0 . Then, we compute the sequence {p 0 j,h } m j=0 by solving in parallel
85(compare (8b) and (8d)), where the terms G 0,ε and r 0,ε involve the computation of initial active and inactive sets (6a)-(6b), which can be also performed in parallel. The snapshots {y 0 j,h } m j=0 and {p 0 j,h } m j=0 are used to compute the POD basis in step 8. Note that the discrete POD eigenvalue problem has dimension 2m, which may be large. We discuss later about this issue. For subsequent basis updates at an MPC step j, triggered by the a-posteriori error estimator, we will compute our snapshots with the same procedure, but using the controlū ε, N computed at the previous iteration j − 1. Note that we get also an update for the velocity field v.
86We use the velocity field v (computed at step 7) as fixed one for the open-loop optimal control problem (19), solved with POD-PDASS. In such a way, every time the basis and the velocity field are updated, the MPC can correct its approximation. We remark that the POD-PDASS matrix for problem (19) has the size (2N ) × (2N ) (and is thus small), therefore there is no need of parallelization for solving the linear system (12). We anyway compute the active and inactive sets (6a)-(6b) in parallel, since they depend on N x and not on .
87With the current information, one can already run Algorithm 3. In addition, we use a couple of improvements, which we describe further. A first disadvantage of the POD basis updates is that any time we need to compute the snapshots, we need to solve the Boussinesq equation for t ∈ [t j , T + N ∆t]. Although the measure of this time domain decreases for increasing j, computing the solution of the Boussinesq approximation (1) for this large time horizon can be computationally demanding even using parallel computing. This computational effort can be reduced, considering to generate snapshots in a smaller time interval [t j , t j + (N + M )∆t], where M > 0 is chosen to be small. In such a way, we have an updated velocity field v (and snapshots) for the subsequent M iterations of the algorithm. If a POD basis update is performed in one of these steps, we have saved computational time. If not, we need to solve (1) for the remaining time horizon up to the end (or for other M steps, for example). Having only 2(N + M ) snapshots is also beneficial for computing the POD basis, since we have to solve a smaller eigenvalue problem.
88A second disadvantage of the POD basis update is that overwriting the past information while computing a new basis may not be always a good choice. The old snapshots, in fact, may still carry useful information for the future computations. Yet, adding only snapshots over snapshots will increase the number of POD basis needed to achieve the a-priori tolerance τ 1 . We employ, therefore, the snapshots selection strategy proposed in [27]. We report it in Algorithm 4. This strategy consists in keeping only those old snapshots that represent dynamics close to the new ones. This procedure is motivated by the fact that the MPC algorithm gives a forecast of the future dynamics (new computed snapshots). Therefore, it makes sense to use them as starting point and add eventually previously computed information, if this describes similar trajectories. Furthermore, in Algorithm 4 Snapshots selection from [27]. Require: Snapshots previously computed and stored in a list L and tolerances 0 < ρ < 1. end for 9: end for step 12 of Algorithm 3, one can solve in parallel one time step of the Boussinesq model (1) applying the feedback law, instead of solving (5a). In such a way, we further improve the MPC approximation. This operation is not costly if one considers that it is done only for one time-step. At last, note that the computation of the a-posteriori error estimate (14) requires full-order solves of state and adjoint equations. This can also be carried out in parallel. To conclude, we resume every step of Algorithm 3, which is performed in parallel:
89• Computation of POD snapshots: this involves solving the Boussinesq approximation (1) and the adjoint equation (8b);
90• Computation of the active and inactive sets (6a)-(6b) of the POD-PDASS;
91• Computation of the initial guess for the next MPC iteration j: this involves solving one time step of (1);
92• The POD a-posteriori error estimator (14).
Numerical tests
93The numerical tests were performed on the compute server of the Chair of Applied Mathematics at the University of Bayreuth, a computer with 32 physical cores (64 logical) Intel(R) Xeon(R) CPU E7-2830 @ 2.13GHz and a total RAM of 512GB. For the numerical realization of the Boussinesq approximation, we refer to [5].
Numerical verification of the turnpike property
94In this subsection we check numerically that the turnpike property holds for (18), because this is the most important ingredient for proving that MPC provides nearly optimal solutions, see [19]. Before stating it in a mathematical formalism, we need to introduce the concept of optimal operation for an infinite horizon optimal control problem. Consider the discrete-time time-varying control system (17). In this subsection, we denote with y u (· ; t j ,ỹ • ) the solution of (17) for a given control u ∈ U j N starting inỹ • ∈ H at time t j . Considering the stage cost function l : R × H → R, l(u, w) = (|u| 2 + σ w 2 H )/2, the cost functional J j N can be written as
95l(u(t j+i ), w(t j+i )).
96We recall that the finite horizon optimal control problem (18) is
97with (locally) optimal solution (ū ε N ,w ε N ) ∈ Z ε,j N,ad . By Z ε,j ∞,ad , J j ∞ ,ū ε ∞ andw ε ∞ we denote the extension of the above quantities to infinite time horizon problem. Note that Z ε,j N,ad changes if the starting valueỹ • ∈ H of the PDE is different. Therefore, in what follows we indicate this dependency with Z ε,j N,ad (ỹ • ). Definition 1. Letỹ • ∈ H be an arbitrary feasible starting value at time t j . Consider a control sequence (ū,w) ∈ Z ε,j ∞,ad (ỹ • ) with corresponding trajectoryȳ. We say that the system (17) is optimally operated at (ȳ,ū,w) if for all feasibleŷ ∈ H and all (u, w) ∈ Z ε,j ∞,ad (ŷ). The trajectoryȳ is called optimal operation trajectory.
98We remark that there may exist more than one solution to (17) that satisfies Definition 1. Moreover, it is well-known that, in general, it is not easy to compute an optimal operation trajectory explicitly. Still, one can expect that the MPC trajectory converges to this trajectory for sufficiently large MPC horizon N . To ensure this behavior one has to assume structural conditions such as the turnpike property. This property demands that the solution to the finite (and infinite) time horizon optimal control problem is close for most of the time to an optimal operation trajectoryȳ, according to the following definition.
99Definition 2. Consider (ȳ,ū,w) at which system (17) is optimally operated. The finite horizon optimal control problem (18) has the turnpike property at (ȳ,ū,w) if there exist η ∈ L † such that for each j ∈ N 0 , each feasible initial guess y j , each optimal trajectory yūε N (· ; t j , y j ) and all N, P ∈ N there is a set Q(t j , y j , P, N ) ⊆ {0, . . . , N } with at most P elements and
100for all M ∈ {0, . . . , N } \ Q(t j , y j , P, N ).
101The definition of the turnpike property seems technically elaborated but it is easy to illustrate graphically; cf. from N , at which the trajectory is far from the optimal operation trajectory. Moreover, it permits to define a bound on the distance for the remaining close points. Contrary to the computation of the optimal operation trajectory, it is easy to find numerical evidence that a given optimal control problem has the turnpike property [18]. For this test, we choose Ω = (0, 1) 2 discretized with a structured quadrilateral mesh of N x = 1769 nodes, Γ c = (0, 1) × {0}, ρ = C p = α = 1.0, ν = 0.1, κ = 0.025 and g = (0, −9.8). Moreover, we consider γ = 0.1 and γ c = 10 5 for the boundary conditions, so that the action of the control on the boundary can be seen (numerically) as the one of a Dirichlet boundary condition. We solve at first (1) with fixed control u(t) = 22.5, outside temperature y out = max(13, 16−t) and initial guess (v 0 , y 0 )(t, x) = (0, 20) for all x ∈ Ω and t ∈ [0, T ], in order to generate the advection field v to use in (18); cf. For more information about how to check the conditions for near optimal performance of MPC numerically, we refer to [18].
MPC-POD algorithm for the optimal control problem (2)
102In this section we test Algorithm 3 with the same data of Section 7.1, choosing an MPC horizon N = 300. This horizon is a good comprise between computational time and turnpike property; cf. Figure 4(a). We fix also M = 60, the a-priori tolerance τ 1 = 10 −8 i=1 λ i and the a posteriori error estimator tolerance τ 2 = 3.5. Although τ 2 seems large, one has to consider that the control will have a value close to the state constraints range, roughly between 20 and 30, due to the fact that the control boundary condition is (numerically) close to a Dirichlet one. Moreover, the MPC horizon N = 300 corresponds to a time horizon for the open-loop problem equal to three. Therefore, one can expect an average L 2 norm for the control of 43 (= 25 √ 3). Hence, fixing τ 2 = 3.5 equals asking a relative error approximately of 8%. We expect, moreover, an overestimation factor for the a-posteriori error estimator, since (σ ap ) −1 T ζ U in (14) gives an upper-bound also for the error in reconstructing the artificial control, which might attain significantly greater values according to the chosen ε. In addition, a too small τ 2 will trigger the basis updates too often and thus worsen the performance of the algorithm. Figure 5(a) shows the minimum, maximum and average value of the optimal MPC solution together with the desired bounds. One can notice that the average temperature is kept inside the bounds, where instead the minimum and the maximum one exceed them. This is typical of the L 2 regularization effect of the virtual control approach and can be mitigated taking a small ε. This effect is accentuated also by the POD method, which provides a sub-optimal solution as well-known from the literature [32,41]. As a result, the average number of active points at each time step amounts to 3.5% of the total number of grid points. This can be seen in Figure 5(b). Note that the number of points below the lower bound y a increases as the time passes. The reason is that the upper bound y b prevents the control at the boundary from growing significantly to counteract the decreasing outside temperature. This together with the sub-optimality of the POD solution will prevent the control from reacting faster and stronger to this external inputs. A possible solution is to consider local constraints in the domain Ω [31] and/or local POD basis functions [1,3]. Nevertheless, the fact that the average temperature is inside the bounds and only a small portion of discretization points are active make Algorithm 3 a viable approach in HVAC of residual buildings. For smaller γ = 0.01 and ε = 0.0075, we can significantly improve the results in terms of violation of the state constraints; cf. Figure 6. In this test, in fact, the influence of the outside temperature is lower and the method is capable to reduce significantly the number of active points; see Figure 6(b). In particular, the minimum temperature in the room never lies below the given lower bound y a (Figure 6(a)). The maximum temperature, instead, is slightly above the upper bound y b . This can be justified from the chosen value of the relaxation parameter ε and also from the fact that we are using the POD method, thus the reduced-order model approximation introduce a further discretization error, which may not be canceled even when passing to the limit ε → 0. This violation is anyway negligible for HVAC of residual buildings, since the maximum value of the temperature attained all over the time-space domain is 23.07. Furthermore, we already discuss the conflict (and a possible solution) between the state constraints and the control. This can be clearly seen here, since the 33 active points are exactly the grid points belonging to Γ c .
Conclusion
103We presented a POD-based economic MPC algorithm to handle HVAC of residual buildings. The strategy consists in computing a sub-optimal solution to an optimal control problem subjected to the Boussinesq approximation of Navier-Stokes and bilateral state and control constraints. The goal was to have a good compromise between robustness and computational cost. The first is achieved via the MPC and a goal-oriented a-posteriori error estimate, while the second is obtained through POD and parallel computing. The numerical results confirm the expectations. While some limitations of the strategy show up, particularly the emergence of several discretization points over time in which the state constraints are violated, the resulting control strategy can be regarded accurate enough for typical HVAC applications. The peformance can be further improved, for example, by considering localized MOR and localized constraints. This will be the focus of future work.
참고문헌 58건
- On the relation between strict dissipativity and turnpike properties Systems & Control Letters · Elsevier BV · 2016 10.1016/j.sysconle.2016.01.003
- Turbulence, Coherent Structures, Dynamical Systems and Symmetry 2012 10.1017/cbo9780511919701
- Control of Coupled Partial Differential Equations International series of numerical mathematics · Springer Nature · 2007 10.1007/978-3-7643-7721-2
- Turbulence, Coherent Structures, Dynamical Systems and Symmetry 1996 10.1017/cbo9780511622700
- Optimality conditions for state-constrained PDE control problems with time-dependent controls Control and Cybernetics · 2008
- Optimization with PDE Constraints Mathematical modelling: theory and applications · Springer Nature (Netherlands) · 2008 10.1007/978-1-4020-8839-1
- Nonlinear Model Predictive Control Communications and control engineering/Communications and control engineering series · 2011 10.1007/978-0-85729-501-9
- Optimal and Model Predictive Control of the Boussinesq Approximation International series of numerical mathematics · Springer Nature · 2007 10.1007/978-3-7643-7721-2_7
- Physical Fluid Dynamics Springer eBooks · Springer Nature · 1977 10.1007/978-94-009-9992-3
- Reduced basis method for multi-parameter-dependent steady Navier–Stokes equations: Applications to natural convection in a cavity Journal of Computational Physics · Elsevier BV · 2009 10.1016/j.jcp.2009.03.008
- POD a-posteriori error estimates for linear-quadratic optimal control problems Computational Optimization and Applications · Springer Science+Business Media · 2008 10.1007/s10589-008-9224-3
- Economic optimization using model predictive control with a terminal cost Annual Reviews in Control · Elsevier BV · 2011 10.1016/j.arcontrol.2011.10.011
- The Primal-Dual Active Set Strategy as a Semismooth Newton Method SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 2002 10.1137/s1052623401383558
- Optimal flow control based on POD and MPC and an application to the cancellation of Tollmien–Schlichting waves Optimization methods & software · Taylor & Francis · 2013 10.1080/10556788.2013.858157
- Regular Lagrange Multipliers for Control Problems with Mixed Pointwise Control-State Constraints SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 2005 10.1137/s1052623403426519
- Pontryagin's Principle for State-Constrained Boundary Control Problems of Semilinear Parabolic Equations SIAM Journal on Control and Optimization · Society for Industrial and Applied Mathematics · 1997 10.1137/s0363012995283637
- A virtual control concept for state constrained optimal control problems Computational Optimization and Applications · Springer Science+Business Media · 2007 10.1007/s10589-007-9130-0
- The turnpike property in finite-dimensional nonlinear optimal control Journal of Differential Equations · Elsevier BV · 2014 10.1016/j.jde.2014.09.005
- On some control problems in fluid mechanics Theoretical and Computational Fluid Dynamics · Springer Science+Business Media · 1990 10.1007/bf00271794
- <i>Mathematical Analysis and Numerical Methods for Science and Technology</i> Physics Today · AIP Publishing · 1991 10.1063/1.2810363
- Model predictive control: Theory and practice—A survey Automatica · Elsevier BV · 1989 10.1016/0005-1098(89)90002-2
- Navier Stokes Equations: Theory and Numerical Analysis Journal of Applied Mechanics · ASM International · 1978 10.1115/1.3424338
- A reduced-order approach for optimal control of fluids using proper orthogonal decomposition International Journal for Numerical Methods in Fluids · Wiley · 2000 10.1002/1097-0363(20001115)34:5<425::aid-fld67>3.0.co;2-w
- Nonlinear boundary control of semilinear parabolic problems with pointwise state constraints Discrete and Continuous Dynamical Systems · American Institute of Mathematical Sciences · 1997 10.3934/dcds.1997.3.341
- Supremizer stabilization of POD–Galerkin approximation of parametrized steady incompressible Navier–Stokes equations International Journal for Numerical Methods in Engineering · Wiley · 2014 10.1002/nme.4772
- A reduced basis localized orthogonal decomposition Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.04.016
- Semi–Smooth Newton Methods for Variational Inequalities of the First Kind ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2003 10.1051/m2an:2003021
- Practical NMPC suboptimality estimates along trajectories Systems & Control Letters · Elsevier BV · 2008 10.1016/j.sysconle.2008.10.012
- Chapter 1: Proper Orthogonal Decomposition for Linear-Quadratic Optimal Control Society for Industrial and Applied Mathematics eBooks · Society for Industrial and Applied Mathematics · 2017 10.1137/1.9781611974829.ch1
- Error analysis for Galerkin POD approximation of the nonstationary Boussinesq equations Numerical Methods for Partial Differential Equations · Wiley · 2010 10.1002/num.20602
- Use of model predictive control and weather forecasts for energy efficient building climate control Energy and Buildings · Elsevier BV · 2011 10.1016/j.enbuild.2011.09.022
- Experimental analysis of model predictive control for an energy efficient building heating system Applied Energy · Elsevier BV · 2011 10.1016/j.apenergy.2011.03.009
- REDUCED BASIS APPROXIMATION AND <i>A POSTERIORI</i> ERROR ESTIMATION FOR THE PARAMETRIZED UNSTEADY BOUSSINESQ EQUATIONS Mathematical Models and Methods in Applied Sciences · World Scientific · 2011 10.1142/s0218202511005441
- THE LOCALIZED REDUCED BASIS MULTISCALE METHOD 2015
- Physical fluid dynamics Deep Sea Research · Pergamon Press · 1978 10.1016/0146-6291(78)90560-x
- Nonlinear Model Predictive Control Communications and control engineering/Communications and control engineering series · 2016 10.1007/978-3-319-46024-6
- Closed-loop performance analysis for economic model predictive control of time-varying systems 2017 10.1109/cdc.2017.8264485
- Economic Nonlinear Model Predictive Control 2018 10.1561/9781680833935
- A Certified Trust Region Reduced Basis Approach to PDE-Constrained Optimization SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2017 10.1137/16m1081981
- POD-Based Economic Optimal Control of Heat-Convection Phenomena Springer INdAM series · Springer International Publishing · 2018 10.1007/978-3-030-01959-4_4
- Finite volume POD-Galerkin stabilised reduced order methods for the parametrised incompressible Navier–Stokes equations Computers & Fluids · Elsevier BV · 2018 10.1016/j.compfluid.2018.01.035
- POD-Based Economic Model Predictive Control for Heat-Convection Phenomena Lecture notes in computational science and engineering · Springer Nature · 2019 10.1007/978-3-319-96415-7_61
- Coupling MPC and HJB for the Computation of POD-Based Feedback Laws Lecture notes in computational science and engineering · Springer Nature · 2019 10.1007/978-3-319-96415-7_89
- Numerical Mathematics and Advanced Applications ENUMATH 2017 Lecture notes in computational science and engineering · Springer Nature · 2019 10.1007/978-3-319-96415-7
- Development of reduced numeric models to aero-thermal flows in buildings 2018
- Economic model predictive control for time‐varying system: Performance and stability results Optimal Control Applications and Methods · Wiley · 2019 10.1002/oca.2492
- Numerical Verification of Turnpike and Continuity Properties for Time-Varying PDEs IFAC-PapersOnLine · Elsevier BV · 2019 10.1016/j.ifacol.2019.08.002
- Numerical Methods for Optimal Control Problems Springer INdAM series · Springer International Publishing · 2018 10.1007/978-3-030-01959-4
- Performance estimates for economic model predictive control and their application in proper orthogonal decomposition-based implementations Mathematical Control and Related Fields · American Institute of Mathematical Sciences · 2021 10.3934/mcrf.2021013
- POD-based State-Constrained Economic Model Predictive Control of Convection-Diffusion Phenomena 2019
- Modeling and optimal control of multiphysics problems using the finite element method 2019
- Certified Reduced Basis VMS-Smagorinsky model for natural convection ow in a cavity with variable height arXiv (Cornell University) · Cornell University · 2023 10.1016/j.camwa.2020.05.013
- POD–Galerkin Model Order Reduction for Parametrized Time Dependent Linear Quadratic Optimal Control Problems in Saddle Point Formulation Journal of Scientific Computing · Springer Science+Business Media · 2020 10.1007/s10915-020-01232-x
- A non-conforming dual approach for adaptive Trust-Region reduced basis approximation of PDE-constrained parameter optimization ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2021 10.1051/m2an/2021019
- Economic Model Predictive Control and Time-Varying Systems 2020 10.15495/epub_ubt_00004905
- Model Reduction and Approximation: Theory and Algorithms 2017
- Economic Nonlinear Model Predictive Control Foundations and Trends® in Systems and Control · Now Publishers · 2018 10.1561/2600000014
- Mathematical Analysis and Numerical Methods for Science and Technology Springer eBooks · Springer Nature · 2000 10.1007/978-3-642-61566-5