Abstract
This paper studies a risk-averse stochastic unit commitment framework for an energy aggregator, operating a portfolio of conventional generators, renewable units, and battery energy storage in a network-constrained environment. Renewable generation and demand uncertainty are represented through a scenario-based extensive-form mixed-integer linear program. To avoid exposure to rare but high cost events, the model incorporates conditional value-at-risk as part of the objective function. The approach captures key market interactions, including day-ahead commitments, imbalance penalties, and power exchange with a neighboring network, while respecting generator constraints, storage dynamics, line flow limits, and bus voltage security. A comprehensive parametric study is conducted to quantify the influence of two risk parameters: the conditional value-at-risk confidence level and the risk-aversion weight . Using a 300-scenario test set on a modified IEEE 9-bus system, the results show that risk-neutral scheduling exposes the aggregator to larger operational costs in extreme scenarios. Minor levels of risk aversion (0.1–0.5) reduce CVaR and tighten the distribution of costs. Increasing further yields diminishing returns, while higher values focus risk mitigation on the most severe outcomes. The results demonstrate how CVaR-based stochastic scheduling can support aggregator decision-making by quantifying downside risk under renewable uncertainty.
1. Introduction
The fast growth of renewable energy sources (RESs), distributed generation, and battery energy storage systems (BESSs) is transforming traditional power systems into increasingly complex decentralized and flexible architectures. As the share of variable RESs such as photovoltaic and wind generation rises, system operators and aggregators face growing challenges related to short-term balancing, uncertainty, and operational flexibility. Coordinating a diversified energy portfolio that includes conventional generation, RESs, BESSs, and flexible loads requires advanced energy management systems (EMSs) capable of forecasting, scheduling, and real-time control. EMS architectures and organizational structures for prosumers managing distributed resources are already well researched topics [1]. Energy market liberalization reshapes the landscape for new energy ventures, providing a growing role of aggregators [2]. EMS frameworks designed for grid-connected utility-scale renewable hybrid power plants are becoming more popular [3].
Aggregators, which are entities that combine multiple distributed resources and consumers, play an increasingly important role in modern electricity markets. They optimize participation in wholesale markets, supply end-users, and manage local generation and storage while acting as a single market participant. This is observed by [4], which reviews the evolving interaction between distributed energy resources, demand response programs, and electricity markets. That is why the distinct roles and potential conflicts between aggregators and retailers in competitive markets is an important aspect of power systems to observe [5]. Regulatory frameworks are also shaping aggregator participation in the energy transition [6]. In liberalized markets, aggregators must jointly optimize their production portfolio and market positions to maximize profit while maintaining operational feasibility. In isolated or islanded microgrids, EMS architectures serve a similar purpose, enabling local balancing without the support of upstream grids. Examples of this dual problem are shown in [7], which studies energy management of distributed resources from a power systems operations perspective, while [8] reviews distributed energy resource (DER) aggregation approaches using customer-owned equipment. A unified EMS capable of operating in both grid-connected and islanded conditions therefore provides a valuable decision support tool for both aggregators and isolated system operators.
The unit commitment and economic dispatch (UC/ED) problem is central to short-term operational planning. Traditional UC formulations minimize operating cost or maximize net profit while satisfying generator constraints, storage dynamics, load balance, and network limitations. Works shown in [9,10] develop representative UC frameworks for flexible generation operation. Other works, such as [11], survey energy storage system models within the UC problem. Solutions for the transmission-constrained UC problem are presented in a number of works, such as [12], which introduces the generalized generation distribution factor (GGDF) formulation. However, most classical EMS and UC models treat RESs and load forecasts deterministically, despite well-known forecast errors and volatility. As RES penetration grows, deterministic UC becomes increasingly inadequate because it optimizes performance under average conditions while ignoring rare but high-impact situations.
To address this, scenario-based stochastic unit commitment (SUC) has emerged as a foundational method for treating renewable and demand uncertainty. Yet, risk-neutral SUC minimizes only expected cost, which can leave aggregators exposed to large financial losses in extreme scenarios. Recent studies have therefore incorporated risk measures such as conditional value-at-risk (CVaR) to hedge against worst-case outcomes and improve operational robustness under uncertainty. CVaR penalizes the average cost in the worst (1 − ) portion of scenarios, where is the confidence level, allowing decision makers to explicitly control their exposure to financial risks.
Despite this progress, a large share of the existing literature focuses on system operators, generation companies, or single-facility decision makers. In comparison, fewer studies explicitly adopt the perspective of an energy aggregator that must simultaneously manage market participation, portfolio coordination, and network feasibility under uncertainty. In particular, these aspects are often treated separately rather than analyzed jointly:
- Participation in day-ahead markets and exposure to imbalance penalties,
- Coordination of diversified portfolios with dispatchable units, RESs, and BESSs,
- Enforcement of network constraints through power flow and voltage limitations, and
- Risk-aware stochastic optimization using CVaR in a profit-oriented setting.
Building on established stochastic unit commitment and CVaR formulations, this paper studies a risk-averse scheduling framework from an aggregator-centric perspective. The model is formulated as an extensive-form mixed-integer linear program (MILP) that optimizes generator commitment, dispatch, BESS operation, and market transactions across multiple renewable generation and demand scenarios, while explicitly accounting for network constraints.
Rather than introducing a new optimization paradigm, the contribution lies in the systematic analysis of how risk aversion influences aggregator decisions. A comprehensive parametric study over the CVaR confidence level and the risk-aversion weight is conducted using a modified IEEE 9-bus test system. The results illustrate how risk-neutral scheduling can expose the aggregator to significant worst-case losses, whereas moderate levels of risk aversion reduce downside risk and tighten the profit distribution.
The main novel contributions of this work, relative to the reviewed literature, are as follows:
- A highly detailed aggregator-centric formulation of a two-stage stochastic unit commitment problem that jointly represents market participation, battery energy storage operation, active power congestion constraints, and linearized bus voltage security constraints within a unified MILP framework, a combination not addressed by existing CVaR-UC or aggregator scheduling studies.
- The integration of a CVaR-based risk term into the aggregator profit function, enabling explicit control over downside financial risk under renewable generation and demand uncertainty.
- A systematic parametric analysis of the CVaR confidence level and the risk-aversion weight , providing quantitative insights into the expected profits and costs, and its impact on aggregator scheduling decisions.
1.1. Literature Review
The increasing penetration of variable renewable energy has motivated a large body of work on SUC, where uncertain demand and RES generation are modeled via scenarios and the objective is to minimize expected operating cost. Two-stage SUC formulations are now standard: first-stage commitment decisions are made day-ahead, while second-stage dispatch and reserve variables adapt to each scenario.
Recent examples include large-scale planning and operational studies that treat uncertainty but remain essentially risk neutral. Authors in [13] propose a two-stage SUC model for Thailand’s national power system that jointly considers uncertainty in solar photovoltaic (PV), electric vehicle charging demand and load, formulated as an MILP with recourse and solved on a 171-generator system. Authors in [14] address SUC under solar, wind, and load uncertainties using a metaheuristic “artificial gorilla troops optimizer”, generating scenarios via probability density functions and Monte Carlo simulation with scenario reduction and comparing deterministic to stochastic UC behavior. These works focus primarily on expected cost minimization and improved solution algorithms, with limited emphasis on the distribution of outcomes (e.g., cost distribution tails or worst-case scenarios), and typically do not model explicit market participation from an aggregator perspective.
Similar risk-neutral two-stage SUC formulations are also used when integrating non-generation resources such as demand response (DR) and storage. Authors in [15] develop a two-stage SUC model that integrates DR and energy storage to manage wind/solar variability; although they later enrich the model with risk constraints, the baseline formulation is an expected-cost SUC. Other models have extended SUC to weekly horizons, especially for systems with hydro and seasonal reservoirs, like in [16], where authors use a two-stage SUC with hydropower and inflow uncertainty to manage weekly scheduling risks. Overall, this stream of work establishes scenario-based SUC as the standard tool for treating renewable uncertainty, but it typically optimizes only the mean cost and does not explicitly manage downside risk. None of these works model an energy aggregator explicitly: they address system operators or generation companies, and none jointly represent day-ahead market contracts, imbalance settlement, and network constraints from a profit-oriented aggregator perspective.
1.1.1. Risk-Aware SUC and CVaR-Based Formulations
To address the fact that minimizing expected cost can leave the system exposed to rare but very expensive outcomes, more recent works embed risk measures such as CVaR into SUC formulations. CVaR is attractive because it penalizes the average cost of the worst (1 − ) fraction of scenarios and can be implemented in MILP.
Authors in [15] integrate CVaR into a two-stage SUC framework where DR and energy storage help hedge wind and solar uncertainty, using a CVaR-based risk constraint to balance expected cost against system reliability. Furthermore, [17] develop a pan-European CVaR-constrained SUC that explicitly models intraday price and quantity uncertainty and solve the resulting large-scale two-stage problem using nested Lagrangian relaxation and extended Benders decomposition. Authors in [16] employ CVaR in a weekly SUC formulation to hedge hydrological uncertainty, showing that risk-averse formulations mitigate low-inflow scenarios at the cost of higher expected operating cost. A recent thesis [18] develops a two-stage SUC for an industrial prosumer with volatile electricity and steam demand and compares three objective functions: expected cost, worst-case cost, and CVaR. The results show that risk-averse formulations reduce the cost of extreme scenarios but increase costs for “normal” scenarios and that over repeated operation, the pure expected-cost objective can yield better long-term average performance, highlighting the fundamental tradeoff between average efficiency and downside risk protection. This work explicitly contrasts risk-neutral against risk-averse SUC, but it remains at facility level, without explicit market participation and profit-oriented aggregator behavior.
There is also growing interest in distributionally robust and hybrid risk models. In [19], authors propose a risk-averse two-stage distributionally robust UC/ED formulation where renewable power follows an unknown distribution constrained in an ambiguity set. CVaR is used to control risk under worst-case distributions. Authors in [20] develop a mixed CVaR-information gap decision theory model for coordinated power and gas distribution systems, highlighting how different risk measures capture different attitudes towards deep uncertainty. A cost attribution and risk-averse UC framework that uses integrated gradients to assign risk contributions to individual loads and generators under a CVaR-based measure is proposed in [21]. These contributions emphasize risk quantification and allocation at the transmission or system-operator level, rather than at the level of local aggregators coordinating distributed resources and end-user demand. Moreover, none of these studies conduct a systematic parametric analysis of both the risk-aversion weight and the confidence level jointly, leaving practitioners without quantitative guidance on how to select these parameters in an aggregator context.
1.1.2. Risk-Averse Operation in Microgrids and Multi-Energy Systems
A number of works apply risk-aware stochastic programming and CVaR to microgrids, multi-energy systems, and distribution networks. Authors in [22] propose a decentralized risk-averse operational framework for interconnected unbalanced microgrids. CVaR is used in the distribution system operator problem to hedge price-responsive demand bid uncertainty, while local microgrids solve robust optimization problems for their own demand and PV uncertainty. In [23], a design for risk-averse stochastic optimization framework for hydrogen energy storage planning within distribution networks is proposed, again relying on CVaR to represent risk aversion over uncertain renewable generation and load. Authors in [24] consider risk-constrained bi-level energy management for multi-microgrids, where CVaR and related risk metrics are used to enforce reliability and economic robustness.
These works highlight that risk-aware scheduling is especially relevant in distribution-level and multi-energy settings, where local operators are directly exposed to market price and imbalance risks. However, most of them treat either a microgrid operator or a distribution system operator; they do not model an aggregator explicitly acting between wholesale markets and local consumers with a detailed representation of day-ahead contracts, imbalance penalties, and local assets such as BESS. The present work fills this gap by adopting an aggregator-centric perspective that integrates wholesale market participation, imbalance penalty exposure, BESS operation, and network constraints into a single CVaR-based extensive-form MILP and provides a comprehensive parametric study of the risk parameters that the cited works do not address.
1.1.3. Research Gaps and Motivation
The aim of this paper is not to introduce a new stochastic optimization paradigm but to study risk-aware scheduling from an aggregator-centric perspective by building on established CVaR-based SUC formulations. Specifically, the paper focuses on the joint impact of market participation, battery energy storage operation, and network constraints on the financial risks faced by aggregators under renewable uncertainty.
By conducting a comprehensive sensitivity analysis with respect to the risk-aversion weight and the CVaR confidence level on a modified IEEE 9-bus system, the work provides quantitative insights into how different risk preferences influence scheduling decisions, profit variability, and exposure to high cost outcomes. This analysis helps clarify the practical implications of risk aversion in aggregator operation, including the role of BESS in mitigating downside risk.
2. Materials and Methods
2.1. Methodology
2.1.1. Model and Problem Overview
The model developed in the paper solves an hourly SUC optimization problem. The objective function is minimization of operational costs and maximization of income by means of supplying local demand and market participation. The model can simulate the workings of an entity such as an aggregator, which acts as an intermediary entity that coordinates a portfolio of DERs and participates in the wholesale electricity market on behalf of local producers and prosumers. The portfolio includes a dispatchable thermal unit, renewable generation (hydro, solar PV, and wind), BESS, and a point of common coupling (PCC) through which power can be imported from or exported to the upstream grid. Optimization is conducted over a 24-h horizon, although the model supports an arbitrary time horizon.
The optimization is conducted post-market clearing. Meaning, the contracted quantity as well as the electricity price for each hour for the day ahead are known. Deviations between realized production and contracted schedules incur imbalance penalties. Renewable units follow scenario-dependent availability profiles based on uncertain irradiance and wind speed, while load varies across scenarios due to forecast uncertainty.
Because rare but extreme scenarios can lead to large financial losses, especially when imbalance penalties and costs for unmet demand are present, the model incorporates a risk-averse objective using CVaR. The resulting framework supports the design of robust day-ahead schedules that balance economic performance and downside protection.
2.1.2. Scenario-Based Uncertainty Modeling
Short-term operation of systems with high penetration of renewable energy is strongly affected by forecast uncertainty in both generation and demand. To capture this variability, the proposed framework adopts a scenario-based stochastic modeling approach, where multiple realizations of the uncertain parameters are generated and explicitly embedded into the optimization problem. Each scenario represents a plausible realization of next-day renewable output and load throughout the 24-h horizon. In this study, uncertainty is modeled in the hourly profiles of solar PV and wind generation and local demand. A base forecast profile is used to produce a set of S = 300 scenarios, ensuring sufficient representation of both typical and extreme conditions. All scenarios are assigned equal probability unless stated otherwise, reflecting an information-neutral perspective.
For realistic scenario generation, a first-order autoregressive model (AR(1)) is adopted to construct the error trajectory for loads, PV, and wind generation. For these uncertain variables, and each scenario s, a trajectory of hourly forecast errors is generated according to
where is the lag-1 autocorrelation coefficient, is the standard deviation of the marginal error distribution, and is a standard normal innovation drawn independently at each hour. The scaling factor ensures that the marginal distribution of remains at every hour, preserving the intended uncertainty spread regardless of the autocorrelation level [25]. The initial value is drawn as .
Even under AR(1) correlation, hour-to-hour swings in the raw error trajectory can exceed the physical ramping capabilities of generators and loads. A three-point moving-average (MA) filter is applied to the AR(1) trajectory prior to scenario construction [26]:
Boundary hours use symmetric edge extension. The combined AR(1)-MA(2) structure is equivalent to an ARMA(1,2) error model and enforces gradual, physically realistic transitions between consecutive scheduling periods.
The perturbed scenario value for any uncertain variable x at hour t in scenario s is
where is the deterministic base forecast at hour t. The smoothed error is clipped to physically admissible bounds before being applied, and the floor at zero prevents negative generation or demand values.
Standard deviations and autocorrelation coefficients are set separately for renewable generation and load demand. For wind and solar PV generation, the following parameters are adopted. The same values are applied to both technologies, as day-ahead forecast errors for solar PV are of comparable relative magnitude to wind during generation hours [27]:
- : Ref. [27] reports across seven countries for day-ahead wind forecast errors; the upper bound is adopted as a conservative choice appropriate for a small isolated system and applied to solar PV generation as an equivalent upper bound.
- : Ref. [28] fits AR(1) models to European wind day-ahead forecast errors and report ; the mid-range value is adopted for both wind and solar PV.
- Clipping: , allowing generation to drop to zero while limiting upward deviation to 30% above the base forecast.
For load demand,
- : Ref. [26] reports day-ahead demand forecast errors on the order of 1–5% of the hourly load; the upper bound is adopted to reflect the higher relative uncertainty of small-area load forecasts.
- : adopted to capture the moderate temporal persistence characteristic of day-ahead load forecast errors in small balancing areas.
- Clipping: , corresponding to a maximum demand deviation of .
Independent AR(1) trajectories are generated for each renewable unit, reflecting the possibility that spatially separated wind and solar assets experience different realizations. A single shared trajectory is applied to all load buses, capturing the common daily weather driver affecting system-wide demand. All scenarios are generated with a fixed random seed to ensure full reproducibility of results.
The scenario set is embedded in an extensive-form two-stage MILP:
- First-stage (here-and-now) decisions include unit commitment states for each unit i at hour t and other binary variables that must be fixed before uncertainty is accountred for.
- Second-stage (wait-and-see) decisions: dispatch levels, BESS charging/discharging, PCC power exchange, and unmet demand are scenario-dependent and adapt optimally to each.
An illustration of the workflow of the methodology is given in Figure 1. This structure allows the aggregator to plan commitments conservatively while retaining flexibility in operational responses across different uncertainty outcomes. Because renewable variability can significantly affect system balance and congestion, all network flow constraints are enforced individually for every scenario. This ensures that feasible operation is maintained in every case.
Figure 1.
Workflow of the developed CVaR-based stochastic unit commitment methodology.
Scenario-based stochastic programming thus provides a rigorous framework for evaluating operational strategies under uncertainty. However, risk-neutral formulations that minimize expected cost may still expose the aggregator to unacceptable losses in rare but severe scenarios. To address this, the proposed model incorporates a risk-averse objective using CVaR, described in Section 2.1.9.
2.1.3. Input Data and Model Formulation
This section describes the data inputs used by the model and briefly explains the mathematical structure of the SUC formulation. The proposed model requires the following categories of input data, defined for each generator, storage device, network element and time period:
- Generator data: technical and economic parameters for every dispatchable unit.
- Generator reactive capability: reactive power output limits for each dispatchable unit, used together with the network bus data to enforce bus voltage security.
- PV and wind generation: the scenario-dependent availability for each PV and wind power plant. This in practice could be acquired by probabilistic forecast.
- Demand data: scenario-dependent demand data and power factor for every consumer in the grid. Would be acquired from probabilistic forecast as well.
- Battery energy storage: a number of technical and economic parameters such as state of charge (SOC), BESS capacity, degradation cost, etc.
- Network and line data: bus and power line parameters for the electrical grid, voltage limits. Furthermore, data for where the bus at which the PCC (or multiple ones) is located.
- Market data: contracted hourly quantity and electricity prices from the day-ahead market, along with prices for imbalance penalties.
- Scenario sets: a set of S scenarios, which include demand, PV, and wind generation data for each consumer and renewable unit respectfully.
The SUC is formulated as a two-stage extensive-form MILP. It consists of 50 types of variables and 77 types of constraints. The variables are split into two types: first stage and second stage variables, as described in Section 2.1.2. The objective function is set to minimize the risk-adjusted expected operating cost:
where is the probability of scenario s occurring, and is the risk-aversion weight. is explained in Section 2.1.9. The cost function is defined as
where is the startup cost of unit i at hour t; is the generation cost, comprising no-load cost , piecewise-linear marginal cost terms over cost segments, and continuous segment dispatch variables ; is the marginal degradation cost of BESS unit e; and are BESS charge and discharge power, respectively; , , , and are costs from unserved energy and unserved spinning, regulation, and non-spinning reserve requirements; and are penalty prices for over- and under-delivery; and are deviations from the contracted day-ahead quantity settled at price ; is the retail supply tariff; is energy not supplied and is net grid demand; and are slack variables for voltage deviation and is voltage deviation penalty price. Every term is linear in the decision variables: is affine in binary and continuous ; all remaining terms are products of fixed parameters with single decision variables, confirming MILP compatibility. The generator commitment, dispatch, and ramping constraints are adapted from the UC frameworks of [9,10].
2.1.4. Power Balance Constraints
These are constraints that ensure balance between generation and demand and account for energy not supplied for each scenario, unit, and hour of the optimization:
where , , and are the number of BESS units, wind power plants, PV power plants, and other types of generators, respectively. Power output from wind power, solar power, and the other types of generators are denoted with , , and .
2.1.5. Generation Constraints
These constraints are enforced in order to ensure all generating units do not exceed their minimum and maximum limits and to keep account in which segment of the marginal cost curve the generator operates. For example,
Constraints (7), (8), and (9) refer to the upper and lower power output bounds of PV, wind, and other types of generators. and are the scenario-dependent maximum available output [MW] of PV unit p and wind unit w, respectively, reflecting the stochastic irradiance and wind speed profiles. and are the minimum and maximum active power output of dispatchable unit i [MW].
2.1.6. BESS Constraints
These are constraints that ensure the proper behavior of the battery storage systems. Constraints on the minimum and maximum state of charge, charging and discharging rate, efficiency, etc. They are used and adapted from [11].
For example, Equation (10) accounts for tracking the SOC of the BESS, where [MWh] is the state of charge of BESS unit e at the end of hour t in scenario s. Equation (11) ensures that the BESS unit SOC does not surpass its predefined capacity, and (12) prevents the unit from charging and discharging simultaneously. The minimum and maximum possible SOC for each unit are denoted with and . Charging and discharging efficiency are and . Binary indicators for charging and discharging status are and .
2.1.7. Network Constraints
The limitations of the electrical grid are enforced via constraint (13). For this goal, the model utilizes a variation of the DC method for power flow calculation, presented in [12]. More specifically, it utilized a GGDF matrix, for which the derivation of the GGDF matrix and detailed workings of the methodology can be found in [12].
where is the maximum carrying capacity of line l, expressed in MW. is the injected power in bus n. The number of buses in the grid is denoted with .
2.1.8. Reactive Power Dispatch and Voltage Constraints
Bus voltage security is enforced through reactive power dispatch variables , assigned to each conventional generator in , excluding the slack bus. Each is bounded by the unit’s reactive capability and and coupled to its commitment :
Net reactive injection per bus combines generator reactive dispatch and reactive load at specified load power factor cos:
where [MW] is the active power demand at bus n, hour t, scenario s.
Bus voltages follow the voltage transfer distribution factor (VTDF) linearization, where is the reactive-power voltage sensitivity at flat start ( p.u.):
where is the specified base power.
Soft voltage bounds are enforced via non-negative slack variables , penalized by in the objective to strongly discourage violations without introducing infeasibility:
where and are the minimum and maximum allowable voltage magnitudes at bus n [p.u.].
2.1.9. CVaR-Based Risk-Aware Objective Function
Traditional SUC minimizes the expected operating cost across all scenarios. While effective under moderate uncertainty, risk-neutral optimization may expose the aggregator to large losses in rare but severe cases of demand and renewable output. To explicitly control exposure to these tail risks, the proposed model incorporates conditional value-at-risk into the objective function.
Let denote the total operating cost in scenario s. The value-at-risk at confidence level , denoted , is defined as the -quantile of the cost distribution, i.e., the smallest value such that at least a fraction of scenarios have cost below it. However, VaR alone does not capture the severity of losses beyond this threshold. The conditional value-at-risk, or expected shortfall, is defined as the average cost in the worst (1 − ) fraction of scenarios. CVaR therefore provides a coherent measure of downside risk and enables risk-aware decision-making.
CVaR is introduced into the MILP using an epigraph reformulation with auxiliary variables:
- : VaR proxy (lower bound on the -quantile),
- : excess cost above in scenario s.
The following linear constraints enforce the CVaR definition, for a set of scenarios S:
The CVaR for confidence level is then expressed as
This formulation is fully linear and integrates seamlessly with the extensive-form SUC model. The aggregator’s total objective then is defined as a convex combination of expected operating cost and CVaR:
where is the risk-aversion weight. = 0 corresponds to standard risk-neutral SUC, and higher values place increasing emphasis on tail-risk mitigation. Low values of tolerate larger losses in adverse scenarios. Large values generate schedules that are more conservative but effectively reduce worst-case outcomes.
Interpreting this in the context of aggregator operation, embedding CVaR in the objective is meant to affect the scheduling of import and export of energy at the PCC, BESS charging/discharging strategies, dispatch levels of thermal units, and utilization of renewable energy.
2.2. Case Study
2.2.1. Test System Description
The proposed stochastic unit commitment framework is evaluated on a modified IEEE 9-bus transmission test system that has been adapted to represent the operational setting of an energy aggregator. The system includes conventional generation from a thermal power plant (TPP), two photovoltaic PV power plants (PV 1, PV 2), one wind power plant (WPP), two hydro power plants (HPP 1, HPP 2), and two battery energy storage systems (BESS 1, BESS 2). A point of common coupling for exchanging power with the upstream grid is also defined at bus 7 (PCC). The topology of the network is shown in Figure 2. The technical characteristics of the generators, power lines, and consumers are given in Table 1.
Figure 2.
Topology of the modified IEEE 9-bus test system.
Table 1.
Technical data for test network.
Resistance, reactance, and capacitance values for the power lines are given in p.u., derived from a base power of 100 MVA. The nominal voltage of each bus is 230 kV. For all buses, the minimum and maximum allowable voltage magnitudes are 0.95 p.u. and 1.05 p.u. respectively.
While energy aggregators are most commonly encountered at distribution level, large-scale virtual power plants (VPPs) coordinating hundreds of megawatts of heterogeneous assets participate in wholesale markets at the transmission interface through a PCC [35]. The IEEE 9-bus system is therefore employed as a well-established benchmark for algorithm validation and is not intended to represent a specific real-world deployment; the network model has been extended in this work with reactive power dispatch and linearized bus voltage security constraints, which constitute the primary additional network requirement in aggregator settings. A dedicated distribution-level test case would more closely reflect the classical aggregator context, but the qualitative findings on risk aversion and the profit–risk tradeoff are independent of this choice, as further supported by the sensitivity analysis in Section 3.5. The chosen portfolio mix comprising dispatchable hydro, thermal, solar PV, wind, and BESS represents a realistic and commonly studied configuration for large-scale VPPs and aggregators [7,8,35].
Figure 3 shows the distributions and the mean values of the demand and renewable generation profiles across all 300 scenarios used in the analysis.
Figure 3.
Scenario profiles for demand, PV, and wind generation ( scenarios). (a) Output of PV 1; (b) Output of PV 2; (c) Output of WPP; (d) Load at bus 4; (e) Load at bus 5; (f) Load at bus 6.
Approximately 74% of the generation portfolio (555 MW from a total of 755 MW), not counting BESSs as generators, constitutes RES. Bus 7, the location of the PCC in the network, is a “slack” bus for the means of power flow calculations. Data on the prices of electricity for the day ahead market are obtained from the official website of the Macedonian electricity market operator MEMO [36]. Data on paid penalties because of any deviations from the contracted hourly quantity are obtained from the official website of the Macedonian Transmission System Operator MEPSO [37]. Regarding the price of electricity for supplying local demand, data are obtained from the Macedonian Energy and Water Services Regulatory Commission official website [38].
2.2.2. Analysis Setup
Results from the optimization come in the form of hourly commitment and dispatch schedules for all generating units, together with the corresponding charge/discharge profiles of the BESS and the scheduled power exchange through the PCC. For each of the considered uncertainty scenarios, the model determines a feasible operating plan, while the extensive-form structure ensures that a single first-stage commitment timetable is selected that minimizes the expected cost (or maximizes profit) across all scenarios. Depending on the number of scenarios, the selected confidence level , and the risk-aversion coefficient , the resulting optimal solution reflects a different level of economic efficiency. In addition to operational schedules, the model produces detailed accounting of costs and revenues, including generation costs, BESS degradation costs, penalties for deviations from the day-ahead nomination, and income from supplying local loads and exporting energy to the market.
To assess the influence of risk preferences and scenario uncertainty on optimal scheduling decisions, several cases are evaluated.
- Risk-neutral case: This case uses the stochastic formulation without the CVaR term ( = 0), representing purely economic optimality based on expected values. Additionally, results from it are compared to a deterministic optimization baseline.
- Risk-averse case: Here, = 0.95 and = 1 to examine how strict risk preferences shift the solution toward more conservative operating strategies. The results are compared with the risk-neutral case.
- Fixed : The confidence level is held constant while the risk-aversion coefficient is varied, illustrating how the weight assigned to downside outcomes affects total operating cost, reserve scheduling, and scenario-robustness of the dispatch.
- Fixed : The coefficient is fixed, and the confidence level is varied, showing how changes in the percentile definition of undesirable scenarios influence the CVaR contribution and the resulting operating plan.
3. Results
All optimization runs are executed on a desktop machine equipped with an Intel Core i7-9700F CPU and 32 GB of RAM. The model is implemented in Python v.3.13.1 using the CPLEX MILP solver (Armonk, NY, USA). For the 300-scenario test set, a total of 727,584 variables and 962,604 constraints are defined. A single stochastic optimization requires approximately 12–15 min of computation time, depending on the selected risk parameters and . These run-times are consistent with extensive-form two-stage MILPs of comparable size and confirm the tractability of the proposed framework for day-ahead operational planning.
For larger systems or finer scenario discretizations, the extensive-form MILP can be accelerated using decomposition strategies. Lagrangian relaxation and extended Benders decomposition, both applied to CVaR-constrained SUC problems of comparable scope in the literature [17], exploit the block-diagonal structure of the extensive form by decoupling subproblems per scenario. Progressive hedging offers a further alternative. Scenario reduction techniques applied prior to optimization can also reduce S while approximately preserving the tail distribution and represent an active area of research in stochastic programming [15,39].
3.1. Risk-Neutral Case
Because the stochastic model evaluates scenarios, the real-time dispatch differs for each scenario, even though the day-ahead generation commitment is common to all of them. The scenario whose realized profit falls closest to the mode of the empirical profit distribution across the 300 scenarios is used as the representative case, providing a fair depiction of typical operating conditions without focusing on an extreme realization. All conclusions and following analyses in the paper, however, are based on the full distribution of 300 scenarios and not on any single case.
The chosen representative hourly timetable for the UC/ED, together with the electricity export to the upstream grid, is given in Figure 4, whereas a summary of costs and profits is given in Table 2. Table 2 also includes results from a standalone single-scenario deterministic UC solved under the same scenario inputs, which serve as a reference benchmark illustrating the in-sample performance of a traditional deterministic approach.
Figure 4.
Hourly timetable for risk-neutral case.
Table 2.
Costs and profits summary for risk-neutral SUC and deterministic UC (representative scenario).
From the timetable in Figure 4, it can be observed that generation from the PV plants and wind power plant operates at close to its maximum available output. High dispatch is also observed from the HPPs, which is expected given their lower marginal costs relative to the TPP. Excess generation is exported to meet the contracted quantity; however, the full contracted volume is not always delivered despite the portfolio having sufficient installed capacity. The limiting factor is congestion on Line 7–8, which has a rated capacity of 350 MW and remains binding across all 300 scenarios. This is the primary reason why shortfall penalties and buy-back costs are present in Table 2. The day-ahead shortfall settlement reflects the contractual obligation to financially cover the undelivered contracted volume at the day-ahead price; it is a financial settlement of the export shortfall, not a physical import. Conversely, day-ahead over-delivery settlement and the over-delivery penalty arise in hours where realized generation marginally exceeds the contracted export volume, with the surplus settled at the day-ahead price and subject to a small imbalance charge. This issue is elaborated in further detail in Section 3.5. Neither energy not served nor voltage violations occur in either formulation, confirming that network and supply constraints are satisfied under both approaches.
Comparing the two columns in Table 2, the stochastic formulation yields a net profit of 590,739 € for the representative scenario, compared to 585,225 € for the deterministic approach. This is a difference of 5514 € in favor of the stochastic solution. The stochastic approach achieves lower generation costs (373,558 € versus 376,345 €), reflecting a commitment that balances generation dispatch across all 300 scenarios rather than being perfectly tuned to a single realization. The deterministic solution, by contrast, is optimized exclusively for the representative scenario and consequently incurs lower shortfall penalties (61,135 € versus 64,083 €) and buy-back costs but generates higher over-delivery imbalances. It should be noted that the scenario-level profit comparison is illustrative only: for different scenario realizations, the ranking between the two approaches may reverse. The aggregate measure of this relationship is the value of the stochastic solution (VSS), computed by fixing the deterministic commitment vector and re-evaluating it across all 300 stochastic scenarios. The resulting VSS is approximately zero, indicating that the commitment decisions are robust to the modeled uncertainty and that the stochastic and deterministic approaches converge to nearly identical unit commitment schedules under risk-neutral conditions. The primary value of the stochastic formulation therefore lies not in improving expected profit but in enabling explicit tail-risk management through the CVaR objective, as demonstrated in Section 3.2.
3.2. Risk-Averse Case
Introducing risk aversion leads to adjustments in operational scheduling. Compared to the risk-neutral solution, BESS charge and discharge is dispatched more conservatively, with greater emphasis on maintaining higher state of charge during hours with high uncertainty in renewable generation. Import and export schedules also become less aggressive, reducing exposure to imbalance penalties under unfavorable scenarios, and conventional units exhibit more stable generation trajectories, particularly around periods where solar and wind variability is highest. It should be noted, however, that the congestion on Line 7–8 persists across all scenarios regardless of the risk-aversion level.
A clearer view of these effects is obtained by examining the distribution of profits across all 300 scenarios. Figure 5a presents violin plots for the risk-neutral () and risk-averse (, ) cases. Both cases achieve comparable median profits and overall distributional shapes, reflecting the finding from Section 3.1 that the unit commitment schedules differ in only one generator-hour between the two settings. The risk-neutral distribution exhibits a marginally wider spread, with a slightly longer lower tail, indicating greater exposure to low-profit outcomes. The risk-averse distribution is modestly more compact, confirming that the CVaR objective achieves tail compression without substantially altering the central profit profile.
Figure 5.
Profit distribution comparison across 300 scenarios for the risk-neutral () and risk-averse (, ) cases: (a) Violin plot. (b) Histogram.
This behavior is confirmed by the histogram in Figure 5b. The risk-averse distribution shows higher density in the central profit range (approximately 575,000–600,000 €) and marginally lower density in the tails, consistent with the CVaR objective penalizing worst-case outcomes. Risk aversion therefore narrows the spread of scenario outcomes and improves the worst-case economic performance, which is of direct relevance to aggregators operating under financial or regulatory constraints.
Table 3 provides a quantitative perspective on the economic impact of risk aversion. Under the risk-averse setting (, ), the expected operating cost is 475,127 €, compared to 478,648 € in the risk-neutral case: a reduction of approximately 3521 €. The VaR at confidence level amounts to 505,253 €, representing the cost threshold exceeded in only 5% of the worst-performing scenarios, and is 6330 € lower than the risk-neutral counterpart. More importantly, the CVaR, i.e., the average cost within the worst-performing tail, is reduced from 525,632 € to 516,772 €, a decrease of 8860 € (1.7%). This is the primary objective of the risk-averse formulation: to reduce the severity of extreme outcomes rather than to improve average performance.
Table 3.
Financial risk metrics for the risk-neutral and risk-averse cases.
Notably, the expected profit also increases slightly under risk aversion, from 592,607 € to 596,751 € (+4145 €, or 0.7%). This result, while counterintuitive at first glance, is consistent with the near-identical commitment schedules documented in Section 3.1: when the commitment does not change substantially, the second-stage dispatch under the CVaR objective can select generation mixes that are simultaneously cheaper in expectation and less exposed to tail costs. The difference is small relative to the optimality tolerance set in the optimization solver and should be interpreted as confirming that risk aversion has negligible effect on expected profit while delivering a meaningful reduction in tail risk. Overall, these results demonstrate that the CVaR-based stochastic formulation offers a practical tool for aggregators seeking to bound worst-case exposure without materially degrading expected economic performance.
3.3. Fixed Confidence Level
Figure 6a and Figure 6b illustrate the evolution of expected profit and CVaR(cost) as increases for confidence levels and , respectively.
Figure 6.
Expected profit and CVaR(cost) as a function of at (a) Fixed . (b) Fixed .
In both cases, the CVaR curve declines sharply as increases from zero, with the most pronounced reduction occurring before . For , CVaR falls from approximately 525,500 € at to a minimum of approximately 516,000 € near , a reduction of roughly 9500 € (1.8%). Beyond this point, both CVaR and expected profit plateau, with further increases in yielding negligible additional change. This saturation indicates that the critical hedging adjustments occur at relatively low levels of risk weighting and that increasing beyond 0.5 does not produce meaningful further reduction in tail cost. A slight upward drift in CVaR is visible at , which falls within the solver’s optimality tolerance and should be interpreted as confirmation of the plateau rather than a genuine reversal.
In the low- region (), both curves exhibit oscillatory behavior rather than a smooth monotonic transition. As established in the computational analysis, this reflects numerical variability arising from near-degenerate first-stage commitment decisions in the regime where the CVaR term carries limited weight in the objective: multiple commitment schedules are near-optimal with respect to the combined objective, and the solver selects different ones at adjacent values, producing scenario-profit distributions with slightly different characteristics. The overall downward trend in CVaR across this region is nonetheless clear.
Comparing the two confidence levels, the sweep begins at a lower absolute CVaR (approximately 510,500 € at versus 525,500 € for ), which is expected: at , the tail encompasses the worst 15% of scenarios rather than the worst 5%, so the average tail cost is computed over a broader and less extreme set of outcomes. The curve is also noticeably smoother in the low- region, consistent with the larger tail sample providing a more stable gradient for the CVaR term. Despite these differences in scale, both sweeps exhibit the same qualitative behavior: a sharp CVaR decline to followed by saturation. The consistency of this finding across two distinct confidence levels confirms that the conclusion is not an artifact of a particular choice but reflects a genuine structural property of the problem.
Regarding expected profit, both sweeps show a modest increase as rises from zero to approximately 0.5, followed by a plateau and a marginal decline at the highest values tested. The total variation in expected profit across the entire sweep remains small, on the order of 3000–4000 € or less than 1%. This confirms that the stochastic formulation achieves meaningful tail-risk reduction at negligible cost to average economic performance.
These behavioral changes are also reflected in BESS operation, shown in Figure 7 for . In the low- region (0–0.5), both charged and discharged energy exhibit considerable variability across runs, mirroring the oscillatory behavior of the CVaR and profit curves and attributable to the same near-degenerate commitment decisions. A clear step reduction in BESS throughput is visible around , after which activity stabilizes at approximately 265–270 MWh charged and 255–260 MWh discharged per day. This is somewhat lower than the average throughput observed at low , indicating a strategic shift toward more conservative BESS scheduling: as risk aversion increases, the optimizer relies less on storage arbitrage and instead uses the BESS primarily to buffer worst-case renewable shortfall scenarios. The stabilization of BESS throughput beyond mirrors the saturation seen in Figure 6a, confirming that the operational adjustments driven by risk aversion are largely complete by lower values of the risk-aversion weight.
Figure 7.
Expected BESS charged and discharged energy as a function of at fixed .
3.4. Fixed Risk Aversion
Figure 8 shows CVaR(cost) as a function of at fixed , evaluated across the range . The curve is monotonically increasing overall, which is the theoretically expected behavior: as increases, the tail window narrows, and CVaR is computed over progressively fewer and more extreme scenarios, so the reported metric rises.
Figure 8.
CVaR(cost) as a function of confidence level at fixed .
The relationship is non-linear. In the moderate confidence region , CVaR rises gradually from approximately 503,000 € to approximately 511,000 €: an increase of around 8000 € across the full 13 percentage-point interval, indicating that the worst 7–20% of scenarios have relatively similar cost structures and that no individual extreme event dominates in this range. Beyond , the curve steepens noticeably, and the increase becomes most pronounced between and , where CVaR rises sharply to approximately 534,000 €. The total increase from to amounts to approximately 31,000 €, with roughly three-quarters of that increase concentrated in the upper quarter of the range (). This convex shape reflects the heavy upper tail of the cost distribution: the most extreme outcomes are more costly than the scenarios immediately below the tail threshold.
Minor oscillations are visible around – and , where the curve briefly plateaus or dips before resuming its upward trend. These are attributable to the discrete nature of the scenario set: at each value, CVaR is computed over tail scenarios, so a small change in can alter which scenarios are included, producing step-like rather than perfectly smooth behavior. With scenarios and fixed, the same commitment and dispatch are used across all evaluations, so the only variable is which scenarios fall in the tail.
An important practical implication follows from the shape of this curve. When is fixed, adjusting serves to redefine the scope of the protected tail rather than the aggressiveness of the risk penalty itself. For moderate confidence levels (), CVaR changes slowly, implying that the worst 7–15% of scenarios produce broadly similar cost outcomes and that moderate tail protection can be achieved without specifying a precise value. In contrast, high confidence levels () produce rapid CVaR growth, driven by a small number of individually severe scenarios. It should be noted that at with scenarios, CVaR is determined by only three tail scenarios; the resulting estimate is statistically fragile and sensitive to the specific realizations sampled. This caveat implies that very high confidence levels require a substantially larger scenario set to produce stable CVaR estimates and that values in the range 0.90–0.97 offer a more reliable basis for practical risk management under the current scenario budget. In practical terms, an aggregator seeking protection against rare but severe outcomes must specify a high but should be aware of the increased statistical uncertainty associated with extreme tail estimates. Moderate values such as represent a well-supported balance between tail severity and estimation reliability with the 300-scenario set used in this study.
3.5. Impact of Network Congestion on Risk-Aware Scheduling
Across all studied cases, congestion consistently appears on transmission line 7–8, indicating that this line represents a structural bottleneck in the modified IEEE 9-bus system. Line 7–8 is one of only two transmission lines connecting the PCC to the rest of the network, and the volume of power that must be routed through it under the aggregator’s export schedule regularly approaches its thermal limit. Congestion on this line constrains the aggregator’s ability to export surplus generation or reallocate power internally, leading to increased imbalance penalties and curtailed scheduling flexibility. The voltage constraint formulation does not eliminate the congestion, which remains an active power bottleneck independent of reactive dispatch.
In the risk-neutral case (), the aggregator tends to schedule aggressive exports and higher utilization of renewable generation, which increases the frequency and severity of congestion events on line 7–8 across scenarios. This behavior maximizes expected profit but exposes the aggregator to larger losses in adverse scenarios where network constraints become binding and imbalance penalties are incurred.
A critical observation for interpreting the risk analysis results is that line 7–8 congestion is present uniformly across all values, both confidence levels, and all 300 scenarios. It therefore acts as a constant background constraint rather than a variable that interacts differentially with risk aversion. The CVaR reductions and profit-distribution changes documented in the paper are driven by the response of the optimizer to renewable and demand uncertainty, not by changes in congestion patterns, and the comparative conclusions between risk-neutral and risk-averse cases are not confounded by this bottleneck.
To further confirm that the main conclusions are not an artifact of this single network constraint, a sensitivity analysis was performed in which the thermal capacity of line 7–8 is increased. While this relaxation eliminates the congestion and the associated imbalance penalties, the qualitative effect of risk aversion on the profit distribution remains unchanged: low to moderate levels of risk aversion continue to reduce downside risk across all tested capacity levels. This confirms that the structural findings of this study hold independently of the specific network bottleneck present in the test system.
4. Discussion
The core finding is that risk-neutral scheduling exposes the aggregator to high losses in extreme scenarios. Introducing risk aversion reduces CVaR by approximately 8860 € (1.7%) at , , while leaving expected profit essentially unchanged—and marginally improving it by 0.7%, a difference within the solver optimality tolerance. This result is consistent with findings in the CVaR-based stochastic UC literature, where risk-averse objectives have been shown to offer meaningful tail-risk reduction at low cost to average economic performance, particularly in systems with sufficient second-stage operational flexibility [15,17,22]. The BESS, PCC exchange, and renewable dispatch provide that flexibility here, allowing the optimizer to absorb uncertainty in real time without requiring conservative first-stage commitments.
The near-zero VSS quantifies this directly: the stochastic and deterministic approaches produce nearly identical unit commitment schedules under risk-neutral conditions, confirming that the commitment decisions are robust to the modeled uncertainty. This finding is consistent with results reported for similar two-stage stochastic UC formulations with flexible resources [13,15] and reflects a broader principle: when second-stage flexibility is sufficient to compensate for forecast errors without altering the commitment, the informational value of the full scenario set over the expected-value solution concentrates in the risk objective rather than in the first-stage decisions. An aggregator using a deterministic baseline would make the same commitment on average but would have no mechanism to quantify or control tail exposure —precisely the gap that the CVaR formulation addresses.
The choice of CVaR over alternative uncertainty-handling approaches is motivated by three properties. Robust optimization minimizes cost under the single worst-case scenario regardless of its probability, which can produce overly conservative schedules that ignore the likelihood of extreme events; CVaR instead weights tail scenarios by their probability, providing a more calibrated perspective on downside risk. Chance-constrained formulations bound the probability that costs exceed a threshold but do not quantify the expected magnitude of losses when the threshold is breached, which is critical for financial planning. CVaR is also a coherent risk measure and can be reformulated exactly as a set of linear constraints and an auxiliary variable, making it directly compatible with the MILP structure of the stochastic UC problem without requiring specialized solvers or convex relaxations [19].
The parametric analysis of and provides actionable guidance for practical deployment. The sweep at both and consistently shows that most CVaR reduction is achieved before , after which both curves plateau. The consistency of this saturation point across two distinct confidence levels strengthens the conclusion: it is a structural property of the problem rather than an artifact of a particular choice. In practical terms, an aggregator can obtain the majority of the available tail-risk reduction with a modest risk-aversion weight, without sacrificing expected profit.
Regarding the choice of , the sweep from 0.80 to 0.99 at fixed reveals a convex, monotonically increasing CVaR curve with a marked acceleration beyond . Moderate confidence levels () deliver meaningful tail protection with statistically reliable CVaR estimates given the 300-scenario set. At , however, CVaR is determined by only three tail scenarios, making the estimate sensitive to individual realizations and unsuitable as a robust decision criterion without a substantially larger scenario budget. This statistical caveat is of direct practical relevance for practitioners choosing a confidence level and is rarely discussed explicitly in the CVaR-UC literature. Confidence levels in the range 0.90–0.97 represent a well-supported balance between tail severity and estimation reliability under the current scenario budget.
Two key limitations should be noted. The IEEE 9-bus system is a transmission-level benchmark (230 kV), whereas aggregator operation typically occurs at distribution level; the addition of reactive power dispatch and linearized voltage constraints partially addresses this gap, but a dedicated distribution-level test system with higher R/X ratios would be more representative. The persistent congestion on line 7–8 is a structural feature of the test network and, as demonstrated by the sensitivity analysis in Section 3.5, does not alter the qualitative conclusions regarding risk aversion; nevertheless, a less congested or meshed topology might yield different quantitative tradeoffs between risk-aversion weight and imbalance exposure. The linearized VTDF voltage formulation is a standard first-order approximation for high-X/R networks and does not capture reactive compensation resources or nonlinear AC effects. More broadly, the framework demonstrates that CVaR-based stochastic optimization serves not only as a scheduling tool but as a diagnostic instrument for understanding how individual asset types, i.e., storage, renewable curtailment, and PCC exchange, contribute to tail-risk management in hybrid energy portfolios. The parametric results show which flexibility resources absorb uncertainty at each level of risk aversion, providing energy system planners with actionable insight into the value of each asset class beyond its contribution to expected profit.
5. Conclusions
This paper presented a CVaR-based stochastic unit commitment framework for risk-aware day-ahead scheduling of an energy aggregator operating a diversified portfolio of thermal, hydro, photovoltaic, wind, and battery energy storage systems under network constraints. By incorporating conditional value-at-risk into an extensive-form MILP formulation with scenarios, the model allows the impact of downside financial risk on scheduling decisions to be explicitly quantified within a scenario-based setting that accounts for temporal correlation in renewable and demand forecast errors through an ARMA(1,2) error structure.
The principal findings are as follows. Moderate risk aversion (, ) delivers the majority of available CVaR reduction, and this saturation behavior is consistent across two distinct confidence levels, confirming it as a structural property of the problem. The near-zero value of the stochastic solution indicates that the framework’s primary contribution lies in the risk quantification layer rather than in altering commitment decisions. For practitioners, with represents a well-supported operating region, and confidence levels above require substantially larger scenario sets to produce statistically reliable CVaR estimates.
Future work should extend the framework to distribution-level networks with explicit feeder topology, investigate larger scenario sets () for high-confidence CVaR stability, and integrate multi-period storage horizons, demand response, and cross-market participation to broaden practical applicability. Data-driven scenario generation using historical market and meteorological records would further improve the fidelity of the uncertainty representation.
Author Contributions
Conceptualization, P.P.; methodology, P.P.; software, P.P.; validation, P.P., G.V., M.A., S.N.P. and A.C.; formal analysis, P.P. and G.V.; investigation, P.P.; resources, P.P.; data curation, P.P. and G.V.; writing—original draft preparation, P.P.; writing—review and editing, P.P.; visualization, P.P.; supervision, P.P., G.V., M.A., S.N.P. and A.C.; project administration, P.P. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data will be made available upon request.
Acknowledgments
During the preparation of this work, the authors used Claude Sonnet 4.6 (Anthropic, San Francisco, CA, USA) in order to assist with text refinement and language editing. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations and Nomenclature
The following abbreviations/nomenclature are used in this manuscript:
| AR | Autoregressive |
| ARMA | Autoregressive moving-average |
| BESS | Battery energy storage systems |
| CVaR | Conditional value-at-risk |
| DER | Distributed energy resource |
| DR | Demand response |
| ED | Economic dispatch |
| EMS | Energy management systems |
| GGDF | Generalized generation distribution factor |
| HPP | Hydro power plant |
| kV | Kilovolt |
| MA | Moving-average |
| MILP | Mixed-integer linear program |
| MVA | Megavolt-Amperes |
| MW | Megawatt |
| MWh | Megawatt-hour |
| PCC | Point of common coupling |
| PV | Photovoltaic |
| p.u. | Per-unit |
| RES | Renewable energy sources |
| SOC | State of charge |
| SUC | Stochastic unit commitment |
| TPP | Thermal power plant |
| UC | Unit commitment |
| VPP | Virtual power plant |
| VSS | Value of stochastic solution |
| VTDF | Voltage transfer distribution factor |
| WPP | Wind power plant |
| Indices and sets | |
| s | Scenario index, |
| i | Dispatchable generator index |
| e | BESS unit index |
| w | Wind power plant index |
| p | PV power plant index |
| l | Transmission line index |
| n | Bus index |
| k | Piecewise cost segment index |
| t | Hour index, |
| Cardinalities | |
| S | Total number of scenarios |
| T | Scheduling horizon (hours) |
| Number of dispatchable generators | |
| Number of BESS units | |
| Number of wind power plants | |
| Number of PV power plants | |
| Number of buses | |
| Number of piecewise cost segments | |
| First-stage decision variables | |
| Commitment state of unit i at hour t | |
| Shut-down binary indicator | |
| Start-up binary indicator | |
| Second-stage decision variables | |
| Active power output of generator i [MW] | |
| Wind generation dispatch [MW] | |
| Solar PV generation dispatch [MW] | |
| Reactive power output of generator i [MVAr] | |
| BESS charging power [MW] | |
| BESS discharging power [MW] | |
| Binary charging status indicator | |
| Binary discharging status indicator | |
| State of charge of BESS unit e [MWh] | |
| Net power injection at bus n [MW] | |
| Energy not served [MW] | |
| Over-delivery deviation from contracted quantity [MW] | |
| Shortfall deviation from contracted quantity [MW] | |
| Piecewise dispatch segment variable | |
| Lower voltage slack variable [p.u.] | |
| Upper voltage slack variable [p.u.] | |
| CVaR auxiliary variables | |
| VaR proxy (lower bound on the -quantile) | |
| Excess cost above in scenario s | |
| Cost and market parameters | |
| Probability of scenario s | |
| CVaR confidence level | |
| Risk-aversion weight | |
| Total operating cost in scenario s | |
| Start-up cost of unit i at hour t [€] | |
| Generation cost of unit i in scenario s [€] | |
| No-load cost of unit i [€/h] | |
| Piecewise marginal cost of unit i, segment k [€/MWh] | |
| Marginal degradation cost of BESS unit e [€/MWh] | |
| Day-ahead market price at hour t [€/MWh] | |
| Retail supply tariff at hour t [€/MWh] | |
| Over-delivery imbalance penalty [€/MWh] | |
| Shortfall imbalance penalty [€/MWh] | |
| Voltage deviation penalty price [€/p.u.] | |
| Cost of unserved energy [€] | |
| Cost of unserved spinning reserve [€] | |
| Cost of unserved regulation reserve [€] | |
| Cost of unserved non-spinning reserve [€] | |
| Technical parameters | |
| Minimum and maximum active power output of unit i [MW] | |
| Minimum and maximum reactive power output of unit i [MVAr] | |
| Minimum and maximum state of charge of BESS unit e [MWh] | |
| Charging efficiency of BESS unit e | |
| Discharging efficiency of BESS unit e | |
| Thermal capacity limit of line l [MW] | |
| Scenario-dependent maximum available PV output [MW] | |
| Scenario-dependent maximum available wind output [MW] | |
| Net grid demand in scenario s at hour t [MW] | |
| Voltage transfer distribution factor | |
| Voltage magnitude limits at bus n [p.u.] | |
| Flat-start voltage magnitude at bus n [p.u.] | |
| System base apparent power [MVA] | |
| Scenario generation | |
| Forecast error trajectory | |
| Smoothed AR(1)-MA(2) error | |
| Deterministic base forecast value at hour t | |
| AR(1) lag-1 autocorrelation coefficient | |
| Standard deviation of the marginal error distribution | |
| Standard normal innovation, | |
References
- Mišljenović, N.; Žnidarec, M.; Knežević, G.; Šljivac, D.; Sumper, A. A review of energy management systems and organizational structures of prosumers. Energies 2023, 16, 3179. [Google Scholar] [CrossRef] [Scilit]
- Pant, P.; Belz, F.-M. Energy market liberalization and the emergence of new energy ventures in Germany. Energy Policy 2025, 208, 114882. [Google Scholar] [CrossRef] [Scilit]
- Zhu, R.; Das, K.; Sørensen, P.E.; Hansen, A.D. A review on energy management system for Grid-Connected Utility-Scale renewable hybrid power plants. Wiley Interdiscip. Rev. Energy Environ. 2025, 14, e70004. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Da Costa, V.B.F.; de Doile, G.N.D.; Troiano, G.; Dias, B.H.; Bonatto, B.D.; Soares, T.; de Freitas Filho, W. Electricity Markets in the context of Distributed Energy Resources and Demand Response Programs: Main developments and challenges based on a systematic literature review. Energies 2022, 15, 7784. [Google Scholar] [CrossRef] [Scilit]
- Ramos, A. Aggregators and Retailers in Electricity Markets: Roles and Conflicts. In Energy Storage Deployment Handbook, STORY H2020 Project; Vlerick Business School: Brussels, Belgium, 2020. [Google Scholar] [CrossRef] [Scilit]
- Kerscher, S.; Arboleya, P. The key role of aggregators in the energy transition under the latest European regulatory framework. Int. J. Electr. Power Energy Syst. 2021, 134, 107361. [Google Scholar] [CrossRef] [Scilit]
- Lampropoulos, I.I. Energy Management of Distributed Resources in Power Systems Operations. Data Archiving and Networked Services (DANS). Ph.D. Thesis, Technische Universiteit Eindhoven, Eindhoven, The Netherlands, 2014. [Google Scholar] [CrossRef]
- Obi, M.; Slay, T.; Bass, R. Distributed energy resource aggregation using customer-owned equipment: A review of literature and standards. Energy Rep. 2020, 6, 2358–2369. [Google Scholar] [CrossRef] [Scilit]
- Jenkins, J.D.; Zhou, Z.; Ponciroli, R.; Vilim, R.B.; Ganda, F.; de Sisternes, F.; Botterud, A. The benefits of nuclear flexibility in power system operations with renewable energy. Appl. Energy 2018, 222, 872–884. [Google Scholar] [CrossRef] [Scilit]
- Ahn, S.-H.; Hyun, J.H.; Choi, J.H.; Lee, S.G.; Kim, G.G.; Bhang, B.G.; Cha, H.L.; Lim, B.Y.; Choi, H.J.; Ahn, H.K. Load-Following Operation of Small Modular Reactors under Unit Commitment Planning with Various Photovoltaic System Conditions. Energies 2023, 16, 2946. [Google Scholar] [CrossRef] [Scilit]
- Howlader, H.O.R.; Adewuyi, O.B.; Hong, Y.-Y.; Mandal, P.; Hemeida, A.M.; Senjyu, T. Energy Storage System Analysis Review for Optimal Unit Commitment. Energies 2019, 13, 158. [Google Scholar] [CrossRef] [Scilit]
- Gutierrez-Alcaraz, G.; Hinojosa, V.H. Using generalized generation distribution factors in a MILP model to solve the Transmission-Constrained unit commitment problem. Energies 2018, 11, 2232. [Google Scholar] [CrossRef] [Scilit]
- Kaewpasuk, S.; Intiyot, B.; Jeenanunta, C. A Two-Stage stochastic unit commitment model for sustainable Large-Scale power system planning under renewable and EV variability. Energies 2025, 18, 4614. [Google Scholar] [CrossRef] [Scilit]
- Rihan, M.; Sayed, A.; Abdel-Rahman, A.B.; Ebeed, M.; Alghamdi, T.a.H.; Salama, H.S. An artificial gorilla troops optimizer for stochastic unit commitment problem solution incorporating solar, wind, and load uncertainties. PLoS ONE 2024, 19, e0305329. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huang, Y.; Zheng, Q.P.; Wang, J. Two-stage stochastic unit commitment model including non-generation resources with conditional value-at-risk constraints. Electr. Power Syst. Res. 2014, 116, 427–438. [Google Scholar] [CrossRef] [Scilit]
- Constante-Flores, G.E.; Conejo, A.J.; Lima, R.M. Stochastic scheduling of generating units with weekly energy storage: A hybrid decomposition approach. Int. J. Electr. Power Energy Syst. 2022, 145, 108613. [Google Scholar] [CrossRef] [Scilit]
- Nobis, M.; Schmitt, C.; Schemm, R.; Schnettler, A. Pan-European CVAR-Constrained Stochastic Unit commitment in Day-Ahead and Intraday electricity markets. Energies 2020, 13, 2339. [Google Scholar] [CrossRef] [Scilit]
- Lessig, L. Two-Stage Stochastic Unit Commitment for Industrial Prosumers with Uncertain Demand. Ph.D. Thesis, Technische Universität Wien, Vienna, Austria, 2024. [Google Scholar] [CrossRef]
- Yang, C.; Sun, W.; Yang, J.; Han, D. Risk-averse two-stage distributionally robust economic dispatch model under uncertain renewable energy. CSEE J. Power Energy Syst. 2022, 10, 1514–1524. [Google Scholar] [CrossRef] [Scilit]
- Mirzaei, M.A.; Ahmadian, A.; Mohammadi-Ivatloo, B.; Zare, K.; Elkamel, A. A mixed conditional value-at-risk/information gap decision theory framework for optimal participation of a multi-energy distribution system in multiple energy markets. J. Clean. Prod. 2022, 371, 133283. [Google Scholar] [CrossRef] [Scilit]
- Carmona, R.; Sircar, R.; Yang, X. Cost Attribution and Risk-Averse Unit Commitment in power Grids using Integrated Gradient. arXiv 2024, arXiv:2408.04830. [Google Scholar] [CrossRef] [Scilit]
- Fazlhashemi, S.S.; Khodayar, M.E.; Sedighizadeh, M.; Khodayar, M. Risk-averse operation of microgrids in distribution systems with price-responsive demands. Int. J. Electr. Power Energy Syst. 2025, 168, 110581. [Google Scholar] [CrossRef] [Scilit]
- Haghjoo-Haghighi, M.; Gholami, M.; Mahdavi, H.; Khodsuz, M. Operational planning of hydrogen energy storage systems using Risk-Averse Stochastic Programming. IET Renew. Power Gener. 2025, 19, e70147. [Google Scholar] [CrossRef] [Scilit]
- Datta, J.; Das, D. Risk-constrained Energy Management of multi-energy multi-microgrids system with integrated demand response using hybrid risk assessment approach. Energy 2025, 331, 136638. [Google Scholar] [CrossRef] [Scilit]
- Pinson, P.; Papaefthymiou, G.; Klöckl, B.; Nielsen, H.A.; Madsen, H. From probabilistic forecasts to statistical scenarios of short-term wind power production. Wind Energy 2009, 12, 51–62. [Google Scholar] [CrossRef] [Scilit]
- Feng, Y.; Rios, I.; Ryan, S.M.; Spürkel, K.; Watson, J.-P.; Wets, R.J.-B.; Woodruff, D.L. Toward scalable stochastic unit commitment, part 1: Load scenario generation. Energy Syst. 2015, 6, 309–329. [Google Scholar] [CrossRef] [Scilit][Green Version]
- Hodge, B.-M.; Holttinen, H.; Sillanpáxax, S.; Gömez-Lxaxzaro, E.; Scharff, R.; Sxoxder, L.; Larsén, X.G.; Giebel, G.; Flynn, D.; Lew, D.; et al. Wind power forecasting error distributions: An international comparison. In Proceedings of the the 11th International Workshop on Large-Scale Integration of Wind Power into Power Systems as well as on Transmission Networks for Offshore Wind Power Plants, Lisbon, Portugal, 13–15 November 2012. [Google Scholar]
- Haessig, P.; Multon, B.; Ahmed, H.B.; Lascaud, S.; Bondon, P. Energy storage sizing for wind power: Impact of the autocorrelation of day-ahead forecast errors. Wind Energy 2015, 18, 43–57. [Google Scholar] [CrossRef] [Scilit]
- Joshi, M.; Palchak, D.; Rehman, S.; Soonee, S.K.; Saxena, S.C.; Narasimhan, S.R. Ramping Up the Ramping Capability: India’s Power System Transition; Report; National Renewable Energy Laboratory: Golden, CO, USA, 2020; p. 14. [Google Scholar]
- Anisie, A.; Boshell, F. Flexibility in Conventional Power Plants: Innovation Landscape Brief; International Renewable Energy Agency Report; IRENA: Abu Dhabi, United Arab Emirates, 2019. [Google Scholar]
- Trinomics B.V. Final Report: Cost of Energy (LCOE) for Energy Technologies in the EU; European Commission, DG ENER: Brussels, Belgium, 2020. [Google Scholar]
- Schröder, A.; Kunz, F.; Meiss, J.; Mendelevitch, R.; Von Hirschhausen, C. Current and Prospective Costs of Electricity Generation Until 2050 (No. 68); DIW Data Documentation: Berlin, Germany, 2013. [Google Scholar]
- International Renewable Energy Agency (IRENA). Renewable Power Generation Costs in 2022; International Renewable Energy Agency: Abu Dhabi, United Arab Emirates, 2023. [Google Scholar]
- National Renewable Energy Laboratory (NREL). 2023 Annual Technology Baseline (ATB) Cost and Performance Data for Electricity Generation Technologies; DOE Open Energy Data Initiative (OEDI); National Renewable Energy Laboratory (NREL): Golden, CO, USA, 2023.
- Pudjianto, D.; Ramsay, C.; Strbac, G. Virtual power plant and system integration of distributed energy resources. IET Renew. Power Gener. 2007, 1, 10–16. [Google Scholar] [CrossRef] [Scilit]
- Macedonian National Electricity Market Operator MEMO, Official Website. Available online: https://dam.memo.mk (accessed on 2 November 2025).
- Macedonian Transmission System Operator—MEPSO, Official Website. Available online: https://www.mepso.com.mk (accessed on 2 November 2025).
- Energy and Water Services Regulatory Commission of the Republic of North Macedonia, Official Website. Available online: https://www.erc.org.mk (accessed on 2 November 2025).
- Heitsch, H.; Römisch, W. Scenario reduction algorithms in stochastic programming. Comput. Optim. Appl. 2003, 24, 187–206. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.







