Validation of a Model Predictive Control Strategy on a High Fidelity Building Emulator
Abstract
:1. Introduction
- Poor control accuracy, resulting in thermal discomfort and low energy efficiency [9].
- Inability to predict the future states of the system and find an optimal control signal sequence [8].
- Inability to leverage buildings’ thermal capacity to shift loads [10].
- Difficulty in dealing with external grid requirements [8].
- The work, albeit simulated, aims at conceptualizing a methodology that could realistically be transferred to a real-life applications. Indeed, the choice of a high-fidelity emulator allows the consideration of control actions and measurement signals that are commonly found in ordinary HVAC systems. Furthermore, the non linear and dynamic behaviour of the energy system components are accounted for. The emulator accurately reproduces the actuators’ characteristics, the thermal inertia of the emission system, and the heat pump variable efficiency. As pointed out in [26], “many load-based simulators compute the energy to be provided to meet a room temperature setpoint, then try to dispatch HVAC equipment at some fictitious part load operation that provides the required energy”. In particular, the adopted emulator reproduces the coefficient of performance of the heat pump according to manufacturer’s data, along with the characteristics of the circulation pump and the evaporator’s fan. On the other hand, a real control system reads a feasibly measurable quantity, such as room temperature or air flow rate, and then computes a control signal for an actuator such as a compressor, a damper, or a fan variable speed drive. In this context, this work presents a methodology that, considering a wide range of problems that can be encountered in real life applications, addresses them despite being conducted in simulative fashion. For this reason, the choice of a standardized, well established emulation platform that is precisely intended to benchmark different control strategies with each other gives the obtained results both the reliability that comes from a realistic simulation and the possibility of being compared against future works that would employ the same test case. On top of that, the selected test case is representative of a widely adopted configuration, so that conclusions drawn can be extended to a large share of the existing building stock. In the authors’ opinion, this further renders the outcome of the present work more relevant in bridging the gap between research and the industrial-scale adoption of advanced control strategies. The resulting MPC-based controllers do not represent a notable novelty in terms of their formulation or the methodology adopted for identifying their control-oriented models per se. However, this work contributes by demonstrating the capabilities of the BOPTEST framework and, more generally, the use of detailed building emulators to test advanced controllers.
- The flexibility potential of a building energy system controlled by a predictive, model based optimal controller is assessed using a high fidelity emulation model. In buildings that do not have energy storage systems, the energy flexibility that they offer relies on the dynamic behaviour of the building. Therefore, assessing the ability of a predictive controller to exploit the flexibility of a building requires a simulation model that is detailed enough to provide a realistic dynamic response to control actions. The BOPTEST platform provides such emulation capabilities. Flexibility is evaluated in a scenario of demand response, proving that the predictive capabilities of a properly formulated MPC can leverage the thermal mass of the building to shift energy usage in time. To the best of the authors’ knowledge, this is the first instance of usage of this BOPTEST test case to evaluate the performance of an advanced controller under a demand response event, with the purpose of evaluating the energy flexibility of the building. Additionally, the work provides an example of how that the tool can be adapted to more specific needs by considering an additional KPI and a boundary condition profile.
2. Methodology and Methods
2.1. Methodology
- A first Model Predictive Control problem (MPC1) is formulated, with its objectives being the minimization of power drawn from the electric grid by the building energy system, while ensuring internal temperature constraints are respected. This MPC controller is tested with different combinations of control horizon lengths and control timesteps, which are thus treated as hyperparameters for the control problem.
- After the selection of the most fitting combination of the forementioned hyperparameters, a second MPC controller (MPC2) is formulated, with the additional objective of adhering to a maximum electric power usage restriction, to simulate a demand response grid requirement.
2.2. Case Study
- A set of models, which provide the emulation capabilites of the software. BOPTEST provides a publicly available repository of test cases for application in high fidelity models of buildings. Models are written in the Modelica language and are compiled into Functional Mockup Units to allow co-simulation from an external interface.
- A run-time environment, which manages the interaction between the emulator and an external code. This functionality allows controllers to be written in an external code, in the present instance a Python program, and to interact with the emulator at each timestep, to allow a co-simulation that recreates the actual deployment on a real building.
- A set of Key Performance Indicators, that due to being standardized, allow fair comparisons between different control solutions.
2.3. Control Oriented Model
- The variables are easily available. Indeed, is a disturbance whose prediction is provided by BOPTEST and, in real-world application, is provided by forecast services. The heat pump control signal is a control action, therefore it is directly yielded by the controller itself.
- A linear formulation of the MPC problem is enabled. Non-linearity is avoided; in particular, the heat pump water production temperature, while being a good predictor, forces a bilinear formulation of the optimal problem that slows down the optimization process.
- : heat pump power.
- : electrical power consumption of the heat pump.
- : heat pump signal between 0 and 1.
- : outdoor temperature.
2.4. Model Predictive Control Formulation
- States: states describe the dynamic system conditions at all time instants. The one state in this problem is zone temperature , with .
- Actions: control actions are the heat pump control signal and the slacking variable, , with
- Disturbances: the uncontrolled input variables are (external air temperature, global horizontal solar radiation, internal heat gains), with
- represents the cost coefficient related to electrical power consumption.
- stands for the weight associated with maintaining the indoor temperature within a comfortable range. In particular, it weights slacking variable .
- represents the cost coefficients related to electrical energy.
- is the weight associated with maintaining the indoor temperature within a comfortable range.
- is the weight associated with limiting energy consumption during on-peak hours.
2.5. Key Performance Indicators
- Thermal discomfort is expressed in units of [Kh] and it is computed as the cumulative deviation of the zone temperature from the lower and the upper boundary comfort limits. These limits are pre-defined for each testcase, so that future results on the same testcase will be fairly comparable. The thermal discomfort is computed as:
- Cost is expressed in units of [€/m2] and it is computed as:
- In order to assess the ability of MPC2 to adhere to the power usage constraint, the violations of the constraint itself are computed as:
- The Flexibility Factor indicator, expressed as dimensionless, is a measure of the ability of the system to shift energy usage from periods where usage is intended to be lowered to period of higher convenience. The definition here adopted is a slight modification to the indicator commonly employed in the literature (see [34]). Indeed, the non-peak period ( in Equation (10)) power consumption refers to the power used when the power consumption limit is at the highest value; conversely, refers to the power consumed when power reduction is required by the grid.
3. Results
Analysis of the Effectiveness of the Designed MPC for Demand Response in the Belgian Grid
4. Discussion and Conclusions
- The emulator on which the scenarios were tested is made up of high fidelity models, so the response of the system to the control input signals is representative of the dynamic response of an actual, real-world building.
- The level of detail of the emulator allows the consideration of feasible and realistic control actions and feedback signals in the design and testing of the controller, since the modeled actuators and sensors mirror those that are commonly found on real energy systems.
- Model training has been identified by the literature as one of the main challenges in designing a model-based controller. The methodology here adopted allowed us to obtain a plant model reliable enough for the MPC to perform satisfactorily while employing a small amount of easily obtainable data.
- The low order of the control oriented model, along with the strictly linear formulation of the control problem, guarantee a low computational burden in the solution of the optimal problem.
- Uncontrolled disturbances and boundary conditions were here considered as known for a future window in a deterministic way; future work might investigate the effect of stochastic predictions on such variables and their influence on the MPC performance.
- Sensors in the emulator yield measurements that are unaffected by any uncertainty; the effect of non-ideal sensors might be subject to further analysis.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
MPC | Model Predictive Control |
BOPTEST | Building Optimization Testing framework |
HVAC | Heating, Ventilation, and Air Conditioning |
TCS | Traditional Control Strategies |
ACS | Advanced Control Strategies |
PID | Proportional Integral Derivative control |
KPI | Key Performance Indicator |
RL | Reinforcement Learning |
DDPG | Deep Deterministic Policy Gradient |
DDQN | Double Deep Q Network |
SAC | Soft Actor Critic |
ARX | Auto Regressive Exogenous model |
QP | Quadratic Programming |
MINLP | Mixed Integer Non Linear Program |
AMPC | Approximating Model Predictive Control |
NRMSE | Normalized Root Mean Square Error |
MAPE | Mean Absolute Percentage Error |
References
- United Nations Environment Programme. 2021 Global Status Report for Buildings and Construction: Towards a Zero-Emission, Efficient and Resilient Buildings and Construction Sector; United Nations Environment Programme: Nairobi, Kenya, 2021. [Google Scholar]
- United Nations Environment Programme. 2022 Global Status Report for Buildings and Construction: Towards a Zero-Emission, Efficient and Resilient Buildings and Construction Sector; United Nations Environment Programme: Nairobi, Kenya, 2022. [Google Scholar]
- Wagner, A.; Ruellan, M.; Heinrich, M.; Bourdais, R. Towards a classification of the building stock in terms of potential energy savings through advanced control. Energy Build. 2024, 310, 114050. [Google Scholar] [CrossRef]
- Arroyo, J.; Manna, C.; Spiessens, F.; Helsen, L. An Open-AI gym environment for the building optimization testing (BOPTEST) framework. In Proceedings of the Building Simulation 2021, 17th Conference of IBPSA, Bruges, Belgium, 1–3 September 2021; Volume 17, pp. 175–182. [Google Scholar]
- Blum, D.; Arroyo, J.; Huang, S.; Drgoňa, J.; Jorissen, F.; Walnum, H.T.; Chen, Y.; Benne, K.; Vrabie, D.; Wetter, M.; et al. Building optimization testing framework (BOPTEST) for simulation-based benchmarking of control strategies in buildings. J. Build. Perform. Simul. 2021, 14, 586–610. [Google Scholar] [CrossRef]
- Arroyo, J.; Spiessens, F.; Helsen, L. Comparison of optimal control techniques for building energy management. Front. Built Environ. 2022, 8, 849754. [Google Scholar] [CrossRef]
- Gholamzadehmir, M.; Del Pero, C.; Buffa, S.; Fedrizzi, R.; Aste, N. Adaptive-predictive control strategy for HVAC systems in smart buildings—A review. Sustain. Cities Soc. 2020, 63, 102480. [Google Scholar] [CrossRef]
- Wang, D.; Zheng, W.; Wang, Z.; Wang, Y.; Pang, X.; Wang, W. Comparison of reinforcement learning and model predictive control for building energy system optimization. Appl. Therm. Eng. 2023, 228, 120430. [Google Scholar] [CrossRef]
- Lee, Y.M.; Horesh, R.; Liberti, L. Optimal HVAC control as demand response with on-site energy storage and generation system. Energy Procedia 2015, 78, 2106–2111. [Google Scholar] [CrossRef]
- Afram, A.; Janabi-Sharifi, F.; Fung, A.S.; Raahemifar, K. Artificial neural network (ANN) based model predictive control (MPC) and optimization of HVAC systems: A state of the art review and case study of a residential HVAC system. Energy Build. 2017, 141, 96–113. [Google Scholar] [CrossRef]
- del Mar Castilla, M.; Álvarez, J.D.; Rodríguez, F.; Berenguel, M. Comfort Control in Buildings; Springer: Berlin/Heidelberg, Germany, 2014. [Google Scholar]
- Aswani, A.; Master, N.; Taneja, J.; Krioukov, A.; Culler, D.; Tomlin, C. Energy-efficient building HVAC control using hybrid system LBMPC. IFAC Proc. Vol. 2012, 45, 496–501. [Google Scholar] [CrossRef]
- van de Bree, A.; von Manteuffel, B.; Ramaekers, L.; Offermann, M. Role of Building Automation Related to Renewable Energy in nZEB’s. Project Report. 2014. Available online: https://www.slideshare.net/slideshow/buinl13782-report-final/38815644 (accessed on 1 September 2024).
- American Society of Heating, Refrigerating and Air-Conditioning Engineers (ASHRAE). Composite Index to the 2015 HVAC Applications, 2016 HVAC SYSTEMS and Equipment, 2017 Fundamentals, and 2018 Refrigeration Volumes; ASHRAE: Peachtree Corners, GA, USA, 2018. [Google Scholar]
- Vázquez-Canteli, J.R.; Nagy, Z. Reinforcement learning for demand response: A review of algorithms and modeling techniques. Appl. Energy 2019, 235, 1072–1089. [Google Scholar] [CrossRef]
- Drgoňa, J.; Arroyo, J.; Figueroa, I.C.; Blum, D.; Arendt, K.; Kim, D.; Ollé, E.P.; Oravec, J.; Wetter, M.; Vrabie, D.L.; et al. All you need to know about model predictive control for buildings. Annu. Rev. Control 2020, 50, 190–232. [Google Scholar] [CrossRef]
- Kathirgamanathan, A.; De Rosa, M.; Mangina, E.; Finn, D.P. Data-driven predictive control for unlocking building energy flexibility: A review. Renew. Sustain. Energy Rev. 2021, 135, 110120. [Google Scholar] [CrossRef]
- Rockett, P.; Hathway, E.A. Model-predictive control for non-domestic buildings: A critical review and prospects. Build. Res. Inf. 2017, 45, 556–571. [Google Scholar] [CrossRef]
- Arroyo, J.; Manna, C.; Spiessens, F.; Helsen, L. Reinforced model predictive control (RL-MPC) for building energy management. Appl. Energy 2022, 309, 118346. [Google Scholar] [CrossRef]
- Serale, G.; Fiorentini, M.; Capozzoli, A.; Bernardini, D.; Bemporad, A. Model predictive control (MPC) for enhancing building and HVAC system energy efficiency: Problem formulation, applications and opportunities. Energies 2018, 11, 631. [Google Scholar] [CrossRef]
- Pantazaras, A.; Lee, S.E.; Santamouris, M.; Yang, J. Predicting the CO2 levels in buildings using deterministic and identified models. Energy Build. 2016, 127, 774–785. [Google Scholar] [CrossRef]
- Kuboth, S.; Heberle, F.; König-Haagen, A.; Brüggemann, D. Economic model predictive control of combined thermal and electric residential building energy systems. Appl. Energy 2019, 240, 372–385. [Google Scholar] [CrossRef]
- Blum, D.; Wang, Z.; Weyandt, C.; Kim, D.; Wetter, M.; Hong, T.; Piette, M.A. Field demonstration and implementation analysis of model predictive control in an office HVAC system. Appl. Energy 2022, 318, 119104. [Google Scholar] [CrossRef]
- Freund, S.; Schmitz, G. Implementation of model predictive control in a large-sized, low-energy office building. Build. Environ. 2021, 197, 107830. [Google Scholar] [CrossRef]
- Thieblemont, H.; Haghighat, F.; Ooka, R.; Moreau, A. Predictive control strategies based on weather forecast in buildings with energy storage system: A review of the state-of-the art. Energy Build. 2017, 153, 485–500. [Google Scholar] [CrossRef]
- Wetter, M.; Sulzer, M. A call to action for building energy system modelling in the age of decarbonization. J. Build. Perform. Simul. 2024, 17, 383–393. [Google Scholar] [CrossRef]
- Mattsson, S.E.; Elmqvist, H. Modelica—An International Effort to Design the Next Generation Modeling Language. IFAC Proc. Vol. 1997, 30, 151–155. [Google Scholar] [CrossRef]
- Jorissen, F.; Reynders, G.; Baetens, R.; Picard, D.; Saelens, D.; Helsen, L. Implementation and Verification of the IDEAS Building Energy Simulation Library. J. Build. Perform. Simul. 2018, 11, 669–688. [Google Scholar] [CrossRef]
- Cimmino, M.; Wetter, M. Modelling of Heat Pumps with Calibrated Parameters Based on Manufacturer Data. In Proceedings of the 12th International Modelica Conference, Prague, Czech Republic, 15–17 May 2017; pp. 219–226. [Google Scholar]
- Fiedler, F.; Karg, B.; Lüken, L.; Brandner, D.; Heinlein, M.; Brabender, F.; Lucia, S. do-mpc: Towards FAIR nonlinear and robust model predictive control. Control Eng. Pract. 2023, 140, 105676. [Google Scholar] [CrossRef]
- Available online: https://ibpsa.github.io/project1-boptest/docs-testcases/bestest_hydronic_heat_pump/index.html (accessed on 3 October 2024).
- Mugnini, A.; Evens, M.; Arteconi, A. Model predictive controls for residential buildings with heat pumps: Experimentally validated archetypes to simplify the large-scale application. Energy Build. 2024, 320, 114632. [Google Scholar] [CrossRef]
- Sheha, M.; Powell, K. Using real-time electricity prices to leverage electrical energy storage and flexible loads in a smart grid environment utilizing machine learning techniques. Processes 2019, 7, 870. [Google Scholar] [CrossRef]
- Li, H.; Johra, H.; de Andrade Pereira, F.; Hong, T.; Le Dréau, J.; Maturo, A.; Wei, M.; Liu, Y.; Saberi-Derakhtenjani, A.; Nagy, Z.; et al. Data-driven key performance indicators and datasets for building energy flexibility: A review and perspectives. Appl. Energy 2023, 343, 121217. [Google Scholar] [CrossRef]
Author (s) | Case Study Name | Controller Type | Controller Summary | Final Results |
---|---|---|---|---|
Arroyo, Manna, et al., 2022 | Single-zone residential hydronic | RL vs. PI | RL algorithms outperform a baseline PI controller in operational cost and thermal discomfort. | RL achieves better trade-off between cost reduction and comfort levels. |
Wang et al., 2023 | BOPTEST Hydronic Heat Pump | RL (DDPG, DDQN, SAC) vs. MPC | Among RL, only DDPG outperforms the baseline. MPC excels over all in typical and peak scenarios. | MPC is superior in optimizing actions and managing system state. |
Arroyo, Spiessens, et al., 2022 | BESTEST Hydronic Heat Pump | MPC, RL, RL-MPC | RL underperforms in complex environments. Hybrid RL-MPC shows improved performance. | Hybrid RL-MPC bridges the gap between model-free and model-based strategies. |
Bünning et al., 2021 | bestest-hydronic | ARX, Random Forest, Input Convex Neural Network | ARX model outperforms others in sample efficiency, predictive accuracy, and computational efficiency. | ARX model is better suited for standard residential building dynamics. |
Blum et al., 2021 | BESTEST Hydronic Heat Pump | MPC vs. PI | MPC significantly outperforms the PI controller in all pricing scenarios, optimizing comfort and costs. | MPC achieves up to 90.8% reduction in discomfort and 27.2% in costs. |
Zanetti et al., 2023 | Two-room apartment in Milan | Various MPC formulations (QP to MINLP) | All MPC strategies reduce discomfort, QP, and NLP are more efficient than MINLP. | Simpler linear constraints with nonlinear objectives provide a balanced approach. |
Arroyo, Manna, et al., 2022 | Two-room apartment in Milan | RL-MPC vs. MPC | RL-MPC integrates MPC predictability with RL adaptability. MINLP MPC is comparable to successful NLP MPCs. | RL-MPC outperforms traditional RL and delivers results akin to MPC in deterministic settings. |
Maier et al., 2023 | Two-Zone Apartment | AMPC vs. MPC vs. RBC | AMPC reduces operational costs by up to 33% and discomfort by 70%, less computational time than MPC. | While increasing thermal discomfort slightly, AMPC nearly matches MPC performance. |
Marzullo et al., 2022 | DOE’s Reference Small Office Building | Rule-based controls, MPC, RL | ACTB integrates high-fidelity models with advanced controllers, moving from rule-based to advanced strategies. | ACTB offers realistic testing and potential cost reduction for advanced control strategies. |
Gao et al., 2023 | BESTEST Case 900 | Tube-based MPC | Tube-based MPC effectively reduces operational costs by at least 24% while better managing indoor temperatures under uncertainties. | Superior performance in reducing operational costs and improving temperature control. |
Envelope Element | Layer | Thickness [m] | Specific Thermal Capacity [J/(kgK)] | Thermal Conductivity [W/(mK)] | Density [kg/m3] |
---|---|---|---|---|---|
External | wood | 0.009 | 900 | 0.14 | 530 |
Walls | insulation | 0.0615 | 1400 | 0.04 | 10 |
concrete | 0.1 | 1000 | 0.51 | 1400 | |
Floor | concrete | 0.15 | 840 | 1.4 | 2100 |
insulation | 0.2 | 1470 | 0.02 | 30 | |
screed | 0.05 | 840 | 0.6 | 1100 | |
tile | 0.01 | 840 | 1.4 | 2100 | |
Roof | roof deck | 0.019 | 900 | 0.14 | 530 |
fiberglass | 0.1118 | 840 | 0.04 | 12 | |
plasterboard | 0.01 | 840 | 0.16 | 950 |
Coefficient | Value |
---|---|
0.7489 | |
1.1320 | |
0.7489 | |
0.7489 | |
1.1320 | |
0.7489 |
Horizon (H) | Time Step (S) | Scenario Price | Cost [EUR/m2] (%) | Thermal Discomfort [Kh/Zone] (%) |
---|---|---|---|---|
8 | 300 | constant | 15.8% | 82.2% |
12 | 300 | constant | 16.5% | 81.2% |
24 | 300 | constant | 17.3% | 80.9% |
8 | 600 | constant | 19.8% | 66.9% |
12 | 600 | constant | 18.6% | 77.6% |
24 | 600 | constant | 18.8% | 79.7% |
8 | 300 | dynamic | 17.5% | 80.9% |
12 | 300 | dynamic | 16.3% | 81.2% |
24 | 300 | dynamic | 17.1% | 80.9% |
8 | 600 | dynamic | 20.0% | 66.9% |
12 | 600 | dynamic | 18.6% | 77.6% |
24 | 600 | dynamic | 18.9% | 79.7% |
8 | 300 | highly dynamic | 17.9% | 80.9% |
12 | 300 | highly dynamic | 16.7% | 81.2% |
24 | 300 | highly dynamic | 17.5% | 80.9% |
8 | 600 | highly dynamic | 20.1% | 66.9% |
12 | 600 | highly dynamic | 18.9% | 77.6% |
24 | 600 | highly dynamic | 19.1% | 79.7% |
KPI | Cost (EUR/m2) | Energy (kWh/m2) | Thermal Discomfort (Kh/Zone) |
---|---|---|---|
Baseline | 0.87 | 3.33 | 7.35 |
MPC2 | 0.79 | 3.13 | 3.79 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Fop, D.; Yaghoubi, A.R.; Capozzoli, A. Validation of a Model Predictive Control Strategy on a High Fidelity Building Emulator. Energies 2024, 17, 5117. https://doi.org/10.3390/en17205117
Fop D, Yaghoubi AR, Capozzoli A. Validation of a Model Predictive Control Strategy on a High Fidelity Building Emulator. Energies. 2024; 17(20):5117. https://doi.org/10.3390/en17205117
Chicago/Turabian StyleFop, Davide, Ali Reza Yaghoubi, and Alfonso Capozzoli. 2024. "Validation of a Model Predictive Control Strategy on a High Fidelity Building Emulator" Energies 17, no. 20: 5117. https://doi.org/10.3390/en17205117
APA StyleFop, D., Yaghoubi, A. R., & Capozzoli, A. (2024). Validation of a Model Predictive Control Strategy on a High Fidelity Building Emulator. Energies, 17(20), 5117. https://doi.org/10.3390/en17205117