A Multi Level Architecture To Facilitate
A Multi Level Architecture To Facilitate
Abstract
This paper presents a methodology aimed at facilitating the de-
ployment of model-based predictive control (MPC) in buildings. MPC
has shown promise as an effective way to reduce utility costs associat-
ed with peak demand, and to better manage the interaction between
“smart buildings” and the “smart grid”. However, steps are needed to
streamline the implementation of MPC in buildings and thus encour-
age its adoption in building operation. The proposed architecture in-
tends to contribute to this goal by enabling a “compartmentalized”,
distributed, hierarchical approach to building modelling and controls.
The proposed multi-level methodology allows formulating control
problems so that the planning time horizon fits the scale of the system.
A model of a commercial building, including thermal energy storage
devices at different control levels, is used to demonstrate the method-
ology. Low-order resistive-capacitance models for the thermal spaces
are obtained from a detailed model created in EnergyPlus.
1 Introduction
The application of model-based predictive control (MPC) to the operation of buildings has
received a great deal of attention in recent years (Ma et al., 2010, Nghiem and Pappas, 2011,
Siroký et al., 2011, Candanedo and Athienitis, 2011, Kim and Braun, 2012, Corbin et al.,
2013). MPC has come to be recognized as an effective technique for improving load man-
agement in high-performance buildings, and as a promising approach to the incorporation of
renewable energy sources. MPC and similar methods are expected to play a key role for the
integration of smart buildings in the smart grid.
Despite these promising prospects, the practical implementation of a formal MPC
strategy in a building –understood as the application of a model-based optimization algo-
rithm– is a rather daunting task today. Reaching the state in which online MPC strategies can
be applied in buildings in a timely and cost-effective manner requires advances in several are-
as. These areas include appropriate modelling (Prívara et al., 2012, Eisenhower et al., 2012,
Candanedo et al., 2013a); automatic formulation and solution of optimization problems
(Cigler et al., 2013); tools for obtaining weather forecast information (Candanedo et al.,
2013c); data-collection and modelling of occupancy (Oldewurtel et al., 2012, Gunay et al.,
2013), among others.
This paper presents the outline of an approach aimed at facilitating the testing of pre-
dictive control strategies and the implementation of MPC in buildings (Candanedo and
Dehkordi, 2013). This methodology is one of core components of a four-year project at our
institution1; it is based on the “dissection” of the complex structure of a commercial building
into smaller control areas arranged hierarchically (e.g., room/thermal zone, group of zones,
whole building), which may be nested into each other. With this method, relatively simple
1
Multi-level Control for Buildings (MLCB), EcoEII program.
models (RC, state-space representations, simple ANN, etc.) suffice to represent each control
region satisfactorily. The methodology, still under development, is illustrated in this paper
with a case study building with five zones with active and passive thermal energy storage.
Multi-level structure
Building level GM
Branch
Group level M-1 M-2 without
(e.g., wing of building) model
Branch
Thermal zone level M-1.1 M-1.2 without M-2.1 M-2.2
(e.g., room) model
48 hr
M-1 M-2
8 hr
30 min
CONTROL
BUILDING
LEVEL 1
CONTROL
Z1 Z2 Z3 Z4 Z5
LEVEL 2
(a) (b)
+ qh )
qh ,c + qIG
+ +
0.4 ( qIG
In this case, “C 1 0” refers to the capacitance connected between node 1 and the
ground (namely C1). Node #4 is the one to which the outdoor temperature (Text) signal is con-
nected. The ground node or earth node (node 0) is the reference. The thermal capacitances
connected to the ground node define the states of the system.
After describing the circuit, it is important to indicate: inputs (whether they are tem-
perature or heat sources, and whether they act totally or partially on each of the nodes; and
desired outputs. For the case of the inputs of the zonal model, the text file has this format:
T,4
Q,2,0.65,3,0.35
Q,3,1
Q,3,1
In this case, the file indicates that there are four inputs: (a) a temperature source con-
nected to the 4th node; (b) a heat source of which 65% goes to node 2 and 35% goes to node 3;
(c) a heat source that is received in its entirety (100%) by node 3 and; (d) another heat source
received by node 3. These sources represent, respectively, outdoor temperature, solar gains,
internal gains and heating (the last two sources are interchangeable).
Finally, the desired outputs are defined by the following brief text file which simply
means that there is a single output: the temperature of node 3.
T,3
x= x1 + x2 + x M =
2 2 2
∑x 2
j
(1)
j
The Euclidean norm of the difference between the reference and the output of the sim-
plified model can be used as one of the criteria to select the “best match” for an RC circuit
response. In this case, the objective function is defined based on a comparison of the response
of the RC and the EnergyPlus benchmark under three situations: (i) free floating conditions
(outdoor temperature, solar gains and internal gains acting together); (ii) response to solar
gains; (iii) response to internal gains.
J =0.50 y ff,E+ − y ff,RC + 0.25 y SG,E+ − y SG,RC + 0.25 y IG,E+ − y IG,RC (2)
In this case, more weight is given to the response under free floating conditions. Fig-
ure 4 summarizes the system identification procedure for the identification of RC parameters.
Satisfactory
values?
NO
YES
Final RC values
EnergyPlus RC model
15
10
Temp (°C)
-5
-10
-15
0 10 20 30 40 50 60
Time (days)
25
∆T, evaluation over a year
20 µ =-0.14924
σ =1.0082
Freq (%)
15
10
0
-6 -4 -2 0 2 4 6
°C
x Ax + Bu
e.g., low-order =
e.g., =
y Cx + Du
Figure 6. Types of models used in emulator.
• Metronome or “time-keeper”. This is a critical element that sends trigger sig-
nals to each of the control agents at regular intervals. These signals are sent to
the control agents, which then proceed to execute an optimization exercise
within its own jurisdiction and for its respective control horizon time scale.
Table 1 shows typical time scales for different control levels.
Treatment of uncertainty
Several sources of uncertainty are present in the modelling of dynamic response of buildings
for predictive control applications:
• Uncertainty in the model
o Source information. construction details, thermal properties of materials, opti-
cal properties of surfaces, geometric details, furniture layout, etc.
o Simplifying modelling assumptions. Even if perfect information were available,
physical modelling –even the most detailed one– requires simplifications and
approximations (e.g., , level of spatial discretization, etc.).
• Uncertainty in the dynamic inputs
o Weather forecast. Although increasingly reliable (especially over a period of a
few days) weather forecasts are obviously not exact. However, abundant in-
formation on the degree of confidence, based on the output of several weather
forecast models, is becoming available.
o Occupancy and user loads forecast. Perhaps the most difficult input to predict
is the number of occupants and their energy consumption patterns. Neverthe-
less, in the case of control applications in existing buildings, occupancy pat-
terns can be observed (e.g., how many people are present during weekdays).
User loads (lighting or electric appliances) can be monitored if sub-metering is
in place. This information becomes more reliable as more data is gathered dur-
ing normal operation. Both occupancy and user load information can be pre-
sented in terms of probabilistic descriptions (Figure 8). Recent publications fol-
low a stochastic approach (Widén and Wäckelgard, 2010).
3 Conclusions
This paper has presented an overview of the basic principles of a multi-level architecture for
the study of MPC and other advanced control concepts in building systems. This architecture
is currently being applied in the development of an emulator tool. Also, this architecture will
also be used in the development of “control agents” in charge of a control region.
Model-based control applications require continuous verification with data obtained
on-site. Models for the building and its equipment should be made so that they can be easily
modified when online data collection is available. Given the inherent complexity of buildings,
it is difficult to assess a priori every possible factor having an impact on the building re-
sponse. Rather than attempting to create a complex model with a “perfect” prediction, it is
preferable to rely on a model with relatively few parameters. These parameters may receive
kick-start guess values that may be easily corrected as soon as on-site data from the real build-
ing is available. Simpler models facilitate the mathematical treatment of uncertainty. As men-
tioned in the paper presented at ICEBO “rather than perfect accuracy, the goals pursued are
logical structure and coherence” (Candanedo and Dehkordi, 2013).
Although low-order RC networks have been presented, the proposed multi-level archi-
tecture does not depend on a given kind of model. First-principle models, grey-box or artifi-
cial neural networks may be applied, although grey-box models may be more amenable for
practical implementation. Using simplified models also allows shifting the attention of the
control engineer towards the often-neglected issue of the quality of the dynamic input data.
The emerging interest in the development of better models for prediction of occupancy and
occupant behaviour is encouraging.
Apart from thermal models represented with linear networks, it is also necessary to in-
corporate models for other relevant phenomena (e.g., electric energy use, lighting, etc.). The
multi-level control scheme will also be useful in this case.
This multi-level, distributed architecture also enables the study of fault scenarios. For
example, if one of the zone control agents fails, the heating/cooling power calculated by the
building model can be used to provide an estimate of the requirements of the zone.
An essential element in the concept of multi-level control is the incorporation of the
different time scales and prediction horizons for each of the control levels. This methodology
acknowledges the presence of patterns or cycles (weather, occupant behaviour) which repeat
themselves at different periodic intervals, forming a juxtaposition of different “rhythms”.
4 Acknowledgements
Funding for this work was provided by Natural Resources Canada through the Office of En-
ergy Research and Development (OERD). The authors would like to thank Jacques Martel
and Justin Tamasauskas for their valuable comments.
5 References
Candanedo, J. & Dehkordi, V. R. 2013. Multi-level approach for model-based predictive
control (MPC) in buildings: a preliminary overview. International Conference for
Enhanced Building Operation (ICEBO) 2013. Montreal, Quebec.
Candanedo, J., Dehkordi, V. R. & Lopez, P. 2013a. A control-oriented simplified modelling
strategy. 13th International Building Simulation Conference (IBPSA 2013).
Chambéry, France.
Candanedo, J., Dehkordi, V. R. & Stylianou, M. 2013b. Model-based predictive control of an
ice storage device in a building cooling system. Applied Energy, 1111032–1045.
Candanedo, J., Paradis, E. & Stylianou, M. 2013c. Building simulation weather forecast files
for predictive control strategies. SimAUD 2013. San Diego, California.
Candanedo, J. A. & Athienitis, A. K. 2011. Predictive control of radiant floor heating and
solar-source heat hump operation in a solar house. HVAC & R Research, 17(3), 235-
256.
Cigler, J., Gyalistras, D., Siroký, J., Tiet, V.-N. & Ferkl, L. 2013. Beyond theory: the
challenge of implementing model predictive control in buildings. 11th REHVA World
Congress Clima 2013. Prague, Czech Republic.
Corbin, C. D., Henze, G. P. & May-Ostendorp, P. 2013. A model predictive control
optimization environment for real-time commercial building application. Journal of
Building Performance Simulation, 6(3), 159-174.
Eisenhower, B., Gasljevic, K. & Mezic, I. 2012. Control-oriented dynamic modeling and
calibration of a campus theater using Modelica. SimBuild 2012. Madison, Wisconsin.
Gunay, H. B., O'Brien, W. & Beausoleil-Morrison, I. 2013. A critical review of observation
studies, modeling, and simulation of adaptive occupant behaviors in offices. Building
and Environment, 7031-47.
Kim, D. & Braun, J. E. 2012. Reduced-order building modeling for application to Model-
Based Predictive Control. SimBuild 2012 Madison, Wisconsin.
Ma, Y., Borrelli, F., Hencey, B., Coffey, B., Bengea, S. & Haves, P. 2010. Model predictive
control for the operation of building cooling systems. 2010 American Control
Conference. Baltimore, Maryland, USA.
Nghiem, T. X. & Pappas, G. J. 2011. Receding-horizon Supervisory Control of Green
Buildings. 2011 American Control Conference. San Francisco, California.
Oldewurtel, F., Sturzenegger, D. & Morari, M. 2012. Importance of occupancy information
for building climate control. Applied Energy, In Press.
Prívara, S., Cigler, J., Vana, Z., Oldewurtel, F., Sagerschnig, C. & Zacekova, E. 2012.
Building modeling as a crucial part for building predictive control. Energy and
Buildings, In Press.
Siroký, J., Oldewurtel, F., Cigler, J. & Prívara, S. 2011. Experimental analysis of model
predictive control for an energy efficient building heating system. Applied Energy,
883079-3087.
Vallabha, G. 2010. Real-Time Pacer for Simulink (Simulink block).
Widén, J. & Wäckelgard, E. 2010. A high-resolution stochastic model of domestic activity
patterns and electricity demand. Applied Energy, 871880-1892.