You are on page 1of 6

52nd IEEE Conference on Decision and Control

December 10-13, 2013. Florence, Italy

Explicit Stochastic MPC Approach to Building Temperature Control


Ján Drgoňa, Michal Kvasnica, Martin Klaučo and Miroslav Fikar

Abstract— In this paper we show how to synthesize explicit by occupancy. Moreover, these disturbances often evolve
representations of Model Predictive Control (MPC) feedback in a random fashion. Possible ways around would be to
laws that maintain temperatures in a building within of a consider worst-case MPC which utilizes (often conserva-
comfortable range while taking into account random evolution
of external disturbances. The upside of such an explicit MPC tive) bounds on possible changes of the disturbances or
solution stems from the fact that optimal control input can be employing certainty equivalence MPC [12]. Even though
obtained on-line by a mere function evaluation. This task can such strategies are able to satisfy constraints for arbitrary
be accomplished quickly even on cheap hardware. To account disturbance, the price to be paid is increased consumption of
for random disturbances, our formulation assumes probabilistic energy required for heating and cooling. Moreover based on
version of thermal comfort constraints. We illustrate how a
finite-sampling approach can be used to convert probabilistic international standards for building control (e.g. ISO 7730),
bounds into deterministic constraints. To reduce complexity, zone control is being used for satysfying the thermal comfort
and to allow for synthesis of explicit feedbacks in reasonable within given range of reliability. This brings us to face
time, we furthermore propose to prune the set of samples de- the probabilistic constraints, which can not be modeled by
pending on activity of constraints. Performance of the stochastic standard deterministic procedures, but on the other hand
explicit MPC controller is then compared against best-case and
worst-case scenarios. thanks to the knowledge of the probability distributions
of the past disturbances, they can be easily modeled by
I. I NTRODUCTION stochastic approaches. Therefore much attention is devoted to
stochastic MPC which incorporate random disturbances into
Nowadays, energy consumed for heating, cooling ven- probabilistic constraints. However, most of stochastic MPC
tilation and air conditioning (HVAC) in residential and approaches for building control reported in the literature lead
commercial buildings accounts for roughly 40 % of global to complex optimization problems [13], [10]. The downside
energy use [14]. In Europe, this figure is reported to be as being that complexity of such an optimization is often
high as 76 %. Any reduction of energy demand thus has prohibitive for implementation on cheap process hardware,
a huge effect, which goes hand-to-hand with reduction of such as on Programmable Logic Controllers.
greenhouse gases and overall level of pollution. Therefore in this paper we aim at achieving a simple
It is well known that employing sophisticated control algo- implementation of stochastic MPC. This is achieved by pre-
rithms can decrease energy consumption of HVAC systems in computing, off-line, the optimal solution to a given optimal
buildings without resorting to modifications of the buildings’ control problem for all initial conditions of interest using
physical construction. Various advanced control methods are parametric programming [3]. This gives rise to an explicit
nowadays available to achieve this goal, ranging from use representation of the MPC feedback law as a Piecewise
of classical PI and state-feedback controllers [6], through Affine (PWA) function that maps initial conditions onto
methods based on fuzzy systems and neural networks, up to optimal control inputs. The upside is that the on-line im-
application of optimization-based schemes [17]. Advantage plementation of such controllers reduces to a mere function
of the latter class is that the task of minimizing energy evaluation. This task can be performed efficiently even on
while respecting thermal comfort can be rigorously stated cheap hardware. However, parametric programming is only
as an optimization problem, leading to a best-achievable applicable to stochastic MPC problems of small size. In
performance. our setup, however, the dimensions are large. In particular,
In this paper we also follow the line of devising the space of initial parameters is 14-dimensional, hence
optimization-based controllers for control of thermal comfort general-purpose explicit stochastic MPC approaches cannot
in buildings. Specifically, we consider the class of Model be readily applied. Therefore we show how to formulate the
Predictive Control (MPC) strategies [11] which utilize a stochastic control problem such that it can be subsequently
mathematical model of the building to predict its future solved, and such that the solution is not of prohibitive
behavior. These predictions then allow optimization to select complexity. First, by exploiting the results of [5], we show
best control inputs that minimize consumed energy while how to replace stochastic probability constraints by a finite
respecting thermal comfort criteria. In real-life situations, number of deterministic constraints. Subsequently, exploiting
however, buildings are subject to external disturbances, such a particular dynamics of the building, we show that the num-
as exterior temperature, solar radiation, or heat generated ber of deterministic constraints can be reduced substantially
as to render parametric programming useful. At the end
All authors are with the Slovak University of Technology in
Bratislava, Slovakia. {jan.drgona, michal.kvasnica, we arrive at an explicit representation of stochastic MPC
martin.klauco, miroslav.fikar}@stuba.sk. that achieves a given probability of thermal comfort while

978-1-4673-5717-3/13/$31.00 ©2013 IEEE 6440


simultaneously minimizing consumption of heating/cooling where x = [x1 , . . . , x4 ]T is the state vector, ẋ is the state
energy sources. Performance of the proposed stochastic derivative, d = [d1 , . . . , d3 ]T is the vector of disturbances,
scheme is then compared versus a best-case scenario (which and and A ∈ R4×4 , B ∈ R4 , E ∈ R4×3 are the state-update
employs fictitious perfect knowledge of future disturbance), matrices. Following values of A, B, E in (1) were extracted
from ISE:
and against a worst-case setup that employs conservative
−0.020 0 0 0.020
2 3
bounds on future evolution of disturbances.
6 0 −0.020 0.001 0.0207
A = 10−3 · 4
0 0.001 −0.056 0 5
II. B UILDING M ODELING AND C ONTROL
1.234 2.987 0 −4.548
A. Basic Concepts and Tools 2
0
3 2
0 0 0
3

Mathematical models of physical plants play a vital roles 6 0 7 6 0 0 0 7


B = 10−3 · 4 , E = 10−3 · 4 .
0 5 0.055 0 0 5
in many areas, including control synthesis, verification and 0.003 0.327 0.003 0.001
simulation. They represent a mathematical abstraction that
should on one hand be sufficiently precise to accurately The heating/cooling input u is restricted by
capture dynamical behavior of the plant and, on the other −700 W ≤ u ≤ 1400 W. (2)
hand, sufficiently simple as to render control synthesis easy.
A wide range of software modeling tools for buildings is Here, positive values of u represent heating, while a negative
nowadays available. Examples include, but are not limited u stands for cooling.
to, TRNSYS [2] and Energy Plus [7]. They usually consider Instead of considering an analytic model for prediction
very complex building models based on nonlinear energy of disturbances, the ISE tool uses historical data for external
and mass balances. Although such models are very accurate, temperatures (d1 ) and solar radiations (d3 ), captured over the
they are not directly suitable for control synthesis due to high period of 30 days. For the heat generated by occupancy, the
complexity. To deal this issue the middleware softwares such ISE model considers d2 = 500 W during office hours, and
as BCVTB [18], and MLE+ [4] were designed for making d2 = 0 W otherwise.
communication bridges between Matlab and E+.
C. Control Objectives and Assumptions
In this work, we have used the ISE (Indoor temperature
Simulink Engineering) tool [16], which is based on linear In this paper we consider that maintaining thermal comfort
building models. In general, ISE is a free, MATLAB-based is equivalent to satisfaction of the following constraint:
modeling tool for simulating the indoor temperature of a r − ǫ ≤ x4 ≤ r + ǫ, (3)
building that consists of a single zone. It uses a linear model
of the zone and provides a user-friendly graphical interface to where x4 is the indoor temperature, r is the center of the
Simulink. Contrary to the complex modeling tools mentioned zone, and ǫ > 0 denotes width of the temperature comfort
above, models provided by ISE are directly suitable for zone. In the sequel we aim at synthesizing a control policy
control synthesis. An another advantage is that ISE is stan- that manipulates the control input u in (1) such that the
dalone, i.e., it does not rely on any other external software indoor temperature respects the constrain in (3), and simul-
packages. ISE being based on MATLAB/Simulink allows to taneously the consumption of energy for heating/cooling is
easily verify performance of various control strategies just minimized.
by wrapping any MATLAB-based control algorithm as a We assume that at each time instant t we have knowl-
Simulink S-function. edge of building’s state vector x(t), as well as current
values of disturbances d(t). Future disturbances, however,
B. Particular Building Model are unknown. To achieve a tractable formulation of the
In this paper we consider a linear model of a one-zone control problem, we therefore assume that we have at least
building, obtained from ISE. The model has 4 state variables, knowledge of the probability distribution of rate of change of
denoted as x1 to x4 in the sequel. Here, x1 is the floor disturbances. Hence we assume that we know the probability
temperature, x2 represents the internal facade temperature, distribution
x3 is the external facade temperature, and x4 stands for the δ ∼ N (0, σ(t)) (4)
internal room temperature. All temperatures are expressed
such that the future disturbances at discrete time steps t +
in ◦ C. The model considers a single control input u, which
Ts , . . . , t + N Ts are given by
represents that amount of heat injected to the zone, expressed
in watts. Moreover, the model also features 3 disturbance d(t + kTs ) = d(t) + kδ, k = 1, . . . , N, (5)
variables d1 , . . . , d3 . Here, d1 is the external temperature
(in ◦ C), d2 is the heat generated inside in the zone due to where N denotes the prediction window over which the
occupancy (in W), and d3 is the solar radiation which heats distribution in (4) is deemed reasonably accurate. Hence
the exterior of the building (in W). our goal will be to synthesize the control policy u(t) =
The model can be compactly represented by a linear state- µ(x(t), d(t), σ(t)) which minimizes the total energy and
space model in the continuous-time domain maintains thermal comfort over the prediction window N .
Because the control authority is limited by (2), and due to
ẋ = Ax + Bu + Ed (1) the random nature of disturbances, the hard thermal comfort

6441
constraint (3) needs to be relaxed in a probabilistic sense as Lemma 3.1 ([5]): Let g(u, δ) : RN × Rnd → R be a
follows: function that is convex in u for any δ, and let δ be a random
variable as in (4). Assume a probabilistic constraint
Pr(x4 ≥ r − ǫ) ≥ 1 − α, (6a)
Pr(x4 ≤ r + ǫ) ≥ 1 − α, (6b) Pr(g(u, δ) ≤ 0) ≥ 1 − α (8)

where 1 − α the denotes probability with which the con- for some α ∈ [0, 1]. Let δ (1) , . . . , δ (M ) be M samples of
straints in (3) have to be satisfied for some α ∈ [0, 1]. the random variable independently extracted from (4). Then
the probabilistic constraint in (8) is satisfied with confidence
III. Z ONE T EMPERATURE C ONTROL VIA S TOCHASTIC 1 − β, i.e., Pr(Pr(g(u, δ) ≤ 0) ≥ 1 − α) ≥ 1 − β, if
MPC
g(u, δ (i) ) ≤ 0, i = 1, . . . , M, (9)
MPC is control strategy that uses optimization to cal-
culate optimal control inputs. The optimization problem is holds for a sufficiently large M . 

composed of two parts. The cost function evaluates fitness Lemma 3.2 ([1]): The number of samples M required in
of a particular predicted profile of predicted variables with Lemma 3.1 is bounded from below by
respect to qualitative criteria. The task of the optimization p
1 + N + ln(1/β ) + 2(N + 1) ln (1/β )
is then to compute the optimal profile of predicted control M≥ . (10)
α
actions for which the cost function is minimized. The set

of admissible decisions to choose from is then represented
By employing Lemma 3.1 we can thus replace the prob-
by the constraints of the optimization problem. MPC is
abilistic constraints in (7c)-(7d) by a finite number M
implemented in the closed-loop fashion using the principle of
of deterministic constraints, each obtained for one of the
receding horizon control. Here, using measurements of state
realizations δ (i) of the random variable. To see this, notice
variables at time t, the optimal sequence of control inputs
that for (7c) we can set g(·, δ) := r − ǫ − Cxk , where xk
{u∗ (t), . . . , u∗ (t + N Ts )} is first computed by solving the
embeds δ via (7b). Clearly, g(·, ·) is a single-valued linear
optimization problem. Only the first element of the sequence,
function (hence convex) for each k, therefore Lemma 3.1
i.e., u∗ (t), is then applied to the plant and the procedure is
is applicable. Similar reasoning holds for (7d). In addition,
repeated at time t+Ts (where Ts denotes the sampling time),
Lemma 3.2 quantifies the lower bound on the number of
using values of x(t + Ts ).
such realizations, which grows only moderately with the
An MPC optimization problem for maintaining high prob-
confidence measure β.
ability of achieving thermal comfort while minimizing en-
Consider the i-th realization of the random variable, i.e.,
ergy consumption can be stated as follows:
δ (i) , and denote by
N !
X k−1
min u2k (7a)
“ “ ””
(i)
X
u0 ,...,uN yk =C k
A x0 + k−j−1
A Buj + E d0 + (j + 1)δ (i)
k=0 j=0
s.t. xk+1 = Axk + Buk + E(d0 + kδ), (7b) (11)
Pr(Cxk ≥ r − ǫ) ≥ 1 − α, (7c) the indoor temperature (represented by the 4-th element of
the state vector), predicted at the k-th step of the prediction
Pr(Cxk ≤ r + ǫ) ≥ 1 − α, (7d) horizon using the disturbance δ (i) . Note that (11) follows
− 700 ≤ uk ≤ 1400, (7e) directly by solving for yk = Cxk from (7b). Then the MPC
δ ∼ N (0, σ(t)). (7f) optimization problem (7) can be cast as
N
Here, xk , uk and dk denote, respectively, values of states, X
min u2k (12a)
inputs and disturbances predicted at the k-th step of the u0 ,...,uN
k=0
prediction horizon N , initialized by current measurements (i)
of the states x0 = x(t), current disturbances d0 = d(t) s.t. yk ≥ r − ǫ, i = 1, . . . , M, (12b)
and desired center of the thermal comfort zone r = r(t). (i)
yk ≤ r + ǫ, i = 1, . . . , M, (12c)
The predictions are obtained using a discretized version of − 700 ≤ uk ≤ 1400, (12d)
the LTI model (1) with C = [ 0 0 0 1 ]. Future disturbances
predicted in (7b) employ the random variable δ, that follows (i)
where yk is given per (11). Note that (11) serves as
the probability distribution (7f) where σ(t) is assumed to a substitution in (12b)-(12c) and is not considered as an
be available to the optimization. The term d0 + kδ in (7b) equality constraint. By Lemma 3.1, a feasible solution to (12)
originates directly from (5). implies that the probabilistic constraints in the original
Due to the probabilistic constraints (7c)-(7d), problem (7) formulation (7) will be satisfied with a high confidence 1−β.
is hard to solve, in general. In this paper we propose to tackle The initial conditions for problem (12) are the current state
the probabilistic constraint by employing a finite number of measurements x0 = x(t), current value of the disturbance
realizations of the random variable δ, as captured by the vector d0 = d(t), and the M samples δ (1) , . . . , δ (M ) ex-
following two lemmas. tracted from the probability distribution (4) for a current

6442
value of the standard deviation σ(t). Most importantly, the function U ∗ (ξ) in (15), i.e., gains Fi , gi and polyhedra
optimization (12) is a quadratic program in decision variables Ri , can be obtained by a parametric programming solver
u0 , . . . , uN since the objective function is quadratic and we implemented in the freely-available MPT toolbox[8].
have finitely many linear constraints. Remark 4.2: For a closed-loop implementation of MPC,
Therefore a control policy that provides satisfaction of only the first element of U ∗ , i.e., u∗0 , needs to be applied to
thermal comfort constraints in (6), respects limits of the con- the plant at each time instant. Therefore the explicit receding-
trol authority in (2), and minimizes the energy consumption, horizon feedback law is given by
can be achieved as follows:
u∗ (t) = [ 1 0 ··· 0 ] U ∗ (ξ) = F̃i ξ + g̃i , if ξ ∈ Ri , (16)
1) At time t, measure x(t), d(t), r(t) and obtain σ(t).
2) Generate M samples δ (1) , . . . , δ (M ) from (4). where F̃i , g̃i are obtained from Fi , gi by retaining only the
3) Formulate the QP (12) and solve it to obtain first row of a corresponding matrix. 
u∗0 , . . . , u∗N . Even though the explicit representation of the MPC feed-
4) Apply u(t) = u∗0 to the system and repeat from the back law in (16) provides a simple and fast implementation
beginning at time t + Ts . of MPC on embedded hardware, it suffers from the so-called
Remark 3.3: To prevent infeasibility of (12) during tran- curse of dimensionality. Simply speaking the number of
sient (for instance when the zone middle point r is changed), polyhedral regions Ri grows exponentially with the number
it is worth to soften the hard constraints in (12b)-(12c). This of constraints in (14). Therefore, from a practical point
can be done by introducing new variables sk , k = 0, . . . , N , of view, explicit MPC solutions as in (15) can only be
and by replacing (12b)-(12c) by obtained for reasonably simple QP problem (14). Note that
(i) our QP has 2N (M + 1) constraints, N decision variables
yk ≥ r − ǫ − sk , i = 1, . . . , M, (13a)
(u0 , . . . , uN ), and 8 + 3M parameters (4 initial states x(t), 3
(i)
yk ≤ r + ǫ + sk , i = 1, . . . , M. (13b) initial disturbances d(t), 1 center of the thermal comfort zone
PN r(t) and M samples δ (i) , each of which is a 3 × 1 vector).
Then the term k=0 qs s2k must be added to (12a) to penalize Since M ≫ N in practice due to (10), the main driving
violation of constraints, together with extra constraints sk ≥ factor of complexity is thus M , the number of realizations
0, k = 0, . . . , N . The value of the penalization coefficient qs of the random variable δ employed in (12).
should be selected high as to discourage MPC from violating To give the reader a flavor of complexity, consider α =
the constraints unless absolutely necessary. 
0.05 (which corresponds to a 95 % probability of satisfying
IV. E XPLICIT S TOCHASTIC MPC F ORMULATION the thermal comfort criterion), N = 10, and β = 1 · 10−7
(which means a 99.9999999 % confidence in Lemma 3.1).
The objective here is to employ parametric programming
Then we have M = 919 by (10), hence the QP in (12) has
to pre-calculate the optimal control inputs in (12) for all
18400 constraints and 927 parametric variables. Solving such
admissible values of initial conditions. Hence we aim at
a QP parametrically according to Theorem 4.1 would lead to
constructing, off-line, the explicit representation of the opti-
an explicit solution defined over billions of regions, which
mizer as a function of the vector of initial conditions. Then,
is not practical and defeats the purpose of cheap and fast
once we need to identify the optimal control action on-line
implementation of MPC on embedded hardware.
for particular measurements, we can replace optimization
Fortunately, most of the constraints are redundant and can
by a mere function evaluation. This significantly reduces
hence be discarded, allowing a tractable solution. To see this,
computational requirements of implementation of MPC.
consider the constraint in (12c), rewritten as
Theorem 4.1 ([3]): Let
min{U T HU + ξ T F U | GU ≤ W + Sξ} (14) C(Axk + Buk + E(d0 + kδ (i) )) ≤ r + ǫ. (17)

be a convex quadratic program with initial conditions ξ ∈ Since the constraint is linear in all variables, it holds if and
Rnx and decision variables U ∈ RN . Then the optimizer U ∗ only
of (14) is a piecewise affine (PWA) function of ξ:
max{C(Axk + Buk + E(d0 + kδ (i) ))} ≤ r + ǫ, (18)
 i
F1 ξ + g1 if ξ ∈ R1 ,



.. which is furthermore equivalent to
U (ξ) = . (15)
C(Axk + Buk + Ed0 ) + k max{CEδ (i) } ≤ r + ǫ. (19)


F ξ + g
R if ξ ∈ R ,
R R i

where Fi ∈ RN ×nx , gi ∈ RN , and Ri ⊆ Rnx are polyhedral Similarly, we have that (12b) holds if and only if
regions. 
C(Axk + Buk + Ed0 ) + k min{CEδ (i) } ≥ r − ǫ. (20)
To see the relation between Theorem 4.1 and the i
QP (12), notice that U = [u0 , . . . , uN ] and ξ = Let
[x(t), d(t), r(t), δ (1) , . . . , δ (M ) ]. Moreover, the matrices H,
F , G, W , S of (14) can be obtained by straightforward δ = arg maxδ(i) {CEδ (i) }, δ = arg minδ(i) {CEδ (i) }.
algebraic manipulations, see e.g. [3]. Parameters of the PWA (21)

6443
TABLE I
Please note that δ and δ are computed over finite set of δ (i) ,
C OMPARISON OF VARIOUS STRATEGIES .
therefore no optimization is required to determine it’s values.
Then for any sample δ (i) with δ ≺ δ (i) ≺ δ the constraints Thermal Consumed
in (12b)-(12c) are redundant. We conclude that, instead of comfort energy
considering M samples δ (i) in (12), one can equivalently Stochastic MPC 97.2 % 125.7 kWh
Best-case MPC 100.0 % 125.2 kWh
state the problem using only the extremal realizations δ, δ, Worst-case MPC 100.0 % 146.0 kWh
hence M = 2. Using the same figures as above, this leads
to a QP with only 60 constraints and 14 parameters in ξ, for
which the explicit representation of the optimizer in (14) can conditions:
be obtained rather easily.
−10 ◦ C ≤ xi (t) ≤ 35 ◦ C, i = 1, . . . , 4,
Implementation of stochastic explicit MPC thus requires
two steps. The first one is performed completely off-line. 15 ◦ C ≤ r(t) ≤ 25 ◦ C,
Here, the QP (12) is formulated using symbolic initial 0 ◦ C ≤ d1 (t) ≤ 24 ◦ C,
conditions x0 , d0 , r, δ and δ, all concatenated into the vector 0 W ≤ d2 (t) ≤ 500 W,
ξ. Then the QP is solved parametrically for all values of ξ of
0 W ≤ d3 (t) ≤ 1200 W.
interest and the explicit representation of the MPC feedback
in (16) is obtained by the MPT toolbox. Finally, parameters Width of the thermal comfort zone was set constantly to
of the feedback, i.e., the gains F̃i , g̃i , and polyhedra Ri are ǫ = 0.5 ◦ C. With the prediction horizon N = 10, sampling
stored in the memory of the implementation hardware. time Ts = 890 seconds, α = 0.05, and β = 1 · 10−7 , the
The on-line implementation of such an explicit feedback explicit MPC feedback (16) was obtained as a PWA function
is then performed as follows: that consisted of 816 polyhedra in the 14-dimensional space
of initial conditions. Simulated closed-loop profiles of the
1) At time t, measure x(t), d(t), r(t) and obtain σ(t). indoor temperature and consumed heating/cooling energy are
2) Generate M samples δ (1) , . . . , δ (M ) from (4). shown in Fig. 2. As can be seen, the stochastic controller al-
3) From the generated samples pick δ and δ by (21). lows for seldom violations of the thermal comfort zone while
4) Set ξ = [x(t), d(t), r(t), δ, δ] and identify index of the maintaining hard limits of the control authority. Overall, the
polyhedron for which ξ ∈ Ri . Denote the index of the stochastic controller maintains the indoor temperature within
“active” region by i∗ . the comfort zone for 97.2 % of samples.
5) Compute u∗ (t) = F̃i∗ ξ + g̃i∗ , apply it to the system Performance of the explicit stochastic MPC scheme was
and repeat from the beginning at time t + Ts . then compared to two alternatives. One is represented by a
Remark 4.3: Identification of δ and δ in (21) does not best-case MPC controller, which assumes perfect knowledge
require any optimization, as the minima/maxima are taken of future disturbances over a given prediction horizon. The
element-wise from a finite set.  other alternative is a worst-case scenario which employs con-
There are various ways how to identify index of the active servative bounds on the rate of change of future disturbances.
region in Step 4. The most trivial way is to traverse through Hence it guarantees satisfaction of constraints in robust
the polyhedra sequentially, stopping once ξ ∈ Ri is satisfied. fashion, while only minimizing the energy consumption with
Runtime complexity of such an approach is O(R), where R respect to the worst possible disturbance. Simulated profiles
is the total number of polyhedra. More advanced approaches, under the best-case and worst-case policies are shown in
such as binary search trees [15], can improve the runtime to Fig. 3 and Fig. 4, respectively. Both controllers always
O(log2 R) by pre-computing a search structure. The amount managed to keep the indoor temperature within the thermal
of memory required to store the PWA function (16) in the comfort zone. Moreover, the best-case scenario provides
memory is linear in R. least energy consumption. The worst-case approach, on the
other hand, maintains the temperature further away from
the boundary of the comfort zone, which leads to an in-
V. S IMULATION STUDY AND C ONCLUSIONS creased consumption of heating/cooling energy. This is a
consequence of using conservative bounds on the rate of
change of disturbances in the future. Aggregated results are
To validate performance of the stochastic explicit MPC reported in Table I. It should be pointed out that the best-case
strategy derived per Section IV, we have assumed a sim- scenario, although it performs best, is only of fictitious nature
ulation scenario that covered 9 days of historical data. since in practice future disturbances are not know precisely.
Historical evolution of disturbances (outdoor temperature, The stochastic scenario, on the other hand, can be easily
heat generated by occupancy, and solar heat) is shown in employed in practice. Moreover, it provides performance
Fig. 1. comparable to the best-case approach.
The explicit representation of the stochastic MPC feed-
back strategy (16) was obtained by formulating (12) in ACKNOWLEDGMENT
YALMIP [9] and solving the QP parametrically by the MPT The authors gratefully acknowledge the contribution of
toolbox. The feedback law covers following ranges of initial the Scientific Grant Agency of the Slovak Republic under

6444
d1 (t) [◦ C]
25
20 R EFERENCES
15
10 [1] T. Alamo, R. Tempo, and A. Luque. On the sample complexity of
5 randomized approaches to the analysis and design under uncertainty. In
0 1 2 3 4 5 6 7 8
American Control Conference (ACC), 2010, pages 4671–4676. IEEE,
Time [105 s] 2010.
d3 (t) [W]

1000 [2] W. Beckman, L. Broman, A. Fiksel, S. Klein, E. Lindberg, M. Schuler,


500 and J. Thornton. TRNSYS: The most complete solar energy system
0 modeling and simulation software. Renewable energy, 5(1):486–488,
0 1 2 3 4 5 6 7 8 1994.
Time [105 s] [3] A. Bemporad, M. Morari, V. Dua, and E.N. Pistikopoulos. The
explicit linear quadratic regulator for constrained systems. Automatica,
d2 (t) [W]

400 38(1):3–20, January 2002.


200 [4] W. Bernal, M. Behl, T. Nghiem, and R. Mangharam. MLE+: a tool for
0 integrated design and deployment of energy efficient building controls.
0 1 2 3 4 5 6 7 8 In Proceedings of the Fourth ACM Workshop on Embedded Sensing
5
Time [10 s] Systems for Energy-Efficiency in Buildings, pages 123–130. ACM,
2012.
Fig. 1. Historical trends of disturbances over 9 days. From top to bottom: [5] M. Campi and S. Garatti. The exact feasibility of randomized solutions
external temperature d1 , solar radiation d3 , and heat generated by occupancy of uncertain convex programs. SIAM Journal on Optimization,
d2 . 19(3):1211–1230, 2008.
[6] C. Canbay, A. Hepbasli, and G. Gokcen. Evaluating performance
22
indices of a shopping centre and implementing HVAC control princi-
1400 ples to minimize energy usage. Energy and Buildings, 36(6):587–598,
Indoor temperature [◦ C]

21.8
1100 2004.
Control input [W]

21.6

21.4 800 [7] D. Crawley, L. Lawrie, F. Winkelmann, W. Buhl, Y. Huang, C. Ped-


21.2
500 ersen, R. Strand, R. Liesen, D. Fisher, and M. Witte. EnergyPlus:
21
200
creating a new-generation building energy simulation program. Energy
20.8
−100
and Buildings, 33(4):319–331, 2001.
20.6

20.4 −400
[8] M. Kvasnica, P. Grieder, M. Baotic, and M. Morari. Multi-Parametric
20.2 Toolbox (MPT). In Hybrid Systems: Computation and Control, pages
−700
20
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
448–462, March 2004.
Time [105 s] Time [105 s] [9] J. Löfberg. YALMIP : A Toolbox for Modeling and Optimization
(a) Indoor temperature. Dashed lines (b) Heating/cooling. Dashed lines de- in MATLAB. In Proc. of the CACSD Conference, Taipei, Taiwan,
represent the thermal comfort zone. note limits of control authority in (2). 2004. Available from http://users.isy.liu.se/johanl/
yalmip/.
Fig. 2. Performance of the stochastic MPC controller. [10] Y. Ma, F. Borrelli, B. Hencey, B. Coffey, S. Bengea, and P. Haves.
Model predictive control for the operation of building cooling systems.
Control Systems Technology, IEEE Transactions on, 20(3):796–803,
22
1400 2012.
Indoor temperature [◦ C]

21.8
1100 [11] J.M. Maciejowski. Predictive Control with Constraints. Prentice Hall,
Control input [W]

21.6

21.4 800
2002.
21.2
500
[12] Michael J. Messina, Sezai E. Tuna, and Andrew R. Teel. Discrete-time
21
200
certainty equivalence output feedback: allowing discontinuous control
20.8 laws including those from model predictive control. Automatica,
20.6 −100
41(4):617 – 628, 2005.
20.4 −400
20.2
[13] F. Oldewurtel, A. Parisio, C.N. Jones, M. Morari, D. Gyalistras,
20
−700
M. Gwerder, V. Stauch, B. Lehmann, and K. Wirth. Energy efficient
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
Time [105 s] Time [105 s] building climate control using stochastic model predictive control and
weather predictions. In American Control Conference (ACC), 2010,
(a) Indoor temperature. (b) Heating/cooling.
pages 5100–5105. IEEE, 2010.
[14] M. Parry, O. Canziani, J. Palutikof, P. van der Linden, and C. Hanson.
Fig. 3. Performance of the best-case MPC controller with complete
Climate change 2007: impacts, adaptation and vulnerability. Inter-
knowledge of future disturbances.
governmental Panel on Climate Change, 2007.
[15] P. Tøndel, T. A. Johansen, and A. Bemporad. Evaluation of Piecewise
22
1400
Affine Control via Binary Search Tree. Automatica, 39(5):945–950,
Indoor temperature [◦ C]

21.8
1100
May 2003.
Control input [W]

21.6

21.4
[16] A. van Schijndel. Integrated heat, air and moisture modeling and
800
21.2
simulation in hamlab. In IEA Annex 41 working meeting, Montreal,
500
21 May, 2005.
200
20.8 [17] J. Široký, F. Oldewurtel, J. Cigler, and S. Prı́vara. Experimental
20.6 −100
analysis of model predictive control for an energy efficient building
20.4 −400 heating system. Applied Energy, 88(9):3079 – 3087, 2011.
20.2
−700 [18] M. Wetter and P. Haves. A modular building controls virtual test
20
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 bed for the integration of heterogeneous systems. In Third Na-
Time [105 s] Time [105 s] tional Conference of IBPSA-USA, Berkeley/California, https://gaia.
(a) Indoor temperature. (b) Heating/cooling. lbl. gov/bcvtb, 2008.
Fig. 4. Performance of the worst-case MPC controller which assumes
conservative bounds on future disturbances.

the grant 1/0095/11. The Authors gratefully acknowledge


the contribution of the Slovak Research and Development
Agency under the project APVV 0551-11.

6445

You might also like