How to Effectively Manage the Energy in Residential Systems: Development and Comparison of Methods
Abstract
The transition from fossil fuels presents significant challenges in energy management. To ensure a sustainable energy future, it is crucial to reduce energy consumption when possible and to synchronize electricity consumption and storage with the production from sources with low greenhouse gas emissions. This thesis explores a variety of energy management methods used to manage batteries, heat pumps, and other energy-related systems. The thesis presents three simulation cases alongside one real-world experiment to compare energy management done through simple rules, optimization, and machine learning methods. Furthermore, this thesis introduces TreeC, a novel machine learning-based method that learns understandable yet efficient energy management strategies, applicable to many cases. The three key contributions of this thesis can be summarized as follows: 1) The developed TreeC method demonstrates competitive performance compared to a variety of energy management approaches, such as model predictive control and reinforcement learning, across a diverse set of energy management problems. The understandability of TreeC's energy management strategies greatly improves the transparency and trustworthiness of machine learning-based energy management. 2) The real-world experiment highlights the need to validate energy management methods on actual hardware and not solely on simulations. Both TreeC and model predictive control performed worse than in simulations, due to, respectively, insufficiently representative training data and the real-time input data not being reliable enough. 3) Energy management algorithms reduce costs in electrified Belgian dwellings, particularly in poorly insulated dwellings, electric vehicle chargers, and photovoltaic installations. However, on average, these cost savings do not yet outweigh the current costs and effort required to implement such algorithms.
Figures & tables
| RP | RQ | Leap of knowledge | Publication | Chapter |
|---|---|---|---|---|
| 1 | 1 | Development of TreeC | [ 128 ] | 4 |
| 2 | Evaluation TreeC in simulation | 5 | ||
| 2 | 3 | Real-world validation TreeC | [ 127 ] | 6 |
| 3 | 4 | Analysis electrified Belgium | Submitted | 7 |
| 4 | 5 | Holistic learning | - | 2 |
| Algorithmic field | Number of articles obtained from query | Number of citations of reviewed articles |
|---|---|---|
| Mathematical programming | 24 161 | 483 to 877 |
| Metaheuristics | 4 640 | 281 to 1097 |
| Deterministic MPC | 2 800 | 286 to 653 |
| Stochastic MPC | 230 | 108 to 963 |
| Reinforcement learning | 2 029 | 252 to 506 |
| Holistic learning | 697 | 79 to 121 |
| Algorithmic field | Building heating | Building electricity | Microgrid | Electric vehicles |
|---|---|---|---|---|
| Mathematical programming | [ 34 ] , [ 46 ] | [ 116 ] , [ 104 ] | [ 142 ] | |
| Metaheuristics | [ 93 ] , [ 172 ] | [ 30 ] , [ 103 ] , [ 94 ] | ||
| Deterministic MPC | [ 136 ] , [ 95 ] , [ 146 ] , [ 137 ] | [ 114 ] | ||
| Stochastic MPC | [ 113 ] , [ 112 ] | [ 13 ] , [ 115 ] , [ 84 ] , [ 151 ] | ||
| Reinforcement learning | [ 169 ] , [ 31 ] | [ 102 ] | [ 163 ] , [ 90 ] | |
| Holistic learning | [ 66 ] | [ 7 ] , [ 41 ] , [ 148 ] , [ 89 ] |
| EMS | Energy loss and constraint violation score |
|---|---|
| MPC perfect forecast | 14.4 0.0 |
| SAC no outlier | 16.2 1.2 |
| TreeC | 19.2 1.7 |
| SAC | 35.6 39.7 |
| PPO | 120.9 44.9 |
| MPC constant forecast | 127.7 0.0 |
| EMS | Electricity cost [EUR/m 2 ] | Total discomfort [Kh] |
|---|---|---|
| RL and MPC | 0.018 0.019 | 3.42 4.04 |
| TreeC | 0.033 0.021 | 0.42 0.77 |
| MPC | 0.037 0.029 | 2.91 3.67 |
| RBC | 0.208 0.056 | 6.05 2.34 |
| RL | 0.266 0.085 | 24.41 23.47 |
| Rank | Team | Method | ||||
|---|---|---|---|---|---|---|
| 1 st | Together | Multi-scenario MPC+RL | 0.718 | 0.864 | 0.821 | 0.801 |
| 2 nd | ambitiousengineers | Neuroevolution | 0.748 | 0.863 | 0.827 | 0.812 |
| 3 rd | CUFE | MPC | 0.750 | 0.859 | 0.872 | 0.827 |
| 4 th | DivMARL | RBC + RL | 0.737 | 0.859 | 0.905 | 0.834 |
| 5 th | Greener | Supervised learning on optimization solution | 0.740 | 0.879 | 0.902 | 0.840 |
| 6 th | EVERGi_team | MPC | 0.718 | 0.910 | 0.893 | 0.840 |
| Criterion | TreeC | MPC | RL | RBC |
| ANM6-Easy performance | 19.2 | 14.4 | 16.2 | None |
| BOPTEST performance | 0.03 EUR/m 2 | 0.04 EUR/m 2 | 0.27 EUR/m 2 | 0.21 EUR/m 2 |
| 0.42 Kh | 2.91 Kh | 24.41 Kh | 6.05 Kh | |
| CityLearn 2022 ranking | 7 th | 1 st , 3 rd , 6 th | 1 st , 4 th (hybrid) | 4 th (hybrid) |
| Common real implementations | No | Yes | No | Yes |
| Many possible output values | No | Yes | Yes | Moderate |
| House | Battery model | Capacity | Max charge | Max discharge |
|---|---|---|---|---|
| 1 | BYD HVS 5.1 | 5.12 kWh | 3.2 kW | 3.2 kW |
| 2 | Huawei LUNA2000-5-EO | 5 kWh | 2.5 kW | 2.5 kW |
| 3 | D-Centralized LF2 | 15.3 kWh | 3.0 kW | 4.0 kW |
| 4 | Pylontech US2000B | 3.55 kWh | 1.7 kW | 2.5 kW |
| House | Inverter model | Assets | Max AC power |
|---|---|---|---|
| 1 | Fronius Primo GEN24 3.0 | PV + battery | 3.0 kW |
| 2 | Huawei SUN2000-5KTL-M1 | PV + battery | 5.0 kW |
| 3 | Sermatec SMT-5K-TL-LV | PV + battery | 6.0 kW |
| 4 | SMA Sunny Boy SB2.5-1VL-40 | PV | 2.5 kW |
| 4 | Victron Multiplus-II GX 48/3000/35-32 | battery | 2.5 kW |
| House | PV peak power | AC circuit | House breaker |
|---|---|---|---|
| 1 | 3.4 kWp | mono phase | 9.2 kVA |
| 2 | 5.6 kWp | three phase | 17.2 kVA |
| 3 | 3 kWp | mono phase | 9.2 kVA |
| 4 | 2.6 kWp | mono phase | 9.2 kVA |
| Parameter | Range |
|---|---|
| Learning Rate | 0.001, 0.01, 0.1, 0.2, 0.3 |
| Num Leaves | 32, 64, 128, 256 |
| Max Depth | 2, 4, 6, 8, 10 |
| ColSample ByTree | 0.6, 0.8, 1.0 |
| Min Child Samples | 1, 2, 3, 4, 5 |
| Parameters | TD3 |
|---|---|
| gamma | 0.7 |
| learning_rate | 0.000583 |
| batch_size | 16 |
| buffer_size | 1e6 |
| train_freq | (4, “step” ) |
| noise_type | normal |
| Result | RL | RBC | TreeC | MPC |
|---|---|---|---|---|
| Grid imported [kWh] | 991.7 | 595.3 | 638.6 | 694.9 |
| Grid exported [kWh] | 458.3 | 91.3 | 142.2 | 190.5 |
| Net consumption [kWh] | 533.4 | 504.0 | 496.3 | 504.4 |
| EMS | Experiment (import/export) | Experiment (net consumption) | Simulation (net consumption) |
|---|---|---|---|
| RL | 216.1€ | 207.2€ | 208.6€ |
| RBC | 171.7€ | 171.2€ | 166.6€ |
| TreeC | 171.7€ | 170.7€ | 169.9€ |
| MPC | 172.8€ | 170.1€ | 157.8€ |
| Brussels | Flanders | Wallonia |
| 10.6% | 57.4% | 32.0% |
| Brussels | Flanders | Wallonia | Total | |
|---|---|---|---|---|
| With central heating | 10.1% | 51.9% | 27.4% | 89.4% |
| Without central heating | 0.5% | 5.5% | 4.6% | 10.6% |
| Brussels | Flanders | Wallonia | Total | |
| 1 room | 0.3% | 0.5% | 0.4% | 1.2% |
| 2 rooms | 0.8% | 1.6% | 1.0% | 3.4% |
| 3 rooms | 2.1% | 4.6% | 2.5% | 9.2% |
| 4 rooms | 3.2% | 10.0% | 5.1% | 18.3% |
| 5 rooms | 1.8% | 14.0% | 7.4% | 23.2% |
| 6 rooms | 0.9% | 12.6% | 7.1% | 20.6% |
| Number of rooms | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9+ | Total |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 bedroom | 0.4% | 1.2% | 2.5% | 2.5% | 2.0% | 0.3% | - | - | - | 8.9% |
| 1 bedroom | 0.8% | 2.2% | 5.6% | 5.6% | 4.6% | 1.2% | - | - | - | 20.0% |
| 2 bedrooms | - | - | 1.1% | 8.2% | 12.3% | 10.3% | 5.1% | 2.1% | 2.0% | 41.1% |
| 3 bedrooms | - | - | - | 2.0% | 4.0% | 6.5% | 5.1% | 2.2% | 2.1% | 21.9% |
| 4 bedrooms | - | - | - | - | 0.3% | 2.2% | 1.4% | 1.3% | 1.0% | 6.2% |
| 5 bedrooms | - | - | - | - | - | 0.1% | 0.3% | 0.6% | 0.5% | 1.5% |
| Number of rooms | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9+ | Total |
|---|---|---|---|---|---|---|---|---|---|---|
| <35m² | 1.1% | 1.7% | 0.9% | - | - | - | - | - | - | 3.7% |
| 35-54m² | 0.1% | 1.0% | 2.8% | 5.5% | 4.6% | 3.1% | - | - | - | 17.1% |
| 55-84m² | - | 0.7% | 3.7% | 7.3% | 7.0% | 5.1% | 1.2% | - | - | 25.0% |
| 85-104m² | - | - | 1.8% | 3.7% | 7.0% | 6.2% | 3.6% | 0.5% | 0.5% | 23.3% |
| 105-124m² | - | - | - | 1.8% | 2.3% | 4.1% | 3.6% | 1.6% | 1.5% | 14.9% |
| >124m² | - | - | - | - | 2.3% | 2.1% | 3.5% | 4.2% | 3.9% | 16.0% |
| Brussels | Flanders | Wallonia | Total | |
|---|---|---|---|---|
| With garage and car | 3.8% | 42.7% | 22.4% | 68.9% |
| Without garage or car | 6.8% | 14.7% | 9.6% | 31.1% |
| Brussels | Flanders | Wallonia | Total | |
|---|---|---|---|---|
| With photovoltaic | 0.2% | 19.2% | 6.4% | 25.8% |
| Without photovoltaic | 10.4% | 38.2% | 25.6% | 74.2% |
| Brussels | Flanders | Wallonia | Total | |
| Terraced house | 1.3% | 11.7% | 8.4% | 21.4% |
| Semi-detached house | 0.2% | 10.6% | 5.2% | 16.0% |
| Detached house | 0.1% | 18.6% | 10.1% | 28.8% |
| Apartment unit | 9.0% | 16.5% | 8.3% | 33.8% |
| Brussels | Flanders | Wallonia | Total | |
| No insulation | 1.3% | 7.8% | 11.5% | 20.6% |
| Roof insulation | 5.6% | 16.5% | 15.5% | 37.6% |
| Wall and roof insulation | - | 10.7% | 0.2% | 10.9% |
| Ground and roof insulation | 0.1% | - | - | 0.1% |
| Ground, wall and roof insulation | 3.6% | 22.4% | 4.8% | 30.8% |
| Insulation level | Window U-value | Air tightness |
|---|---|---|
| No insulation | 5.8 W/m²K | 9.3 ACH 50 |
| Roof insulation | 2.8 W/m²K | 5.5 ACH 50 |
| Double insulation | 2.8 W/m²K | 2.9 ACH 50 |
| Ground, wall and roof insulation | 0.6 W/m²K | 1.4 ACH 50 |
| Statistic | Mean | Std. dev. |
|---|---|---|
| Total energy charged per profile per year | 2 414 kWh | 1 464 kWh |
| Number of sessions in a year per profile | 193.6 | 131.2 |
| Session duration across all profiles | 12h16min | 11h12min |
| Session SOC charged across all profiles | 31.7% | 20.0% |
| Std. dev. of session duration per profile | 9h46min | 5h32min |
| Std. dev. of session SOC charged per profile | 17.3% | 2.6% |
| Year | Mean | Std. dev. | Min | Max |
|---|---|---|---|---|
| 2020 | 0.032 | 0.017 | -0.115 | 0.200 |
| 2021 | 0.104 | 0.079 | -0.070 | 0.620 |
| 2022 | 0.245 | 0.135 | -0.100 | 0.871 |
| 2023 | 0.097 | 0.046 | -0.120 | 0.330 |
| 2024 | 0.070 | 0.0430 | -0.140 | 0.566 |
| Forecast method | Predicted value | MAE |
|---|---|---|
| (Mean Standard deviation) | ||
| K-NN regression | Connection time | 7h14min 4h33min |
| Repeat last | Connection time | 9h14min 5h7min |
| K-NN regression | SOC demand | 12.8% 3.4% |
| Repeat last | SOC demand | 16.4% 5.4% |
Building Energy Management
Building Energy Management coordinates HVAC, storage, and flexible loads to reduce energy use and emissions while maintaining comfort and reliable service.
See all 51 papers