- 1Institute of Applied Sustainability to the Built Environment, Department of Environment Constructions and Design, University of Applied Sciences and Arts of Southern Switzerland, Mendrisio, Switzerland
- 2Hive Power SA, Manno, Switzerland
This article introduces a novel, simulation-based methodology to quantify and optimize the economic benefits of controlling flexible loads in a distribution system operator (DSO) grid without relying on historical consumption data. By training a non-parametric global forecasting model on simulated responses of electric water heaters (EHs) and heat pumps (HPs) to randomized control signals, we design an optimal control policy that not only captures the flexibility potential but also effectively mitigates rebound effects. Our results demonstrate that the forecaster’s high accuracy permits bypassing the full simulation during optimization, thereby significantly reducing computational requirements while ensuring near-real-time economic performance evaluations. These findings underscore the method’s potential for enhancing grid resilience and operational efficiency in modern energy systems.
1 Introduction
Recent advancements in demand-side management (DSM) and demand response (DR) have illuminated the critical role of load flexibility in the integration of renewable energy resources and the mitigation of peak demand pressures in modern energy systems. The effective management of flexible loads can greatly enhance grid resilience and operational efficiency, thereby supporting a transition to cleaner energy sources. Flexibility is a term used to describe the ability of electric loads or distributed energy resources (DERs) to shift their consumption or production in time. Flexibility in distribution or transmission grids can increase grid resilience, reduce maintenance costs, lower distribution losses, and smooth and increase the predictability of the demand profile (Cochran et al., 2014; Babatunde et al., 2020; Mohandes et al., 2019). Flexibility services usually require aggregating flexible residential customers into pools that reach a given “critical mass” (Eid et al., 2015; Parvania et al., 2013).
Load flexibility frameworks are increasingly recognized for their potential to facilitate the integration of DER sources—such as solar and wind—into existing energy systems. This integration requires consumers to adjust their energy consumption patterns in response to supply variations. Research indicates that DR programs, which incentivize customers to reduce or shift their electricity usage during peak periods, effectively reduce peak loads and enhance overall system efficiency (Zheng et al., 2018; Mancini et al., 2021). By actively engaging residential and commercial sectors in DR initiatives, energy providers can better balance supply and demand, particularly given the rising share of DERs in energy portfolios (Kiljander et al., 2019).
In most cases, aggregation requires controlling heterogeneous types of devices (Ghaemi et al., 2019) (e.g., heat pumps (HPs), electric water heaters (EHs), electric vehicles, and photovoltaic (PV) power plants) or running different types of onboard controllers, (e.g., rule or heuristic-based, model predictive control, etc.). This condition restricts the viable control methods for pooling flexibility. Some protocols, such as OSCP (2024), envisage intermediate actors optimizing flexibility pools by means of a global control signal, delegating the complexity of low-level control to a flexibility provider (Portela et al., 2015; Biegel et al., 2014). Currently, the most used control method is ripple control (Chen, 2016), using frequency-sensitive relays to shut down flexible devices. Aggregating loads in control pools reduces uncertainty in the total amount of actuated flexibility (Ponocko and Milanovic, 2018), yet communicating instant flexibility may prove insufficient for optimal dispatch. Frequently, deactivating a cluster of energy-intensive devices might trigger a “rebound effect” in the overall load once they are reactivated (Cui et al., 2018). This effect can create an unintended spike in peak demand, a factor that should be taken into account when optimizing the overall power profile.
1.1 Related works
Flexibility research has gained prominence in recent publications. For example, the International Energy Agency’s (IEA) Annex 67 (Jensen et al., 2017) focuses on using building flexibility for grid control, and Annex 82 IEA EBC Annex 82 (2020–2025) examines its quantification for utilities and DSOs. Several studies have focused on the detailed characterization of flexible devices by analyzing their dynamic response, operational limits, and overall efficiency under varying conditions. For example, works such as Six et al. (2011), Chen et al. (2018), Balint and Kazmi (2019), Junker et al. (2018), and Nuytten et al. (2013) provide a quantitative assessment of device flexibility by measuring metrics like response time, energy throughput, and thermal dynamics. These efforts establish the necessary groundwork for developing models that accurately predict device behavior when subject to control signals and variable load profiles.
In contrast, another stream of research has concentrated on exploiting device flexibility within DSM and DR schemes. Under the assumption of systems that are directly controllable and fully observable, studies such as Petersen et al. (2013), De Coninck and Helsen (2016), and Oldewurtel et al. (2013) propose control methodologies that integrate flexible devices into grid operations. In particular, the approaches presented by Oldewurtel et al. (2013), De Coninck and Helsen (2016), and Reynders et al. (2017) demonstrate how thermally activated building systems (TABS) and HPs can be directly manipulated to balance supply and demand, thus enhancing overall grid stability.
Our work, however, is positioned in a more challenging yet realistic scenario where systems are only partially observable and indirectly controllable. In many practical settings, DSOs have limited access to granular sensor data—they typically rely on the binary signals from smart meter relays rather than continuous temperature readings. This situation calls for simulation-based flexibility assessments that capture the bottom-up behavior of flexible loads under indirect control. For instance, Fischer et al. (2017) use detailed simulations to estimate the energy flexibility of residential smart-grid-ready HPs that respond to discrete control commands, while Muller and Jansen (2019) predict the aggregated energy consumption of groups of HPs managed via binary throttling signals.
This dual perspective—combining in-depth device characterization with simulation-based system-level evaluation—finds additional support in the broader literature. Earlier reviews, such as Albadi and El-Saadany (2007) and Palensky and Dietrich (2011), have underscored the importance of demand response for modern power systems. Moreover, simulation studies like the one presented in Callaway (2009) further illustrate the benefits of distributed control schemes in mitigating grid instabilities and integrating renewable energy sources.
In Valles et al. (2018), the authors trained a forecaster on periods in which demand response is not active to quantify the flexibility associated with a pool of customers under a price-and-volume schema. This approach was possible due to the sparsity of actuation events, allowing for separate baseline and activation periods. Our work is also related to the inverse optimization of price signals, which was first introduced by Corradi et al. (2013). The idea is that assuming that some buildings use a price-dependent (but unknown) controller, the DSO or an aggregator can try to reverse engineer the controllers by estimating approximate and invertible control laws by probing the system with a changing price signal. Because the learned control laws are invertible, they can then be used to craft the optimal cost signal to provide a desired aggregate power profile. To show this, Corradi et al. (2013) fitted an invertible online FIR model to forecast the consumption of a group of buildings as a function of a price signal and derive an analytic solution for an associated closed-loop controller. The concept was then demonstrated using simulations on 20 HP-equipped households. Junker et al. (2018) used the same concept to fit a linear model linking prices and the load of a cluster of price-sensitive buildings. The authors then proposed characterizing flexibility by extracting parameters from the model response. They also proposed to estimate the expected savings of a given building by simulating its model twice, with and without a price-reacting control. A similar approach was proposed by Junker et al. (2020), where authors identified a general stochastic nonlinear model for predicting energy flexibility coming from a water tower operated by an unknown control strategy. The fitted model is then used in an optimization loop to design price signals for the optimal exploitation of flexibility. Yin and Qiu (2022) used the same method to find price signals to best meet flexibility requests using an iterative method. By integrating these insights, our research aims to bridge the gap between the theoretical potential of flexible devices and their practical exploitation in smart grid environments characterized by limited observability and indirect control.
1.2 Contributions
In contrast to the approaches presented in the reviewed literature, which employ simple invertible models to estimate flexibility (Junker et al., 2018; Junker et al., 2020; Corradi et al., 2013), we propose to train global forecasters or metamodels based on boosted trees on simulated data to predict both the controlled and uncontrolled power of flexible devices. This allows conditioning the response on categorical variables, such as the number of controlled devices of different types and past binary control signals generated by ripple control or throttling. This latter ability allows the forecaster to be used as a surrogate model of the simulation inside a control loop. We also show that global models provide sufficient accuracy to bypass the simulations and to perform the same kind of what-if analysis presented in Fischer et al. (2017). This is possible because we are only interested in the aggregated power of the controlled devices, which has a much lower dimensionality than all the simulated states and signals. The method we propose can be used to assess the power response of groups of flexible devices from day zero by means of simulations but can also be applied to real controlled systems (for which it is not possible to retrieve a baseline response) by augmenting the training set using observations from the field. In Section 2, we show that the modeling and simulation phase needed to create a training set for the metamodel only requires statistical information, which is usually publicly available. In Section 3, we present a method to predict energy flexibility using a global forecasting model. We conduct an ablation study in which we suggest various training methodologies. These findings indicate that incorporating concepts of energy imbalances throughout the prediction horizon and crafting a training set from scenarios exhibiting orthogonal penetrations based on device types enhances the accuracy of forecasts. In Section 3.4, we use the metamodel to characterize flexibility and rebound effects, allowing us to answer complex questions like: How does the controlled device mix influence flexibility? How many kWh, at which power level, could be deferred? In Section 4, we describe how the metamodel can be used to optimize the available flexibility. In Section 4.2, we propose a dynamic grouping strategy to ensure that the thermal comfort constraints of end users with an HP are never violated. Finally, in Section 5, we study the accuracy of the metamodel when used to optimize flexible devices. For the analyzed use case, we show that the metamodel is accurate enough to completely bypass the simulation, allowing us to use it for both simulation and control.
2 Problem statement and system description
Our objective is to evaluate the flexibility potential of residential customer groups in response to a force-off control signal
1. HP: in this configuration, both space heating and domestic hot water (DHW) are provided by an HP.
2. EH: in this case, the EH is only used to provide DHW, while the space heating is not modeled. The latter is considered to be fueled by gas or oil.
A detailed mathematical description of the building thermal model, stratified water tanks, HP, and heating system model is provided in Supplementary Appendix A1. To validate our methodology, we conducted simulations reflecting typical device usage and overall power consumption for a DSO in the Swiss canton of Ticino. Supplementary Appendix A2 lists the data sources used to configure the simulated devices. Within this region, our analysis included 2,670 buildings with installed HPs and 1,750 with EHs, possessing a total nominal electrical capacity of 12.5 MW and 7.7 MW, respectively.
3 Global forecasting modes for flexibility simulation and control
We start considering a single group of simulated flexible devices. We define a dataset
3.1 Dataset generation
The dataset is built from a 1-year simulation in which devices were controlled using a random control policy and a 1-year uncontrolled simulation; this is opposed to simulating tuples of controlled and uncontrolled cases starting from the same system’s state. The latter approach is more complicated, requiring resetting the simulation states each time; furthermore, it cannot be used when gathering data from real systems. To build the control signal

Table 2. Metadata used as features in the training set. Penetration scenario features describe the characteristics of the pool of simulated buildings and devices, while temporal features refer to the time of the prediction. Here,

Table 3. Continuous variables, transformations, and lags passed as features to the metamodel. Meteorological information consists of temperature and global horizontal irradiance measurements.

Figure 1. Left: a random sample of daily scenarios for the force-off signal. Center: ratio of active signals for a given timestep of the day. Right: distribution of the number of active timesteps among all possible scenarios.
Instead of training several metamodels using datasets with different numbers of HPs and EHs, we follow a common approach from forecasting literature and train a single global model by crafting datasets of different penetration scenarios and using them to create a single dataset. We build the final dataset following these steps:
1. We build penetration scenarios by grouping a subset of the simulated buildings, from which the aggregated power
2. We retrieve metadata describing the pool of buildings for each penetration scenario. Metadata include the total number of each kind of device, the mean thermal equivalent transmittance (U) of the sampled buildings, and other parameters reported in Table 2. We further augment the dataset with time features such as the hour, the day of the week, and the minute of the day of the prediction time.
3. Each penetration scenario dataset is augmented through transformations and lags of the original features, as reported in Table 3, to obtain
4. The final dataset is retrieved by stacking the penetration scenario datasets
To summarize, the simulation employs 15-min timesteps. Load profiles were generated using realistic consumption patterns, as explained before. Control signals were constrained to meet minimum on/off periods. Because we are targeting peak shaving, we expect that our optimization will not worsen grid stability. All simulation datasets and source data used in this study are derived primarily from publicly accessible repositories. The trained forecasting models will be made available upon publication.
3.2 Model description
The metamodel is a collection of multiple-input single-output (MISO) LightGBM regressors (LightGBM, 2024) predicting
The alternative to a collection of MISO models is training only one MISO model after augmentation of the dataset with a categorical variable indicating the step ahead being predicted. This option was discarded due to both memory and computational time restrictions. For our dataset, this strategy requires more than 30 GB of RAM. Furthermore, training a single tree for the whole dataset requires more computational time than training a set of MISO predictors in parallel (on a dataset that is 96 times smaller). We recall that the final dataset is composed of 100 scenarios differing in the set of buildings composing the aggregated response to be predicted. This means that removing observations at random when performing a train-test split would allow the metamodel to see the same meteorological conditions present in the training set. To overcome this, the training set was formed by removing the last 20% of the yearly observations from each penetration scenario dataset
A hyper-parameter optimization is then run on a 3-fold cross-validation over the training set; this means that each fold of the hyper-parameter optimization contains roughly 53% of
3.3 Ablation studies
We performed an ablation study to see the effectiveness of different sampling strategies (point (1) of the dataset-building methodology described in the previous section) and model variations.
3.3.1 Evaluation metrics
Model performances can be better compared when plotting the average (over samples and prediction times) normalized mean absolute error (nMAE) as a function of step ahead. The nMAE for the predictions generated at time
Furthermore, we define two relative energy imbalanced measures:
where
3.3.2 Sampling schemes
To generate the final dataset, we tested two different sampling schemes to produce the penetration scenarios. In the first strategy, the total number of controllable devices is increased linearly, selecting randomly between households with an HP or an EH. In the second strategy, the number of the two controllable classes of devices is increased independently, co-varying the number of HPs and EHs in a Cartesian fashion, as illustrated in Figure 2.

Figure 2. Sampling strategies for building the final training set. Left: the total number of controllable devices is increased linearly, selecting randomly between households with an HP or an EH. Left: the number of controllable devices is increased by independently co-varying the number of HPs and EHs.
3.3.3 Energy unbalance awareness
A physics-informed approach involving energy imbalance is proposed to enhance the accuracy of the metamodel. This method utilizes the metamodel to simulate the system’s response under two conditions: with the actual control signal
In total, we compared four distinctive configurations, comprising the two models and the two sampling strategies. Figure 3 provides representative examples of predictions of the energy-aware metamodel trained using the grid sampling strategy, featuring varying counts of controlled HPs and EHs.

Figure 3. Random example of a day-ahead metamodel’s forecasts for different numbers of HPs and EHs, where the force off was activated at least once for the energy-aware metamodel trained using the grid sampling strategy.
The grid sampling scheme did indeed help in increasing the accuracy of the predictions w.r.t. the random sampling scheme for both the LightGBM models. Including the information about energy imbalances at each step ahead shows some benefits for both sampling strategies at the expense of a more complex model. The accuracy improvement impacts only controlled scenarios, as demonstrated by comparing the second and third panels in Figure 4. These panels show the scores obtained for instances where the force-off signal was activated at least once or never activated. This result aligns with our expectations. As an additional analysis, we studied the energy imbalance over the prediction horizon. For this analysis, we considered only the controlled cases in the test set. We removed all the instances in which the force-off signal was activated in the last 5 h of the day from the comparison. In this case, part of the consumption will be deferred outside the prediction horizon, making the comparison meaningless.

Figure 4. Performances for the four tested metamodels in terms of nMAE as a function of the step ahead.
Looking at the first row of Figure 5, we see how the empirical cumulative distribution functions (ECDFs) of

Figure 5. Left: cumulative distributions of the relative energy imbalance for different models. Right: empirical cumulative density functions of the absolute relative energy imbalance for the different models.
3.4 Characterization of the rebound effect
We used the energy imbalance aware model in combination with the grid sampling strategy to visualize rebound effects for different numbers of HPs and EHs. Figure 6 shows three extreme examples of the characterization: the penetration scenario with the maximum number of EHs and zero HPs, the converse, and the scenario where both penetrations are at their maximum value. The rebound is shown in terms of energy imbalance from the test set, such that they have a force-off signal turning off at the fifteenth plotted step. Note how different observations can start to show negative energy imbalance at different time steps; this is because force-off signals can have different lengths, as shown in Figure 1. The upper left quadrant shows the energy imbalance predicted by the metamodel in the case of the maximum number of EHs and no HPs. Comparing it with the lower right quadrant, where the sample only contains HPs, we see that the rebound effect has a quicker decay, being close to zero after only 10 steps (corresponding to 2.5 h). The lower right quadrant exhibits a markedly slower dissipation of the rebound effect, attributable to the different heating mechanisms and temporal constants inherent in systems heated by EHs and HPs. EHs, dedicated solely to DHW heating, have their activation guided by a hysteresis function governed by two temperature sensors installed at varying heights within the water tank. In contrast, HPs are responsible for both DHW and space heating, and their activation hinges on the temperature of the hydronic circuit, thus creating a segregation between the HPs and the building heating elements, namely, the serpentine. As a result, HP activation is subjected to a system possessing a heating capacity significantly greater than that of the standalone DHW tank: the building’s heating system. Further intricacy is added to the power response profile of the HP due to its dual role in catering to DHW and space heating needs, with priority assigned to the former. The visual responses presented in Figure 1 are color-differentiated according to the 7-day mean of the ambient temperature. As per the expected pattern, the EH responses exhibit independence from the average external temperature, while a modest influence can be detected for the HPs, where a rise in average temperatures aligns with a faster decay in response.

Figure 6. Example of system response in terms of deviations from the expected response (prediction where control signal features referring to feature time steps are zeroed), dependent on the number of HPs and EHs.
Our analysis reveals that while EHs tend to exhibit a slower decay in rebound effects, HPs recover more rapidly. This differential behavior has important implications for grid stability. To mitigate potential issues arising from concurrent device reactivation, we propose a dynamic grouping strategy that staggers control actions, thereby smoothing the rebound profile and enhancing overall system stability.
4 Using metamodels for optimal flexibility control
This section presents how the metamodel can be incorporated into the optimization loop, beginning with optimizing a single flexibility group. The optimization problem is formulated to minimize a composite cost function consisting of day-ahead energy costs and a peak tariff penalty. Constraints include ensuring that the force-off durations do not compromise thermal comfort and that the rebound effects remain within acceptable limits. The objective that we found most compelling from both the DSO and energy supplier perspectives is the simultaneous minimization of day-ahead costs (incurred by the energy supplier on the spot market) and peak tariff (paid by the DSO to the transmission system operator (TSO). Notably, this scenario is particularly well-suited to Switzerland, where a distinctive situation persists with the energy supplier and the DSO remaining bundled. The peak tariff, being proportionate to the maximum monthly peak over a 15-min interval, poses a more significant optimization challenge than day-ahead costs, as the peak tariff is paid on the monthly peak. Because it is extremely hard to produce accurate forecasts over a 1-month period, we solved the peak shaving problem on a daily basis as a heuristic. This then leads us to the following optimization problem:
where
1. Forecast the total power of the DSO:
2. Forecast the baseline consumption of flexible devices,
3. Forecast the response of flexible devices under a given control scenario
4. The objective function is evaluated on
4.1 Controlling multiple groups
As previously noted, forcing off a group of flexibilities results in a subsequent rebound effect when they are permitted to reactivate. A viable strategy to counter this issue is to segment the flexibilities into various groups, thereby circumventing a concurrent reactivation. Moreover, this segmentation method helps exploit their thermal inertia to the fullest extent. This is especially true in the context of HP, as variations in building insulation and heating system sizing inevitably lead to differences in turn-on requirements to maintain home thermal comfort under identical weather conditions. Analogous considerations apply to hot water boilers as well. In addition, it is crucial to note that, generally, EHs can endure longer force-off periods than HPs. Thus, the stratification of flexibilities into distinct groups not only mitigates the rebound effect but also facilitates the optimal utilization of the entire appliance fleet’s potential. Equation 4 can be reformulated as
where

Figure 7. Example of optimized control action using the metamodel. Top: control signals (dashed), forecast group responses (dotted), and simulated, both controlled and uncontrolled, responses (thick). Middle: total power from uncontrolled DSO households (blue), total DSO power when no control action is taken (orange), and simulated and forecasted system responses (green and red). Bottom: day-ahead price on the spot market.
The upper panel shows the optimal control signals, along with the simulated response (dashed lines) and the response predicted by the metamodel (dotted lines). The middle panel shows the power from uncontrolled nodes in the DSO grid (blue), the total DSO power when no control action is taken (orange), and the simulated and forecast system response (green and red).
4.2 Ensuring comfort for the end users
To ensure end-user comfort while leveraging their flexibility, it is critical that appliances maintain the ability to meet energy demands for a certain period of time despite shorter time shifts within this duration. When a building is heated with a thermo-electric device, such as an HP, its energy consumption exhibits a significant inverse correlation with the external temperature. This correlation can be effectively illustrated using an equivalent linear resistance–capacitance (RC) circuit to model the building’s thermal dynamics. The static behavior of this model can be represented by the energy signature, which depicts the linear relationship between the building’s daily energy consumption and the mean daily external temperature, denoted as
Our ultimate objective is to ascertain the necessary operational duration for a specified HP to fulfill the building’s daily energy requirements. Consequently, the total number of active hours during a day,
The following steps describe our procedure to generate and control a group of HPs based on their estimated activation time:
1. Estimate the energy signatures of all the buildings with an installed HP
2. Estimate the reference activation time
3. At control time, perform a day-ahead estimation of activation times for all HPs,
5 Using metamodels for closed-loop emulations
For testing operational and closed-loop accuracy, we simulated 1 year of optimized operations in the case in which 66% of the available flexibilities are controlled. We used two control groups: one containing only EHs, which can be forced off for a longer period of time, and one group of HPs, controlled as explained in the previous section.
The prediction error accuracy was already studied in Section 3.3, where we tested the metamodel on a simulated test set. In that case, the force-off signals in the dataset were produced by a random policy. We further tested the performance of the metamodel when predicting the optimized force-off. We could expect a difference in prediction accuracy because, in this case, the force-off signals have a non-random pattern that could influence the average error of the forecaster. In addition to this, we assessed the accuracy of the metamodel in terms of economic results in closed-loop; that is, we retrieve the errors on the economic key performance indicators (KPIs) when the simulation is completely bypassed, and the metamodel is used for both optimizing and emulating the behavior of the controlled devices.
5.1 Open-loop operational accuracy
At first, operational accuracy was assessed in terms of predictions, comparing the aggregated controlled power profile with the sum of the individually simulated (controlled) devices. Figure 8 shows the normalized daily time series of the prediction error during the actual optimization process. This is defined as
where

Figure 8. Performance of the metamodel in the open-loop simulations. Left: daily relative errors plotted as time series. Right: distribution of the daily means of the relative error.
5.2 Closed-loop economic performances
We cannot directly assess the closed-loop performances of the metamodel in terms of prediction errors. This is because, when simulating in a closed loop, the metamodel’s predictions are fed to itself in a recurrent fashion. This could result in slightly different starting conditions for each day; furthermore, comparing the sampled paths is not our final goal. A more significant comparison is in terms of economic returns. We compared these approaches:
1. Simulated. We run the optimization and fully simulate the system’s response. In this setting, the metamodel is only used to obtain the optimal control signal to be applied the day ahead. The controlled devices are then simulated, subject to the optimal control signal. The costs are then computed based on the simulations.
2. Forecast. For each day, the optimal predictions used for the optimization are used to estimate the cost. We simulate the controlled devices; this process is repeated the next day. This approach gives us an understanding of how the operational prediction errors shown in Figure 8 impact the estimation of the costs.
3. Emulated. The simulations are completely bypassed. The metamodel is used to optimize the control signal and generate the next-day responses for the controlled devices.
It should be clear that if the third approach gives comparable results in terms of costs, we could then simply use the metamodel for both the control task and its evaluation. This would significantly speed up the simulation loop: we will not need to simulate the thermodynamic behavior of thousands of households but only evaluate the trained metamodel, which is almost instantaneous. It could seem unlikely to reach the same accuracy produced by a detailed simulation, but this can be justified by the fact that we are only interested in an aggregated power profile, whose dimensionality is only a tiny fraction of all the simulated signals needed to produce it.
In Figure 9, we reported the relative discrepancies from economic KPIs retrieved by the simulation using the two aforementioned approaches. As an additional KPI, we also reported the estimated tons of produced
where

Figure 9. Deviations of different objectives from the simulated results, using the metamodel to optimize and forecast the power profiles (blue) or to completely bypass the simulation (orange). Top: relative error of objectives normalized with the total simulated costs. Bottom: relative error of objectives normalized with the additional costs faced by the DSO due to the flexible group.

Table 4. First column: energy costs, peak, total costs, and

Table 5. First column: additional energy costs, peak, total costs, and
6 Conclusions and extensions
In this work, we presented a methodology to model the flexibility potential of controllable devices located in a DSO’s distribution grid and optimally steer it by broadcasting force-off signals to different clusters of flexible devices. We achieved this by training a non-parametric global forecasting model conditional to the control signals and the number of controlled devices to predict their simulated aggregated power. The numerical use case showed that the forecaster’s accuracy is high enough to use it as a guide to optimally steer flexible devices. Moreover, the high accuracy of economic KPIs suggests that the forecaster can be used to bypass the simulation completely and speed up A/B-like testing and the retrieval of different demand-side management policies over different device penetrations.
We envision the following possible extensions of the presented work:
The methodology presented in this work offers a cost-effective and computationally efficient tool for real-time grid management, with significant implications for both the energy industry and the broader community. By enabling near-instantaneous evaluations of various demand-response scenarios, our approach facilitates the integration of renewable energy sources and enhances grid resilience. This capability not only reduces operational costs and peak tariffs for distribution system operators and energy suppliers but also contributes to lowering
In summary, our approach not only achieves high accuracy in predicting the aggregated response of flexible loads but also demonstrates significant potential for reducing operational costs and peak tariff expenses. The ability to bypass full-scale simulations without sacrificing economic performance paves the way for faster and more efficient grid management strategies. Moreover, our methodology provides actionable insights into the rebound effects of flexible loads, thereby supporting the design of more robust demand-response policies.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Author contributions
LN: conceptualization, data curation, methodology, writing – original draft, and writing – review and editing. VM: supervision, writing – original draft, and writing – review and editing.
Funding
The author(s) declare that financial support was received for the research and/or publication of this article. This work was financially supported by the Swiss Federal Office of Energy (Optimal DSO dISpatchability (ODIS), SI/502074 and IEA Annex 82 “Energy Flexible Buildings Towards Resilient Low Carbon Energy Systems”) and the Swiss National Science Foundation under NCCR Automation (grant agreement 51NF40180545).
Conflict of interest
Author LN was a scientific advisor of Hive Power SA.
The remaining author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declare that no Generative AI was used in the creation of this manuscript.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fenrg.2025.1547617/full#supplementary-material
References
Albadi, M. H., and El-Saadany, E. F. (2007). “Demand response in electricity markets: an overview,” in 2007 IEEE power engineering society general meeting, 1–5. doi:10.1109/PES.2007.385728
Amos, B., Xu, L., and Kolter, J. Z. (2017). “enInput convex neural networks,” in Proceedings of the 34 th international conference on machine learning. Swiss Statistical Office, 10.
Ardizzone, L., Luth, C., Kruse, J., Rother, C., and Kothe, U. (2019). enGuided image generation with conditional invertible neural networks ArXiv:1907.02392 [cs]
Babatunde, O. M., Munda, J. L., and Hamam, Y. (2020). Power system flexibility: a review. Energy Rep. 6, 101–106. doi:10.1016/j.egyr.2019.11.048
Balint, A., and Kazmi, H. (2019). Determinants of energy flexibility in residential hot water systems. Energy Build. 188-189, 286–296. doi:10.1016/j.enbuild.2019.02.016016
Biegel, B., Andersen, P., Stoustrup, J., Madsen, M. B., Hansen, L. H., and Rasmussen, L. H. (2014). Aggregation and control of flexible consumers – a real life demonstration. IFAC Proc. Vol. 47, 9950–9955. doi:10.3182/20140824-6-ZA-1003.00718
Callaway, D. S. (2009). Tapping the energy storage potential in electric loads to deliver load following and regulation, with application to wind energy. Energy Convers. Manag. 50, 1389–1400. doi:10.1016/j.enconman.2008.12.01212.012
Chen, K.-H. (2016). “Ripple-based control technique Part I,” in Power management Techniques for integrated circuit design (IEEE), 170–269. doi:10.1002/9781118896846.ch4
Chen, Y., Xu, P., Gu, J., Schmidt, F., and Li, W. (2018). Measures to improve energy demand flexibility in buildings for demand response (DR): a review. Energy Build. 177, 125–139. doi:10.1016/j.enbuild.2018.08.003
Cochran et al., J (2014). Flexibility in 21st century power systems. Available online at: https://www.nrel.gov/docs/fy14osti/61721.pdf.
Corradi, O., Ochsenfeld, H., Madsen, H., and Pinson, P. (2013). Controlling electricity consumption by forecasting its response to varying prices. IEEE Trans. Power Syst. 28, 421–429. Conference Name: IEEE Transactions on Power Systems. doi:10.1109/TPWRS.2012.2197027
Cui, W., Ding, Y., Hui, H., Lin, Z., Du, P., Song, Y., et al. (2018). Evaluation and sequential dispatch of operating reserve provided by air conditioners considering lead–lag rebound effect. IEEE Trans. Power Syst. 33, 6935–6950. Conference Name: IEEE Transactions on Power Systems. doi:10.1109/TPWRS.2018.2846270
De Coninck, R., and Helsen, L. (2016). Quantification of flexibility in buildings by cost curves – methodology and application. Appl. Energy 162, 653–665. doi:10.1016/j.apenergy.2015.10.114apenergy.2015.10.114
Eid, C., Codani, P., Chen, Y., Perez, Y., and Hakvoort, R. (2015). “Aggregation of demand side flexibility in a smart grid: a review for European market design,” in 2015 12th international conference on the European energy market (EEM) (ISSN), 1–5. doi:10.1109/EEM.2015.7216712
Fischer, D., Wolf, T., Wapler, J., Hollinger, R., and Madani, H. (2017). Model-based flexibility assessment of a residential heat pump pool. Energy 118, 853–864. doi:10.1016/j.energy.2016.10.1111016/j.energy.2016.10.111
Ghaemi, R., Abbaszadeh, M., and Bonanni, P. G. (2019). Optimal flexibility control of large-scale distributed heterogeneous loads in the power grid. IEEE Trans. Control Netw. Syst. 6, 1256–1268. Conference Name: IEEE Transactions on Control of Network Systems. doi:10.1109/tcns.2019.2933945TCNS.2019.2933945
Jensen, S. O., Marszal-Pomianowska, A., Lollini, R., Pasut, W., Knotzer, A., Engelmann, P., et al. (2017). IEA EBC Annex 67 energy flexible buildings. Energy Build. 155, 25–34. doi:10.1016/j.enbuild.2017.08.044
Junker, R. G., Azar, A. G., Lopes, R. A., Lindberg, K. B., Reynders, G., Relan, R., et al. (2018). Characterizing the energy flexibility of buildings and districts. Appl. Energy 225, 175–182. doi:10.1016/j.apenergy.2018.05.037
Junker, R. G., Kallesoe, C. S., Real, J. P., Howard, B., Lopes, R. A., and Madsen, H. (2020). Stochastic nonlinear modelling and application of price-based energy flexibility. Appl. Energy 275, 115096. doi:10.1016/j.apenergy.2020.115096115096
Kiljander, J., Gabrijelcic, D., Werner-Kytola, O., Krpic, A., Savanovic, A., Stepancic, Z., et al. (2019). Residential flexibility management: a case study in distribution networks. Ieee Access 7, 80902–80915. doi:10.1109/access.2019.2923069
LightGBM (2024). Welcome to LightGBMs documentation! –LightGBM 3.3.1.99 documentation. Available online at: https://lightgbm.readthedocs.io/en/latest/.
Mancini, F., Cimaglia, J., Basso, G. L., and Romano, S. (2021). Implementation and simulation of real load shifting scenarios based on a flexibility price market strategy–the Italian residential sector as a case study. Energies 14, 3080. doi:10.3390/en141130803390/en14113080
Mohandes, B., Moursi, M. S. E., Hatziargyriou, N., and Khatib, S. E. (2019). A review of power system flexibility with high penetration of renewables. IEEE Trans. Power Syst. 34, 3140–3155. doi:10.1109/tpwrs.2019.28977272897727
Muller, F., and Jansen, B. (2019). Large-scale demonstration of precise demand response provided by residential heat pumps. Appl. Energy 239, 836–845. doi:10.1016/j.apenergy.2019.01.202apenergy.2019.01.202
Nuytten, T., Claessens, B., Paredis, K., Van Bael, J., and Six, D. (2013). Flexibility of a combined heat and power system with thermal energy storage for district heating. Appl. Energy 104, 583–591. doi:10.1016/j.apenergy.2012.11.02911.029
Oldewurtel, F., Sturzenegger, D., Andersson, G., Morari, M., and Smith, R. S. (2013). “Towards a standardized building assessment for demand response,” in 52nd IEEE conference on decision and control (ISSN), 7083–7088. doi:10.1109/CDC.2013.6761012
Optuna (2020). Optuna - a hyperparameter optimization framework. Available online at: https://optuna.org/.
OSCP (2024). OSCP 2.0, protocols, home - open charge alliance. Available online at: https://www.openchargealliance.org/protocols/oscp-10/.
Ozaki, Y., Tanigaki, Y., Watanabe, S., and Onishi, M. (2020). “Multiobjective tree-structured parzen estimator for computationally expensive optimization problems,” in Proceedings of the 2020 genetic and evolutionary computation conference (New York, NY, USA: Association for Computing Machinery), GECCO ’20), 533–541. doi:10.1145/3377930.3389817
Palensky, P., and Dietrich, D. (2011). Demand side management: demand response, intelligent energy systems, and smart loads. IEEE Trans. Industrial Inf. 7, 381–388. doi:10.1109/TII.2011.2158841
Parvania, M., Fotuhi-Firuzabad, M., and Shahidehpour, M. (2013). Optimal demand response aggregation in wholesale electricity markets. IEEE Trans. Smart Grid 4, 1957–1965. Conference Name: IEEE Transactions on Smart Grid. doi:10.1109/TSG.2013.2257894
Petersen, M. K., Edlund, K., Hansen, L. H., Bendtsen, J., and Stoustrup, J. (2013). “A taxonomy for modeling flexibility and a computationally efficient algorithm for dispatch in Smart Grids,” in 2013 American control conference (ISSN), 1150–1156. doi:10.1109/ACC.2013.6579991
Ponocko, J., and Milanovic, J. V. (2018). Forecasting demand flexibility of aggregated residential load using smart meter data. IEEE Trans. Power Syst. 33, 5446–5455. Conference Name: IEEE Transactions on Power Systems. doi:10.1109/TPWRS.2018.2799903
Portela, C. M., Klapwijk, P., Verheijen, L., and Boer, H. d.Enexis (2015). OSCP-an open protocol for smart charging of electric vehicles
Reynders, G., Diriken, J., and Saelens, D. (2017). Generic characterization method for energy flexibility: applied to structural thermal storage in residential buildings. Appl. Energy 198, 192–202. doi:10.1016/j.apenergy.2017.04.061
Six, D., Desmedt, J., Vahnoudt, D., and Bael, J. (2011). “Exploring the flexibility potential of residential heat pumps combined with thermal energy storage for smart grids,” in 21th international conference on electricity distribution, paper, 442.
Valles, M., Bello, A., Reneses, J., and Frias, P. (2018). Probabilistic characterization of electricity consumer responsiveness to economic incentives. Appl. Energy 216, 296–310. doi:10.1016/j.apenergy.2018.02.058
Yin, L., and Qiu, Y. (2022). Long-term price guidance mechanism of flexible energy service providers based on stochastic differential methods. Energy 238, 121818. doi:10.1016/j.energy.2021.1218181016/j.energy.2021.121818
Keywords: control, energy flexibility, forecasting, flexibility estimation, renewable energies
Citation: Nespoli L and Medici V (2025) Global forecasting models for residential load flexibility and grid optimization. Front. Energy Res. 13:1547617. doi: 10.3389/fenrg.2025.1547617
Received: 19 December 2024; Accepted: 31 March 2025;
Published: 12 May 2025.
Edited by:
Shabana Urooj, Princess Nourah bint Abdulrahman University, Saudi ArabiaReviewed by:
Narottam Das, Central Queensland University, AustraliaRajesh A., Saveetha University, India
Areiba Arif, O.P. Jindal Global University, India
Copyright © 2025 Nespoli and Medici. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Lorenzo Nespoli, bG9yZW56by5uZXNwb2xpQHN1cHNpLmNo