In recent years, the global energy landscape has been undergoing a profound transformation driven by the urgent need to address climate change and reduce dependence on fossil fuels. The increasing penetration of renewable energy sources, such as wind and solar power, has introduced significant challenges to the secure and stable operation of power systems. The inherent randomness and volatility of these renewable sources lead to larger equivalent load peak-valley differences and heavier burdens on primary frequency regulation. Under such circumstances, the grid’s peak shaving and frequency regulation capabilities are facing unprecedented challenges. Large-scale battery energy storage systems, which possess dual advantages in power and capacity, have emerged as a key technology to smooth load profiles and maintain frequency stability. This paper focuses on the optimal configuration of energy storage battery participating in peak shaving, frequency regulation, and their combined scenarios, aiming to enhance the safety and stability of power grids while considering the economic efficiency of system operation.
Through extensive literature review, I have identified several research gaps in the existing studies. For the peak shaving application, many research efforts often consider economic objectives with simplified technical indicators, or only focus on technical requirements without integrating the full life-cycle benefits of energy storage battery operation. For the frequency regulation application, most studies emphasize the augmentation of wind or thermal units to meet dispatch commands, rather than addressing the system-level primary frequency regulation demand with comprehensive dynamic frequency safety constraints. Moreover, there is limited research on the coordinated configuration of energy storage battery for both peak shaving and frequency regulation, particularly considering the dynamic process of primary frequency regulation and the joint optimization of scheduling and configuration. To fill these gaps, I propose a series of methods in this paper, which are dedicated to the optimal configuration of energy storage battery in multiple scenarios.

1. Peak Shaving Configuration of Energy Storage Battery
The first part of my research focuses on the configuration of energy storage battery for peak shaving. From a dispatch perspective, I need to consider the actual requirements of the power grid. A configuration method based on a time-series rolling iterative algorithm is proposed. This method determines the minimum power rating of the energy storage battery that can satisfy the new energy consumption requirements, and then constructs a power configuration sequence. Afterward, with the consideration of the substitution effect on conventional units, a series of feasible power and capacity combinations are calculated through rolling simulation.
1.1 Power Configuration Sequence Calculation
The calculation of the power sequence begins with the determination of the conventional unit start-up schedule. According to the system load profile and the spinning reserve requirement, the maximum set of operating units is determined. The conventional unit regulation range can be expressed as:
$$ P_{u}^{G} = \sum_{i=1}^{n} P_{i,\max}^{G}, \quad P_{d}^{G} = \sum_{i=1}^{n} P_{i,\min}^{G} \tag{1} $$
where \( P_{u}^{G} \) and \( P_{d}^{G} \) are the upper and lower limits of the conventional power regulation range, respectively, and \( P_{i,\max}^{G} \) and \( P_{i,\min}^{G} \) are the maximum and minimum power outputs of the i-th conventional unit. The wind power curtailment at time t is given by:
$$ P_{QF,t}^{W} = \max\left(0, P_{t}^{W} + P_{d}^{G} – P_{t}^{L}\right) \tag{2} $$
where \( P_{t}^{W} \) is the wind power output at time t, and \( P_{t}^{L} \) is the load at time t. The new energy consumption rate is defined as:
$$ \delta = 1 – \frac{\sum_{t=1}^{N_t} P_{QF,t}^{W}}{\sum_{t=1}^{N_t} P_{t}^{W}} \tag{3} $$
To achieve the target consumption rate, the minimum energy storage battery power is found using a bisection method. The iterative process adjusts the power value until the calculated consumption rate matches the target. Once the minimum power \( P_{ess}^{\min} \) is found, the power sequence is generated by increasing the power in fixed steps, resulting in a set of feasible power ratings.
1.2 Power and Capacity Configuration Combination Calculation
With the power sequence determined, the corresponding capacity for each power rating must be calculated. In this stage, the energy storage battery is considered as an equivalent conventional unit to partially replace thermal units. The equivalent maximum and minimum outputs of the storage battery are:
$$ P_{\max}^{BESS} = \lambda P_{BESS}, \quad P_{\min}^{BESS} = \alpha \lambda P_{BESS} \tag{4} $$
where \( \lambda \) is the substitution ratio, and \( \alpha \) is the ratio of minimum output to rated capacity of a thermal unit. Then, the unit commitment is re-optimized with the inclusion of energy storage battery equivalent units. The capacity calculation adopts a bisection method as well. The initial capacity is set to the average curtailed energy, and the SOC is assumed to start at the lower bound. For each capacity candidate, the charging and discharging power of the energy storage battery is simulated time-seriesly. If the new energy consumption rate does not satisfy the requirement, the capacity is adjusted until convergence.
1.3 Case Study for Peak Shaving
I applied the proposed method to an actual provincial power grid in China. The system has a total thermal capacity of 9865 MW and a wind power penetration rate of 42.7%. Without energy storage battery, the renewable curtailment rate is 11.40%, and the new energy consumption rate is 88.60%. To achieve the target of 95%, the minimum energy storage battery power is calculated as 665 MW, with a corresponding capacity of 4038 MWh. By increasing the power in steps of 5 MW, a series of configurations is obtained. Table 1 presents a selected set of power and capacity combinations that satisfy the consumption requirement, where the duration is the ratio of capacity to power.
| Power (MW) | Capacity (MWh) | Duration (h) | Power (MW) | Capacity (MWh) | Duration (h) |
|---|---|---|---|---|---|
| 815 | 3256 | 4.00 | 960 | 3167 | 3.30 |
| 820 | 3256 | 3.97 | 965 | 3167 | 3.28 |
| 870 | 3167 | 3.64 | 1035 | 3092 | 2.99 |
| 900 | 3167 | 3.52 | 1100 | 2892 | 2.63 |
| 930 | 3167 | 3.41 | 1160 | 2701 | 2.33 |
| 1000 | 3167 | 3.17 | 1195 | 2595 | 2.17 |
| 1040 | 3092 | 2.97 | 1245 | 2506 | 2.01 |
The simulation results show that with the energy storage battery, the equivalent load peak-valley difference is significantly reduced, and the wind power curtailment is greatly mitigated. The proposed method provides a systematic way to determine multiple feasible configurations of energy storage battery for peak shaving, taking into account both technical requirements and renewable energy integration.
2. Frequency Regulation Configuration of Energy Storage Battery
The second part of my research addresses the configuration of energy storage battery for primary frequency regulation. Unlike peak shaving, frequency regulation concerns the dynamic response of the system to power disturbances. Therefore, I need to model the system frequency dynamics and formulate an optimization problem with full-process frequency constraints.
2.1 Characteristics of Energy Storage Battery Participating in Frequency Regulation
Energy storage battery can be controlled with virtual inertia and virtual droop. The virtual inertia control emulates the inertial response of synchronous machines, while the virtual droop control emulates the primary frequency droop response. I analyzed the effects of key parameters on the system frequency response using a simulation model. The results indicate that the frequency dead band of the energy storage battery has negligible effect. The virtual droop coefficient \( K_{ess} \) significantly affects the steady-state frequency deviation, while the virtual inertia coefficient \( H_{ess} \) mainly affects the rate of change of frequency (RoCoF). These findings guide the design of the frequency regulation control strategy.
2.2 Equivalent Frequency Response Model
To formulate the configuration problem, I established an equivalent frequency response model of a power system with wind power and energy storage battery. The model is expressed by the following differential equations:
$$ \Delta \dot{f}(t) = \frac{1}{2H_{sys}/f_0} \left( \Delta P_G(t) + \Delta P_{ess}(t) – \Delta P_L(t) – D_{sys} \Delta f(t) \right) \tag{5} $$
where \( H_{sys} \) is the equivalent inertia constant, \( f_0 \) is the nominal frequency, \( D_{sys} \) is the load damping coefficient, \( \Delta P_G \) is the mechanical power increment of generators, \( \Delta P_{ess} \) is the power output of the energy storage battery, and \( \Delta P_L \) is the load disturbance. The governor dynamics are modeled by a first-order transfer function:
$$ \Delta \dot{P}_G(t) = -\frac{1}{R_{sys}} \Delta f(t) – \frac{1}{T_{g,sys}} \Delta P_G(t) \tag{6} $$
The energy storage battery’s actual output power is a piecewise function of the ideal output, subject to the rated power limit:
$$ \Delta P_{ess}^{real}(t) = \begin{cases}
P_{ess}^{\max}, & \Delta P_{ess}^{real}(t) \ge P_{ess}^{\max}\\
\Delta P_{ess}(t), & -P_{ess}^{\max} \le \Delta P_{ess}(t) \le P_{ess}^{\max}\\
-P_{ess}^{\max}, & \Delta P_{ess}(t) \le -P_{ess}^{\max}
\end{cases} \tag{7} $$
The ideal output follows the control law:
$$ \Delta \dot{P}_{ess}(t) = \frac{-H_{ess} \Delta \dot{f}(t) – K_{ess} \Delta f(t) – \Delta P_{ess}(t)}{T_{ess}} \tag{8} $$
where \( T_{ess} \) is the response time constant of the energy storage battery.
2.3 Dynamic Optimal Configuration Model
The objective is to minimize the configuration cost of the energy storage battery:
$$ \min C = C_E E_{ess}^{\max} + C_P P_{ess}^{\max} \tag{9} $$
subject to the system dynamic frequency characteristics, frequency safety constraints, and battery operation constraints. The frequency safety constraints include limits on frequency deviation and RoCoF:
$$ f_{\min} \le f(t) \le f_{\max}, \quad |\Delta \dot{f}(t)| \le \Delta \dot{f}_{\max} \tag{10} $$
The battery operation constraints include charging/discharging power limits, SOC limits, and energy balance constraints. Since the differential equations are nonlinear and include a piecewise function, I used the implicit trapezoidal integration method and the big-M method to transform the model into a mixed-integer quadratic programming (MIQP) problem, which can be solved efficiently by commercial solvers like CPLEX.
2.4 Case Study for Frequency Regulation
I first validated the method on an improved IEEE 3-machine 9-bus system. The optimal configuration result is 39.80 MW / 0.49 MWh. The simulation results from the MIQP model closely match the time-domain simulation results in MATLAB/Simulink, confirming the accuracy of the proposed analytical method. Then, I applied the method to the same real provincial grid as in the peak shaving case. The equivalent system parameters are listed in Table 2. Two extreme scenarios are considered: (i) two thermal units trip offline, and (ii) sudden load shedding. The optimal configurations are shown in Table 3.
| Parameter | Value |
|---|---|
| \( H_{sys} \) (s) | 3.171 |
| \( 1/R_{sys} \) (Hz·pu⁻¹) | 0.208 |
| \( T_{g,sys} \) (s) | 4.9 |
| \( D_{sys} \) (pu·Hz⁻¹) | 0.0364 |
| \( H_{ess} \) (pu·Hz⁻¹·s⁻²) | 0.4381 |
| \( K_{ess} \) (pu·Hz⁻¹) | 0.0623 |
| \( T_{ess} \) (s) | 0.05 |
| \( SOC_{\min} \) | 0.1 |
| \( SOC_{\max} \) | 0.9 |
| Scenario | Power (MW) | Capacity (MWh) | Cost (×10⁸ CNY) |
|---|---|---|---|
| 1: Unit trip | 474.54 | 5.00 | 7.268 |
| 2: Load shedding | 339.14 | 4.02 | 5.208 |
Under both scenarios, the energy storage battery effectively limits the maximum frequency deviation and RoCoF to comply with the safety limits. The results demonstrate that the proposed method can determine the battery power and capacity required to guarantee frequency security under severe disturbances.
3. Coordinated Configuration for Joint Peak Shaving and Frequency Regulation
After independently solving the peak shaving and frequency regulation configuration problems, I extended the work to consider the joint scenario. The key idea is to exploit the “idle time” of the energy storage battery to provide multiple services, thereby improving the overall life-cycle economy. A two-layer optimization iterative method is proposed.
3.1 SOC-Based Working Area Division
To avoid conflicts between peak shaving and frequency regulation, I divided the SOC range into different working areas. The peak shaving area is set between \( SOC_{low} \) and \( SOC_{high} \), while the frequency regulation areas are located at both ends: from \( SOC_{\min} \) to \( SOC_{low} \) and from \( SOC_{high} \) to \( SOC_{\max} \). When a frequency regulation request occurs, the energy storage battery first responds to the frequency regulation, using the reserved capacity; otherwise, all available power is used for peak shaving. After each frequency regulation event, the SOC is restored to the boundary of the frequency regulation area to ensure readiness for the next event.
The total power rating for the joint scenario is the maximum of the ratings required for peak shaving and frequency regulation separately, while the total capacity is the sum of the two capacities:
$$ P_{ess}^{joint} = \max\left(P_{ess}^{peak}, P_{ess}^{freq}\right), \quad E_{ess}^{joint} = E_{ess}^{peak} + E_{ess}^{freq} \tag{11} $$
3.2 Two-Layer Optimization Model
The outer layer is a full life-cycle configuration model that maximizes the net benefit of the energy storage battery considering both peak shaving and frequency regulation. The objective function includes investment cost, operation and maintenance cost, peak shaving arbitrage revenue, peak shaving compensation revenue, and frequency regulation compensation revenue:
$$ \max O_{ALL} = O_{BZ} + O_{BP} + O_{Bf} – C_{BY} – C_{BT} \tag{12} $$
The inner layer is an optimal scheduling model that minimizes the total system cost for peak shaving and frequency regulation. The inner model is further decomposed into two stages: the first stage optimizes the unit commitment and the charging/discharging power of the energy storage battery; the second stage calculates the minimum frequency regulation reserve power that satisfies the dynamic frequency safety constraints. The two stages iterate until convergence.
3.3 Case Study and Results
Using the provincial grid data, I computed the joint configuration power and capacity according to Eq. (11). The peak shaving configuration results from Chapter 2 and the frequency regulation power from Chapter 3 yield a joint power rating of 1195 MW (the max of 1195 MW from peak shaving and 474.54 MW from frequency regulation) and a joint capacity of 2600 MWh + 5 MWh = 2605 MWh. Considering practical rounding, the final candidate configurations are listed in Table 4. In total, 87 feasible power and capacity combinations are generated. For each configuration, the inner scheduling model is run to obtain the corresponding operating costs and revenues, and then the outer model evaluates the full life-cycle net benefit. Figure (not shown) illustrates the normalized economic indicators for all configurations. The optimal point occurs when the power-to-capacity ratio is 2.176, corresponding to 1195 MW and 2600 MWh.
| No. | Power (MW) | Capacity (MWh) | SOClow | SOChigh |
|---|---|---|---|---|
| 1 | 815 | 3261 | 0.1006 | 0.8994 |
| 2 | 820 | 3261 | 0.1006 | 0.8994 |
| … | … | … | … | … |
| 45 | 1035 | 3098 | 0.1006 | 0.8994 |
| … | … | … | … | … |
| 87 | 1245 | 2511 | 0.1008 | 0.8992 |
With the optimal configuration (1195 MW/2600 MWh), I compared the system operation with and without the energy storage battery. The results are summarized in Table 5. When the battery is included, thermal unit operating costs decrease from 1,061.20 million CNY to 1,014.07 million CNY, curtailed wind energy drops from 146,413.5 MWh to 44,704.3 MWh, and the wind power utilization rate improves from 88.60% to 96.52%. The total peak shaving and frequency regulation cost is reduced by 103.07 million CNY, demonstrating both technical and economic benefits.
| Indicator | Without storage | With storage |
|---|---|---|
| Thermal unit cost (×10⁴ CNY) | 106120 | 101407 |
| Curtailed wind energy (MWh) | 146413.5 | 44704.3 |
| Wind power utilization rate (%) | 88.60 | 96.52 |
| Curtailment penalty (×10⁴ CNY) | 8930.9 | 2727.0 |
| Peak shaving cost (×10⁴ CNY) | 0 | 553.1 |
| Frequency regulation cost (×10⁴ CNY) | 0 | 56.4 |
For the frequency regulation performance, I analyzed three schemes: (i) no energy storage battery, (ii) storage with virtual droop only, and (iii) storage with both virtual inertia and virtual droop. The results show that without storage, the maximum frequency deviation reaches 0.9381 Hz and the maximum RoCoF is 0.6740 Hz/s, both violating safety limits. With virtual droop only, the frequency deviation constraint is met, but the RoCoF still exceeds the limit on some days. With the combination of virtual inertia and virtual droop, both constraints are satisfied with lower reserve power, confirming the advantage of the proposed control strategy.
The scheduling cycle is 30 days, and the required frequency regulation reserve power varies between 300 and 420 MW. The total output power of the energy storage battery during disturbance moments is always within the rated power limits, proving that the joint scheduling strategy successfully coordinates peak shaving and frequency regulation without overloading the battery.
4. Conclusion
In this paper, I have presented a comprehensive investigation on the optimal configuration of energy storage battery for peak shaving, frequency regulation, and their joint operation. The main contributions and conclusions are as follows:
(1) For the peak shaving scenario, I proposed a time-series rolling iterative algorithm that derives the minimum power rating of the energy storage battery to meet renewable energy consumption targets. By considering the substitution of conventional units, a series of feasible power and capacity combinations is generated. The case study on a real provincial grid demonstrates that the method effectively identifies multiple feasible configurations while maintaining a high wind power utilization rate.
(2) For the frequency regulation scenario, I established an equivalent frequency response model and formulated a dynamic optimal configuration model with full-process frequency constraints. The model minimizes the configuration cost of the energy storage battery subject to system dynamic frequency characteristics, frequency safety limits, and battery operation constraints. The proposed MIQP model is validated through simulations, and the application to the real grid shows that the energy storage battery significantly improves the frequency nadir and RoCoF under severe disturbances.
(3) For the joint peak shaving and frequency regulation scenario, I developed a two-layer optimization iterative framework. The inner layer optimally schedules the energy storage battery and thermal units while satisfying frequency security, and the outer layer evaluates the full life-cycle net benefit. The SOC-based working area division ensures that the energy storage battery can provide both services without conflict. The results indicate that the optimal configuration occurs at a power-to-capacity ratio of 2.176, yielding both technical and economic improvements.
In summary, the research provides a systematic methodology for the optimal configuration of energy storage battery in modern power systems with high renewable penetration. Future work will consider the frequency regulation capability of renewable units themselves and extend the multi-scenario coordination to voltage regulation and other ancillary services.
