The implementation of model predictive controls (MPCs) in buildings represents an important opportunity to reduce energy consumption and to apply demand side management strategies. In order to be effective, the MPC should be provided with an accurate model that is able to forecast the actual building energy demand. To this aim, in this paper, a data-driven model realized with an artificial neural network is compared to a physical-based resistance–capacitance (RC) network in an operative MPC. The MPC was designed to minimize the total cost for the thermal demand requirements by unlocking the energy flexibility in the building envelope, on the basis of price signals. Although both models allow energy cost savings (about 16% compared to a standard set-point control), a deterioration in the prediction performance is observed when the models actually operate in the controller (the root mean square error, RMSE, for the air zone prediction is about 1 °C). However, a difference in the on-time control actions is noted when the two models are compared. With a maximum deviation of 0.5 °C from the indoor set-point temperature, the physical-based model shows better performance in following the system dynamics, while the value rises to 1.8 °C in presence of the data-driven model for the analyzed case study. This result is mainly related to difficulties in properly training data-driven models for applications involving energy flexibility exploitation.
The integration of multi-energy systems to meet the energy demand of buildings represents one of the most promising solutions for improving the energy performance of the sector. The energy flexibility provided by the building is paramount to allowing optimal management of the different available resources. The objective of this work is to highlight the effectiveness of exploiting building energy flexibility provided by thermostatically controlled loads (TCLs) in order to manage multi-energy systems (MES) through model predictive control (MPC), such that energy flexibility can be regarded as an additional energy source in MESs. Considering the growing demand for space cooling, a case study in which the MPC is used to satisfy the cooling demand of a reference building is tested. The multi-energy sources include electricity from the power grid and photovoltaic modules (both of which are used to feed a variable-load heat pump), and a district cooling network. To evaluate the varying contributions of energy flexibility in resource management, different objective functions—namely, the minimization of the withdrawal of energy from the grid, of the total energy cost and of the total primary energy consumption—are tested in the MPC. The results highlight that using energy flexibility as an additional energy source makes it possible to achieve improvements in the energy performance of an MES building based on the objective function implemented, i.e., a reduction of 53% for the use of electricity taken from the grid, a 43% cost reduction, and a 17% primary energy reduction. This paper also reflects on the impact that the individual optimization of a building with a multi-energy system could have on other users sharing the same energy sources.