Capacity Allocation and Operation Optimization of Distributed Energy Storage System

In recent years, the rapid expansion of renewable energy in China has intensified the phenomenon of wind and solar curtailment, which severely constrains the large-scale development and utilization of clean energy. To effectively reduce the curtailment rate and maximize the use of abundant natural resources, the deployment of energy storage technology has become critically important. Installing an energy storage system for renewable energy can smooth output fluctuations, significantly improve the level of renewable energy accommodation, and enable more economical power management. However, the trading mechanism of energy storage in the electricity market is still imperfect. A reasonable configuration of the power and capacity of an energy storage system is therefore a fundamental issue for its sustainable operation. In this context, this study investigates the capacity configuration and operation optimization of distributed energy storage systems from multiple perspectives.

1. Introduction

With the establishment of the carbon-peak and carbon-neutral goals, photovoltaic and wind power have developed rapidly. By the end of 2023, the newly installed solar capacity reached 216.88 GW, an increase of 148.12% compared with the previous year, while the newly installed wind capacity reached 75.9 GW, an increase of 101.7%. However, the inherent intermittency, randomness, and anti-peaking characteristics of wind and solar power have a serious impact on the safe and stable operation of distribution networks. Distributed energy storage, with flexible installation locations and diverse application scenarios, can effectively mitigate these problems. On the generation side, it participates in renewable energy grid integration, peak shaving, and frequency regulation. On the grid side, it can defer capacity upgrades and optimize power flow. On the user side, it can be used for peak-valley arbitrage and capacity charge management. Therefore, research on optimal siting and sizing of distributed energy storage is of great significance.

Many countries have implemented policies to promote the integration of renewable energy with storage. Table 1 presents the global electrochemical energy storage new installed capacity forecast from 2020 to 2025. The global market is growing rapidly, and China, the United States, and Europe together account for about 80% of the new installations. By 2025, the cumulative capacity of electrochemical storage is expected to exceed 290 GWh. A typical distributed energy storage system is shown below.

Table 1 Global electrochemical energy storage new installed capacity forecast
Year China (GWh) USA (GWh) Europe (GWh) World total (GWh)
2020 2.3 3.5 1.9 9.6
2021 4.9 10.6 3.5 23.8
2022 14.0 18.0 10.2 50.8
2023E 36.2 51.5 17.5 128.0
2024E 64.0 77.0 27.0 206.3
2025E 92.5 105.0 36.8 288.3

In China, many provinces have issued mandatory or guiding policies requiring renewable energy projects to be equipped with storage. For instance, Hunan requires new wind power projects to configure storage of 20% of installed capacity and new photovoltaic projects to configure storage of 10%. Shandong, Qinghai, and other provinces have also established demonstration projects. These policies accelerate the application of “renewable energy + energy storage” but also raise the question of how to determine the optimal storage ratio. Over-configuration may cause project losses and resource waste, while under-configuration cannot guarantee continuous and reliable power supply. Hence, a scientific method for capacity allocation and operation optimization is urgently needed.

2. Generation and Reduction of Wind-Solar Output Operation Scenarios

To address the diversified scenarios and computational complexity caused by the large-scale grid connection of high-penetration renewable energy, I propose a deterministic scenario generation and reduction method based on sampling-cluster fusion technology. This method combines probabilistic models of wind and photovoltaic output with historical power generation data to analyze the output characteristics. The Latin Hypercube Sampling (LHS) method is applied to expand the original sample set of wind-solar output curves, and then the Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm is used to quickly reduce a large number of operation scenarios into typical scenarios with distinct weather characteristics.

2.1 Photovoltaic Output Probability Model

The output power of a photovoltaic system is mainly influenced by solar irradiance, panel temperature, and humidity. The relationship between irradiance and output power is approximately linear until saturation. I adopt the Beta distribution to describe the probability density of solar irradiance \(E\):

$$
f(E)=\frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}\left(\frac{E}{E_{\max}}\right)^{\alpha-1}\left(1-\frac{E}{E_{\max}}\right)^{\beta-1}
$$

where \(E_{\max}\) is the maximum irradiance, \(\alpha\) and \(\beta\) are shape parameters, and \(\Gamma(\cdot)\) is the gamma function. The parameters are derived from the historical mean \(\mu\) and standard deviation \(\sigma\):

$$
\alpha=\mu\left[\frac{\mu(1-\mu)}{\sigma^2}-1\right],\quad \beta=(1-\mu)\left[\frac{\mu(1-\mu)}{\sigma^2}-1\right]
$$

The cumulative distribution function can be obtained by integration, and the simulated irradiance is \(E=E_{\max}F^{-1}(E)\). The photovoltaic output is then calculated as \(P_{\mathrm{pv}}=\eta S E\), where \(\eta\) is the conversion efficiency and \(S\) is the panel area. For simplicity, when \(E\) exceeds a saturation threshold \(E_k\), the efficiency is fixed at \(\eta_c\).

2.2 Wind Power Output Probability Model

Wind speed is the main factor determining wind turbine output. The Weibull distribution is widely used to fit wind speed data:

$$
f(v)=\frac{k}{c}\left(\frac{v}{c}\right)^{k-1}\exp\left[-\left(\frac{v}{c}\right)^k\right]
$$

where \(c\) is the scale parameter and \(k\) is the shape parameter. The cumulative distribution function is:

$$
F(v)=1-\exp\left[-\left(\frac{v}{c}\right)^k\right]
$$

The wind turbine output power \(P_{\mathrm{w}}\) is a piecewise function of wind speed \(v\):

$$
P_{\mathrm{w}}=
\begin{cases}
0, & vv_{\mathrm{off}} \\
P_{\mathrm{w,r}}\frac{v-v_{\mathrm{in}}}{v_{\mathrm{r}}-v_{\mathrm{in}}}, & v_{\mathrm{in}}\le v<v_{\mathrm{r}} $$="" &=""

where \(v_{\mathrm{in}}\), \(v_{\mathrm{r}}\), and \(v_{\mathrm{off}}\) are the cut-in, rated, and cut-out wind speeds, respectively, and \(P_{\mathrm{w,r}}\) is the rated power.

2.3 Latin Hypercube Sampling

LHS is a stratified sampling technique that ensures the sampling points cover the entire distribution range. Unlike Monte Carlo sampling, LHS divides the cumulative probability curve into \(N\) equal intervals and draws one sample from each interval. The sampled value for interval \(k\) is:

$$
\zeta_{kR,i}=F^{-1}\left(\frac{R_k-U}{N}\right)
$$

where \(U\) is a random number in \([0,1]\). LHS improves sampling efficiency and accuracy, especially for small-probability events at the distribution tails. I use LHS to generate 1000 initial scenarios of solar irradiance and wind speed, which are then converted into power output scenarios.

2.4 DBSCAN-Based Scenario Reduction

Traditional K-Means clustering requires the number of clusters to be predefined and randomly selects initial centroids, which may lead to unstable results. To overcome this, I apply DBSCAN, a density-based clustering algorithm that can identify arbitrary-shaped clusters and automatically handle noise points. The core idea is that if the number of points within a radius \(Eps\) of a sample exceeds a threshold \(MinPts\), the sample is considered a core point, and all density-reachable points form a cluster. The Euclidean distance between samples is:

$$
\mathrm{Dist}(p,g)=\sqrt{\sum_{i=1}^{n}(p_i-g_i)^2}
$$

DBSCAN does not require the number of clusters in advance and is robust to outliers, so extreme scenarios are not eliminated during reduction. For the PV scenario clustering, I set \(Eps=35.75\) and \(MinPts=5\); for the wind scenario, \(Eps=218.5\) and \(MinPts=2\). Both result in four clusters.

2.5 Typical Scenario Generation Results

Using one month of historical data with 1-hour resolution, I first generate the initial scenario sets. Table 2 lists the wind and solar power outputs at selected hours for four typical scenarios. The scenarios are defined by weather characteristics rather than seasons, because wind and solar outputs in the same season may vary significantly.

Table 2 Combined wind-solar output in four typical scenarios (kW)
Hour Scenario 1 Scenario 2 Scenario 3 Scenario 4
0 223.5 214.4 193.8 192.9
2 88.4 79.6 78.9 99.3
4 523.1 660.2 497.6 471.2
6 113.2 94.6 92.4 105.6
8 662.4 704.6 739.2 605.9
10 1054.5 801.8 828.6 878.6
12 1490.8 1469.4 1103.5 1064.8
14 682.7 601.7 699.9 671.1
16 155.6 189.1 165.6 191.3
18 204.2 171.1 197.3 188.9
20 490.9 367.9 372.4 445.1
22 626.1 619.4 692.7 805.8

Scenario 3 has the highest combined renewable output and represents an overcast day with balanced wind and solar power. Scenario 4 has the lowest solar output but the highest wind output, corresponding to a stormy day. These two extreme scenarios are used later as input to test the capacity configuration under abundant and scarce renewable generation conditions.

3. Two-Layer Optimization Model for Siting and Sizing of Distributed Energy Storage

Considering the unstable output of wind and solar power, as well as the system instability caused by high renewable penetration, I propose a two-layer optimization model. The outer layer is a planning model that determines the optimal storage capacity and power at selected nodes, while the inner layer is an operation model that optimizes the daily dispatch of the storage system to maximize renewable accommodation.

3.1 Storage Siting Based on Voltage-Sensitive Variance

Voltage sensitivity reflects the degree of voltage change caused by a unit power change at a node. High sensitivity implies that the node voltage is easily affected, so installing storage at such nodes can effectively improve voltage quality. In distribution networks with distributed generation, different nodes have different voltage regulation requirements. I first define the voltage deviation factor \(k_{j,t}\) and calculate the voltage sensitivity index \(L_{ij,t}\) from node \(i\) to node \(j\):

$$
L_{ij,t}=\frac{\partial V_{j,t}}{\partial P_{i,t}}\Delta P_{i,t}+\frac{\partial V_{j,t}}{\partial Q_{i,t}}\Delta Q_{i,t}
$$

$$
k_{j,t}=\frac{|V_{j,t}-V_{j,t}^{\mathrm{ref}}|}{V_{j,t}^{\mathrm{ref}}}
$$

Then the voltage-sensitive variance at node \(i\) over 24 hours is:

$$
\sigma_i^2=\frac{1}{24}\sum_{t=1}^{24}\left(L_{i,t}-\frac{1}{24}\sum_{t=1}^{24}L_{i,t}\right)^2
$$

A larger value of \(\sigma_i^2\) indicates that the node has a larger comprehensive voltage sensitivity variation and is therefore a preferred location for distributed energy storage.

3.2 Outer Layer: Planning Model

The outer layer aims to minimize the total cost and voltage deviation. The total cost includes the annualized investment cost of the storage system and the annual operation cost. The annualized investment cost is:

$$
C_{\mathrm{in}}=\frac{\tau(1+\tau)^y}{(1+\tau)^y-1}\sum_{k=1}^{n}\left(C_e E_{\mathrm{B},k}+C_p P_{\mathrm{B},k}\right)
$$

where \(\tau\) is the discount rate, \(y\) is the expected lifetime, \(C_e\) and \(C_p\) are the unit capacity and power investment costs, and \(E_{\mathrm{B},k}\), \(P_{\mathrm{B},k}\) are the rated capacity and power of the \(k\)-th storage unit. The operation cost includes maintenance cost and network loss cost. The network loss cost is:

$$
C_{\mathrm{loss}}=365\,C_{\mathrm{ep}}\sum_{t=1}^{24}\sum_{l=1}^{N_1}P_{\mathrm{loss},l,t}\,\Delta t
$$

where \(C_{\mathrm{ep}}\) is the unit network loss price, \(N_1\) is the number of branches, and \(P_{\mathrm{loss},l,t}\) is the power loss of branch \(l\) at time \(t\). The voltage deviation is:

$$
D_{\mathrm{dev}}=\sum_{t=1}^{24}\sum_{i=1}^{E}\frac{|V_{i,t}-V_{i,t}^{\mathrm{ref}}|}{V_{i,t}^{\mathrm{ref}}}
$$

The outer objective is:

$$
\min F_{\mathrm{OUT}}=C_{\mathrm{in}}+C_{\mathrm{op}}+\mu D_{\mathrm{dev}}
$$

where \(\mu\) is a conversion coefficient to unify units. The constraints include power flow equations, node voltage limits, storage energy balance, and capacity/power limits.

3.3 Inner Layer: Operation Model

The inner layer minimizes the annual operation cost of the system, which consists of the curtailment penalty cost, charging cost, discharging revenue, and peak-shaving compensation revenue. The curtailment penalty cost for wind and solar is:

$$
C_{\mathrm{curtail}}^{\mathrm{w}}=\sum_{t=1}^{24}\gamma_{\mathrm{w,loss}}\left(P_{\mathrm{pre,w},t}-P_{\mathrm{w},t}\right)\Delta t
$$

$$
C_{\mathrm{curtail}}^{\mathrm{pv}}=\sum_{t=1}^{24}\gamma_{\mathrm{pv,loss}}\left(P_{\mathrm{pre,pv},t}-P_{\mathrm{pv},t}\right)\Delta t
$$

The objective function of the inner layer is:

$$
\min F_{\mathrm{IN}}=C_{\mathrm{pv,loss}}+C_{\mathrm{ch}}-C_{\mathrm{dis}}-C_{\mathrm{a}}
$$

where \(C_{\mathrm{ch}}\) and \(C_{\mathrm{dis}}\) are charging and discharging costs/revenues, and \(C_{\mathrm{a}}\) is the peak-shaving compensation income. The constraints include the renewable output limits and the state of charge (SOC) constraints:

$$
\mathrm{SOC}_k(t)=\mathrm{SOC}_k(t-1)+\frac{P_{\mathrm{B},k,t}\Delta t}{E_{\mathrm{B},k}}
$$

$$
\mathrm{SOC}_{\min}\le \mathrm{SOC}_k(t)\le \mathrm{SOC}_{\max},\quad \mathrm{SOC}_k(1)=50\%
$$

3.4 Simulation Setup and Siting Results

I use the standard IEEE-33 node distribution system. The system base voltage is 12.66 kV, the total active load is 3715 kW, and the reactive load is 2300 kvar. The initial network loss is 0.2027 p.u., and the initial voltage deviation is 0.9276 p.u. Table 3 shows the initial voltage magnitudes at selected nodes.

Table 3 Initial node voltage magnitudes of IEEE-33 system
Node Voltage (p.u.) Node Voltage (p.u.)
1 1.0000 18 0.9133
2 0.9970 19 0.9965
3 0.9829 20 0.9929
4 0.9755 21 0.9922
5 0.9681 22 0.9916
6 0.9497 23 0.9794
7 0.9462 24 0.9727
8 0.9413 25 0.9694
9 0.9351 26 0.9477
10 0.9292 27 0.9452
11 0.9284 28 0.9337
12 0.9269 29 0.9255
13 0.9208 30 0.9220
14 0.9185 31 0.9178
15 0.9171 32 0.9169
16 0.9157 33 0.9166
17 0.9137 – –

After calculating the voltage-sensitive variance of all nodes, I find that nodes 24, 21, and 17 have the largest variances, as shown in Table 4. Therefore, these three nodes are selected as candidate installation locations for the distributed energy storage system.

Table 4 Voltage-sensitive variance ranking
Rank Node Voltage-sensitive variance
1 24 0.0187
2 21 0.0165
3 17 0.0148
4 13 0.0139
5 32 0.0131
… … …
33 1 0.0001

4. Improved Swarm Intelligence Algorithm and Simulation Results

4.1 Comparative Analysis of Classic Algorithms

Classic particle swarm optimization (PSO) is simple and easy to implement, but it often suffers from premature convergence. The shuffled frog leaping algorithm (SFLA) is another metaheuristic, but it has higher computational complexity and slower convergence. I first compare PSO and SFLA on a benchmark problem. The results show that PSO converges in 27 iterations and requires only 0.35 seconds, while SFLA requires 38 iterations and 1.88 minutes. Thus, PSO is chosen as the basis for further improvement.

The basic velocity and position update equations of PSO are:

$$
v_{i}^{t+1}=\omega v_i^t+c_1 r_1\left(p_{\mathrm{best},i}-x_i^t\right)+c_2 r_2\left(g_{\mathrm{best}}-x_i^t\right)
$$

$$
x_i^{t+1}=x_i^t+v_i^{t+1}
$$

The fixed weight \(\omega\) and learning factors \(c_1,c_2\) limit the performance of the basic PSO. I introduce a linearly decreasing weight and dynamic learning factors. The weight is updated as:

$$
\omega_d=\omega_{\max}-\left(\omega_{\max}-\omega_{\min}\right)\frac{d}{d_{\max}}
$$

where \(d\) is the current iteration, \(d_{\max}\) is the maximum iteration, and \(\omega_{\max}=0.9\), \(\omega_{\min}=0.4\). The learning factors are updated as:

$$
c_1=e_2-(e_2-e_1)\frac{d}{d_{\max}},\quad c_2=e_1+(e_2-e_1)\frac{d}{d_{\max}}
$$

with \(e_1=0.5\), \(e_2=2.5\). This strategy ensures strong global search in the early stage and strong local search in the later stage.

To further enhance population diversity and avoid local optima, I embed the crossover and mutation mechanisms from genetic algorithms into the linearly decreasing weight PSO (LDWPSO), forming a hybrid algorithm named GA-LDWPSO. The crossover probability is calculated according to the fitness of individuals, and the mutation operation is applied with a small probability. The flowchart of the proposed algorithm follows the general structure of LDWPSO with an additional crossover-mutation step after the velocity update. The parameters used in this study are listed in Table 5.

Table 5 Parameters of GA-LDWPSO
Parameter Value
Maximum iterations 300
Population size 600
Initial weight 0.9
Final weight 0.4
Crossover rate 0.7
Mutation rate 0.3

4.2 Test Function Evaluation

To verify the effectiveness of the proposed GA-LDWPSO, I compare it with the basic PSO and LDWPSO on four standard benchmark functions: Sphere, Griewank, Rastrigin, and Rosenbrock. The dimensions and ranges are given in Table 6. The experimental results show that GA-LDWPSO converges to the global optimum much faster and more accurately than the other two algorithms, especially on the multimodal functions. This confirms that the crossover-mutation mechanism helps the algorithm escape from local optima.

Table 6 Benchmark functions
Function Dimension Range Global optimum
Sphere 30 [-100,100] 0
Griewank 30 [-10,10] 0
Rastrigin 30 [-6,6] 0
Rosenbrock 30 [-30,30] 0

4.3 Simulation Parameters for the Case Study

The IEEE-33 node test system is again employed. The distributed generation is connected at nodes 5 (PV) and 25 (wind turbine). Up to three distributed energy storage units are allowed, with a maximum power of 150 kW per unit. The discount rate is 0.1, the expected lifetime is 20 years, the unit capacity investment cost is 1000 CNY/kWh, the unit operation and maintenance cost is 600 CNY/kWh, the peak-shaving compensation price is 100 CNY/kWh, and the curtailment penalty price is 580 CNY/kWh. The time-of-use electricity price is listed in Table 7.

Table 7 Time-of-use electricity price
Period Hours Price (CNY/kWh)
Valley 0:00-7:00 0.3
Flat 9:00-16:00, 18:00-24:00 0.6
Peak 7:00-9:00, 16:00-18:00 0.9

4.4 Case 1: Abundant Renewable Generation

I use Scenario 3 from Section 2 as the input, which represents an overcast day with high combined wind and solar output. Three schemes are compared:

  • Scheme 1: No storage.
  • Scheme 2: Storage at renewable energy nodes (25, 5, and an arbitrarily chosen node 11).
  • Scheme 3: Storage at nodes selected by voltage-sensitive variance (24, 21, 17).

The optimization results are shown in Table 8.

Table 8 Capacity optimization results under abundant renewable generation
Scheme Storage location Capacity (kWh) Network loss (p.u.) Voltage deviation (p.u.)
1 – – 0.2027 0.9276
2 25, 11, 5 1500, 1500, 1100 0.2022 0.9275
3 24, 21, 17 1100, 1380, 1100 0.1779 0.9274

The proposed voltage-sensitive siting method reduces the total storage capacity by 520 kWh compared with the renewable-node scheme, while achieving a lower network loss and smaller voltage deviation. Table 9 compares the economic indicators of the three schemes.

Table 9 Economic comparison under abundant renewable generation (×10^4 CNY)
Scheme Investment cost Operation cost Network loss cost Peak-shaving compensation Total cost
1 0 1012.59 1.07 0 1013.66
2 150.64 801.58 0.86 40.08 913.00
3 144.17 767.12 0.78 38.36 873.71

I also plot the active power output and SOC curves of the three storage units. The storage units charge during the midday solar peak and discharge during the morning and evening load peaks. The voltage profile after storage installation improves significantly, especially near the installed nodes. At node 24, the voltage rises from 0.9694 p.u. to 1.0040 p.u., an increase of 3.57%. At the end node 33, the voltage rises from 0.9166 p.u. to 0.9248 p.u. This verifies that the distributed energy storage system can effectively support node voltages and reduce network losses.

4.5 Case 2: Scarce Renewable Generation

In this case, I use Scenario 4, where renewable output is relatively low due to stormy weather. The optimization results are listed in Table 10. Although the voltage-sensitive siting method still provides better performance than the renewable-node scheme, the improvement is less pronounced than in Case 1. This is because the main objective under scarce renewable generation should be system reliability, while the proposed model emphasizes renewable accommodation and voltage quality. Therefore, the model can be adapted by modifying the objective function for different application scenarios.

Table 10 Capacity optimization results under scarce renewable generation
Scheme Storage location Capacity (kWh) Network loss (p.u.) Voltage deviation (p.u.)
1 – – 0.2027 0.9276
2 25, 11, 5 1200, 1500, 1380 0.1777 0.9275
3 24, 21, 17 1200, 1380, 1100 0.1760 0.9275

The active power output and SOC curves under scarce renewable generation show that the storage system discharges more frequently to compensate for the lack of renewable power, especially during evening peak hours. The SOC decreases gradually and recharges during periods of relatively higher renewable output.

5. Conclusion

This study explores the capacity allocation and operation optimization of distributed energy storage systems in distribution networks with high penetration of renewable energy. The main conclusions are summarized as follows:

First, the proposed LHS-DBSCAN fusion method for scenario generation and reduction has high sampling accuracy and efficiency. It can effectively identify small-probability edge samples, generate a comprehensive set of initial scenarios, and reduce them to four typical weather-related scenarios without excluding extreme cases. The resulting typical scenarios reflect the volatility and correlation of wind and solar output and provide reliable input data for storage planning.

Second, the two-layer optimization model combining voltage-sensitive variance siting with a planning-operation coordination framework can simultaneously improve voltage quality and economic performance. The voltage-sensitive variance method selects nodes with the largest comprehensive voltage sensitivity, which results in better voltage support and lower total installed capacity. In the IEEE-33 system, the total storage capacity is reduced by 520 kWh compared with the conventional renewable-node siting approach, while the network loss is reduced by more than 12% and the node voltages are effectively improved.

Third, the hybrid GA-LDWPSO algorithm proposed in this study overcomes the premature convergence problem of the basic PSO algorithm. By introducing a linearly decreasing weight, dynamic learning factors, and genetic crossover-mutation operations, the algorithm achieves faster convergence and higher precision. Benchmark tests confirm its superiority on both unimodal and multimodal functions.

Finally, the comparative analysis under abundant and scarce renewable generation indicates that the optimal capacity configuration depends on the operating scenario. The proposed model performs better under abundant renewable generation, where the objective function aligns with renewable accommodation and voltage regulation. In other scenarios, the objective function can be modified to adapt to different requirements, such as reliability or cost minimization. Future work may consider more detailed weather classifications, multi-objective coordination with grid-side and user-side resources, and the use of different optimization algorithms for the outer and inner layers to further improve the solution efficiency.

Scroll to Top