Next Article in Journal
Energy and Water Management in Smart Buildings Using Spiking Neural Networks: A Low-Power, Event-Driven Approach for Adaptive Control and Anomaly Detection
Previous Article in Journal
Analysis of Photovoltaic Cable Degradation and Fire Precursor Signals for Optimizing Integrated Power Grids
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Method for Energy Storage Capacity Configuration in the Power Grid Along Mountainous Railway Based on Chance-Constrained Optimization

1
State Grid Sichuan Electric Power Company, Chendu 610041, China
2
School of Electrical Engineering, Southwest Jiaotong University, Chendu 610032, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(19), 5088; https://doi.org/10.3390/en18195088
Submission received: 18 August 2025 / Revised: 16 September 2025 / Accepted: 23 September 2025 / Published: 24 September 2025

Abstract

To address the challenges of weak power-grid infrastructure, insufficient power supply capacity along mountainous railways, and severe three-phase imbalance caused by imbalanced traction loads at the point of common coupling (PCC), this paper proposes an energy storage configuration method for mountainous railway power grids considering renewable energy integration. First, a distributionally robust chance-constrained energy storage system configuration model is established, with the capacity and rated power of the energy storage system as decision variables, and the investment costs, operational costs, and grid operation costs as the objective function. Subsequently, by linearizing the three-phase AC power flow equations and transforming the model into a directly solvable linear form using conditional value-at-risk (CVaR) theory, the original configuration problem is converted into a mixed-integer linear programming (MILP) formulation. Finally, simulations based on an actual high-altitude mountainous railway power grid validate the economic efficiency and effectiveness of the proposed model. Results demonstrate that energy storage deployment reduces overall system voltage deviation by 40.7% and improves three-phase voltage magnitude imbalance by 16%.

1. Introduction

In recent years, with the ongoing advancement of mountainous railway projects, higher demands have been placed on the power supply capacity of railway corridor grids. On the one hand, the inherently weak structure of mountainous power networks makes them prone to insufficient power supply capacity under traction load integration. On the other hand, unevenly distributed loads along railway corridors, coupled with significant fluctuations in traction loads, lead to substantial voltage deviations and three-phase imbalances during power system operations. These issues not only directly compromise train operational safety but also present challenges to power supply system stability [1,2,3,4].
Energy storage systems have become an effective means to address insufficient power supply capacity in power systems due to their advantages in energy time-shifting, voltage support, and load balancing [5,6]. In recent years, academia has studied energy storage system capacity allocation from various perspectives. Reference [7] proposed a bi-level optimization method for composite energy storage capacity configuration to increase renewable energy penetration in regional power systems. Reference [8] established an optimal capacity configuration model incorporating pumped hydro and battery storage, considering operational characteristics, minimizing costs and carbon emissions using the Non-dominated Sorting Genetic Algorithm [9]. Ammonia-based energy storage systems are increasingly adopted as storage media owing to high energy density, explosion resistance, and low cost [10,11]. Reference [12] developed a hydrogen–ammonia hybrid storage optimization model for microgrids with high renewable penetration, minimizing operational costs while maximizing wind power utilization. These studies employ deterministic approaches assuming known renewable generation to obtain optimal configurations. However, mountainous railway power grids exhibit severe load fluctuations and renewable uncertainties, which limit the applicability of traditional deterministic optimization methods and make it difficult to address uncertainty risks in actual operation.
Building upon this foundation, to enhance the adaptability of configuration methods under uncertain scenarios, existing research has incorporated uncertainty modeling approaches into energy storage configuration. Reference [13] used a stochastic optimization method to optimize a hybrid energy scheduling model that integrates multiple energy storage systems, which can effectively reduce economic costs and carbon emissions. Reference [14] proposed a bi-level robust optimization (RO) method to address shared energy storage allocation considering wind farm cluster leasing in electricity markets, based on RO’s capability to handle source-load uncertainties [15]. While robust optimization constructs uncertainty boundaries and optimizes for worst-case performance to ensure system conservativeness, it may lead to resource overallocation [16,17]. In recent years, distributionally robust optimization (DRO) has been widely applied to power system uncertainty management [18,19]. This method establishes probability distribution ambiguity sets from historical data to quantify uncertainties. Reference [20] adopted DRO to model wind–solar output uncertainty, co-optimizing transmission corridors with energy storage, while Reference [21] developed a DRO-based reactive power optimization model for multi-region offshore wind farms while preserving privacy. However, these studies simplified their analysis using single-phase grid models, neglecting load asymmetry and the probabilistic satisfaction of uncertain constraints. In contrast, the distributionally robust chance-constrained (DRCC) optimization method relaxes constraints within acceptable risk levels [22], achieving economic and flexible resource allocation while controlling risk, and has been extensively applied in distribution networks and microgrid storage planning. Reference [23] investigated a chance-constrained energy storage configuration model considering time-of-use pricing and PV uncertainty under multi-station integration scenarios, validating its effectiveness and economy. Nevertheless, most existing research focuses on balanced-load distribution networks or islanded microgrids using single-phase models, overlooking the complexity introduced by high-power imbalanced traction loads in mountainous railway grids [24,25]. Therefore, there is an urgent need for tailored modeling methods and optimization strategies for railway-integrated power systems.
In summary, existing energy storage configuration models are primarily based on a single-phase grid model and mainly accommodate three-phase symmetric loads, making them ineffective in handling scenarios involving three-phase imbalanced traction loads. By simplifying the grid to a single-phase equivalent model, these approaches fail to account for the three-phase voltage characteristics of nodes. Although they consider the uncertainty of renewable energy generation, the utilization rate of uncertain renewable energy output is not incorporated into the optimization objectives. The main contributions of this work are as follows:
(1)
This paper adopts a three-phase linear power flow model to develop a linearized calculation method for node voltages, integrating three-phase voltage deviation and imbalance into the optimization objectives.
(2)
Chance constraints are introduced to characterize the randomness of renewable energy generation, and the utilization rate of uncertain renewable energy output is included in the optimization framework. The model is transformed into a solvable mixed-integer linear programming (MILP) formulation based on conditional value-at-risk (CVaR) theory.
(3)
A novel energy storage configuration method is proposed, which optimizes both three-phase imbalance mitigation and renewable energy utilization. The effectiveness of the proposed method is demonstrated through simulations on a case study of a power grid along a railway in the mountainous region of Southwest China.

2. Energy Storage System Configuration Model for Mountainous Railway Power Grids

When high-power imbalanced traction loads are connected to the grid’s point of common coupling (PCC), significant three-phase voltage imbalance and deviation occur due to unequal load distribution across phases. To mitigate these impacts, this paper introduces an energy storage system at the PCC node, suppressing voltage imbalance through coordinated dispatch of three-phase charging/discharging power. Additionally, considering the limited power supply capacity of mountainous power grids, renewable energy sources such as wind and photovoltaic systems are widely integrated along railway corridors. Proper utilization of renewables not only enhances system power supply capability but also reduces operational costs. However, the inherent uncertainty in renewable generation makes it difficult to strictly satisfy operational constraints. Therefore, this paper establishes a chance-constrained energy storage capacity configuration model that comprehensively considers initial investment costs and long-term operational expenses to achieve economic objectives.

2.1. Objective Function

The capacity configuration of energy storage systems for mountainous railway power grids primarily considers investment costs and operational costs, as shown in Equation (1):
min C TDC = C INV + C OP
where CTDC denotes the objective function for energy storage system configuration, which consists of two components: the daily investment cost (CINV) and the daily operational cost (COP).
The investment cost CINV of the energy storage system comprises two components: initial construction cost and long-term maintenance cost, calculated by Equation (2):
C INV = i E [ ξ ( Y ESS ) + m ESS ] ( c ESS p P ESS , i norm + c ESS e E ESS , i norm ) / 365 ξ ( Y ESS ) = r [ 1 ( 1 + r ) Y ESS ] 1
where E is the set of energy storage systems, YESS is the service lifespan (in years) of energy storage systems, mESS is the maintenance cost coefficient of energy storage systems, c E S S p c E S S e is the unit cost of the internal power conversion subsystem in energy storage systems, c is to the unit cost of energy storage units, r stands for the discount rate for investments, P ESS , i norm and E ESS , i norm are the required capacity (in MW) and rated power (in MW) to be constructed for energy storage system i, respectively.
The operational costs of mountainous power grids are shown in Equation (3), primarily comprising power generation costs (Cgen), energy storage operation costs (Cess), renewable energy utilization penalty costs (Cnew), PCC node voltage imbalance penalty costs (Cunb), and voltage deviation penalty costs (Cdev).
C op = C gen + C ess + C new + C unb + C dev
The power generation cost Cgen and energy storage operation cost Cess are calculated by Equation (4):
C gen = t T i G c gen , i p i , t gen Δ t C ess = t T i E ( c ch , i p ch , i t + c dis , i p dis , i t ) Δ t
where T is the set of operation periods; G is the set of thermal power units; Δt is the dispatch time interval; cgen,i is the generation cost coefficient for thermal unit i; p i , t gen stands for the active power output of thermal unit i during period t; cch,i and cdis,i are the charging/discharging cost coefficients of energy storage system i, respectively; the specific values are from the Reference [26]. According to the study in [27], the impact of charging and discharging operations on the lifespan of the energy storage system is neglected, as the ratio of charging/discharging power to capacity in this paper is less than 1. p ch , i t and p dis , i t are the charging/discharging active power of energy storage system i during period t, respectively.
To enhance the renewable energy accommodation capacity of mountainous railway power grids, the optimization objective incorporates multiple renewable energy utilization factors as shown in Equation (5):
C new = c new m S new ( 1 α m )
where cnew is the penalty coefficient for insufficient renewable energy utilization, Snew is the set of renewable energy power stations, and αm indicates the generation utilization rate of the m-th renewable energy station. This paper constructs a three-phase voltage imbalance objective function by taking the maximum value of the voltage magnitude difference between any two phases, as shown in Equation (6):
C unb = t T i C c unb U i , unb s . t . U i a U i b U i , unb U i a U i c U i , unb U i b U i c U i , unb
where cunb is the three-phase imbalance penalty coefficient; Ui,unb is the three-phase imbalance degree at node i; and Uia, Uib, and Uic are the voltage magnitudes of phases a, b, and c, respectively. C is the set of PCC nodes.
The objective function for three-phase voltage deviation is constructed using Equation (7):
C dev = t T i C c dev p = a , b , c U i p 1
where cdev is the penalty coefficient for three-phase voltage deviation.
To calculate the voltage imbalance degree and voltage deviation at PCC nodes, it is necessary to perform power flow calculations for mountainous railway power grids. Taking phase a as an example, the original three-phase power flow equations are shown in Equation (8):
P i a = U i a j N m { a , b , c } ( G i j a m cos θ i a j m + B i j a m sin θ i a j m ) U j m Q i a = U i a j N m { a , b , c } ( G i j a m sin θ i a j m B i j a m cos θ i a j m ) U j m
where Pia and Qia are the active and reactive power injections at phase a of node i, respectively, Uia is the voltage magnitude at phase a of node i, N is the set of all grid nodes, Gijam and Bijam are the real and imaginary parts of the three-phase admittance matrix between phase a of node i and phase m of node j, θijam represents the phase angle difference between phase a of node i and phase m of node j, calculated as θijam = θiaθjm. Since Equation (8) constitutes a set of non-convex nonlinear equations, conventional computation employs the Newton–Raphson method for iterative solving, while this paper applies linearization processing. Through the variable substitution shown in Equation (9):
G i j ab , Γ = 1 2 G i j ab + 3 2 B i j ab , B i j ab , Γ = 3 2 G i j ab 1 2 B i j ab G i j ac , Γ = 1 2 G i j ac 3 2 B i j ac , B i j ac , Γ = 3 2 G i j ac 1 2 B i j ac
The power flow equation for active power Pia can be transformed into the form shown in Equation (10):
P i a U i a j N [ ( G i j aa cos θ i a j a + B i j aa sin θ i a j a ) U j a + ( G i j ab , T cos θ i b j b + B i j ab , T sin θ i b j b ) U j b + ( G i j ac , T cos θ i c j c + B i j ac , T sin θ i c j c ) U j c
Based on the linearized formulation gijUj(UiUjcosθij) ≈ gij(UiUj) derived from single-phase power flow calculation, the linearized power flow equation for active power Pia can be obtained as shown in Equation (11):
P i a g i i aa U i a + j N , j i g i j aa ( U i a U j a ) j N , j i b i j aa ( θ i a θ j a ) + g i i ab , Γ U i b + j N , j i g i j ab , Γ ( U i b U j b ) j N , j i b i j ab , Γ ( θ i b θ j b ) + g i i ac , Γ U i c + j N , j i g i j ac , Γ ( U i c U j c ) j N , j i b i j ac , Γ ( θ i c θ j c )
The linearized power flow equation for reactive power Qia can be similarly derived, which will not be elaborated here. According to the research results of references [28,29], for most scenarios in real power systems, the absolute value of phase angle differences across lines is mostly within 10°. In the power grid studied in this paper, the error calculated between the linearization method used and the Newton–Raphson method is within 1%. The linearized power flow equations can be directly embedded into the optimization model for node voltage calculations.

2.2. Constraint Conditions

Due to equipment installation environments and technical limitations, the planned capacity and rated power of energy storage systems should be constrained within reasonable ranges. Equation (12) presents the constraints for energy storage system capacity and power ratings:
E ess , i l E ess , i norm E ess , i u , i E c l E ess , i norm P ess , i norm c u E ess , i norm , i E
where E ess , i l and E ess , i u are the lower and upper capacity limits for energy storage system i, respectively; cl and cu are the lower and upper ratios of rated power to capacity for energy storage systems, respectively.
s g , i t P g , i min p g , i t P g , i t , max 0 P g , i t , max P g , i max s g , i t P g , i t , max p g , i t Δ t + R g , i up s g , i t 1 + S g , i up ( s g , i t s g , i t Δ t ) + P g , i max ( 1 s g , i t ) P g , i t , max P g , i max s g , i t + Δ t + S g , i down ( s g , i t s g , i t + Δ t ) p g , i t Δ t p g , i t R g , i down s g , i t + S g , i down ( s g , i t Δ t s g , i t ) + P g , i max ( 1 s g , i t Δ t )
where s g , i t is the operating state of generator i during period t (0—shut down, 1—start up); P g , i min and P g , i max are the minimum and maximum active power output of generator i, respectively; R g , i down and R g , i up are the downward and upward ramp rates of generator i; S g , i down and S g , i up are the maximum allowable power change for shutdown and startup of generator i.
The operational constraints of the energy storage system are shown in Equation (14):
s ch , i t + s dis , i t 1 E ess , i min E ess , i t E ess , i max E ess , i t = E ess , i t Δ t + η ch , i p ch , i t 1 η dis , i p dis , i t E ess , i Δ t = E ess , i 0 + η ch , i p ch , i Δ t 1 η dis , i p dis , i Δ t 0 η ch , i p ch , i t s ch , i t P ess , i norm 0 p dis , i t η dis , i s dis , i t P ess , i norm E ess , i 0 = E ess , i T Δ t + η ch , i p ch , i T 1 η dis , i p dis , i T
where s ch , i t and s dis , i t are the charging and discharging states of energy storage system i during period t, respectively; E ess , i min and E ess , i max are the minimum and maximum safe capacity limits of the i-th energy storage system, respectively; ηch,i and ηdis,i are the charging and discharging efficiency coefficients of energy storage system i, respectively; p ch , i t and p dis , i t are the charging/discharging power of energy storage system i during period t, respectively; E ess , i t is the remaining capacity of energy storage system i at period t.
At time t, the power balance constraint during system operation is given by Equation (15):
i G p g , i t + i E ( p dis , i t p ch , i t ) + m S new p m t = p Load t
where p Load t is the active power load of the system during time period t.
To increase the utilization rate of wind–solar renewable energy generation along railway corridors, in addition to flexible dispatch based on their output, it is also necessary to ensure that the daily generation utilization rates of multiple renewable energy stations exceed a predefined threshold, as specified in Equation (16):
t T p m t α m t T p ˜ m t , m S new
where p m t and p ˜ m t are the dispatched power and actual generation power of the m-th renewable energy station during period t, respectively; αm is the generation utilization threshold for the m-th renewable energy station.
Furthermore, the dispatched output of renewable energy must not exceed its actual generation output at any time period, as constrained by Equation (17):
p m t p ˜ m t , m S new

3. DRCC-Based Energy Storage System Configuration Model Transformation

In the previously described deterministic optimization model, the renewable energy output constraints (as shown in Equations (16) and (17)) treat predicted renewable generation as precise values while ignoring their inherent uncertainty. In reality, renewable power stations along mountainous railway lines exhibit significant output uncertainty. Employing deterministic methods to solve renewable-integrated configuration models would lead to deviations between configuration/operation results and actual conditions. For optimization models incorporating uncertainty, robust optimization and stochastic optimization are commonly used solution approaches. Stochastic optimization requires probability distributions of random variables, which are often difficult to obtain accurately in practice [30]. Robust optimization transforms the model into a solvable form by constructing fluctuation intervals for random variables, but tends to yield overly conservative results. To address these limitations, this paper develops a data-driven distributionally robust chance-constrained (DRCC) model for energy storage configuration in mountainous railway power grids. The proposed method has the following features:
  • Leverages historical renewable generation data without requiring exact probability distributions or fluctuation ranges;
  • Incorporates adjustable confidence parameters to control solution conservativeness;
  • Enhances configuration/operation flexibility through data-driven uncertainty characterization

3.1. Chance-Constrained Modeling for Uncertain Renewable Energy

The renewable energy utilization rate is defined as the ratio of consumed renewable generation to available generation capacity. For computational convenience, it is formulated in discrete form as shown in Equation (18):
α m = t T p m t t T p ˜ m t , m S new
To enhance renewable energy utilization efficiency, the conventional approach involves setting a lower-bound threshold for the renewable energy utilization rate in the model. However, this threshold is often difficult to determine reasonably, and under renewable generation uncertainty, a fixed threshold may render the model infeasible in certain scenarios. To address this, this paper incorporates the renewable energy utilization rate into the objective function for optimization, while formulating the chance constraint shown in Equation (19). This ensures that, under uncertain conditions, the renewable energy utilization rate achieves the desired level with a confidence probability of at least 1 − ε.
Pr t T p m t α m t T p ˜ m t 1 ε , m S new
Furthermore, to ensure that the scheduled renewable power does not exceed its actual generation capacity under output uncertainty, this condition must hold with a confidence level of at least 1 − ε. Accordingly, this paper establishes the chance-constrained condition for renewable energy output as formulated in Equation (20).
P r p m t P ˜ m t 1 ε , m S new

3.2. Wasserstein Distance-Based Distributionally Robust Chance-Constrained (DRCC) Model

Based on N historical sample data vectors ξ ^ , we can derive their empirical distribution P ^ = i = 1 N δ ξ ^ i , where δ is the Dirac distribution. However, in practice, there is often a certain discrepancy between the true distribution P of the random vector ξ and the empirical distribution P ^ . Therefore, it is necessary to construct an ambiguity set of the random variables based on the empirical distribution. Currently, there are two main approaches for constructing ambiguity sets of probability distributions: moment-based methods and probability distance-based methods. Moment-based methods utilize only low-order moment information (e.g., restricting the fluctuation ranges of mean and variance) but fail to effectively capture the distributional characteristics of historical data. Probability distance-based methods, in contrast, can fully exploit historical data information. The Wasserstein distance is a widely used metric for measuring the discrepancy between two distributions.
Let the probability density of the empirical distribution P ^ be denoted as p ^ , and that of the true distribution P as p. Accordingly, we construct an ambiguity set M for the random variable’s probability distribution using the Wasserstein distance as defined in Equation (21).
M = { P : d w ( P , P ^ ) θ } d w ( P , P ^ ) = inf Ξ 2 ξ   ξ ^ Π ( d ξ , d   ξ ^ ) = inf Ξ 2 ξ   ξ ^ π ( ξ ,   ξ ^ ) d ξ d   ξ ^
where Ξ is the support set of the random variable, typically defined as the range of historical data across all dimensions; Π is the joint distribution function of the random variables ξ and ξ ^ ; with marginal distributions corresponding to P (true distribution) and P ^ (empirical distribution), respectively; π is the probability density function of Π; θ is the radius of the ambiguity set based on the Wasserstein distance. The ambiguity set M contains all probability distributions P whose Wasserstein distance from the empirical distribution P ^ is less than θ, dw(P, P ^ ) computes the Wasserstein distance between any distribution P and the empirical distribution P ^ . θ can control the conservativeness of the model; a larger θ implies greater uncertainty and a more conservative solution. The value of θ can be adjusted flexibly during model optimization to balance robustness and performance. The term ||*|| denotes the vector norm. For computational tractability, this paper adopts the 1-norm (L1 norm) in subsequent calculations.
Reference [31] first established the ambiguity set of chance constraints over the Wasserstein distance, and it then proposed a Wasserstein distance-based distributionally robust optimization model with chance constraints. Based on the above analysis, the chance constraints (19) and (20) can be reformulated as Equations (22) and (23) below.
inf P M P r t T p m t α m t T p ˜ m t 1 ε , m S new
inf P M P r p m t p ˜ m t 1 ε , m S new

3.3. Chance-Constrained Model Reformulation

An optimization model containing probabilistic expressions in the form of Equation (22) is said to incorporate chance constraints. Since chance-constrained models cannot be solved directly, these probabilistic constraints must first be converted into deterministic linear constraints. To facilitate the derivation, we first perform the following transformation:
ξ m = t T p ˜ m t b m = t T p m t
where ξm and bm are newly introduced variables used to represent the summation expressions concerning P and P ^ . Let ξ m j denote the j-th historical sample data point of the uncertain variable ξm. Then, Equation (22) can be transformed into the following form:
inf P M P r { α m ξ m b m } 1 ε
According to the findings in Reference [32], the conditional value at risk (CVaR) theory can be employed to approximate the feasible region characterized by chance constraints. The constrained domain described by constraint condition (25) can be equivalently represented as the set shown in Equation (26).
Z CVaR = p m T : sup P M inf β ε β + E P max ( α m ξ m b m ) + β + 0
where the set ZCVaR is a convex approximation of the feasible region defined by the chance constraint (25), pm is the power output vector of renewable energy station m across all time periods, and β is a newly introduced real-valued slack variable. The notation (*)₊ denotes the positive part operation on the enclosed expression, which takes the original value when the expression is positive and zero otherwise. EP[*] represents the expectation operation over the expression containing uncertain variables, where the distribution of these variables follows P. |T| indicates the cardinality of the operation time set T. According to Reference [33], the convex approximation shown in Equation (26) can be further transformed into a set of linear constraints as presented in Equation (27).
θ v ε γ 1 N sample j = 1 N z j z j + γ b m α m ξ m j , j [ N sample ] α m * v z j 0 , j [ N sample ] 0 v , 0 γ
where v and γ are intermediate dual variables generated during the transformation, z is an introduced slack variable, Nsample is the number of samples, with [Nsample] representing the index set {1, 2, …, Nsample}, and ξ m j is the j-th historical sample data point of the uncertain variable ξm. Similarly, the chance constraint in Equation (23) can be converted into a set of linear constraints using this method, which will not be elaborated further.
At this stage, within the ambiguity set of random variable distributions constructed via the Wasserstein distance, the non-convex and nonlinear chance constraints in the model have been transformed into a set of tractable linear constraints through the CVaR approximation method. Consequently, the original optimization problem is reformulated as a mixed-integer linear programming (MILP) problem, which can be directly solved using mathematical programming solvers.

4. Case Study

4.1. Case Study Description

This paper establishes a chance-constrained optimization model considering three-phase imbalance, based on a power grid along a railway in Southwest China. As shown in Figure 1, the grid system consists of 95 nodes, including 6 PCC nodes connecting traction substations along the railway. Since Node 44 has fewer connected traction substations, PCC Nodes 45, 46, 47, 48, and 76 are selected as energy storage allocation nodes. For renewable energy integration, Nodes 36 and 38 are each connected to 200 MW photovoltaic farms, while Node 37 is connected to a 1200 MW wind farm.

4.2. Case Data

The power generation curves for renewable energy sources and conventional loads (excluding traction loads) are shown in Figure 2. To account for the uncertainty in wind and solar farm output, we selected 365 days of historical generation data as the basis for constructing the uncertainty set of renewable energy output distributions. Given that the mountainous railway under study primarily operates trains during daytime hours, data from 8:00 to 20:00 were extracted for analysis. The load data represents the expected values for each time period across a typical day, with a scheduling time interval Δt of 15 min. The relevant parameters of the energy storage system are shown in Table 1 below.

4.3. Analysis of Simulation Results

This paper establishes a mixed-integer linear programming (MILP) model for energy storage configuration by linearizing the three-phase AC power flow equations and transforming the non-convex nonlinear chance constraints using the CVaR method. The model is implemented in MATLAB R2024b with YALMIP and solved using Gurobi 12.1.
Under the system constraints and power balance conditions, the energy storage configuration results at a 90% confidence level (1 − ε) are obtained, as shown in Figure 3. The model was solved in 18.85 s. The results indicate that no energy storage system is required at Node 45 (planned capacity = 0). This is because, according to the system configuration illustrated in Figure 1, PCC Nodes 44 and 45 are surrounded by numerous conventional generation units with strong output regulation capability. These existing units are already sufficient to maintain regional voltage stability without relying on additional energy storage devices for voltage support.
By deploying energy storage systems at Nodes 46, 47, 48, and 76, the three-phase voltage magnitudes at these four PCC nodes during the scheduling period are shown in Figure 4, while the voltage quality optimization results are presented in Figure 5. After optimization, the cumulative system voltage deviation decreases from the original 10.4527 p.u. to 6.1983 p.u., representing a 40.7% overall reduction. Additionally, the cumulative three-phase voltage imbalance is reduced from 6.31 p.u. to 5.30 p.u., achieving a 16% improvement. These results demonstrate that the proposed energy storage configuration effectively mitigates voltage fluctuations and three-phase imbalances caused by traction loads.
This paper establishes an energy storage configuration model based on the distributionally robust chance-constrained (DRCC) method, aiming to fully exploit the uncertainty of renewable energy output and enhance its utilization rate. Compared with the deterministic approach using the predicted renewable energy output values (as shown in Table 2), since the predicted values used the expected historical values, the confidence parameter (1 − ε) of the DRCC model was set to 0.5. It can be observed that the DRCC-based optimization model effectively improves the utilization of renewable energy. The utilization rates at nodes 36, 37, and 38 increase by 16.87%, 16.62%, and 13.10%, respectively, while the configuration cost of the energy storage system is reduced by 19.33%. This is because the deterministic model only utilizes predicted renewable energy output values, ignoring the possibility of actual output exceeding predictions, leading to conservative results. In contrast, the DRCC-based model allows decision-makers to flexibly adjust uncertainty parameters based on historical data, enabling more rational decision-making.
This paper comprehensively considers the uncertainty of wind and solar power generation in the configuration model by employing chance-constrained programming to formulate renewable energy output constraints, where ε represents the failure probability and (1 − ε) denotes the confidence level. Through multiple simulation experiments, we analyzed the impact of the confidence parameter on model outcomes. As shown in Figure 6, the total optimization cost exhibits an increasing trend with higher confidence levels—as the failure probability of renewable energy constraints decreases, the system adopts more conservative wind–solar power dispatch strategies to ensure operational security, consequently raising overall system costs. Figure 7 demonstrates the variation in utilization rates for the three renewable energy farms across different confidence levels. At lower confidence levels, all three renewable plants maintain utilization rates above 90%, while at higher confidence levels, their utilization must decrease to satisfy threshold constraints.

5. Conclusions

For the optimal configuration and operation of energy storage systems in mountainous railway power grids, this paper comprehensively considers the uncertainty of wind and solar power generation as well as the voltage deviation and imbalance issues caused by traction load integration. A novel energy storage configuration method is proposed for mountainous railway power grids incorporating renewable energy integration. The simulation results lead to the following conclusions:
  • Energy storage configuration can effectively mitigate voltage fluctuations and three-phase imbalance induced by traction loads. Simulation results demonstrate that compared to systems without energy storage, the implemented energy storage solution reduces overall voltage deviation by 40.7% and improves three-phase voltage imbalance by 16%.
  • As the confidence level increases, the system adopts more conservative scheduling strategies for renewable energy output to prevent power shortages. However, this approach reduces renewable energy utilization rates, leading to increased generation costs from conventional power units and higher wind–solar curtailment costs, ultimately resulting in elevated overall operational costs.

Author Contributions

Data curation, F.L., J.Z., J.L. and Y.L.; methodology, writing—original draft, Z.L. (Zhenzu Liu); validation, Q.Z.; Resources, Y.L.; writing—review & editing, Z.L. (Zhigang Liu). All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author (the data are not publicly available due to privacy).

Acknowledgments

This work was supported by the Science and Technology Project of State Grid Sichuan Electric Power Company (Research on joint planning method of hybrid asymmetrical system of “power grid and transportation network” in high altitude area adapted to new energy access) (ERP: 52199624000B).

Conflicts of Interest

Fang Liu, Jian Zeng, Jiawei Liu were employed by the company State Grid Sichuan Electric Power Company. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Zhang, Q.; Zhang, Y.; Huang, K.; Tasiu, I.A.; Lu, B.; Meng, X.; Liu, Z.; Sun, W. Modeling of regenerative braking energy for electric multiple units passing long downhill section. IEEE Trans. Transp. Electrif. 2022, 8, 3742–3758. [Google Scholar] [CrossRef]
  2. Rezaei, N.; Ahmadi, A.; Khazali, A.H.; Guerrero, J.M. Energy and frequency hierarchical management system using information gap decision theory for islanded microgrids. IEEE Trans. Ind. Electron. 2018, 65, 7921–7932. [Google Scholar] [CrossRef]
  3. Lu, B.; Song, Y.; Liu, Z.; Wang, X.; Zhang, Q.; Lu, Y. Evolution analysis of three-dimensional wheel polygonal wear for electric locomotives considering the effect of interharmonics. IEEE Trans. Veh. Technol. 2025, 74, 2443–2457. [Google Scholar] [CrossRef]
  4. Frilli, A.; Meli, E.; Nocciolini, D.; Pugi, L.; Rindi, A. Energetic optimization of regenerative braking for high speed railway systems. Energy Convers. Manage. 2016, 129, 200–215. [Google Scholar] [CrossRef]
  5. Sun, J.; Su, C.; Song, J.; Yao, C.; Ren, Z.; Sui, Q. Capacity planning for large-scale wind-photovoltaic-pumped hydro storage energy bases based on ultra-high voltage direct current power transmission. Energy 2025, 320, 135224. [Google Scholar] [CrossRef]
  6. Zhang, X.; Campana, P.E.; Bi, X.; Egusquiza, M.; Xu, B.; Wang, C.; Guo, H.; Chen, D.; Egusquiza, E. Capacity configuration of a hydro-wind-solar-storage bundling system with transmission constraints of the receiving-end power grid and its techno-economic evaluation. Energy Convers. Manag. 2022, 270, 116177. [Google Scholar] [CrossRef]
  7. Pan, T.; Wang, L.; Ding, H.; Zeng, M.; Zhang, X.; Su, Y.; Zhou, X. Capacity optimization of hybrid energy storage power generation system in regional power system. Acta Energiae Solaris Sin. 2024, 45, 752–763. [Google Scholar]
  8. Guezgouz, M.; Jurasz, J.; Bekkouche, B.; Ma, T.; Javed, M.S.; Kies, A. Optimal hybrid pumped hydro-battery storage scheme for off-grid renewable energy systems. Energy Convers. Manag. 2019, 199, 112046. [Google Scholar] [CrossRef]
  9. Deb, K.; Pratap, A.; Agarwal, S.; Meyarivan, T.A.M.T. A fast and elitist multi objective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput. 2002, 6, 182–197. [Google Scholar] [CrossRef]
  10. Xu, D.; Zhou, B.; Wu, Q.; Chung, C.Y.; Li, C.; Huang, S.; Chen, S. Integrated modelling and enhanced utilization of power-to-ammonia for high renewable pene-trated multi-energy systems. IEEE Trans. Power Syst. 2020, 35, 4769–4780. [Google Scholar] [CrossRef]
  11. Wang, B.; Ni, M.; Jiao, K. Green ammonia as a fuel. Sci. Bull. 2022, 67, 1530–1534. [Google Scholar] [CrossRef]
  12. Zeng, Z.; Zheng, J.; Wei, X. Research on capacity optimization configuration of hydrogen-ammonia hybrid storage sys-tem in microgrid. Guangdong Electr. Power 2024, 37, 42–49. [Google Scholar]
  13. Fan, J.; Yan, R.; He, Y.; Zhang, J.; Zhao, W.; Liu, M.; An, S.; Ma, Q. Stochastic optimization of combined energy and computation task scheduling strategies of hybrid system with multi-energy storage system and data center. Renew. Energy 2025, 242, 122466. [Google Scholar] [CrossRef]
  14. Ma, N.; Liu, G.; Wu, J.; Lei, Z.; Wang, Y.; Xin, L. A double-layer robust optimization model for energy storage capacity allocation in the leasing market. Power Syst. Technol. 2025, 49, 653–665. [Google Scholar]
  15. Zhang, X.; Wang, Z.; Liao, H.; Zhou, Z.; Ma, X.; Yin, X.; Wang, Z.; Liu, Y.; Lu, Z.; Lv, G. Optimal capacity planning and operation of shared energy storage system for large-scale photovoltaic integrated 5G base stations. Int. J. Electr. Power Energy Syst. 2023, 147, 108816. [Google Scholar] [CrossRef]
  16. Wei, W.; Liu, F.; Mei, S.; Hou, Y. Robust energy and reserve dispatch under variable renewable generation. IEEE Trans. Smart Grid 2015, 6, 369–380. [Google Scholar] [CrossRef]
  17. Liu, F.; Bie, Z.; Wang, X. Day-ahead dispatch of integrated electricity and natural gas system considering reserve scheduling and renewable uncertainties. IEEE Trans. Sustain. Energy 2019, 10, 646–658. [Google Scholar] [CrossRef]
  18. Cao, Y.; Wei, W.; Chen, L.; Wu, Q.; Mei, S. Supply inadequacy risk evaluation of stand-alone renewable powered heat-electricity energy systems: A data-driven robust approach. IEEE Trans. Ind. Inform. 2021, 17, 1937–1947. [Google Scholar] [CrossRef]
  19. Zhang, C.; Li, Y.-F.; Zhang, H.; Wang, Y.; Huang, Y.; Xu, J. Distributionally robust resilience optimization of post-disaster power system considering multiple uncertainties. Reliab. Eng. Syst. Saf. 2024, 251, 110367. [Google Scholar] [CrossRef]
  20. Li, S.; Liu, Z.; Zeng, Q. Distributionally robust optimization collaborative planning method for transmission network external channel and energy storage with high proportion of renewable energy. Guangdong Electr. Power 2024, 37, 49–59. [Google Scholar]
  21. Liu, Y.; Zhu, Q.; Miao, L.; Deng, W.; Fan, W.; Xiao, H. Distributed robust reactive power optimization of power systems with offshore wind farms based on synchronous ADMM. Guangdong Electr. Power 2024, 37, 21–31. [Google Scholar]
  22. Huang, W.; Qian, T.; Tang, W.; Wu, J. A distributionally robust chance constrained optimization approach for securi-ty-constrained optimal power flow problems considering dependent uncertainty of wind power. Appl. Energy 2025, 383, 125264. [Google Scholar] [CrossRef]
  23. Zhang, M.; Lu, X.; Zhou, H.; Li, X.; Tao, Y.; Hu, A. Multi-station integrated energy storage configuration and optimal operation strategy based on chance constraint. Guangdong Electr. Power 2022, 35, 66–73. [Google Scholar]
  24. Chen, Y.; Chen, M.; Liang, Z.; Liu, L. Dynamic voltage unbalance constrained economic dispatch for electrified railways inte-grated energy storage. IEEE Trans. Ind. Inform. 2022, 18, 8225–8235. [Google Scholar] [CrossRef]
  25. Hu, H.; Liao, H.; Huang, Y.; Ge, Y.; Wang, K.; Chen, G.; Guo, X. A Three-Stage Optimization Strategy for Techno-Economic Operation of Railway Flexible Traction Substation. IEEE Trans. Smart Grid 2025, 16, 519–528. [Google Scholar] [CrossRef]
  26. Huang, Y.; Hu, H.; Ge, Y.; Liao, H.; Luo, J.; Gao, S.; He, Z. Joint sizing optimization method of PVs, hybrid energy storage systems, and power flow con-trollers for flexible traction substations in electric railways. IEEE Trans. Sustain. Energy 2024, 15, 1210–1223. [Google Scholar] [CrossRef]
  27. Wang, J.; Purewal, J.; Liu, P.; Hicks-Garner, J.; Soukazian, S.; Sherman, E.; Sorenson, A.; Vu, L.; Tataria, H.; Verbrugge, M.W. Degradation of lithium ion batteries employing graphite negatives and nickelecobalteman-ganese oxide þ spinel manganese oxide positives: Part 1, aging mechanisms and life estimation. J. Power Sources 2014, 269, 937–948. [Google Scholar] [CrossRef]
  28. Yang, J.; Zhang, N.; Kang, C.; Xia, Q. A state-independent linear power flow model with accurate estimation of voltage magni-tude. IEEE Trans. Power Syst. 2017, 32, 3607–3617. [Google Scholar] [CrossRef]
  29. Fatemi, S.M.; Abedi, S.; Gharehpetian, G.B.; Hosseinian, S.H.; Abedi, M. Introducing a novel dc power flow method with reactive power considerations. IEEE Trans. Power Syst. 2015, 30, 3012–3023. [Google Scholar] [CrossRef]
  30. Lian, X.; Qian, T.; Li, Z.; Chen, X.; Tang, W. Resilience assessment for power system based on cascading failure graph under disturbances caused by extreme weather events. Int. J. Electr. Power Energy Syst. 2023, 145, 108616. [Google Scholar] [CrossRef]
  31. Xie, W. On distributionally robust chance constrained programs with Wasserstein distance. Math. Program. 2021, 186, 115–155. [Google Scholar] [CrossRef]
  32. Nemirovski, A.; Shapiro, A. Convex approximations of chance constrained programs. SIAM J. Optim. 2006, 17, 969–996. [Google Scholar] [CrossRef]
  33. Hota, A.R.; Cherukuri, A.; Lygeros, J. Data-driven chance constrained optimization under Wasserstein ambiguity sets. In Proceedings of the 2019 American Control Conference (ACC), Philadelphia, PA, USA, 10–12 July 2019. [Google Scholar]
Figure 1. Grid structure of the case.
Figure 1. Grid structure of the case.
Energies 18 05088 g001
Figure 2. Renewable energy output and load curve.
Figure 2. Renewable energy output and load curve.
Energies 18 05088 g002
Figure 3. Energy storage system configuration results.
Figure 3. Energy storage system configuration results.
Energies 18 05088 g003
Figure 4. PCC voltage before optimization.
Figure 4. PCC voltage before optimization.
Energies 18 05088 g004
Figure 5. PCC voltage after optimization.
Figure 5. PCC voltage after optimization.
Energies 18 05088 g005
Figure 6. Influence of confidence on system cost.
Figure 6. Influence of confidence on system cost.
Energies 18 05088 g006
Figure 7. The influence of confidence on the optimal utilization rate of renewable energy.
Figure 7. The influence of confidence on the optimal utilization rate of renewable energy.
Energies 18 05088 g007
Table 1. Parameters of the energy storage system.
Table 1. Parameters of the energy storage system.
ParametersValueParametersValue
c E S S p (¥/MW)1.51 × 106cl0.2
c E S S e (¥/MWh)1.35 × 106cu0.6
r (year)10 E e s s l (MWh)0
cch/cdis (¥/MWh)50 E e s s u (MWh)250
Table 2. Comparison of results between DRCC model and deterministic model.
Table 2. Comparison of results between DRCC model and deterministic model.
ModelUtilization RatesCost/¥
Node 36Node 37Node 38
DRCC67.22%89.57%60.20%7.76 × 105
Deterministic50.35%72.95%47.10%9.62 × 105
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

Liu, F.; Zeng, J.; Liu, J.; Liu, Z.; Zhang, Q.; Lu, Y.; Liu, Z. A Method for Energy Storage Capacity Configuration in the Power Grid Along Mountainous Railway Based on Chance-Constrained Optimization. Energies 2025, 18, 5088. https://doi.org/10.3390/en18195088

AMA Style

Liu F, Zeng J, Liu J, Liu Z, Zhang Q, Lu Y, Liu Z. A Method for Energy Storage Capacity Configuration in the Power Grid Along Mountainous Railway Based on Chance-Constrained Optimization. Energies. 2025; 18(19):5088. https://doi.org/10.3390/en18195088

Chicago/Turabian Style

Liu, Fang, Jian Zeng, Jiawei Liu, Zhenzu Liu, Qiao Zhang, Yanming Lu, and Zhigang Liu. 2025. "A Method for Energy Storage Capacity Configuration in the Power Grid Along Mountainous Railway Based on Chance-Constrained Optimization" Energies 18, no. 19: 5088. https://doi.org/10.3390/en18195088

APA Style

Liu, F., Zeng, J., Liu, J., Liu, Z., Zhang, Q., Lu, Y., & Liu, Z. (2025). A Method for Energy Storage Capacity Configuration in the Power Grid Along Mountainous Railway Based on Chance-Constrained Optimization. Energies, 18(19), 5088. https://doi.org/10.3390/en18195088

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