Professional Documents
Culture Documents
R
in Electronic Design
Automation
Vol. XX, No. XX (2015) 1–150
c 2015 M. Maasoumy and A. Sangiovanni-Vincentelli
DOI: 10.1561/XXXXXXXXXX
1 Introduction 3
1.1 Why Buildings? . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Why Smart Buildings? . . . . . . . . . . . . . . . . . . . 5
1.3 Areas of research . . . . . . . . . . . . . . . . . . . . . . 8
1.4 Organization . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Simulation Tools 12
2.1 Building Simulation Tools . . . . . . . . . . . . . . . . . . 12
2.2 Building-to-Grid Simulation Tools . . . . . . . . . . . . . . 19
2.3 Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.4 Concluding Remarks . . . . . . . . . . . . . . . . . . . . . 21
3 Building Models 23
3.1 Resistor-Capacitor Models . . . . . . . . . . . . . . . . . . 24
3.2 Parameter-Adaptive Building (PAB) Model . . . . . . . . . 31
3.3 Concluding Remarks . . . . . . . . . . . . . . . . . . . . . 39
ii
iii
8 Conclusion 133
8.1 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . 135
Acknowledgements 137
References 138
Abstract
3
4 Introduction
1
A quad is a unit of energy equal to 1.055 × 1018 joules.
1.2. Why Smart Buildings? 5
Given that we spend on average more than 90% of our time in buildings
and the fact that 40% of total energy consumption is being consumed
in buildings, it is crucial that these systems are safe and comfortable
while consuming the minimum amount possible of energy. In order to
6 Introduction
1 10
Includes lease condensate. Includes 0.16 quadrillion Btu of electricity net imports.
2 11
Natural gas plant liquids. Total energy consumption, which is the sum of primary energy consumption, electricity retail
3
Conventional hydroelectric power, biomass, geothermal, solar/photovoltaic, and wind. sales, and electrical system energy losses. Losses are allocated to the end-use sectors in
4
Crude oil and petroleum products. Includes imports into the Strategic Petroleum Reserve. proportion to each sector’s share of total electricity retail sales. See Note 1, “Electrical Systems
5
Natural gas, coal, coal coke, biofuels, and electricity. Energy Losses,” at the end of U.S. Energy Information Administration, Monthly Energy Review
6 (March 2015), Section 2.
Adjustments, losses, and unaccounted for.
7 Notes: • Data are preliminary. • Values are derived from source data prior to rounding for
Natural gas only; excludes supplemental gaseous fuels. publication. • Totals may not equal sum of components due to independent rounding.
8
Petroleum products, including natural gas plant liquids, and crude oil burned as fuel. Sources: U.S. Energy Information Administration, Monthly Energy Review (March 2015),
9
Includes -0.02 quadrillion Btu of coal coke net imports. Tables 1.1, 1.2, 1.3, 1.4a, 1.4b, and 2.1.
Residential Sector Energy Consumption
Computers
Wet Cleaning 1.7%
3.4% Cooking
3.1% Other
Electronics
10.3%
2.9%
Refrigeration Space Heating
4.0% 44.2%
Space Cooling
8.9%
Lighting Water Heating
4.6% 16.9%
2015 Residential Energy End‐Use Splits
• Simulation tools;
• Building models;
1.4 Organization
2.1.1 EnergyPlus
12
2.1. Building Simulation Tools 13
tools, BLAST and DOE-2, which were both abandoned after many dis-
cussions but represented a first step and the working basis for Energy-
Plus. EnergyPlus ultimately has the features and capabilities of BLAST
and DOE-2, however it is an entirely new software tool that combines
the heat balance of BLAST with a generic HVAC system Sousa [2012].
EnergyPlus includes many simulation capabilities such as fine time-
steps (i.e. less than an hour), modular systems and plant integrated
with heat balance-based zone simulation, multi-zone air flow, thermal
comfort, water use, natural ventilation, and photovoltaic systems.
EnergyPlus handles integrated, simultaneous solution where the
building response and the primary and secondary systems are tightly
coupled, and it performs iteration when necessary. It also supports
sub-hourly, user-definable time steps for the interaction between the
thermal zones and the environment, and variable time steps for inter-
actions between the thermal zones and the HVAC systems. Energy-
Plus supports ASCII text-based weather, input, and output files in-
cluding hourly or sub-hourly environmental conditions, standard and
user definable reports. It leverages heat balance-based techniques for
building thermal loads that allow for simultaneous calculation of radi-
ant and convective effects at both interior and exterior surface during
each time step. Transient heat conduction through building elements
such as walls, roofs, floors, etc. using conduction transfer functions
is also supported. With the improved ground heat transfer modeling
through links to three-dimensional finite difference ground models and
simplified analytical techniques, EnergyPlus provides a more accurate
model of the heat loss or gain through the building floors. EneryPlus
also features combined heat and mass transfer model that accounts for
moisture absorption/desorption. Thermal comfort models based on ac-
tivity, inside dry bulb, and humidity as well as anisotropic sky model
for improved calculation of diffuse solar on tilted surfaces are available.
Detailed and advanced fenestration calculations in EnergyPlus includes
controllable window blinds, electrochromic glazing, layer-by-layer heat
balances that allow proper assignment of solar energy absorbed by
window panes, and a performance library for numerous commercially
available windows. Daylighting controls including interior luminance
14 Simulation Tools
2.1.2 DOE-2
2.1.3 eQUEST
Figure 2.1: Graphical view of the Modelica model that computes the change in
temperature for two simple room models, as shown in Modelica.
2.1.4 Modelica
2.1.5 TRNSYS
2.1.6 ESPr
2.1.7 BRCM
2.1.8 MLE+
MLE+ by Bernal et al. [2012] is a tool for energy-efficient building
automation design, co-simulation and analysis. The tool leverages the
high-fidelity building simulation capabilities of EnergyPlus and the sci-
entific computation and design capabilities of Matlab for controller de-
sign. MLE+ facilitates integrated building simulation and controller
design with integrated support for system identification, control de-
sign, optimization, simulation analysis and communication between
software applications and building equipment. It provides streamlined
workflows, a graphical front-end, and debugging support to help con-
trol engineers eliminate design and programming errors and take in-
formed decisions early in the design stage, leading to fewer iterations
in the building automation development cycle. Bernal et al. [2012] show
through an example and two case studies how MLE+ can be used for
designing energy-efficient control algorithms for both simulated build-
ings in EnergyPlus and real building equipment via BACnet.
2.2.2 VirGIL
2.3 Comparisons
ESPr finite vol- dependent on MoWiTT, inside radiation building HVAC and responsive to -
ume, energy, temperature, Ito, Kimura, view factors, solar geometry, building climate, oc-
mass, etc. air flow, surface and Oka gain, daylighting, models component cupant and
conservation heat coefficient, correlation, radiation to air export to libraries control system
or user-defined user-defined EnergyPlus
Modelica equation- constant or constant solar radiation, real-time building simple control -
based temperature- coefficient, infrared radiation data ex- and HVAC algorithms
object- dependent dependent from ambient change with
oriented coefficient on wind- environment BAS
modeling speed, wind
language direction and
temperature
BRCM RC modeling constant coeffi- constant coef- - built on - control design -
cient ficient MATLAB capability in
MATLAB
MLE+ RC modeling constant coeffi- constant coef- - MATLAB, - control design system identi-
cient ficient EnergyPlus capability in fication
MATLAB
23
24 Building Models
Figure 3.1: Schematic of a typical room with a window. Temperature sensors are
denoted by “S” in this figure.
Heat Transfer
There are two types of nodes in the building network: walls and rooms.
Consider in total n nodes, m of which represent rooms and the remain-
ing n − m nodes represent walls. We denote the temperature of room
i with Tri . The wall node and temperature of the wall between room i
and j are denoted by (i, j) and Twi,j , respectively. Thermal dynamics
of nodes is governed by the following equation:
Wall Temperature Dynamics
w dTwi,j X Trk − Twi,j
Ci,j = + ri,j αi,j Awi,j Qradi,j (3.1)
dt Ri,jk
k∈Nwi,j
where Ci,jw, α
i,j and Awi,j are heat capacity, radiative heat absorption
coefficient and area of wall between room i and j, respectively. Ri,jk
is the total thermal resistance between the centerline of wall (i, j) and
the side of the wall where node k is located. Qradi,j is the radiative heat
flux density on wall (i, j). Nwi,j is the set of all of neighboring nodes to
node wi,j . ri,j is wall identifier which is equal to 0 for internal walls, and
equal to 1 for peripheral walls (i.e. either i or j is an outside node). In
Equation (3.1) the left term denotes the rate of change of stored heat
in the wall between room i and room j. The first term of the right hand
side of this equation represents the flow of heat between room k and
wall (i, j) due to temperature difference and the second term shows the
heat flow to the wall, due to solar radiation. Temperature dynamics of
the ith room is modeled by the following equation:
Air Temperature Dynamics
dTri X Tk − Tr
Cir = i
+ ṁri ca (Tsi − Tri ) + wi τwi Awini Qradi + Q̇inti (3.2)
dt Ri,ki
k∈Nri
where Tri , Cir and ṁri are the temperature, heat capacity and air mass
flow into room i, respectively. ca is the specific heat capacity of air,
and Tsi is the temperature of the supply air into room i. πi is window
3.1. Resistor-Capacitor Models 27
the room through the windows. The data used here is based on the
past 30 years monthly average of solar radiation for flat-plate collec-
tors facing south (resembling the south facing flat vertical walls of the
building), and is obtained from NREL (National Renewable Energy
Laboratory) NRE [May 2015] database for Houghton, MI in January.
Furthermore, we take into account the radiation cooling at night (i.e.
sky thermal radiation to the building) based on the proposed relation
in Goforth et al. [vol. 4710, no. 1, pp. 203-213, Orlando, FL, 2002]:
Qsky = (1 + KC 2 )8.78 × 10−13 Tout
5.852
RH 0.07195 (3.6)
where K is the coefficient related to the cloud height and C is a function
of cloud coverage. We use K = 0.34 and C = 0.8 for simulations, based
on the results in Goforth et al. [vol. 4710, no. 1, pp. 203-213, Orlando,
FL, 2002]. Tout is the outside air temperature, and RH is the air relative
humidity percentage. The total radiation exchange between building
and ambient environment is then given by:
Qrad = Qsky + Qsolar − Qbldg (3.7)
Note that Qsky and Qsolar are heat flow into the building, and Qbldg ,
is the heat flow from the building to the environment.
System Dynamics
Heat transfer equations for walls and rooms yield the following system
dynamics:
ẋt = f (xt , ut , dt , t)
yt = Cxt (3.8)
where xt ∈ Rn is the state vector representing the temperature of the
nodes in the thermal network, ut ∈ Rl×m is the input vector represent-
ing the air mass flow rate and discharge air temperature of conditioned
air into each thermal zone, and yt ∈ Rm is the output vector of the
system which represents the temperature of the thermal zones. l is the
number of inputs to each thermal zone (e.g., two for air mass flow and
supply air temperature). C is a matrix of proper dimension and the
disturbance vector is given by dt = g(Qradi (t), Q̇int (t), Tout (t)).
3.1. Resistor-Capacitor Models 29
Disturbance
Following the intuitive linear relation between outside temperature
Tout , internal heat generation Q̇int , and solar radiation Qrad , with the
building internal temperature rise we approximate g with an affine
function of these quantities, leading to:
Additive uncertainty
We linearize the original nonlinear dynamic system and use Euler’s
discretization method to obtain a linear discrete-time system. We also
add an additive uncertainty to the state update equation to account
for model uncertainties, leading to:
Wλ = {w : ||w||∞ ≤ λ} (3.13)
Figure 3.2: Architecture of the building control based on the proposed PAB model
with its components.
One way to adapt the model to account for time varying parameters
is to assume that all the parameters of the model are independent, and
hence define a state corresponding to each parameter. However, this
would lead to an excessive number of states (e.g. 18 states for a room
34 Building Models
1 2 T2
ẋ2 = x1 − w w x2 + w w (3.16)
C w Rw C R C R
1 2 T3
ẋ3 = w w x1 − w w x3 + w w (3.17)
C R C R C R
1 2 T4
ẋ4 = w w x1 − w w x4 + w w (3.18)
C R C R C R
1 1 1
ẋ5 = w x1 − wR + w x5
C51 R511 C51 511 C51 R515
T5 Aw51 αQrad
+ w + w (3.19)
C51 R515 C51
Lw /2 1 cw L2w cw Lw
C w Rw = (cw Aw Lw )( + )= + (3.20)
k w Aw hin Aw 2kw hin
as follows:
1 1
x6 = x7 = (3.21)
C1r R121 C1r R131
1 1
x8 = x9 = (3.22)
C1r R141 C1r R151
1 1
x10 = x11 = (3.23)
C1r Cw Rw
1 1
x12 = wR x13 = w (3.24)
C51 511 C51 R515
α 1
x14 = w x15 = win (3.25)
C51 R15
Rate of change of these states is equal to zero, as shown in the corre-
sponding state update Equation (3.31). We then add a low-magnitude
fictitious noise to the dynamics of parameters to allow slow changes in
their values over time.
State and Parameter Dynamics Model
where wk and vk are the process and measurement noise and are as-
sumed to be zero-mean multivariate Gaussian process with variance
Wk and Vk , (i.e. wk ∼ N (0, Wk ) and vk ∼ N (0, Vk )), respectively.
30 30
25 25
20 20
Outdoor temperature (°C)
10 Tout 10
T2in
5 5
T3in
0 0
T4in
−5 −5
−10 −10
−15 −15
−20 −20
−25 −25
0 1 2 3 4 5 6 7 8 9 10 11 12 13
Time (Day)
2.5
x6
x7
2
x8
Parameter value
x9
1.5
x10
x11
1
x12
x13
0.5 x14
x15
0
−0.5
0 1 2 3 4 5 6 7 8 9 10 11 12 13
Time (Day)
Figure 3.5: Estimated parameters of the PAB model using the designed UKF.
The PAB model presented in this section provides all the advan-
tages mentioned above, as it is a physics-based RC model. On top of
these advantages, the PAB model learns the changes in the system and
environment and adapts the system parameters accordingly.
4
Building Control Design
41
42 Building Control Design
PID
On-Off
On-Off
On-Off
Figure 4.1: Control logic of a typical commercial building. The interaction and
interrelation of building sub-systems is not addressed in the state-of-the-art control
logic of such systems. This may cause inefficient use of energy, such as simultaneous
heating and cooling of air in two different part of the system.
indoor air quality and the energy consumption. A direct neural network
(NN) control is designed by Liang and Du [2005] with the control ob-
jective of Predicted Mean Vote (PMV) for indoor thermal environment
regulation. Braun [2003] provides an overview of research related to use
of building thermal mass for shifting and reducing peak cooling loads
in commercial buildings. Studies have demonstrated significant savings
potential for use of building thermal mass in commercial buildings.
However, the savings are sensitive to many factors, including utility
rates, type of equipment, occupancy schedule, building construction,
climate conditions, and control strategy. The problem of computing
optimal control strategies for time-scheduled operation of heating, ven-
tilating and air conditioning systems is explored by Zaheer-Uddin and
Zheng [2000]. A two-zone variable air volume heating system consisting
of a 4 ton heat pump, a storage tank, water and air flow networks and
two environmental zones is considered. The optimization problem that
takes into consideration the building operation schedules consisting of
night-setback, start-up, occupied modes and energy price discounts is
formulated and solved for a given predicted weather profile. Liu and
Henze [2006a] in a two-part investigation of a novel approach present
a framework for optimal control of commercial building passive and
active thermal storage inventory. The proposed building control ap-
proach is based on simulated reinforcement learning, which is a hybrid
control scheme that combines features of model-based optimal control
and model-free learning control. An experimental study was carried
out to analyze the performance of a hybrid controller installed in a
full-scale laboratory facility. The first paper by Liu and Henze [2006a]
introduced the theoretical foundation of this investigation including the
fundamental theory of reinforcement learning control. The second pa-
per by Liu and Henze [2006b] presents a discussion and analysis of the
experiment results. Operating cost savings were attained with the pro-
posed control approach compared with conventional building control;
however, the savings are lower than for the case of model-based predic-
tive optimal control (to be presented in the next section). As for the
case of model-based predictive control, the performance of the hybrid
controller is largely affected by the quality of the training model. Never-
46 Building Control Design
(4.1)
V2
ψ = (h − h0 ) − T0 (s − s0 ) +
+ gz (4.3)
2
in which h and h0 indicate enthalpy and dead-state enthalpy of the
fluid. s and s0 show fluid entropy and dead-state entropy. Specific
56 Building Control Design
Xir =mroom
i [(h − h0 ) − T0 (s − s0 )] ⇒
dXi r dh ds dmroom (4.4)
=mroom
i ( − T0 ) + i
[(h − h0 ) − T0 (s − s0 )]
dt dt dt dt
where mroom
i is mass of the air inside room i. Ideal gas assumption is
considered for change in enthalpy and entropy due to the compressibil-
ity factor being close to one (very low pressure of the air). We neglect
change of mass of the air inside room in Equation (4.4), thus we as-
dmroom
sume i
dt is equal to zero. Hence, the only remaining term of the
Equation (4.4) is the first term. The following equation expresses the
entropy change (∆s) and the enthalpy change (∆h) of air:
Z 2
∆h = cpavg dT ⇒ h2 − h1 = cpavg (T2 − T1 ) (4.5)
1
Z 2
dT v2 T2 v2
∆s = cvavg + R · ln ⇒ s2 − s1 = cvavg · ln + R · ln
1 T v1 T1 v1
(4.6)
r
X T0 [k] Tkr [k] − Tir [k]
Ẋdest [k] = (1 − )( )+
i
Tkr [k] k
Ri,j
k∈Nir
Tis [k]
ṁri [k]{cpavg (Tis [k] − Tir [k]) − T0 [k]cvavg ln( )}
Tir [k]
mroom
i T r [k]
+ {cpavg (Tir [k] − Tir [k − 1]) − T0 [k]cvavg ln r i }
Tsample Ti [k − 1]
(4.7)
where [k] indicates index of time step. Equation (4.7) expresses the
exergy destruction at each time step based on the outside air temper-
ature, mass flow rate, supply air temperature and zone temperature.
4.7 Comparisons
MPC Formulation
min {|Ut |1 + κ|Ut |∞ + ρ(|t |1 + |t |1 )} = (4.8a)
Ut ,¯
,
N −1 N
X X
min { |ut+k|t | + κ max(|ut|t |, · · · , |ut+N −1|t |) +ρ (|εt+k|t | + |εt+k|t |)}
Ut ,ε̄,ε
k=0 k=1
(4.8b)
s.t. xt+k+1|t = Axt+k|t + But+k|t + Edt+k|t , k = 0, ..., N − 1 (4.8c)
yt+k|t = Cxt+k|t , k = 1, ..., N (4.8d)
U t+k|t ≤ ut+k|t ≤ U t+k|t , k = 0, ..., N − 1 (4.8e)
T t+k|t − εt+k|t ≤ yt+k|t ≤ T t+k|t + εt+k|t , k = 1, ..., N (4.8f)
εt+k|t , εt+k|t ≥ 0, k = 1, ..., N (4.8g)
RMPC Formulation
min {||Ut ||1 + κ||Ut ||∞ + ρ(||t ||1 + ||t ||1 )} (4.9)
Ut ,ε̄,ε
Subject to:
The only difference with respect to the MPC algorithm is the intro-
duction of the additive uncertainty term w in the state update equation.
Using this formulation, we derive a robust counterpart of an uncertain
optimization problem in which constraints are satisfied for all possible
uncertainties, and worst-case objective is calculated.
In Maasoumy and Sangiovanni-Vincentelli [Fort Lauderdale, FL,
2012] the open-loop constrained robust optimal control (OL-CROC) is
proven to be conservative. The closed-loop constrained robust optimal
control (CL-CROC) formulation overcomes this issue but it can quickly
lead to an intractable problem Löfberg [2003]. Next, we review the
feedback prediction concept followed by our proposed formulation to
improve upon the feedback prediction scheme.
The idea in feedback prediction is to introduce new decision vari-
ables and parameterize the future control sequences using the future
disturbances and an additive independent decision variable. Define an
affine disturbance feedback as:
i−1
X
ui := mi,j wj + ni ∀i = 1, 2, ..., N − 1 (4.11)
j=0
0 ··· ··· 0 n0
.. ..
m1,0 0 . 0 .
M := , n := (4.12)
.. .. .. .. ..
. . . .
.
mN −1,0 · · · mN −1,N −2 0 nN −1
at the same time. Using the two indices defined above we define
a third index called Overall Performance Index (IOP ). The in-
tuition behind this new index is to take into account the energy
and discomfort index in one single term. IOP is defined as:
(Id∗ − Id )/||Id ||∞
IOP = (4.17)
Ie /||Ie ||∞
Comparison Results
To illustrate the effectiveness of the controllers proposed in subsec-
tions 4.7.1 and 4.7.2, we assess their performances for different model
uncertainty values denoted by δ and defined as
λ
δ= × 100 [%] (4.18)
||d||∞
where λ is the `∞ norm bound of the uncertainty as given by Equa-
0 0 0 0
tion (3.13) and d = [d1 , d2 , ..., dN ] is the disturbance realization vector.
d0 represents transpose of vector d.
A time constant of ∆t = 1 (hr) is used for all controllers. We im-
plement the introduced model predictive controllers with a prediction
horizon of N = 24. The choice of N = 24 is to provide a good balance
between performance and computational cost for the MPC framework.
We use the following numerical values for parameters in Equa-
tions (4.8) and (4.10). U = 63 cfm (0.03 m3 /s) is the higher limit
on air mass flow, [T .|t T .|t ] = [20 22]o C during occupied hours, and
[T .|t T .|t ] = [19 23]o C is used during unoccupied hours. For the sim-
ulations we use κ = 0.75 and ρ = 50. ε and ε are the slack variables
64 Building Control Design
used to avoid feasibility problem, where and are the vectors storing
slack variables.
Figure 4.4: Control input and resulting temperature profile for the existing con-
troller on the building (Measurements), RBC, MPC, and robust MPC controllers.
The additive uncertainty bound is considered δ = 60% in this case.
Number of Average
Controller feedback decision simulation time Ie Id
variables for N = 24, in (s) (kW h) (o Ch)
LTS l.m.r( N (N2+1) ) 200 16467 0
TLDS 3l.m.r(N − 1) 138 16467 0
5
RBC
4.5
MPC
4 RMPC
Trendline of MPC data
Discomfort index, Id (°Ch)
1.5
0.5
0
0 25 50 75 100
Additive model uncertainty, δ (%)
Figure 4.5: Discomfort index Id versus additive model uncertainty (δ). We gener-
ate a uniform random sequence based on the disturbance prediction error value δ.
The generated random sequence is used in the simulations for making this graph.
Trendlines in this figure are calculated based on least square estimation.
4
x 10
5
RBC
4.5 MPC
RMPC
4 Trendline of MPC data
Trendline of RMPC data
Energy index, Ie (kWh)
3.5
3
Parameter Adaptive
2.5 Building (PAB) Model
1.5
0.5
0
0 25 50 75 100
Additive model uncertainty, δ (%)
Figure 4.6: Energy index Ie versus additive model uncertainty (δ). The data points
for this graph were generated using a similar technique as in Figure 4.5. Trendlines
in this figure are calculated based on least square estimation.
than RBC, but RMPC leads to more energy consumption than RBC
soon after δ = 35%.
Comfort-Energy Trade-off: An important point to notice from
Figure 4.6 is how much more energy needs to be supplied to the HVAC
system to maintain the comfort level in the presence of imperfect and
faulty, un-modelled dynamics predictions. Consider the case where δ =
75%. MPC will lead to a discomfort index of 1.7o Ch on average, while
the RMPC is able to maintain the temperature below a discomfort
index of 0.016o Ch on average. However, this level of comfort provided
by the RMPC comes at a cost of energy consumption of 3 times more
than that of the MPC case. Note that due to the trade-off between
comfort and energy consumption, the choice of which controller to use
is made by the building HVAC operator, and it depends on various
factors such as criticality of meeting the temperature constraints for
the considered thermal zone in the building, and availability and price
of energy at that time of the day/year.
As observed from Figure 4.5 and 4.6, the behavior of controllers
68 Building Control Design
Figure 4.7: Energy saving of MPC and RMPC compared to RBC as a function
of model uncertainty. The blue eclipse shows the operating area of the PAB model
which keeps the model uncertainty very small.
is still outside the comfort zone. In on-off control, the position of the
dampers can be either the min value or the max value. When system
goes to the cooling mode, supply air temperature changes accordingly.
The experimental data presented here is for the heating mode only. To
be consistent and to perform a fair comparison, we use the same time
constants ∆t for all controllers.
Figure 4.7 demonstrates savings of MPC and RMPC versus RBC.
As shown, the maximum theoretical energy saving of MPC compared
to RBC is 36%, and that of RMPC compared to RBC is 30% for the
building studied. These values decrease as model uncertainty increases.
Energy saving of MPC versus RBC stays positive even for large val-
ues of model uncertainty, while energy saving of RMPC versus RBC
is positive only for model uncertainty values up to about 34%, and
is negative for larger model uncertainties (i.e. RMPC consumes more
energy than RBC).
The results of an extensive study in Gyalistras and Gwerder [Zug,
Switzerland, 2010] show that MPC HVAC control can potentially pro-
vide 16%-41% building energy saving compared to rule-based con-
trollers, which is in agreement with our findings. The saving depends on
various factors including climate zone, insulation level, and construc-
tion type. Stochastic MPC was shown in Gyalistras and Gwerder [Zug,
Switzerland, 2010] to be superior to the rule-based control given the un-
certainties in occupancy and weather forecast. Our findings also show
that the robust MPC outperforms the rule-based control in terms of
energy consumption and user comfort. Although these two MPC tech-
niques (robust and stochastic MPC) both address model uncertainty,
they are formulated differently and hence can lead to different perfor-
mance results. A comparative analysis of these two MPC techniques
is the subject of our future work. Given the accuracy of the PAB for
removing model uncertainty, designing MPC scheme based on PAB is
a promising solution for building control problems.
Figure 4.8: Overall performance index for RBC, MPC and RMPC as a function of
model uncertainty. The red zone demonstrates the region which MPC outperforms
RMPC and RBC as it yields a higher IOP . The green zone represents the region
that IOP of RMPC is higher than that of MPC and RBC. RBC dominates in terms
of IOP in the blue zone. In the gray zone the resulting discomfort index is not
acceptable.
using IOP . The results, as shown in Figure 4.8, suggest that for model
uncertainties less than 30% MPC is the best controller type. For model
uncertainties above 30%, RMPC and RBC are close in performance
while for δ between 30% and 67% RMPC is the best, and for model
uncertainties larger than 67%, RBC leads to better overall performance
than model-based control techniques. This information can be utilized
in choosing a controller type for building HVAC system. As described
in the paper, proper choice of building HVAC control would depend on
the accuracy of the given building model. The range of uncertainties
for a given building model can be obtained by taking the difference of
the temperature predictions from the building model and temperature
measurements from a building. The statistics of such uncertainty can
be found once such data is available. The mean and variance of the
uncertainty from the statistical analysis can be used to select the best
controller type.
4.7. Comparisons 71
24
X
Ie = [Pc (t) + Ph (t) + Pf (t)] ∆t (4.19)
t=1
where cooling power Pc , heating power Ph and fan power Pf are deter-
mined by:
where Tc and Th are the supply air temperatures in the cooling mode
and the heating mode, respectively. κ [W.s3 .kg− 3] is the fan coeffi-
cient which expresses the cubic relation between power consumption
and mass flow rate (ṁri ). Since air mass flow has a constant value and
is not a control input in the state space model, fan power (Pf ) is not
considered in the energy cost function. We formulate an MPC problem
to minimize Ie . The electrical energy consumption is proportional to
the difference between supply air temperature (Tc or Th ) and the room
air temperature Tir . Hence, the controller minimizes the required en-
ergy while keeping the room temperature within the comfort zone. We
use the objective function in Equation (4.21a) to minimize energy us-
age with low computational requirements. In addition, soft constraints
denoted by in Equation (4.21), are formulated to guarantee optimal
problem feasibility at all times. The following optimization problem is
being solved at each time step t:
72 Building Control Design
subject to:
xt+k+1|t = Axt+k|t + But+k|t + Edt+k|t (4.21b)
yt+k|t = Cxt+k|t (4.21c)
U t+k|t ≤ ut+k|t ≤ U (4.21d)
δU ≤ ut+k+1|t − ut+k|t ≤ δU (4.21e)
T t+k|t − εt+k|t ≤ yt+k|t ≤ T t+k|t + εt+k|t (4.21f)
εt+k|t , εt+k|t ≥ 0 (4.21g)
where Equations (4.21b) and (4.21c) is the building state equa-
tion model. Input constraints on supply air temperature are shown
in (4.21d) and (4.21e), and (4.21f) denotes the output constraint on
room air temperature and (4.21g) is the constraint on slack variables.
Constraints (4.21b) and (4.21d) must hold for all k = 0, 1, ..., N − 1
and constraints (4.21c), (4.21e), (4.21f), and (4.21g) must hold for
all k = 1, 2, ..., N . Ut = [ut|t , ut+1|t , · · · , ut+N −1|t ] denotes the vector of
control inputs, t = [εt+1|t , · · · , εt+N |t ] and t = [εt+1|t , · · · , εt+N |t ] are
the slack variables vector. yt+k|t is thermal zone temperature vector,
the output of state model. dt+k|t denotes the disturbance vector, and
T t+k|t and T t+k|t for k = 1, · · · , N are the comfort bounds (lower and
upper bounds) on the zone temperature, respectively. U t+k|t and U de-
note the lower and upper limits on the supply air temperature provided
by the heat-pump, respectively. Since physical limit on maximum sup-
ply air temperature is not time varying, time invariant constraint U is
used. δU and δU are limits on rate of change of supply air temperature
due to dynamics of heat-pump condenser. ρ is being used to consider
penalty on the comfort constraint violations.
At each time step, the first entry of input vector, Ut , computed by
the optimization problem is applied to the building model and moves
the system forward to the next time step. Then, the prediction time
horizon, N , is shifted to form a new optimization problem. The op-
timization process is repeated until the total time span of interest is
covered. In order to find the optimal future inputs, weather prediction
4.7. Comparisons 73
for the next 24 hours, schedule of the zone (temperature bounds), and
the building energy model are used. A schematic of model predictive
control implementation is depicted in Figure 4.3
XMPC Formulation
subject to:
xt+k+1|t = Axt+k|t + But+k|t + Edt+k|t (4.22b)
yt+k|t = Cxt+k|t (4.22c)
U t+k|t ≤ ut+k|t ≤ U (4.22d)
δU ≤ ut+k+1|t − ut+k|t ≤ δU (4.22e)
T t+k|t − εt+k|t ≤ yt+k|t ≤ T t+k|t + εt+k|t (4.22f)
εt+k|t , εt+k|t ≥ 0 (4.22g)
In this chapter, we used the building model that was obtained in Chap-
ter 3, we presented MPC to minimize the energy consumption of the
building while satisfying thermal comfort, and constraints on other sys-
tem states and inputs. Model uncertainty is an unavoidable challenge
for modeling and model-based control of a building HVAC system.
We characterized the impact of model uncertainty on MPC con-
trollers and presented two approaches to minimize model uncertainty
for building controls. We presented an MPC framework that is ro-
bust against additive uncertainty. The new framework is a closed-loop
RMPC utilizing uncertainty knowledge to enhance the nominal MPC.
The RMPC is capable of maintaining the temperature within the com-
fort zone for model uncertainties up to 75%. We proposed a new un-
certainty feedback parametrization of the control input, TLDS, for the
closed loop RMPC which results in the same energy and discomfort
indices as the previous parametrization, LTS, with a lower number of
decision variables, linear in time horizon N, as opposed to quadratic, for
the LTS. The new TLDS parametrization results in an average simula-
tion time of 30% less than LTS. Closed-loop RMPC outperforms nom-
inal MPC considering the provided level of comfort. However, higher
comfort comes at the cost of dramatically higher energy consumption
for RMPC. For uncertainty range of 30% to 67%, RMPC leads to bet-
ter overall performance compared to MPC and RBC, although it fails
to provide a better energy-comfort trade-off if model uncertainty is less
than 30% or more than 67%. We proposed a new performance index
(IOP ) to assess buildings’ energy consumption and comfort level si-
multaneously. The IOP index is used for evaluating different building
controllers. IOP index can be used to generate a guideline for choosing
appropriate controller type for buildings. This can be helpful to the
building control community for deciding on a proper controller type
based on how accurate an available building model is for model-based
controller design. We found that the best choice for controller type
changes from MPC to RMPC, and then finally to RBC as the model
uncertainty increases. A typical RBC controller outperforms model-
based controllers (MPC and RMPC), if building model uncertainty is
76 Building Control Design
above 67%.
We also derived and formulated exergy destruction as a function
of the physical parameters of the building. An optimal control prob-
lem is formulated to minimize exergy destruction rate. The beneficial
new aspects of MPC problem based on exergy is optimizing the use of
low quality energy (low exergy) for HVAC systems and hence decreas-
ing irreversible entropy generation. Our findings show that the MPC
controllers outperform the rule-based on-off controller for HVAC sys-
tems. Compared to RBC, energy-based MPC results in 18% and 24%
reduction in exergy destruction and energy consumption, respectively.
XMPC enhances the results from energy-based MPC by offering 22%
reduction in exergy destruction and 36% reduction in HVAC energy
consumption compared to RBC. Our results show the supremacy of
XMPC compared to conventional energy-based MPC since it consumes
12% less energy and saves 4% more exergy. The benefits from XMPC
stem from reduction of sources of irreversible entropy generations by
controlling the HVAC system variables that affect heat transfer, in-
ternal entropy generation rate, and exergy flows into the zones. The
implementation of the proposed XMPC is the same as conventional
energy-based MPC. The only difference is the change in the objective
function. Details for implementation of conventional MPC are exten-
sively found in references Bengea et al. [2014]. The implementation of
XMPC on a real building test-bed is an interesting avenue for future
research.
5
Test-beds and Real-scale Experiments
77
78 Test-beds and Real-scale Experiments
5.2.1 UC Berkeley
The campus of UC Berkeley has been subject to many studies and ex-
periments where researchers such as Maasoumy et al. [2014c], Aswani
et al. either used the data from BEMS for building model training or
implemented their control algorithms on the system by directly over-
writing the control logic or set-points of the system.
LoCal
Figure 5.1: Berkeley Retrofitted and Inexpensive HVAC Test-bed for Energy Effi-
ciency (BRITE).
5.2.2 SinBerBEST
Figure 5.2: SinBerBEST facilities located in both Berkeley, California and in Sin-
gapore.
for tropical buildings, Total dynamic model for control and opti-
mization, Dynamic control and optimization, Distributed sensing
and cooperative control, Resource management.
Figure 5.3: Layout of the test facility at the Energy Resource Station (ERS),
Ankeny, IA Liu and Henze [2006b].
floor area of 855 m2 . The building is divided into a general area (of-
fice space, service rooms, media center, two classrooms, etc.), and two
sets of identical test rooms, labeled A and B, adjacent to the general
area. The eight test rooms are organized in pairs with three sets of
zones having one exterior wall (east, south, and west) and one set that
5.2. Review of Large-scale Test-beds for Building Studies 85
is internal. Figure 5.3 depicts a layout of the ERS including the four
sets of identical test rooms used for the experiment. The test facility
has a central heating plant, consisting of a natural gas-fired boiler, and
a cooling plant with three nominal 35 kW air-cooled chillers that op-
erate in both chilled-water and ice-making modes. The chilled-water
loop is filled with 22% propylene glycol water solution. In addition, the
building includes a 440 kWh internal melt ice-on-tube thermal energy
storage tank as well as pumps and auxiliary equipment needed to pro-
vide cooling. Hence, several modes of operation between these sources
of cooling are possible in order to supply chilled-water to the AHUs.
5.2.4 BubbleZERO
5.2.5 UC Merced
The UC Merced chilled water plant includes three water-cooled chillers
and a two million gallon chilled water storage tank. The tank is charged
during the night to minimize on-peak electricity consumption and take
advantage of the lower ambient wet bulb temperature. A model predic-
tive control algorithm was developed for the UC Merced campus chilled
water plant 5.6.
The control algorithms determined the optimal chilled water plant
operation including chilled water supply temperature set-point, con-
denser water supply temperature set-point and the charging start and
stop times to minimize a cost function that includes energy consump-
5.2. Review of Large-scale Test-beds for Building Studies 87
5.2.6 OptiControl
Figure 5.7: Testbed schematic with a ground-source heat-pump. Sensor 1-a shows
the BMS temperature sensor and sensor 1-b belongs to the data-logger.
in the US, Europe and Asia. In Table 5.1, we summarize the test-beds
introduced in this section using metrics such as location, size, build-
ing type, institutions involved in the experiment, heating and cooling
systems and actuation system.
Test-bed Location Size Building Institutions Heating Cooling Actuation system
type involved system system
UC Berkeley Berkeley, multiple university UC Berkeley gas boiler cooling supply air temperature,
CA buildings buildings towers mass flow rate and local
reheat at VAV level
SinBerBEST Berkeley, multiple university UC Berkeley, gas boiler cooling supply air temperature,
CA and buildings buildings NTU, NUS towers mass flow rate and local
Singapore reheat at VAV level
UC Merced Merced, CA multiple university UC Merced, gas boiler chillers, chilled water supply tem-
buildings buildings UC Berkeley, chilled perature, condenser wa-
LBNL, UTRC water ter supply temperature,
storage charging start and stop
tank times
OptiControl Allschwil, 6000 m2 office ETH Zurich, gas boiler cooling thermally activated build-
Switzerland rooms Siemens, tower ing system, AHU for heat-
Gruner, Empa ing and cooling, blinds
Dubendorf,
MeteoSwiss
MichiganTech Houghton, 5700 m2 office MichiganTech ground ground heat-pump compressor
MI rooms source source
heat heat
pumps pumps
ERS Ankeny, IA 855 m2 office Iowa Energy gas boiler chillers, supply air temperature,
rooms Center, Iowa ice stor- storage system charge and
State University age tank discharge rates
BubbleZERO Singapore 20 m2 un- ETH Zurich, - hydronic decentralized air supply
occupied NUS radiant units, shades
cooling
95
96 Designing Building Control Systems as Cyber-Physical Systems
Physical
Components & Control
Environment Algorithm
Cyber-
Physical
System
Embedded
Platform
lyzes the interaction between the control algorithm and the embedded
platform through a set of interface variables – in particular sensing
accuracy. Six control algorithms are analyzed that take into account
the sensing error, and the relation of control performance and cost is
modeled versus sensing error. The relation of embedded platform cost
versus sensing error is captured by analysis of the collected data from a
test-bed. Based on these models, the co-design of the control algorithm
and the temperature sensing subsystem of the embedded platform is
performed to optimize with respect to energy cost and monetary cost
while satisfying the constraints for user comfort level.
Control constraints
and objectives
(energy cost, user Design space exploration
comfort)
..
Platform constrains Interface variables ..
and objectives (sensing accuracy) .
(monetary cost)
Pareto front of
optimal designs
Embedded platform design
(number of sensors, locations)
Platform library
(available sensors)
accuracy of sensing data. Sensing accuracy is then used for the selection
of the HVAC control algorithm (from the six candidate controllers) to
minimize energy cost while satisfying user comfort requirements. We set
the monetary budget to a range of different values, and find the design
that consumes the minimal energy for each given budget. The result
of this design space exploration is a Pareto front of optimal monetary
cost and energy cost.
Various models and control algorithms have been proposed in the
literature for HVAC systems Maasoumy [2011], Ma et al. [pp. 1-
65, 2011], Oldewurtel et al. [Baltimore, MD, 2010], Maasoumy and
Sangiovanni-Vincentelli [2012], Maasoumy et al. [2011]. In a recent
work, unscented Kalman filtering has been used for online estimation
of building thermal parameter estimation Radecki and Hencey [2012].
The focus of these papers is on physical modeling and control design
without taking into account the limitations of the embedded platform.
For instance, Maasoumy and Sangiovanni-Vincentelli [Fort Lauderdale,
FL, 2012] propose a robust control algorithm against weather and oc-
cupancy prediction uncertainties. However, the uncertainties from the
embedded platform measurements such as sensor errors are not ad-
dressed. Yang et al. [2010, 2012] focus on the design of the embedded
software and hardware for a given control algorithm, thus not address-
ing design space exploration for optimal HVAC system design.
and ot
k to denote the error in ambient air temperature prediction, and
hence the predicted ambient temperature is
Equation (3.11))
where wk = −ξ(āot c
k + b̄k ) and the constant ξ is a function of the
discretization method and discretization step of the continuous system
dynamics, and vk = rtk (i.e. the temperature measurement error). The
CO2 and ambient air temperature forecast errors are uncorrelated ran-
dom variables with variance σc and σot , respectively. Hence, variance
of wk is calculated by
where ˜ot = ot − ˆot and ˜c = c − ˆc . In this paper, we assume typical
values for σot , σc and other constants in simulations: σot = 2, σc = 50,
ā = 0.01, b̄ = 0.06 and ξ = 10.
If CO2 and temperature sensors are deployed to facilitate the pre-
dictions of CO2 level and ambient air temperature, the values of σot
and σc will be largely affected by the choice of CO2 and temperature
sensor type, number and locations.
18000
16000
14000
Energy Cost (kWh)
12000
EKF-MPC
10000 EKF-RMPC
8000 EKF-OnOff
UKF-MPC
6000
UKF-RMPC
4000
UKF-OnOff
2000
0
0 25 50 75 100
Temperature measurement Noise (%)
0.6
0.5
Discomfort Index (°Ch)
0.4
EKF-MPC
EKF-RMPC
0.3
EKF-OnOff
UKF-MPC
0.2
UKF-RMPC
0.1
UKF-OnOff
0
0 25 50 75 100
Temperature measurement Noise (%)
We collected data from test-bed for one week period (July 16-23, 2012).
Sensor readings from 8 indoor temperature sensors located in the test-
bed were collected. The 8 sensors were spread out to cover the entire
area of BubbleZERO. The spatial sensor location variation led to dif-
ferent levels of measurement accuracy from each sensor with respect to
the average temperature in the space. To obtain the relation between
sensing accuracy and choice of number and locations of sensors, we
analyzed the data collected from the test-bed. During the experiment
sensor Telosb44 only stored a few data points due to faulty behavior;
consequently, we neglected that sensor in our analysis.
We consider the average of all the remaining 7 sensors as the actual
temperature of the room. We then select a different number of sensors
and calculate the difference between the average measure of the selected
k sensors (k = 1, 2, ..., 6) and the average measure of all 7 sensors
(i.e. the actual temperature of the room). This difference provides an
estimation of the temperature sensing accuracy under certain selection
of the sensors, and can be regarded as the measurement error of this
set of sensors. The root mean square (rms) of this difference is denoted
by ∆rms .
To further study the effect of sensor locations on sensing accuracy,
for each k value we enumerate all possible sets of sensors (with differ-
ent locations) and pick the set that provides the minimal rms value of
its measurement error, which is denoted by δm b . We also calculate the
shown in Figure 6.5. For instance, when k = 1, the best sensor (i.e. the
one that provides the minimal rms value with respect to the average of
all 7 sensors) is sensor T45 , which is located in the south eastern part
of the bubble and provides ∆rms = 0.29. When k = 2, the best two
sensors are T41 and T48 , which are the two sensors located in the two
opposite corners, southwest and northeast of the bubble and leads to
∆rms = 0.18. In Figure 6.5, for the sake of simplicity, we approximate
the normal distribution for the measurement error and calculate the
corresponding mean and variance. The variance will then be used in
106 Designing Building Control Systems as Cyber-Physical Systems
4 4
2
1 2 2
0 0 0
−3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3 −2 −1 0 1 2
Error, ε Error, ε Error, ε
BEST set of 4 sensors: {T42, T43, T46, T47} BEST set of 5 sensors: {T42, T43, T45, T46, T47} BEST set of 6 sensors: {T41, T42, T43, T46, T47, T48}
RANDOM set of 4 sensors: { T41, T42, T43, T47} RANDOM set of 5 sensors: {T41, T42, T43, T45, T46} RANDOM set of 6 sensors: {T41, T42, T43, T45, T46, T48}
30
Probability density function, Φ(ε)
4 10
5
2 5
0 0 0
−2 −1 0 1 2 −2 −1 0 1 2 −2 −1 0 1 2
Error, ε Error, ε Error, ε
Figure 6.5: Average error of k sensors for the minimal error set of sensors and a
random choose of sensors. Each figure lists in its title the best and random set of k
sensors for k=1,2,...,6, and plots the pdf of its measurement error (i.e. the difference
between the average of k sensor readings with the average of all 7 sensor readings),
b r
denoted by δm and δm , respectively. The best and random set of sensors are selected
based on their resulting ∆rms . N b and N r represent the normal distribution.
Based on the results presented above, we explore the design space for
both control algorithm and sensing system to build a Pareto front of
optimal energy and monetary cost under the constraint on user comfort
level.
Specifically, we first choose the number of sensors based on a given
6.4. Design Space Exploration 107
all six controllers and choose the one that minimizes the energy cost
and satisfies the constraint on user comfort level as measured by the
discomfort index. Results are shown in Figure 6.6.
If it is required that the discomfort index be less than 0.12, the
Pareto front consists of different control algorithm choices depending
on the sensor monetary budget. In our platform, each Telosb unit costs
about $70. When the budget is set to be under $140, we may choose
1 or 2 sensors, in which case the control algorithm that can satisfy
the comfort level constraint and provide the minimal energy cost is
UKF-RMPC (with energy cost around 4500). When the budget is set
be more than 350, we may choose 5 or 6 sensors, in which case the
control algorithm that has the minimal energy cost and satisfies the
comfort constraint is EKF-MPC (with energy cost under 2500). When
the budget is around 280, we may choose 4 sensors, in which case the
best control algorithm is UKF-MPC.
Intuitively, when we have a small budget, the sensing data accuracy
is lower and we need a more robust algorithm to satisfy the comfort
level constraint; hence the RMPC controller (the MPC controllers do
not satisfy the constraint in this case). When we have a large budget,
the sensing accuracy is higher and we may choose the more energy-
efficient algorithms, hence the MPC controllers. If the discomfort index
is required to be less than 0.1, we will choose the UKF-RMPC controller
under any budget, since the other controllers either do not satisfy the
comfort constraint (i.e. EKF-MPC, UKF-MPC, on-off controllers) or
cost more energy (i.e. EKF-RMPC). If the discomfort index is set to be
0.14, we choose EKF-MPC if there is budget for more than 1 sensor.
If the sensor locations are selected randomly (i.e. theoretical best
locations might not be known or accessible in practice), the energy cost
and performance of each controller under certain budget are different
from the best location case. Figure 6.7 shows the exploration results
108 Designing Building Control Systems as Cyber-Physical Systems
5000
4500
discomfort bound = 0.1
Energy Cost (kWh)
4000
2500
Figure 6.6: Pareto front under comfort constraints with best sensor locations
8000
7000
Energy Cost (kWh)
6000
discomfort bound = 0.1
5000
discomfort bound = 0.2 UKF-RMPC
EKF-MPC
4000
3000
discomfort bound = 0.3
2000
70 140 210 280 350 420
Sensor Monetary Budget ($)
Figure 6.7: Pareto front under comfort constraints with random sensor locations
with random sensor locations. We can see that similar to the best loca-
tion case, the selection of control algorithms depends on the number of
sensors. For instance, the solid line represents the case where the dis-
6.5. Concluding Remarks 109
comfort index is required to be less than 0.2. When the budget is under
280, we may select at most 4 sensors and the best control algorithm is
UKF-RMPC (other controllers do not satisfy the comfort constraints
except for EKF-RMPC but it has higher energy cost). When the bud-
get is more than 350, the best control algorithm is EKF-MPC. If the
discomfort index is required to be less than 0.1, the best control al-
gorithm is always UKF-RMPC. Note that the energy cost under any
number of sensors is also more than the energy cost in the best location
case with the same number of sensors, which is to be expected.
The smart grid ecosystem has been going through major upgrades in
the last two decades in three verticals:
110
7.1. A Supply-Following Scenario for Smart Buildings 111
@ Building Side
Real-time
Up Flexibility
@ Grid Side
Down Flexibility
Flexibility
Per-unit
Ancillary Power Flow
Down envelope ≤ S ≤ Up envelope
Utility
Company
Baseline Power Flow Prediction for
Power Flow
next Hc time
steps
Generation
Figure 7.1: Schematic of the grid architecture and contractual framework proposed
in Maasoumy et al. [2014c].
Figure 7.2: Flexibility trading market and wholesale energy market and the inter-
action of different components of these markets.
Supply
Commercial Buildings
Demand
EV
Residential Buildings
Figure 7.3: As influential players in the smart grid domain, buildings have a signif-
icant role in its operation. One of the services that buildings will provide to enhance
the operation of the smart grid is ancillary services to help frequency regulation
through automated demand response events.
Figure 7.4: Fan power consumption versus volume flow rate. Data is for January
through August of 2013.
m −1
HX
e
min Chvac (ut+k , πt+k , π ne,c , π ne,h , Tt+k
out
) (7.1)
~
ut
k=0
s.t. xt+k+1 = f (xt+k , ut+k , dt+k ), k = 0, ..., H m − 1
xt+k ∈ Xt+k , k = 1, ..., H m
ut+k ∈ Ut+k , k = 0, ..., H m − 1
The inputs to the optimal control problem are the states (i.e. zone
temperatures) xt (as initial condition), the set of electric energy prices
{πte , . . . , πt+H
e
m −1 }, the non-electric and non-fan energy prices, such as
gas price for heating π ne,h , and cooling π ne,c which are considered time-
invariant, a set of constraints Xt+k on the system states of the type:
“xt+k should be in Xt+k for all times t + k where k ∈ {1, . . . , H m })”, a
set of constraints Ut+k on system inputs for all k ∈ {0, . . . , H m −1}, and
an estimate on unmodelled disturbances dt+k (e.g., outside temperature
or building occupancy Maasoumy and Sangiovanni-Vincentelli [2012])
for all k ∈ {0, . . . , H m − 1} for the next H m time slots. T out is the
outside air temperature, f captures the system dynamics, and the total
HVAC power consumption cost Chvac (t) is the summation of fan power,
cooling power and heating power, given by:
for the heating system and the cooling system, respectively, and the
supply air temperature T s is considered constant. To move the coolant
fluid around, heating and cooling systems use pumps, which consume
electric power. However, we assume that electric power consumption of
pumps is negligible compared to the non-electric heating and cooling
powers of these systems. (see Maasoumy [2011], Maasoumy et al. [2011]
for more details).
Hence, the MPC solution to (7.1) is an optimal air mass flow tra-
jectory (also called an air mass flow profile) ~u∗t = [u∗t , . . . , u∗t+H m −1 ].
Only the first entry of ~u∗t is implemented at time t. At the next time
step, t + 1, the horizon of MPC is receded by one step, a new MPC is
set up, and solved to obtain ~u∗t+1 = [u∗t+1 , . . . , u∗t+H m ]. Again, the first
entry is implemented on the system, and the horizon is receded, and
this process repeats until the whole time frame of interest is covered.
At each time t, the optimal air mass flow vector for the next H time
steps is given by ~u∗t = [u∗t , . . . , u∗t+H m −1 ], with corresponding fan power
flow profile of Pf (~u∗ ) = [Pf (u∗t ), . . . , Pf (u∗t+H m −1 )]. In the following,
we will omit the reference to t in the profile and define a power profile
as a vector Pf (~u∗ ) = [Pf (u∗0 ), . . . , Pf (u∗H m −1 )].
by the utility to the building (π ne,c and π ne,h are considered constant
and known). Then the building solves the MPC (7.1) to compute what
its electricity consumption profile/trajectory would be in the next H m
time slots. As described, this MPC would minimize its total cost in the
next H m time slots while respecting the building and the occupants
(comfort) constraints. Let ~u∗ denote the trajectory that is the solution
to this MPC and let C(~u∗ ) be its cost.
7.4. Flexibility-aware Contractual Framework 123
tcs ≥ 1 (7.6)
tcs + 1 ≤ tce (7.7)
tce − tcs = H c H m (7.8)
where H c is the length of the contract. Typical values for H c are much
smaller than H m , and can take values from one slot to a few time
slots. The BEMS computes e~l = [el0 , . . . , elH m −1 ] a lower envelope and
e~u = [eu0 , . . . , euH m −1 ] an upper envelope (using the algorithm described
later in the paper), so that any air mass flow profile ~u = [u0 , . . . , uH m −1 ]
such that for all k ∈ {0, . . . , H m − 1}, elk ≤ uk ≤ euk is feasible; i.e. no
building constraints are violated at anytime. The corresponding fan
power consumption envelopes are Pf (e~l ) = [Pf (el0 ), . . . , P~f (elH m −1 )]
and Pf (e~u ) = [Pf (eu0 ), . . . , Pf (euH m −1 )]. However, the building only
declares the first H c values of the envelope as flexibility, namely,
e~l = [eltcs , . . . , eltcs +H c ] a lower envelope, and e~u = [eutcs , . . . , eutcs +H c ]
an upper envelope, at the beginning of each contract. The reason for
declaring a subset of the obtained envelopes is that due to model mis-
match, imperfect predictions of disturbance and so on, the later values
in the H m -step envelopes may not be accurate and need to be updated
in the next time step. By declaring these two envelopes, the building
has essentially declared its flexibility for the next H c time slots. Note
that there is no objective function and energy cost here, we define
flexibility with respect to feasibility criteria.
By declaring these two envelopes, the building manager is telling
the utility: “I allow you to select any power trajectory Pf (~u) =
[Pf (utcs ), . . . , Pf (utce )] such that for all k ∈ {tcs , . . . , tce }, Pf (elk ) ≤
Pf (uk ) ≤ Pf (euk )”.
124 Dynamic Contracts for Building-Grid Interaction
3. The building operator computes the baseline air mass flow u∗k and
the two envelopes elk and euk , for the time frame k = 0, 1, . . . , H m −
1, with its overall cost if it uses the flexibility contract as follows:
Building Operator Payment
z }| {
m −1
HX
Cf = Chvac (uk , πke ) (7.10)
k=0
m −1
HX m −1
HX
− β k ψ(uk , elk ) − β k ψ(uk , euk )
k=1 k=1
| {z }
Reward for Providing Flexibility
4. The building operator then declares Pf (e~l ) and Pf (e~u ), the base-
line profile Pf (~u∗ ) that it will consume and the length of the
contract H c to the utility.
5. In the next H c time slots, the utility will send signals (sk )’s, such
that Pf (elk ) ≤ sk ≤ Pf (euk ) and the building operator has to obey
the signals, i.e., has to consume power in time slot k equal to sk .
Flexibility signal sk may arrive as frequently as every few seconds,
as mentioned earlier.
values the flexibility that the building HVAC system can offer, it has
to provide the right incentive and the right mechanism to declare this
flexibility.
We say that the building can offer a flexibility Ψ := {ψ, ~ in fan power
~ ψ}
~ } in air mass flow which comprises
or equivalently a flexibility Φ := {~ϕ, ϕ
down flexibility, ~ϕ, and upward flexibility ϕ ~ , from the contract start
time tcs = t + 1 to the contract end time tce := t + 1 + H c for 1 ≤
H c ≤ H m time slots (starting from x0 ) if there exist two trajectories
e~l = ~u + ~ ~ , that satisfy:
ϕ and e~u = ~u + ϕ
T T
~ = ~β .ψ(~
~ B)
R(Φ, ~ u, ϕ
~ ) + ~β .ψ(~
~ u, ~ϕ) (7.17)
where B ~ := {~β, ~β}, and ψ(.), and ψ(.) are given by (7.11), in which
e~l = ~u + ~ ~.
ϕ and e~u = ~u + ϕ
7.4. Flexibility-aware Contractual Framework 127
We assume at each time step t that the current state of the building is
known. Furthermore, the prediction of the outside temperature, inside
heat generation, and constraints on the system states and inputs are
known. The outputs of the algorithm is the nominal power consumption
of the building, u∗t+k for k ∈ {0, ..., H m − 1}, the flexibility that the
building can provide, Φ∗t+k+1 for k ∈ {0, ..., H m − 1}, for future time
steps, without violating constraints. Based on this set of information,
the BEMS can decide how much flexibility to offer. It may declare very
small flexibility and hence get a cost close to Chvac .
The algorithm described above can be formulated as a min-max
MPC problem. At time t we are interested in solving the following
robust optimal control problem:
Min-max Problem
m
HX −1
min max Chvac (ut+k , πt+k ) − R(Φt+k+1 , Bt+k+1 ) (7.18a)
~ ~ t+1 w
ut ,Φ ~t
k=0
subject to: xt+k+1 = f (xt+k , ut+k + wt+k , dk )
∀ k = 0, ..., H m − 1 (7.18b)
∀ wt s.t. : ϕt ≤ wt ≤ ϕt (7.18c)
∀ wt+k s.t. : ϕt+k ≤ wt+k ≤ ϕt+k
∀k = 1, ..., H m − 1 (7.18d)
m
ϕt+k ≥ 0, ∀ k = 1, ...H −1 (7.18e)
m
ϕt+k ≤ 0, ∀ k = 1, ...H −1 (7.18f)
m
xt+k ∈ Xt+k ∀ k = 1, ..., H (7.18g)
m
ut+k + wt+k ∈ Ut+k ∀ k = 0, ..., H −1 (7.18h)
Note that ϕt and ϕt are computed in the previous time step and
are constant values in this formulation, while ϕt+k and ϕt+k for k ∈
{1, . . . , H m − 1} are optimization variables and will be computed in the
current time step by solving the optimal control problem (7.18).
The inner maximization problem make the optimization problem
robust and derives the worst-case scenario cost and constraints. The
outer minimization problem solves for its arguments (~ut , Φ ~ t+1 ) while
128 Dynamic Contracts for Building-Grid Interaction
it is guaranteed that the constraints are satisfied for all values of un-
certainty w, as long as it is within the range ϕt+k ≤ wt+k ≤ ϕt+k for
k ∈ {1, . . . , H m − 1}.
Xk := {x | T k ≤ x ≤ T k } (7.19)
Uk := {u | U k ≤ u ≤ U k } (7.20)
where T k , and T k are the upper and lower temperature limits and
U k , and U k are the upper and lower feasible air mass flow at time t.
Therefore, the feasible set of (7.18) is closed and convex. The objective
function is also convex on w, as the max is over variable w. In fact, w
does not appear in the cost function. The objective function is a linear
function on w and hence it is concave. We also consider a linearized
state update equation as follows:
the nonlinear system dynamics has been linearized with the forward
Euler integration formula with time-step τ = 1 hr. Hence, the min-
max problem (7.18) is equivalent to:
7.4. Flexibility-aware Contractual Framework 129
Minimization Problem
m
HX −1
min Chvac (ut+k , πt+k ) − R(Φt+k+1 , Bt+k+1 ) (7.22a)
~ ~ t+1
ut ,Φ
k=0
s. t.: xt+k+1 = f (xt+k , ut+k + ϕt+k , dt+k ) (7.22b)
∀k = 0, ..., H m − 1
xt+k+1 = f (xt+k , ut+k + ϕt+k , dt+k ) (7.22c)
∀k = 0, ..., H m − 1
ϕt+k ≥ 0, ∀ k = 1, ...H m − 1 (7.22d)
m
ϕt+k ≤ 0, ∀ k = 1, ...H −1 (7.22e)
m
xt+k ∈ Xt+k ∀ k = 1, ..., H (7.22f)
m
xt+k ∈ Xt+k ∀ k = 1, ..., H (7.22g)
m
ut+k + ϕt+k ∈ Ut+k ∀ k = 0, ..., H −1 (7.22h)
m
ut+k + ϕt+k ∈ Ut+k ∀ k = 0, ..., H −1 (7.22i)
Figure 7.5: The Per-unit energy rate, and upward and downward flexibility reward
are shown in the lowest figure. The middle figure shows the resulting flexibility at
each time, and the top figure shows the resulting room temperature. Flexibility
signals are sent every minute from the utility to the building.
• Gaps in operations;
Unfortunately, over the last few decades, neither has been a focus of
Research and Development. DOE has invested in incremental improve-
ments of existing tools, methods and process, but barriers in policy,
economics and behavior has slowed down the pace of innovation in this
field.
In this article we provided an in-depth overview of research activ-
ities in the field of smart buildings modeling, design automation and
133
134 Conclusion
The authors are grateful for the many discussions and insights from
Francesco Borrelli (UCB), Duncan Callaway (UCB), Clas Jacobson
(UTC), Manfred Morari (ETH), Pierluigi Nuzzo (UCB), Kameshwar
Poolla (UCB), Catherine Rosenberg (Waterloo), Mahdi Shahbakhti
(MTU), Costas Spanos (UCB), Michael Wetter (LBNL) and Qi Zhu
(UCR). The research has been partially sponsored by the SinBerBEST
program and by TerraSwarm, one of six centers of STARnet, a Semi-
conductor Research Corporation program sponsored by MARCO and
DARPA.
137
References
138
References 139
Randy H Katz, David E Culler, Seth Sanders, Sara Alspaugh, Yanpei Chen,
Stephen Dawson-Haggerty, Prabal Dutta, Mike He, Xiaofan Jiang, Laura
Keys, et al. An information-centric energy infrastructure: The berkeley
view. Sustainable Computing: Informatics and Systems, 1(1):7–22, 2011.
B.I. Kilkis. “From Floor Heating to Hybrid HVAC Panel: A Trail of Exergy-
Efficient Innovations”. ASHRAE transactions, pages 343–349, 2006.
B.J. Kirby. Spinning reserve from responsive loads. United States. Department
of Energy, 2003.
Ioannis Konstantakopoulos, Costas J. Spanos, and S. Shankar Sastry. So-
cial game for building energy efficiency: Utility learning, simulation, anal-
ysis and incentive design. Technical Report UCB/EECS-2015-3, EECS
Department, University of California, Berkeley, Feb 2015. URL http:
//www.eecs.berkeley.edu/Pubs/TechRpts/2015/EECS-2015-3.html.
Michaël Kummert and Philippe André. Simulation of a model-based optimal
controller for heating systems under realistic hypothesis. 2005.
S.F. Larsen, C. Filippín, and G. Lesino. Thermal behavior of building walls
in summer: Comparison of available analytical methods and experimental
results for a case study. In Building Simulation, volume 2, pages 3–18.
Springer, 2009.
P. Levis, S. Madden, J. Polastre, R. Szewczyk, E. Brewer, et al. Tinyos: An
operating system for sensor networks. Ambient intelligence, 35, 2005.
Jian Liang and Ruxu Du. Thermal comfort control based on neural network
for hvac application. In Control Applications, 2005. CCA 2005. Proceedings
of 2005 IEEE Conference on, pages 819–824. IEEE, 2005.
Zaiyi Liao and Arthur L Dexter. An inferential model-based predictive control
scheme for optimizing the operation of boilers in building space-heating
systems. Control Systems Technology, IEEE Transactions on, 18(5):1092–
1102, 2010.
Simeng Liu and Gregor P Henze. Experimental analysis of simulated rein-
forcement learning control for active and passive building thermal storage
inventory: Part 1. theoretical foundation. Energy and Buildings, 38(2):
142–147, 2006a.
Simeng Liu and Gregor P Henze. Experimental analysis of simulated rein-
forcement learning control for active and passive building thermal storage
inventory: Part 2: Results and analysis. Energy and buildings, 38(2):148–
161, 2006b.
J. Löfberg. “Minimax Approaches to Robust Model Predictive Control". Dept.
of Electrical Eng. LinkÂĺoping University, 2003.
References 145
Glenn Platt, Jiaming Li, Ronxin Li, Geoff Poulton, Geoff James, and Josh
Wall. Adaptive hvac zone modeling for sustainable buildings. Energy and
Buildings, 42(4):412–421, 2010.
J. Polastre, R. Szewczyk, and D. Culler. Telos: enabling ultra-low power
wireless research. In Information Processing in Sensor Networks, 2005.
IPSN 2005. Fourth International Symposium on, pages 364–369. IEEE,
2005.
S. Privara, J. Cigler, Z. Váňa, F. Oldewurtel, C. Sagerschnig, and E. Žáčeková.
“Building modeling as a crucial part for building predictive control”. Energy
and Buildings, 56:8–22, 2013.
P. Radecki and B. Hencey. Online building thermal parameter estimation via
unscented kalman filtering. In American Control Conference (ACC), 2012,
pages 3056–3062. IEEE, 2012.
Meysam Razmara, Mehdi Maasoumy, Mahdi Shahbakhti, and Rush D Robi-
nett III. Exergy-based model predictive control for building hvac systems.
In American Control Conference (ACC), 2015. IEEE, 2015.
R.D. Robinett III and D.G. Wilson. “Nonlinear Power Flow Control De-
sign: Utilizing Exergy, Entropy, Static and Dynamic Stability, and Lya-
punov Analysis”. Springer, 2011.
P. Sakulpipatsin, L.C. M. Itard, H.J. Van Der Kooi, E.C. Boelman, and P.G.
Luscuere. “An exergy application for analysis of buildings and HVAC sys-
tems”. Energy and Buildings, 42(1):90–99, 2010.
Alberto Sangiovanni-Vincentelli, Werner Damm, and Roberto Passerone.
Taming Dr. Frankenstein: Contract-Based Design for Cyber-Physical Sys-
tems. European Journal of Control, 18(3):217–238, June 2012.
A. Schlueter and F. Thesseling. “Building information model based en-
ergy/exergy performance assessment in early design stages”. Automation
in Construction, 18(2):153–163, 2009.
D. Schmidt. “Low exergy systems for high-performance buildings and com-
munities”. Energy and Buildings, 41(3):331–336, 2009.
Matthias Schuss, Robert Zach, Kristina Orehounig, and Ardeshir Mahdavi.
Empirical evaluation of a predective simulation-based control method. In
Proceedings of the 12th International IBPSA Conference, pages 14–16,
2011.
Jagdev Singh, Nirmal Singh, and JK Sharma. Fuzzy modeling and control of
hvac systems-a review. Journal of scientific and Industrial Research, 65(6):
470, 2006.
References 149
Jan Širokỳ, Frauke Oldewurtel, Jiří Cigler, and Samuel Prívara. Experimental
analysis of model predictive control for an energy efficient building heating
system. Applied Energy, 88(9):3079–3087, 2011.
Joana Sousa. Energy simulation software for buildings: review and compari-
son. In Proceedings of the international workshop on information technology
for energy applications (IT4ENERGY 2012), Lisbon, Portugal. Citeseer,
2012.
ASHRAE Standard. “Standard 55-2004". Thermal environmental conditions
for human occupancy, 2004.
G. Strbac. Demand side management: Benefits and challenges. Energy Policy,
36(12):4419–4426, 2008.
D. Sturzenegger, D. Gyalistras, M. Morari, and R.S. Smith. Model predictive
climate control of a swiss office building: Implementation, results, and cost-
benefit analysis. Control Systems Technology, IEEE Transactions on, PP
(99):1–1, 2015. ISSN 1063-6536. .
David Sturzenegger, Dimitrios Gyalistras, Vito Semeraro, Manfred Morari,
and Roy S Smith. Brcm matlab toolbox: Model generation for model pre-
dictive building control. In American Control Conference (ACC), 2014,
pages 1063–1069. IEEE, 2014.
D Todd, M Caufield, B Helms, M Starke, B Kirby, and J Kueck. Providing
reliability services through demand response: A preliminary evaluation of
the demand response capabilities of Alcoa Inc. ORNL/TM, 233, 2008.
TRNSYS. TRNSYS. http://www.trnsys.com/.
J. Venkatesh, B. Aksanli, J.-C. Junqua, P. Morin, and T.S. Rosing. Homesim:
Comprehensive, smart, residential electrical energy simulation and schedul-
ing. In Green Computing Conference (IGCC), 2013 International, pages
1–8, June 2013. .
Evangelos Vrettos, Frauke Oldewurtel, Fengtian Zhu, and Göran Anders-
son. Robust provision of frequency reserves by office building aggregations.
In World Congress of the International Federation of Automatic Control
(IFAC), Cape Town, South Africa, 2014.
Andreas Wächter and Lorenz T Biegler. On the implementation of an interior-
point filter line-search algorithm for large-scale nonlinear programming.
Mathematical programming, 106(1):25–57, 2006.
Detlef Westphalen and Scott Koszalinski. Energy consumption characteristics
of commercial building hvac systems volume ii: Thermal distribution, auxil-
iary equipment, and ventilation. Arthur D. Little Inc (ADLI), 20:33745–00,
2001.
150 References
Michael Wetter, Wangda Zuo, Thierry S Nouidui, and Xiufeng Pang. Modelica
buildings library. Journal of Building Performance Simulation, 7(4):253–
270, 2014.
C.K. Woo, E. Kollman, R. Orans, S. Price, and B. Horii. Now that california
has ami, what can the state do with it? Energy Policy, 36(4):1366–1374,
2008.
Y. Yang, A. Pinto, A. Sangiovanni-Vincentelli, and Q. Zhu. A design flow for
building automation and control systems. In Real-Time Systems Sympo-
sium (RTSS), 2010 IEEE 31st, pages 105–116. IEEE, 2010.
Yang Yang, Qi Zhu, Mehdi Maasoumy, and Alberto Sangiovanni-Vincentelli.
Development of building automation and control systems. Design Test of
Computers, IEEE, 29(4):45 –55, aug. 2012. ISSN 0740-7475. .
A. Yildiz and A. Güngör. “Energy and exergy analyses of space heating in
buildings”. Applied Energy, 86(10):1939–1948, 2009.
M Zaheer-Uddin and GR Zheng. Optimal control of time-scheduled heating,
ventilating and air conditioning processes in buildings. Energy Conversion
and Management, 41(1):49–60, 2000.
Xiaojing Zhang, Georg Schildbach, David Sturzenegger, and Manfred Morari.
Scenario-based mpc for energy-efficient building climate control under
weather and occupancy uncertainty. In Control Conference (ECC), 2013
European, pages 1029–1034. IEEE, 2013.