Next Article in Journal
StegoPadding: A Steganographic Channel with QoS Support and Encryption for Smart Grids Based on Wi-Fi Networks
Previous Article in Journal
Performance Analysis of a 100 Gbps Long-Reach PON for Ultra-Wideband Rural Connectivity: A Case Study in Ecuador
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Uncertainty-Aware Incentive-Based Three-Level Flexibility Coordination for Distribution Networks

by
Omar Alrumayh
1 and
Abdulaziz Almutairi
2,*
1
Department of Electrical Engineering, College of Engineering, Qassim University, Buraydah 52571, Saudi Arabia
2
Department of Electrical Engineering, College of Engineering, Majmaah University, Almajmaah 11952, Saudi Arabia
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(7), 1503; https://doi.org/10.3390/electronics15071503
Submission received: 23 February 2026 / Revised: 14 March 2026 / Accepted: 16 March 2026 / Published: 3 April 2026

Abstract

The rapid growth of distributed energy resources (DERs) is transforming distribution networks and increasing the need for coordinated flexibility management to maintain secure and economically efficient operation. In this work, we examine how uncertainty in load demand and photovoltaic (PV) generation affects incentive-based flexibility coordination within a hierarchical three-level framework. The proposed architecture integrates household energy management systems (HEMSs), an aggregator responsible for incentive allocation, and a distribution system operator (DSO) model based on AC optimal power flow. To account for demand and PV variability, a Γ -budget-robust optimization approach is adopted. Also, an incentive–penalty mechanism is introduced to allocate compensation according to each prosumer’s actual flexibility contribution while promoting economic fairness. The entire framework is implemented in PYOMO and tested on the IEEE 33-bus distribution system. A comparative evaluation between deterministic and uncertainty-aware cases is conducted to quantify the cost of robustness and to analyze its influence on flexibility participation, incentive distribution, household net cost, and voltage regulation performance. The results indicate that uncertainty can lead to deviations from initially scheduled flexibility commitments, thereby triggering penalty signals during re-optimization and strengthening contractual compliance. Although the robust formulation results in a moderate increase in operational cost, it substantially improves voltage compliance and overall system reliability. Overall, the findings highlight the importance of explicitly incorporating uncertainty in multi-level flexibility coordination to ensure both technical consistency and practical enforceability in modern distribution networks.

1. Introduction

Electricity distribution systems are undergoing a fundamental transformation as a result of the energy sector’s continuous shift toward low-carbon and decentralized operations. Voltage deviations, reverse power flow, congestion, and peak demand growth are some of the new operational challenges brought about by the growing use of distributed energy resources (DERs), electrification of transportation, and advanced home energy management systems (HEMSs). These technologies also have a great deal of flexibility potential that can be used to improve system performance and financial efficiency.
Prosumers, or consumers with local generation and storage capabilities, can now actively participate in electricity markets thanks to the development of smart grids, which have made bidirectional power flow possible. Prosumers can adjust their consumption patterns in response to price signals or system requirements by utilizing demand response (DR) programs. However, as noted in [1], an uncoordinated demand-side response may have a detrimental effect on system reliability and operation. For DR participation to benefit both prosumers and distribution system operators (DSOs), appropriate coordination frameworks are therefore necessary.
Optimal scheduling of controllable appliances, electric vehicles (EVs), energy storage systems (ESSs), and photovoltaic (PV) generation through HEMSs can achieve flexibility at the residential level. Without specifically taking network-level goals like voltage regulation and loss minimization into account, conventional HEMS implementations usually seek to reduce electricity costs or maximize user comfort. This lack of coordination with DSO could result in operational and technical infeasibility in distribution networks as DER penetration rises [2]. The need for structured coordination frameworks is highlighted by the competing goals of DSOs and HEMSs [3].
Several studies have investigated two-level coordination frameworks. For instance, ref. [4] presented a two-level energy management system for homes and aggregators, focusing on EV charging coordination. Similarly, ref. [5] proposed a two-stage transactive charging strategy for EVs. While these works demonstrate economic advantages, they primarily focus on EV flexibility and neglect other residential DERs and controllable appliances. Moreover, distribution network operational constraints are often ignored, potentially resulting in technically infeasible solutions. In [6], uncertainty-aware transactive coordination for EVs and PVs was explored; however, voltage limits and network constraints were not explicitly incorporated into the optimization framework.
Centralized and decentralized demand-side management approaches have also been proposed. A day-ahead load shifting strategy was introduced in [7], demonstrating peak demand reduction. A real-time scheduling algorithm for multiple homes was developed in [8]. Nevertheless, these approaches did not explicitly examine the impact of demand-side flexibility on grid operational metrics such as power losses and voltage profiles.
Recent studies have also investigated coordinated scheduling of distributed energy systems within active distribution networks. For example, Reza et al. [9] proposed a multi-stage stochastic scheduling framework for networked microgrids integrating hydrogen refueling stations and electric vehicle charging infrastructure. While such approaches focus on coordinated operation of interconnected microgrids, the present work focuses on residential flexibility coordination within a hierarchical HEMS–aggregator–DSO architecture with uncertainty-aware scheduling and network-level validation through AC optimal power flow.
Other studies have explored thermal flexibility in residential and commercial buildings. For example, ref. [10] proposed thermal flexibility for a public library with HEMS. Similarly, ref. [11] proposed an uncertainty-aware transactive framework for thermal storage under real-time pricing, while [12] developed a thermal response model for HVAC systems. Similarly, Ma et al. [13] proposed a two-stage optimization model for day-ahead energy scheduling of an electro-thermal microgrid incorporating solid electric thermal storage. However, these works primarily address thermal flexibility and do not fully integrate electrical DERs such as ESS and EVs, nor do they comprehensively consider active distribution network operation as part of the optimization objective.
The role of aggregators in coordinating distributed flexibility has been widely recognized. Aggregators enable small-scale prosumers to participate in DR programs and electricity markets by pooling individual flexibility resources [14]. Recent research has investigated prosumer flexibility for energy management [15], frequency regulation [16], voltage rise mitigation [17], congestion management [18], and renewable integration [19]. Although multi-level coordination frameworks have been proposed in [20,21,22], these studies often neglect explicit modeling of upward and downward flexibility or do not include adaptive incentive mechanisms. Similarly, the authors in [23] calculated the upward and downward flexibility, but they did not consider the uncertainty in the power demand and PV generation, which is not realistic.
Incentive-based DR mechanisms have been explored in various contexts. Autonomous scheduling with incentives was studied in [24], though limited to shiftable appliances. Fixed incentive schemes for peak reduction were proposed in [20], but network-level constraints were not fully incorporated. Regression-based incentive design was investigated in [25], while residential aggregation frameworks were developed in [26]. However, many of these approaches focus on specific load categories and do not provide a comprehensive coordination structure linking HEMS, aggregator, and DSO objectives.
Recent studies have also explored data-driven approaches for residential flexibility aggregation and demand response coordination. These approaches employ machine learning and data analytics techniques to analyze smart meter data, identify consumption patterns, and segment residential consumers according to their flexibility potential. For example, the MAS-DR framework proposed in [27] introduces a machine-learning-based aggregation and segmentation methodology that groups residential consumers according to their consumption characteristics in order to improve participation in demand response programs. Similarly, recent work has applied machine learning techniques to cluster residential electricity load profiles and support demand response program design [28]. While such data-driven frameworks are effective for identifying flexibility potential and customer segmentation, they typically focus on flexibility estimation rather than optimization-based scheduling and network-level operational validation. In contrast, the approach proposed in this work focuses on optimization-driven coordination of residential flexibility within a hierarchical HEMS–aggregator–DSO framework while explicitly accounting for uncertainty in distributed energy resource behavior. More recently, artificial intelligence and reinforcement learning methods have also been explored for uncertainty-aware operation of distributed energy systems. While these approaches enable adaptive decision-making based on historical data, optimization-based methods such as robust optimization provide transparent mathematical formulations and explicit guarantees on constraint satisfaction under uncertainty.
Three-level coordination architectures have recently gained attention. Studies such as [29,30,31,32,33] investigated tri-level interactions among supply, aggregators, and consumers. Nevertheless, flexibility was not consistently treated as a system-support service, and the operational impact on DSOs was not thoroughly quantified. More comprehensive three-level frameworks integrating HEMS, aggregator coordination, and network-level optimization were presented in [34]. Similarly, ref. [35] proposed a device-level flexibility provision for HEMS in the distribution system. These works demonstrated improvements in loss reduction and cost minimization; however, they did not investigate the impact of uncertainty on flexibility provision or incentive allocation.
In practical distribution systems, load demand and PV generation are inherently uncertain. Ignoring uncertainty may lead to overestimation of available flexibility and misallocation of incentives. Conversely, incorporating robustness may increase operational costs and alter economic signals. Despite the growing adoption of robust optimization techniques in power systems, the impact of uncertainty on incentive distribution and prosumer participation within hierarchical flexibility coordination frameworks remains insufficiently explored.
To address this gap, this paper investigates the impact of uncertainty on incentive allocation in a multi-level flexibility coordination framework. Building upon a previously developed deterministic architecture [23], this work introduces a Γ -budget-robust optimization model to capture uncertainty in load demand and PV generation. The proposed framework consists of three interconnected stages: (i) HEMS-level optimization, (ii) aggregator-level flexibility coordination and adaptive incentive allocation, and (iii) DSO-level optimal power flow (OPF) validation. By integrating uncertainty modeling, this study quantifies the economic cost of robustness and evaluates how uncertainty affects incentive distribution, flexibility participation, and system-level performance.
It is important to note that the individual components used in the proposed framework—such as HEMS optimization, aggregator-based coordination, AC optimal power flow validation, and robust optimization—have been studied in prior literature. However, most existing multi-level coordination frameworks adopt deterministic formulations in which scheduling decisions rely on forecasted load and generation profiles. In contrast, the present work extends the deterministic coordination architecture proposed in [23] by introducing an uncertainty-aware formulation that explicitly captures deviations in household demand, PV generation, and EV availability using a Γ -budget-robust optimization model. This extension enables the proposed framework to evaluate how uncertainty propagates through the different coordination layers, influencing household scheduling decisions, aggregated flexibility envelopes, incentive allocation by the aggregator, and the resulting network operation as validated through the DSO-level OPF.
The main contributions of this paper are summarized as follows:
  • An uncertainty-aware three-level coordination framework for residential flexibility management is proposed, integrating HEMS optimization, aggregator-level flexibility coordination, and DSO network validation within a unified architecture.
  • A Γ -budget-robust optimization formulation is introduced to explicitly model uncertainty in load demand, PV generation, and EV availability within the hierarchical flexibility scheduling process.
  • An incentive–penalty mechanism is incorporated within the hierarchical coordination structure to reward verified flexibility provision and discourage deviations from allocated flexibility limits.
  • The proposed framework is implemented using the PYOMO optimization platform and validated on the IEEE 33-bus radial distribution test system [36] with a large-scale residential scenario involving 437 prosumers.
From an operational perspective, the proposed uncertainty-aware coordination framework provides a systematic approach for integrating residential flexibility into distribution system operation under uncertain conditions. By coordinating prosumer-level flexibility with network-level constraints, the framework enables DSOs to maintain secure and reliable operation while effectively leveraging distributed energy resources.

2. Methodology

This section presents the mathematical formulation and modeling assumptions of the suggested hierarchical flexibility coordination framework. We assume the availability of household-level controllers, bidirectional communication, and smart metering infrastructure. The approach is structured as a three-level EMS: (i) a household optimization level (HEMS); (ii) an aggregator coordination level for incentive computation and flexibility accounting; and (iii) a DSO level that uses distribution-level OPF to calculate network-feasible flexibility requests. Every home has an electric water heater (EWH), PV, ESS, and EV. In line with the finding that a number of household appliances do not offer complete upward/downward flexibility services, other appliances are combined into a non-controllable base-load component [37].
The proposed framework follows a sequential hierarchical optimization process involving three interconnected layers: the HEMS, the aggregator, and the DSO level. First, each household solves a local HEMS optimization problem to schedule controllable devices and determine the baseline power exchange with the grid. Second, the aggregator collects the flexibility information from individual households and determines the allowable flexibility limits together with the associated incentive–penalty signals. Third, the DSO performs an AC OPF analysis to evaluate the network feasibility of the aggregated flexibility and determine system-level flexibility requirements. Based on these limits, households perform re-optimization under the flexibility constraints and incentive signals. This sequential process enables coordinated flexibility provision while maintaining network operational constraints.

2.1. Level 1: Home Energy Management System (HEMS)

Every household h H solves a day-ahead optimization over discrete time steps t T with duration Δ t . The HEMS schedules the EV and ESS charging and discharging, EWH heating, PV power distribution, and grid power exchange. Energy state variables are expressed in kWh, while active power variables are expressed in kW. The symbols for grid import and export are p h , t and p h , t , respectively, and the associated tariffs are λ t (buying price) and λ t (selling price). The HEMS is designed with user comfort (e.g., hot-water temperature constraints) and device operating limits in mind.

2.1.1. Objective Functions

To quantify flexibility and enable incentive-based coordination, three objective functions are computed.
(i)
Cost-minimizing schedule.
The baseline schedule minimizes the net electricity bill under time-varying import/export prices.
min Φ h ( 1 ) = t T λ t p h , t λ t p h , t Δ t .
Here, the first term represents the import cost paid to the DSO, whereas the second term represents the revenue from exporting surplus energy (e.g., PV or discharging storage) under an export tariff.
(ii)
Energy/self-consumption-driven schedule.
A second schedule is computed to construct a flexibility reference that is less price-driven and more focused on reducing grid dependency through local resources. This schedule minimizes the household net electric demand required to satisfy the same service needs:
min Φ h ( 2 ) = t T p h , t BL + p h , t EWH + p h , t EV , ch + p h , t ESS , ch p h , t PV H p h , t EV H p h , t ESS H Δ t ,
where p h , t BL and p h , t EWH denote the base load and EWH electric demand, p h , t EV , ch and p h , t ESS , ch denote EV and ESS charging power, and the terms with “ H ” denote power supplied to the house from PV/EV/ESS, respectively.

2.1.2. Grid Exchange and Non-Simultaneity

Household net import is obtained from an active power balance that aggregates all electrical consumption and on-site supplies.
p h , t = p h , t BL + p h , t EWH + p h , t EV , ch + p h , t ESS , ch p h , t PV H p h , t EV H p h , t ESS H , t T .
The export power is decomposed by the source that injects into the grid:
p h , t = p h , t PV G + p h , t EV G + p h , t ESS G , t T .
To prevent simultaneous buying and selling within the same time step, a binary variable z h , t and a sufficiently large constant M are used:
0 p h , t M z h , t , 0 p h , t M ( 1 z h , t ) , t T .

2.1.3. EWH Thermal Dynamics

The EWH temperature dynamics follow a first-order thermal model that captures ambient heat exchange, water withdrawal, and the heater on/off state [38,39]. The tank temperature at time t is denoted by ϑ h , t , the ambient temperature by ϑ h , t amb , and the binary heater status by y h , t EWH :
ϑ h , t = ϑ h , t amb + R h Q h y h , t EWH 1 m h , t M h ϑ h , t amb ϑ h , t 1 exp Δ t R h C h , t T ,
where R h and C h are the equivalent thermal resistance and capacitance of the tank, Q h is the heater power-to-heat conversion coefficient, M h is the tank volume, and m h , t is the hot-water withdrawal at time t. User comfort is ensured by bounding the water temperature:
ϑ h min ϑ h , t ϑ h max , t T .

2.1.4. PV Power Split

The available PV generation p h , t PV is allocated among exporting to the grid, charging the ESS, and serving the household load:
p h , t PV = p h , t PV G + p h , t PV ESS + p h , t PV H , t T .

2.1.5. EV Model

The EV state of energy is denoted by e h , t EV and evolves over plugged-in periods T h EV T according to charging and discharging actions. Charging efficiency and discharging efficiency are η h EV , ch and η h EV , dis , respectively:
e h , t EV = e h , t 1 EV + Δ t η h EV , ch p h , t EV , ch p h , t EV H + p h , t EV G η h EV , dis , t T h EV .
Charging and discharging are limited by rated powers p ¯ h EV , ch and p ¯ h EV , dis , and a binary variable b h , t EV prevents simultaneous charge/discharge:
0 p h , t EV , ch p ¯ h EV , ch b h , t EV , 0 p h , t EV H + p h , t EV G η h EV , dis p ¯ h EV , dis ( 1 b h , t EV ) , t T h EV .
The EV energy is bounded within e ̲ h EV and e ¯ h EV , and arrival/departure requirements are enforced at t arr and t dep :
e ̲ h EV e h , t EV e ¯ h EV , t T h EV ,
e h , t arr EV = e h EV , arr , e h , t dep EV = e h EV , dep .

2.1.6. ESS Model

The home battery state-of-energy is denoted by e h , t ESS and is updated based on charging p h , t ESS , ch and discharging actions, with efficiencies η h ESS , ch and η h ESS , dis :
e h , t ESS = e h , t 1 ESS + Δ t η h ESS , ch p h , t ESS , ch p h , t ESS H + p h , t ESS G η h ESS , dis , t T .
The ESS can be charged either from the grid or from PV:
p h , t ESS , ch = p h , t G ESS + p h , t PV ESS , t T .
Initial and terminal energy conditions are imposed to avoid end-effects and ensure inter-day consistency:
e h , 0 ESS = e init ESS , e h , T ESS = e final ESS .
Charging and discharging are bounded by rated powers p ¯ h ESS , ch and p ¯ h ESS , dis , and mutual exclusivity is enforced through a binary variable b h , t ESS :
0 p h , t ESS , ch p ¯ h ESS , ch b h , t ESS , 0 p h , t ESS H + p h , t ESS G η h ESS , dis p ¯ h ESS , dis ( 1 b h , t ESS ) , t T .
Finally, the battery energy is restricted within admissible bounds e ̲ h ESS and e ¯ h ESS :
e ̲ h ESS e h , t ESS e ¯ h ESS , t T .

2.2. HEMS Re-Optimization Under Uncertainty

To account for forecast errors and user-behavior variability, the Level-1 HEMS is re-optimized under uncertainty in (i) the uncontrollable household demand, (ii) PV generation, and (iii) EV availability and state-of-charge (SoC) requirements. We adopt a budgeted-uncertainty (“ Γ -robust”) formulation that limits the number of time periods (or homes) in which worst-case deviations may occur. The uncertainty budget parameter Γ controls the level of conservativeness in the robust optimization model. Specifically, Γ limits the number of uncertain parameters that are allowed to simultaneously deviate from their nominal forecast values within the optimization horizon. A higher value of Γ represents a more conservative scheduling decision, as the model prepares for a larger number of adverse deviations, while smaller values of Γ rely more heavily on forecasted conditions.

2.2.1. Budgeted Uncertainty for Load and PV

Let h H denote a home and t T a time step. The nominal uncontrollable load L h , t corresponds to the household base load p h , t BL defined in Section 2.1. Similarly, the nominal PV generation p h , t PV corresponds to the available household PV power introduced in the PV power split model. Load forecast error is modeled as an adverse increase, while PV uncertainty is modeled as an adverse decrease. The uncertain realizations are defined as
L ˜ h , t = L h , t 1 + ϵ L δ h , t L ,
p ˜ h , t PV = p h , t PV 1 ϵ pv δ h , t pv
where ϵ L 0 and ϵ pv 0 are maximum relative deviation levels, and δ h , t L [ 0 , 1 ] , δ h , t pv [ 0 , 1 ] represent deviation magnitudes.
To activate uncertainty only in a limited number of periods, binary variables z h , t L { 0 , 1 } and z h , t pv { 0 , 1 } are introduced with the coupling constraints
0 δ h , t L z h , t L , δ h , t L δ ̲ L z h , t L ,
0 δ h , t pv z h , t pv , δ h , t pv δ ̲ pv z h , t pv ,
where δ ̲ L and δ ̲ pv are minimum deviation magnitudes when uncertainty is activated.
The per-home budget of uncertainty is enforced as
t T z h , t L Γ L , h H ,
t T z h , t pv Γ pv , h H ,
where the maximum number of time steps in which load and PV deviations may occur is specified by Γ L and Γ pv , respectively. To prevent trivial solutions where no uncertainty is activated (i.e., z = 0 for all periods), a minimum-usage requirement can optionally be enforced:
t T z h , t L ρ L | T | , t T z h , t pv ρ pv | T | , h H ,
where ρ L , ρ pv [ 0 , 1 ] are minimum activation fractions.

2.2.2. EV Uncertainty: Timing and SoC Requirements

Uncertainty in arrival and departure times, as well as in the initial and required final SoC, can affect EV availability. Let Δ α and Δ β be the maximum deviations, and let α 0 and β 0 be the nominal arrival and departure indices. The variables α h and β h represent the uncertainty-adjusted counterparts of the nominal EV arrival and departure times used in the deterministic HEMS model. Robust arrival and departure variables α h and β h are introduced for every home:
α h [ α 0 Δ α , α 0 + Δ α ] , β h [ β 0 Δ β , β 0 + Δ β ] ,
β h α h .
Binary activators z h α , z h β { 0 , 1 } enable the deviation only when activated:
α h α 0 Δ α z h α , α h α 0 + Δ α z h α ,
β h β 0 Δ β z h β , β h β 0 + Δ β z h β .
Let C h ev be the EV energy capacity (kWh), s h 0 the nominal initial SoC fraction, and s h dep the nominal required departure SoC fraction. Worst-case SoC uncertainty is modeled via binary activators z h in , z h dep { 0 , 1 } :
E ˜ h in = C h ev s h 0 1 ϵ in z h in ,
E ˜ h dep = C h ev s h dep 1 + ϵ dep z h dep ,
where ϵ in and ϵ dep are maximum deviations in initial SoC and final SoC requirement, respectively. Hence, the robust formulation assumes less initial energy and a more stringent departure requirement in the activated worst case.
To control the total number of EV uncertainty activations, a global budget is enforced:
h H z h α + z h β + z h in + z h dep Γ ev .
In addition, a home-level indicator z h any { 0 , 1 } can be used to require that at least a fraction of homes experience EV uncertainty:
z h any z h α , z h any z h β , z h any z h in , z h any z h dep ,
z h any z h α + z h β + z h in + z h dep ,
h H z h any ρ ev | H | ,
where ρ ev [ 0 , 1 ] is the minimum fraction of homes with at least one EV uncertainty component activated.
The re-optimization (HEMS) problem is then solved using the uncertain quantities L ˜ h , t , p ˜ h , t PV , E ˜ h in , E ˜ h dep , and the robust timing variables ( α h , β h ) within the household power balance and device constraints.

2.3. Level 2: Aggregator Model

Distribution feeders supplying residential customers are typically operated in a radial configuration. In the proposed architecture, the aggregator acts as the interface between prosumers and the DSO by collecting privacy-preserving household trajectories, quantifying flexibility availability, and translating the DSO flexibility request into household-level operating limits. Specifically, individual appliance-level schedules remain local to each HEMS; only net import and export profiles are communicated to the aggregator to avoid disclosure of device-specific behavior.

2.3.1. Bus-Level Aggregation of Household Exchange

Let H n H denote the set of households electrically connected to bus n N . The aggregator forms bus-level import and export trajectories by summing the household net exchanges:
P n , t = h H n p h , t , n N , t T ,
P n , t = h H n p h , t , n N , t T .
Here, P n , t represents the aggregated real-power demand seen by the DSO at bus n, while P n , t represents the aggregated export resulting from local DER surplus (e.g., PV injection and storage discharge). These aggregate trajectories define the effective net load and injection time series used for network-level assessment in Level 3.

2.3.2. Flexibility Accounting and Participation Factors

To quantify flexibility provision in a contract-compliant manner, the aggregator compares two household schedules computed at Level 1: the cost-driven schedule and the energy-oriented reference schedule. The household flexibility deviation is defined as the difference between the corresponding net import trajectories:
δ h , t p h , t Φ h ( 1 ) p h , t Φ h ( 2 ) , h H , t T .
A positive δ h , t indicates that the household can reduce import relative to the reference (upward flexibility from the DSO perspective, i.e., demand reduction), whereas a negative value indicates the ability to increase import (downward flexibility). For compact notation and to avoid case-by-case definitions, the upward and downward components are expressed via positive/negative parts:
δ h , t + max ( δ h , t , 0 ) , δ h , t min ( δ h , t , 0 ) , h , t .
The resulting bus-level flexibility envelopes are obtained by aggregating household contributions:
Δ n , t + = h H n δ h , t + , Δ n , t = h H n δ h , t , n N , t T .
To distribute DSO requests proportionally while accounting for heterogeneity across households, a flexibility participation factor is defined as:
ρ h , t = δ h , t + + δ h , t Δ n , t + + Δ n , t , h H n , n N , t T .
In the above formulation, δ h , t denotes the flexibility offered by household h at time interval t, defined as the deviation between the cost-driven schedule and the reference energy-oriented schedule. The variables δ h , t + and δ h , t represent the positive and negative components of the flexibility deviation, corresponding to upward (demand reduction) and downward (demand increase) flexibility, respectively. The sets H and T denote the set of households and the scheduling time intervals, while N represents the set of distribution network buses. The subset H n identifies the households connected to bus n. The aggregated quantities Δ n , t + and Δ n , t represent the total upward and downward flexibility available at bus n and time t. Finally, the participation factor ρ h , t indicates the proportional contribution of each household to the aggregated flexibility at the corresponding bus and is used by the aggregator to allocate the flexibility request received from the DSO among participating prosumers.

2.3.3. Translation of DSO Requests into Household Import Caps

Let u n , t denote the DSO-requested flexibility at bus n (computed in Level 3). The aggregator converts this nodal request into a household-level import cap by combining the energy-oriented reference trajectory with the proportional allocation rule:
p ¯ h , t = p h , t Φ h ( 2 ) ρ h , t u n , t , h H n , n N , t T .
The resulting incentive–penalty signal sent to household h at time t is denoted by κ h , t , which is then used in the incentive-aware HEMS objective in Equation (42).
The cap p ¯ h , t is subsequently enforced in the activated HEMS re-optimization at Level 1, ensuring that household schedules remain consistent with network-driven flexibility requirements. In the proposed workflow, deviations from these allocated caps—particularly under load and PV uncertainty—are later reflected through incentive/penalty signals in the re-optimization stage.

2.3.4. Incentive–Penalty Signal and Household Re-Optimization

When the flexibility service is activated, the HEMS incorporates an incentive/penalty signal computed by the aggregator. This is modeled by adding an incentive-adjusted term proportional to grid import:
min Φ h ( 3 ) = t T λ t p h , t λ t p h , t κ h , t p h , t Δ t ,
where κ h , t is the incentive/penalty rate varying in time sent by the aggregator. With this sign convention, κ h , t > 0 represents an incentive, while κ h , t < 0 represents a penalty.
The incentive–penalty mechanism is based on the flexibility delivered by each household relative to a reference baseline consumption. Let P h , t base denote the baseline grid import obtained from the reference scheduling stage, and P h , t denote the realized grid import after flexibility activation. The flexibility delivered by household h at time t is therefore defined as
F h , t = P h , t base P h , t .
A positive value of F h , t represents a reduction in grid import relative to the baseline (upward flexibility), while a negative value represents an increase in grid import. The aggregator evaluates the delivered flexibility against the requested flexibility allocation and adjusts the signal κ h , t accordingly to reward verified flexibility contributions or penalize deviations from the allocated flexibility limits.
Accordingly, the incentive–penalty settlement associated with flexibility provision can be represented as
C flex = h , t ρ inc F h , t ver + ρ pen F h , t short ,
where F h , t ver denotes the verified flexibility contribution and F h , t short represents any shortfall relative to the requested flexibility level. The coefficients ρ inc and ρ pen correspond to the incentive and penalty rates, respectively.
From an economic perspective, the proposed incentive–penalty mechanism acts as a local flexibility remuneration scheme implemented by the aggregator. Households that deliver verified flexibility are rewarded through positive incentive signals, while deviations from allocated flexibility limits trigger penalties. This structure encourages reliable delivery and discourages overcommitment. The proposed mechanism represents a local coordination scheme for residential flexibility management rather than a direct representation of a specific wholesale electricity market product.

2.4. Level 3: DSO Network-Constrained Optimal Power Flow

At the network layer, the distribution system operator (DSO) determines time-varying flexibility requests that satisfy distribution-network operating constraints. The DSO receives from the aggregator the aggregated nodal net import and export trajectories, denoted by { P n , t , P n , t } , together with the corresponding upward and downward flexibility envelopes { Δ n , t + , Δ n , t } for each bus n N and time interval t T .
Flexibility is modeled as a controllable real-power adjustment variable u n , t at each bus. Under the adopted sign convention, u n , t > 0 represents a demand-reduction request (net import decrease), whereas u n , t < 0 represents a demand-increase request. The resulting nodal flexibility signal is transmitted to the aggregator, which redistributes it proportionally among households and enforces it through HEMS re-optimization.

2.4.1. Objective Function

The DSO optimization seeks to minimize total active power losses and calculate optimal flexibility requests. The objective function is formulated as
min J DSO = t T ( n , m ) E g n m v n , t 2 + v m , t 2 2 v n , t v m , t cos ( θ n , t θ m , t ) + ω n N | u n , t | ,
where E denotes the set of distribution lines, g n m is the conductance of line ( n , m ) , v n , t and θ n , t are the voltage magnitude and phase angle at bus n, and ω 0 is a weighting coefficient regulating the trade-off between loss minimization and flexibility usage. The first term corresponds to network real-power losses expressed in admittance form, while the second term regularizes flexibility activation to avoid unnecessary control effort.

2.4.2. AC Power Flow Constraints

The network is modeled using a full AC formulation in polar coordinates. Let y n k and φ n k denote the magnitude and angle of the ( n , k ) element of the bus-admittance matrix. The active and reactive power balance equations at each bus are given by
p n , t g + P n , t + u n , t P n , t = k N v n , t v k , t y n k cos φ n k + θ k , t θ n , t , n , t ,
q n , t g + q n , t u q n , t d = k N v n , t v k , t y n k sin φ n k + θ k , t θ n , t , n , t .
Here, p n , t g and q n , t g denote active and reactive injections from the upstream grid (nonzero only at the substation bus), q n , t d represents aggregated reactive demand, and q n , t u is the reactive component associated with flexibility activation.
Aggregated reactive demand and reactive flexibility are approximated using a constant power factor PF :
q n , t d = tan arccos ( PF ) P n , t , q n , t u = tan arccos ( PF ) u n , t , n , t .

2.4.3. Operational Constraints

Voltage magnitudes are constrained within admissible limits:
v n min v n , t v n max , n N , t T .
Substation active and reactive injections are bounded as
p ̲ g p s , t g p ¯ g , q ̲ g q s , t g q ¯ g , t .

2.4.4. Network-Level Flexibility Feasibility

To ensure that the implementation is feasible, the DSO’s flexibility request must remain within the flexibility limits set by the aggregator. Thus, the nodal flexibility variable is constrained as follows:
Δ n , t u n , t Δ n , t + , n , t .
These bounds guarantee that the OPF solution does not rely on unavailable household flexibility, thereby preserving consistency between network-level optimization and prosumer-level capabilities.

2.5. Coordination Framework

The proposed hierarchical flexibility coordination framework operates through a sequential interaction among three layers: the household-level HEMS, the aggregator, and the DSO. The main coordination steps are summarized as follows:
  • Each household solves a local HEMS optimization problem to schedule controllable devices (EWH, EV, ESS) while minimizing electricity cost based on the demand response signals and user preferences. The resulting optimal power exchange with the grid represents the baseline household demand.
  • The aggregator collects the baseline power schedules from individual households and evaluates the available upward and downward flexibility of each prosumer. The aggregator then aggregates these flexibility quantities at the feeder level.
  • The aggregated flexibility information is transmitted to the DSO. The DSO performs a distribution-level AC OPF analysis to determine the network-feasible flexibility requirements while satisfying voltage and network constraints.
  • Based on the flexibility request from the DSO, the aggregator allocates flexibility limits to individual households and determines the corresponding incentive–penalty signals according to the flexibility contribution of each prosumer.
  • Households then perform a re-optimization of the HEMS problem considering the flexibility limits and incentive signals provided by the aggregator.
This sequential coordination process enables the integration of residential flexibility into distribution system operation while preserving household privacy and maintaining network operational constraints.
It should be noted that the interaction between the HEMS and DSO layers follows a sequential coordination structure rather than a fully iterative co-optimization process. In the proposed framework, the flexibility limits communicated to households are derived from previously identified flexibility envelopes, which constrain the re-optimized household schedules within feasible operating ranges.

3. Results and Discussions

3.1. Case Study

The Python Optimization Modeling Objects (Pyomo, version 6.6.1) package [40] is used to implement the proposed three-level hierarchical energy management framework in Python (version 3.11.9). All simulations are performed on a MacBook Pro running macOS on an Apple M1 processor with 8 GB of RAM.
The CPLEX solver is used to solve the mixed-integer linear programming (MILP) models for the first-stage HEMS and second-stage aggregator coordination problems. The IPOPT solver is used to solve the third-stage DSO problem, which is formulated as a nonlinear AC-OPF model. This hybrid solution approach ensures complete AC network feasibility validation at the distribution level while facilitating effective handling of discrete scheduling decisions at the household level.
The IEEE 33-bus radial distribution system, which supplies 437 residential prosumers spread across several buses, is the subject of the case study, as shown in Figure 1.
From a computational perspective, the proposed framework remains tractable due to its hierarchical decomposition. Instead of solving a single centralized optimization problem for all prosumers and network variables, the framework separates the coordination process into three sequential layers: household-level HEMS scheduling, aggregator-level flexibility coordination, and DSO-level AC optimal power flow validation. At the HEMS level, each household solves a local scheduling problem whose size scales approximately linearly with the number of prosumers and time intervals. At the aggregator level, flexibility is computed using aggregated household exchange trajectories rather than detailed device-level variables. Finally, the DSO solves a network-level AC OPF whose size depends primarily on the distribution feeder model rather than the number of individual households. This decomposition significantly reduces the dimensionality of each optimization stage and improves scalability as the number of participating prosumers increases. In the present study, the proposed framework was successfully implemented for an IEEE 33-bus distribution system with 437 residential prosumers and a 24-h scheduling horizon, demonstrating the practical tractability of the hierarchical coordination architecture for large-scale residential flexibility management.
The IEEE 33-bus radial distribution system is selected as the test network because it is widely used as a benchmark feeder for evaluating distribution-level optimization, flexibility coordination, and distributed energy resource integration strategies. The use of this standard test system enables consistent comparison with existing studies in the literature and allows the proposed coordination framework to be evaluated under well-established network conditions. Every home has an EV, an ESS, an EWH, and a 5 kW rooftop PV system. A homogeneous DER configuration is assumed across households in order to isolate the impact of the proposed coordination framework within a controlled benchmark scenario. In practical distribution feeders, prosumers typically exhibit heterogeneous DER portfolios; incorporating such heterogeneity represents an important direction for future research. Table 1 summarizes the modeling parameters of the EV, ESS, and EWH systems. These parameters were taken from [38,41]. The selected parameters represent typical residential DER characteristics reported in the literature and are commonly used in household energy management studies. The values for ESS capacity, charging/discharging limits, and efficiencies are based on representative EV and ESS specifications, while the EWH parameters reflect typical residential water heater thermal properties. These parameter values were adopted to ensure realistic device behavior while maintaining consistency with prior studies.

3.2. HEMS Level

Figure 2 presents the optimal daily scheduling of the HEMS under the two objective formulations. When the cost-minimization objective Φ h ( 1 ) is applied, flexible devices respond strongly to the time-varying tariff. EV and ESS charging are concentrated during low-price intervals, while grid import is reduced during high-tariff periods (as shown by the black dotted line). This results in pronounced charging peaks and a highly price-sensitive net load profile. The EWH operation is similarly adjusted within thermal comfort limits to avoid high-cost intervals. Overall, the cost-driven schedule minimizes electricity expenditure but introduces significant temporal variability in household demand.
In contrast, under the energy-oriented objective Φ h ( 2 ) , device scheduling becomes less dependent on tariff fluctuations and more aligned with local PV generation and intrinsic consumption needs. Charging of the EV and ESS is distributed more evenly over time, reducing peak concentration and increasing PV self-consumption. The resulting grid import trajectory is smoother compared to the cost-minimizing case. The deviation between the two schedules defines the household’s upward and downward flexibility margins, which serve as inputs to the aggregator-level coordination mechanism.

3.3. Aggregator-Level Flexibility Results

Figure 3 illustrates the temporal evolution of aggregated upward and downward flexibility at the feeder level. The solid black curve represents the total upward flexibility ( Δ + ), while the dashed black curve denotes the aggregated downward flexibility ( Δ ). The stacked colored bars correspond to the individual household contributions, demonstrating how system-level flexibility emerges from distributed prosumer participation.
A clear time-dependent structure is observed in the flexibility envelope. During late morning and afternoon hours (approximately 10:00–16:00), the available upward flexibility increases substantially, reaching peak values close to 800 kW. This reflects coordinated postponement of flexible loads, primarily EV charging and controllable ESS operation, which enables a significant reduction in feeder net demand when requested by the DSO. The broad and sustained plateau during this interval indicates that flexibility is not limited to short spikes but can be maintained over extended periods.
In contrast, pronounced downward flexibility appears during evening hours (approximately 18:00–22:00), with aggregated values approaching 600 kW at maximum activation. This downward capability represents the feeder’s potential to increase consumption or reduce export through controlled charging or load restoration. The symmetry between the positive and negative envelopes demonstrates that the proposed coordination framework supports bidirectional flexibility services.
Importantly, the stacked representation confirms that flexibility provision is widely distributed among households rather than concentrated in a small subset of participants. The layered contributions across the feeder validate the effectiveness of the proportional allocation mechanism implemented at the aggregator layer and highlight the scalability of the proposed multi-level coordination framework.
From a distribution system operator’s perspective, this aggregated flexibility provides a valuable operational resource that can be activated to mitigate peak demand and relieve local network constraints. By coordinating distributed household flexibility through the aggregator layer, the proposed framework enables the DSO to access a controllable flexibility envelope without directly managing individual prosumers. This coordinated response can support peak shaving, improve feeder loading conditions, and provide additional operational headroom for integrating higher levels of distributed energy resources.

3.4. HEMS Re-Optimization Under DSO Flexibility Request

After receiving the optimal flexibility request from the DSO through the aggregator layer, the HEMS optimization is executed again under two operating conditions: (i) a deterministic coordinated case without uncertainty and (ii) a robust coordinated case incorporating load and PV uncertainty. The impact of this re-optimization on a representative household is illustrated in Figure 4a.
As illustrated in Figure 4a, the deterministic re-optimization closely follows the flexibility-adjusted import trajectory defined during the coordination stage. In contrast, the uncertainty-aware case shows visible deviations caused by stochastic variations in household demand and PV generation. These deviations remain relatively small but occasionally exceed the allocated flexibility limits, which subsequently activates the penalty mechanism defined in the aggregator coordination model.
An important observation is that once a household agrees to provide a flexibility profile during the coordination phase, the realized power trajectory under uncertainty may deviate from the initially promised flexibility commitment. Such deviations are inherent to realistic operating conditions, where stochastic fluctuations in load and PV output prevent perfect tracking of the contracted flexibility envelope. As shown in Figure 4b, these deviations activate the penalty component of the incentive mechanism during the re-optimization stage. Specifically, when the realized import exceeds the flexibility-adjusted cap allocated by the aggregator, a penalty is applied proportionally to the deviation. Conversely, households that over-deliver flexibility receive additional incentive compensation. The uncertainty-aware case, therefore, exhibits both moderated incentive magnitudes and more frequent small penalty activations, reflecting realistic contractual enforcement under variability.
From a quantitative perspective, the incentive signals are primarily concentrated during the time intervals where the DSO requests flexibility activation, while penalty signals occur when uncertainty-induced deviations exceed the allocated flexibility margins. Compared with the deterministic case, the uncertainty-aware scenario results in a larger number of smaller penalty events rather than a few large violations, indicating that the robust scheduling strategy distributes operational risk more evenly across the scheduling horizon.
The system-level financial implications are further illustrated in Figure 5, where stacked incentive and penalty payments for all households are presented for both operating conditions. The temporal clustering of payments aligns with periods of DSO flexibility activation, confirming effective coupling between network-level requirements and residential response. In the deterministic case, higher peak incentives are observed due to more aggressive flexibility provision. However, under uncertainty, payment distributions become smoother and more evenly spread across time, as households adopt risk-aware schedules as shown in Figure 5b. Importantly, the presence of penalties in the uncertainty-aware case reflects deviation from initially declared flexibility commitments, demonstrating that the proposed mechanism enforces accountability and prevents overly optimistic flexibility declarations.
Quantitatively, the deterministic coordination case tends to produce higher aggregated incentive payments because households are able to track the requested flexibility profiles more accurately. In contrast, the uncertainty-aware case exhibits slightly reduced total incentive payments but a larger number of smaller penalty activations. This reflects the conservative scheduling behavior adopted by households when accounting for uncertainty in load demand and PV generation.
Finally, the comparative net daily cost results shown in Figure 6 highlight the economic impact of the proposed coordination mechanism. The re-optimization without uncertainty significantly reduces the household electricity cost compared to the baseline case. However, the net electricity cost under uncertainty is higher because the prosumer is penalized for deviations from the promised flexibility and scheduled power demand.
As illustrated in Figure 6, the deterministic coordinated case achieves the lowest daily electricity cost because device scheduling can be closely aligned with both flexibility incentives and tariff signals. In contrast, the uncertainty-aware case results in a moderate increase in daily net cost due to the combined effect of deviation penalties and the conservative operational margins adopted by households to hedge against uncertainty in demand and PV generation.
This additional cost corresponds to maintaining feasibility margins and absorbing deviation risk under uncertainty. Overall, the results demonstrate that incorporating uncertainty slightly reduces economic optimality but substantially enhances operational reliability, contractual integrity, and realistic enforcement of flexibility agreements within the hierarchical EMS framework.
To further position the proposed framework relative to existing flexibility coordination approaches reported in the literature, the following benchmarking discussion is provided. Deterministic coordination models typically rely on forecasted load and generation profiles and therefore do not explicitly account for uncertainty in distributed energy resources. Stochastic or multi-stage scheduling approaches incorporate uncertainty through scenario-based optimization but often require the generation of a large number of scenarios, which increases computational complexity in large-scale residential systems. Data-driven demand response coordination methods use machine learning techniques for customer segmentation and flexibility estimation but primarily focus on identifying flexible consumers rather than performing optimization-based scheduling with network-level validation. In contrast, the proposed framework integrates uncertainty-aware HEMS scheduling, aggregator-level flexibility allocation, and DSO-level AC optimal power flow validation within a unified architecture using a Γ -budget-robust optimization formulation. This enables explicit modeling of uncertainty in distributed energy resources while maintaining computational tractability for large-scale residential systems.

3.5. DSO-Level Optimal Power Flow Results

To evaluate the network-level impact of the proposed hierarchical coordination framework, the OPF is executed after the HEMS re-optimization under both deterministic and uncertainty-aware conditions. Figure 7 illustrates the voltage magnitude profile across all buses of the 33-bus distribution system at time step t = 59 , which corresponds to a high loading interval.
The base power flow case without coordination exhibits significant voltage drops along downstream buses, with several nodes approaching the lower admissible limit. The OPF-only case (opt) improves the voltage profile by optimally dispatching network resources; however, noticeable voltage deviations remain in heavily loaded segments. In contrast, the coordinated cases (re-opt) that integrate flexibility requests from the DSO and re-optimized HEMS schedules demonstrate substantial voltage profile enhancement. Both deterministic and uncertainty-aware coordination maintain bus voltages close to the nominal value (1.0 p.u.) and well within the statutory limits.
Although the uncertainty-aware case shows slightly more conservative voltage support compared to the deterministic case, the overall voltage regulation performance remains significantly improved relative to the base and OPF-only scenarios. This confirms that the proposed flexibility-based coordination not only reduces household electricity costs but also enhances network operational security. Importantly, incorporating uncertainty does not compromise voltage feasibility; rather, it ensures robustness against potential load and generation deviations while preserving system stability.
From an operational perspective, this result indicates that uncertainty-aware flexibility coordination can assist DSOs in maintaining secure voltage profiles while accommodating variability in distributed generation and demand. Such coordinated flexibility can therefore serve as an operational support tool for managing increasing DER penetration in distribution networks.

4. Conclusions

This paper proposed a hierarchical flexibility coordination framework integrating HEMSs, an aggregator-level incentive mechanism, and a DSO OPF model under uncertainty. A Γ -budget-robust optimization approach was adopted to capture load and photovoltaic variability and to evaluate its influence on flexibility allocation and system performance. Simulation results on the IEEE 33-bus distribution system demonstrate that the proposed mechanism effectively redistributes flexibility according to household contribution while preserving economic fairness through a bounded incentive–penalty structure. Under uncertainty, deviations from initially promised flexibility commitments arise due to stochastic variations in demand and PV generation. The proposed deviation-based penalty mechanism enforces contractual compliance during re-optimization, preventing overly optimistic flexibility declarations and ensuring realistic coordination between prosumers and the aggregator. Although the robust formulation introduces a moderate increase in household net electricity cost—representing the cost of robustness—it significantly improves voltage regulation and network feasibility. Overall, the results confirm that incentive design, uncertainty modeling, and contractual enforcement are tightly coupled in multi-level flexibility coordination and that explicitly accounting for variability leads to technically consistent and practically implementable flexibility provisioning.
Future work will investigate adaptive uncertainty budgeting strategies, endogenous optimization of incentive parameters, and the extension of the framework to large-scale distribution feeders with real-time implementation and market integration considerations, as well as the incorporation of longer-term structural uncertainties such as PV degradation, equipment aging, and climate-driven variability in renewable generation.

Author Contributions

Conceptualization, O.A. and A.A.; methodology, O.A.; software, O.A.; validation, O.A. and A.A.; formal analysis, A.A.; investigation, O.A.; resources, A.A.; data curation, A.A.; writing—original draft preparation, O.A.; writing—review and editing, A.A.; visualization, O.A.; supervision, A.A.; project administration, O.A.; funding acquisition, O.A. All authors have read and agreed to the published version of the manuscript.

Funding

The researchers would like to thank the Deanship of Graduate Studies and Scientific Research at Qassim University for financial support (QU-APC-2026). The authors extend thei appreciation to the Deanship of Postgraduate Studies and Scientific Research at Majmaah University for funding this research work through project number (R-2026-134).

Data Availability Statement

The data supporting the findings of this study are available from the corresponding author upon reasonable request. The datasets are generated based on simulated residential load, photovoltaic generation, and electric vehicle profiles used for the evaluation of the proposed energy management framework.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. McKenna, K.; Keane, A. Residential Load Modeling of Price-Based Demand Response for Network Impact Studies. IEEE Trans. Smart Grid 2016, 7, 2285–2294. [Google Scholar] [CrossRef]
  2. Olsen, D.J.; Sarker, M.R.; Ortega-Vazquez, M.A. Optimal penetration of home energy management systems in distribution networks considering transformer aging. IEEE Trans. Smart Grid 2016, 9, 3330–3340. [Google Scholar] [CrossRef]
  3. Hussain, S.; El-Bayeh, C.Z.; Lai, C.; Eicker, U. Multi-Level Energy Management Systems Toward a Smarter Grid: A Review. IEEE Access 2021, 9, 71994–72016. [Google Scholar] [CrossRef]
  4. Sun, K.; Sarker, M.R.; Ortega-Vazquez, M.A. Statistical characterization of electric vehicle charging in different locations of the grid. In Proceedings of the IEEE Power and Energy Society General Meeting, Denver, CO, USA, 26–30 July 2015. [Google Scholar] [CrossRef]
  5. Liu, Z.; Wu, Q.; Ma, K.; Shahidehpour, M.; Xue, Y.; Huang, S. Two-stage optimal scheduling of electric vehicle charging based on transactive control. IEEE Trans. Smart Grid 2018, 10, 2948–2958. [Google Scholar] [CrossRef]
  6. Liu, Z.; Wu, Q.; Shahidehpour, M.; Li, C.; Huang, S.; Wei, W. Transactive real-time electric vehicle charging management for commercial buildings with PV on-site generation. IEEE Trans. Smart Grid 2018, 10, 4939–4950. [Google Scholar] [CrossRef]
  7. Logenthiran, T.; Srinivasan, D.; Shun, T.Z. Demand side management in smart grid using heuristic optimization. IEEE Trans. Smart Grid 2012, 3, 1244–1252. [Google Scholar] [CrossRef]
  8. Guo, Y.; Pan, M.; Fang, Y.; Khargonekar, P.P. Decentralized coordination of energy utilization for residential households in the smart grid. IEEE Trans. Smart Grid 2013, 4, 1341–1350. [Google Scholar] [CrossRef]
  9. Parsibenehkohal, R.; Jamil, M.; Khan, A.A. A multi-stage framework for coordinated scheduling of networked microgrids in active distribution systems with hydrogen refueling and charging stations. Int. J. Hydrogen Energy 2024, 71, 1442–1455. [Google Scholar] [CrossRef]
  10. Hussain, S.; Menon, R.P.; Amara, F.; Lai, C.; Eicker, U. Optimization of Energy Systems using MILP and RC Modeling: A Real Case Study in Canada. In Proceedings of the 2024 IEEE International Systems Conference (SysCon), Montreal, QC, Canada, 15–18 April 2024; pp. 1–7. [Google Scholar]
  11. Yu, M.G.; Pavlak, G.S. Assessing the performance of uncertainty-aware transactive controls for building thermal energy storage systems. Appl. Energy 2021, 282, 116103. [Google Scholar] [CrossRef]
  12. Yoon, A.Y.; Kim, Y.J.; Moon, S.I. Optimal retail pricing for demand response of HVAC systems in commercial buildings considering distribution network voltages. IEEE Trans. Smart Grid 2018, 10, 5492–5505. [Google Scholar] [CrossRef]
  13. Ma, Y.; Wang, S.; Yang, H.; Zhang, D.; Shen, Y. Two-stage optimization model for day-ahead scheduling of electricity-heat microgrids with solid electric thermal storage considering heat flexibility. J. Energy Storage 2024, 95, 112329. [Google Scholar] [CrossRef]
  14. Lezama, F.; Soares, J.; Canizes, B.; Vale, Z. Flexibility management model of home appliances to support DSO requests in smart grids. Sustain. Cities Soc. 2020, 55, 102048. [Google Scholar] [CrossRef]
  15. Oikonomou, K.; Parvania, M. Optimal coordination of water distribution energy flexibility with power systems operation. IEEE Trans. Smart Grid 2018, 10, 1101–1110. [Google Scholar] [CrossRef]
  16. Hao, H.; Wu, D.; Lian, J.; Yang, T. Optimal coordination of building loads and energy storage for power grid and end user services. IEEE Trans. Smart Grid 2017, 9, 4335–4345. [Google Scholar] [CrossRef]
  17. Yao, E.; Samadi, P.; Wong, V.W.; Schober, R. Residential demand side management under high penetration of rooftop photovoltaic units. IEEE Trans. Smart Grid 2015, 7, 1597–1608. [Google Scholar] [CrossRef]
  18. Huang, S.; Wu, Q. Real-time congestion management in distribution networks by flexible demand swap. IEEE Trans. Smart Grid 2017, 9, 4346–4355. [Google Scholar] [CrossRef]
  19. Gottwalt, S.; Gärttner, J.; Schmeck, H.; Weinhardt, C. Modeling and valuation of residential demand flexibility for renewable energy integration. IEEE Trans. Smart Grid 2016, 8, 2565–2574. [Google Scholar] [CrossRef]
  20. Rastegar, M.; Fotuhi-Firuzabad, M.; Moeini-Aghtai, M. Developing a two-level framework for residential energy management. IEEE Trans. Smart Grid 2018, 9, 1707–1717. [Google Scholar] [CrossRef]
  21. Alrumayh, O.; Bhattacharya, K. Flexibility of Residential Loads for Demand Response Provisions in Smart Grid. IEEE Trans. Smart Grid 2019, 10, 6284–6297. [Google Scholar] [CrossRef]
  22. Sarker, M.R.; Ortega-Vazquez, M.A.; Kirschen, D.S. Optimal coordination and scheduling of demand response via monetary incentives. IEEE Trans. Smart Grid 2014, 6, 1341–1352. [Google Scholar] [CrossRef]
  23. Hussain, S.; Alrumayh, O.; Menon, R.P.; Lai, C.; Eicker, U. Novel incentive-based multi-level framework for flexibility provision in smart grids. IEEE Trans. Smart Grid 2023, 15, 1594–1607. [Google Scholar] [CrossRef]
  24. Mohsenian-Rad, A.H.; Wong, V.W.; Jatskevich, J.; Schober, R.; Leon-Garcia, A. Autonomous demand-side management based on game-theoretic energy consumption scheduling for the future smart grid. IEEE Trans. Smart Grid 2010, 1, 320–331. [Google Scholar] [CrossRef]
  25. Alharbi, W.; Bhattacharya, K. Incentive design for flexibility provisions from residential energy hubs in smart grid. IEEE Trans. Smart Grid 2021, 12, 2113–2124. [Google Scholar] [CrossRef]
  26. Hu, Q.; Li, F.; Fang, X.; Bai, L. A framework of residential demand aggregation with financial incentives. IEEE Trans. Smart Grid 2016, 9, 497–505. [Google Scholar] [CrossRef]
  27. Ben Messaoud, A.; Papaioannou, A.; Dimara, A.; Bezas, N.; Moschos, I.; Anagnostopoulos, C.-N.; Krinidis, S.; Ioannidis, D.; Tzovaras, D. MAS-DR: An ML-Based Aggregation and Segmentation Framework for Residential Consumption Users to Assist Demand Response Programs. Energy Build. 2022, 17, 1551. [Google Scholar]
  28. Michalakopoulos, V.; Sarmas, E.; Papias, I.; Skaloumpakas, P.; Marinakis, V.; Doukas, H. A machine learning-based framework for clustering residential electricity load profiles to enhance demand response programs. Appl. Energy 2024, 361, 122943. [Google Scholar] [CrossRef]
  29. Aussel, D.; Brotcorne, L.; Lepaul, S.; von Niederhäusern, L. A trilevel model for best response in energy demand-side management. Eur. J. Oper. Res. 2020, 281, 299–315. [Google Scholar] [CrossRef]
  30. Li, L. Coordination between smart distribution networks and multi-microgrids considering demand side management: A trilevel framework. Omega 2021, 102, 102326. [Google Scholar] [CrossRef]
  31. Wang, H.; Zhang, C.; Li, K.; Liu, S.; Li, S.; Wang, Y. Distributed coordinative transaction of a community integrated energy system based on a tri-level game model. Appl. Energy 2021, 295, 116972. [Google Scholar] [CrossRef]
  32. Hussain, S.; Azim, M.I.; Lai, C.; Eicker, U. Multi-stage optimization for energy management and trading for smart homes considering operational constraints of a distribution network. Energy Build. 2023, 301, 113722. [Google Scholar] [CrossRef]
  33. Hussain, S.; Azim, M.I.; Lai, C.; Eicker, U. New coordination framework for smart home peer-to-peer trading to reduce impact on distribution transformer. Energy 2023, 284, 129297. [Google Scholar] [CrossRef]
  34. Mak, D.; Choi, D.H. Optimization framework for coordinated operation of home energy management system and Volt-VAR optimization in unbalanced active distribution networks considering uncertainties. Appl. Energy 2020, 276, 115495. [Google Scholar] [CrossRef]
  35. Hussain, S.; Alrumayh, O.; Lai, C. Integrating Device-Level Flexibility in Home Energy Management Systems for Prosumers. IEEE Access 2025, 13, 157126–157136. [Google Scholar] [CrossRef]
  36. Baran, M.E.; Wu, F.F. Network reconfiguration in distribution systems for loss reduction and load balancing. IEEE Trans. Power Deliv. 1989, 4, 1401–1407. [Google Scholar] [CrossRef]
  37. Gazafroudi, A.S.; Khorasany, M.; Razzaghi, R.; Laaksonen, H.; Shafie-khah, M. Hierarchical approach for coordinating energy and flexibility trading in local energy markets. Appl. Energy 2021, 302, 117575. [Google Scholar] [CrossRef]
  38. Fotouhi Ghazvini, M.A.; Soares, J.; Abrishambaf, O.; Castro, R.; Vale, Z. Demand response implementation in smart households. Energy Build. 2017, 143, 129–148. [Google Scholar] [CrossRef]
  39. Paterakis, N.G.; Erdinc, O.; Bakirtzis, A.G.; Catalao, J.P. Optimal household appliances scheduling under day-ahead pricing and load-shaping demand response strategies. IEEE Trans. Ind. Inform. 2015, 11, 1509–1519. [Google Scholar] [CrossRef]
  40. Hart, W.E.; Watson, J.P.; Woodruff, D.L. Pyomo: Modeling and solving mathematical programs in Python. Math. Program. Comput. 2011, 3, 219–260. [Google Scholar] [CrossRef]
  41. Wu, X.; Hu, X.; Moura, S.; Yin, X.; Pickert, V. Stochastic control of smart home energy management with plug-in electric vehicle battery energy storage and photovoltaic array. J. Power Sources 2016, 333, 203–212. [Google Scholar] [CrossRef]
Figure 1. Proposed architecture of the three-level energy management system (EMS).
Figure 1. Proposed architecture of the three-level energy management system (EMS).
Electronics 15 01503 g001
Figure 2. Power demand profile of a representative prosumer under two HEMS optimization objectives: (a) cost-minimization schedule and (b) energy-minimization schedule.
Figure 2. Power demand profile of a representative prosumer under two HEMS optimization objectives: (a) cost-minimization schedule and (b) energy-minimization schedule.
Electronics 15 01503 g002
Figure 3. Temporal evolution of aggregated upward ( Δ + ) and downward ( Δ ) flexibility at the feeder level, illustrating individual household contributions and the resulting system-wide flexibility envelope.
Figure 3. Temporal evolution of aggregated upward ( Δ + ) and downward ( Δ ) flexibility at the feeder level, illustrating individual household contributions and the resulting system-wide flexibility envelope.
Electronics 15 01503 g003
Figure 4. HEMS re-optimization results under aggregator-imposed flexibility limits: (a) comparison of grid import power with and without uncertainty; (b) associated incentive and penalty payments over the scheduling horizon.
Figure 4. HEMS re-optimization results under aggregator-imposed flexibility limits: (a) comparison of grid import power with and without uncertainty; (b) associated incentive and penalty payments over the scheduling horizon.
Electronics 15 01503 g004
Figure 5. Comparison of total stacked incentive and penalty allocations across all households: (a) deterministic coordination case (without uncertainty); (b) uncertainty-aware coordination case.
Figure 5. Comparison of total stacked incentive and penalty allocations across all households: (a) deterministic coordination case (without uncertainty); (b) uncertainty-aware coordination case.
Electronics 15 01503 g005
Figure 6. Comparison of daily net electricity cost for the baseline model (opt), deterministic coordinated model (re-opt without uncertainty), and robust coordinated model (re-opt with uncertainty).
Figure 6. Comparison of daily net electricity cost for the baseline model (opt), deterministic coordinated model (re-opt without uncertainty), and robust coordinated model (re-opt with uncertainty).
Electronics 15 01503 g006
Figure 7. Voltage magnitude profile across the 33-bus distribution system at t = 59 for base power flow, OPF-only, and coordinated flexibility cases with and without uncertainty.
Figure 7. Voltage magnitude profile across the 33-bus distribution system at t = 59 for base power flow, OPF-only, and coordinated flexibility cases with and without uncertainty.
Electronics 15 01503 g007
Table 1. Technical modeling parameters of EWH, EVs, and ESS [38,41].
Table 1. Technical modeling parameters of EWH, EVs, and ESS [38,41].
ParameterEWHEV 1EV 2EV 3ESS
Capacity (kWh)19238546
Charging Rate (kW)3.36.6104.5
Discharging Rate (kW)2.804.81103.8
Charging Efficiency0.890.940.910.86
Discharging Efficiency0.910.920.950.85
Power (kW)4.5
Tank Capacity (L)400
Thermal Resistance (°C/kW)1.52
Thermal Capacitance (kWh/°C)863.4
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.

Share and Cite

MDPI and ACS Style

Alrumayh, O.; Almutairi, A. Uncertainty-Aware Incentive-Based Three-Level Flexibility Coordination for Distribution Networks. Electronics 2026, 15, 1503. https://doi.org/10.3390/electronics15071503

AMA Style

Alrumayh O, Almutairi A. Uncertainty-Aware Incentive-Based Three-Level Flexibility Coordination for Distribution Networks. Electronics. 2026; 15(7):1503. https://doi.org/10.3390/electronics15071503

Chicago/Turabian Style

Alrumayh, Omar, and Abdulaziz Almutairi. 2026. "Uncertainty-Aware Incentive-Based Three-Level Flexibility Coordination for Distribution Networks" Electronics 15, no. 7: 1503. https://doi.org/10.3390/electronics15071503

APA Style

Alrumayh, O., & Almutairi, A. (2026). Uncertainty-Aware Incentive-Based Three-Level Flexibility Coordination for Distribution Networks. Electronics, 15(7), 1503. https://doi.org/10.3390/electronics15071503

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop