1. Introduction
With the increasing penetration of new energy [
1,
2,
3], the uncertainty and instability of its regulation will pose significant risks to the long-term safe operation of the power system, resulting in low inertia and weak damping of the power grid, making the frequency more variable under power disturbance, while traditional units, due to their limited regulation capacity and other issues, are also not conducive to the safety and stability of the power grid [
4].
Energy storage has a strong short-term power throughput capacity, bi-directional regulation, and the ability to accurately track [
5], and has become an important FM resource to solve the problems of traditional units, with the response rate of battery energy storage systems (BESSs) being more than 60 times that of traditional FM units [
6,
7,
8]; so, the use of an energy storage battery system for frequency regulation is currently popular. As a result, the use of BESSs for frequency regulation is a hot research topic. The literature [
9] demonstrates that BESSs have great potential for providing grid-assisted services and proposes corresponding corrective energy measures and control algorithms to allow the batteries involved in FM services to continuously maintain their state of charge within the limits. The literature [
10] proposes a new method for the optimal allocation of battery energy storage capacity, taking into account the rate characteristics of primary frequency regulation, which solves the problem of battery energy storage capacity limitation during primary frequency regulation. According to the literature [
11], large-scale battery energy storage, as a new flexible market player, can arbitrage in the energy market and profit from providing primary FM services.
For BESSs to participate in primary frequency regulation of the grid, there are two main control modes: (1) virtual inertia control (VIC) can effectively suppress the rate of change in frequency deviation, thus providing fast frequency support to the grid [
12], and (2) virtual droop control (VDC) can effectively reduce steady-state frequency deviation fluctuations and improve grid frequency stability [
13]. The literature [
14] employs sag control to dynamically coordinate the frequency regulation process of energy storage under various operating conditions, which is advantageous to the functionality and economy of energy storage but does not provide fast support for grid frequency deviation. The literature [
15,
16] compared the constant sag coefficient method to the linear sag coefficient method, which uses a constant sag coefficient value to control the energy storage output but does not take into account the battery frequency regulation capability and is prone to damaging the battery life by overcharging and over-discharging the battery, whereas the linear sag coefficient method uses simple linear control but has a poor ability to follow the state of charge. The linear sag factor approach employs straightforward linear control, but it has a poor ability to track the battery’s state of charge (SOC). The dead zone of energy storage and frequency regulation is employed in the literature [
17] as the segmentation boundary for energy storage and frequency regulation, and the virtual sag coefficient is calculated using an S-shaped function to manage the system frequency difference. According to the literature [
18], double-layer fuzzy control is used to regulate the energy storage system’s output and virtual sag coefficient while taking battery SOC into account. This method can increase the effect of frequency regulation, but still falls short in terms of quick regulation.
To achieve a better FM effect, two control modes are frequently combined using refs. [
19,
20], by setting a reasonable threshold value for mode switching and switching mode [
21], whereby the advantages of both can be achieved to complement each other, effectively improving the FM effect. The literature [
22] demonstrates that combining the two control methods yields better results. The literature [
23] only used VIC for frequency regulation, which could not solve the problem of the grid experiencing long-term steady-state fluctuations. The literature [
24] uses the VIC mode before the frequency difference reaches its maximum value and directly switches to the VDC mode after the frequency difference reaches its maximum value, but direct switching results in output power fluctuations at the switching point. To address this issue, the literature [
25] proposed a proportional model for VDC mode and VIC mode distribution that can achieve smooth switching between the two control modes while avoiding output fluctuations. A reasonable allocation of the two modes is combined with a regression function for adaptive frequency regulation in the literature [
26] to determine the FM output of the energy storage. To avoid secondary disturbances at the switching point while satisfying the SOC constraint, the literature [
27] smoothly switches between the two control modes while adaptively adjusting the energy storage output based on the battery SOC. The literature [
28] proposes an adaptive factor to correct the FM coefficients, but the dynamic regulation capability of this method is severely limited. The literature [
29] establishes a two-stage robust approximate dynamic programming optimization model to control the output of FM power, but this control scheme lacks long-term use and has a long response time. A state space prediction model for energy storage frequency regulation has been established in the literature [
30] to control the grid frequency by predicting the state and rolling optimization, but the method does not take energy storage frequency regulation capability into account, and long-term use may easily result in storage unit damage.
The literature cited above can demonstrate the feasibility and necessity of BESS participation in primary frequency regulation of the grid, as well as the mode switching problem and frequency regulation capability of energy storage participation in frequency regulation, but there are some shortcomings and improvements required: (1) the variable sag coefficient method used in [
14,
15,
18,
19,
31] for frequency regulation has insufficient adaptive capability; (2) the lack of consideration of technical characteristics such as energy storage charge state and climbing rate in the literature [
28,
29] can be constrained by the constraint function of the energy storage out process; and (3) the majority of the current literature does not consider the scenario of multiple groups of energy storage participating in one frequency regulation, and when multiple groups of BESSs participate in frequency regulation together, it is easy to cause the BESSs with latencies.
To address the common deficiencies in the current literature, this paper proposes a two-layer control strategy involving multiple groups of BESSs involved in FM. First, a regional dynamic-response-model-based integrated control mode that takes VIC and VDC into account is proposed. Second, a high-precision fuzzy controller is designed in the upper layer to achieve the adaptive switching of the two control modes, whereas in the lower layer, the load state constraints on the energy storage capacity constraints are taken into account while equalizing the FM output of each group of BESS based on equal consumption micro-incremental criterion control. Finally, simulation is used to validate the proposed strategy’s effectiveness.
2. Regional Grid Primary FM Model with Multiple BESSs
The dynamic response model of multiple energy storage batteries participating in grid primary frequency regulation based on regional equivalence [
21], which consists of the dispatch center’s control unit and the FM power supply, can be used to realize primary frequency regulation. The region is set up with one conventional unit and
J BESSs for frequency regulation, totaling 1 +
J FM power supplies.
Figure 1 depicts the dynamic response model for region
i and
Table 1 defines the model’s parameters.
In region
i, the conventional unit is a reheat-type thermal unit, and the model consists primarily of the thermal unit governor model and the reheat-type turbine model. The complex frequency domain expressions of the conventional unit model
Gg (
s) are as follows:
where
Gov_
H (
s) is the governor transfer function,
Gov_
RT (
s) is the turbine transfer function, Δ
Y (
s) is the variation in the turbine steam valve opening,
TCH,
TRH, and
TCO are the high-pressure steam volume time constants, reheat steam volume time constants, and low-pressure steam volume time constants, and
FHP,
FIP, and
FLP are the power coefficients of the high-pressure, medium-pressure, and low-pressure cylinders.
The battery energy storage system is based on the first-order inertia model, which can accurately simulate the dynamic characteristics of the energy storage system and the grid in the active exchange state while taking into account the system’s charge state constraint. In the complex frequency domain, the battery energy storage model
GBj(
s) is expressed as follows:
where
TB is the energy storage time constant, and
QSOCjmax and
QSOCjmin are the maximum and minimum values of the battery charge state.
4. Double-Layer Control Strategy for Primary Frequency Modulation
4.1. Two-Tier Control Structure
This paper takes into account the technical characteristics of each group of BESS and proposes a two-layer control strategy for multiple BESS groups to achieve the primary frequency regulation of the grid based on meeting the demand for grid frequency regulation in order for multiple BESS groups to participate in the primary frequency regulation of the grid mode allocation and power balance. The flow chart of the two-level control strategy is shown in
Figure 3.
The upper layer is the adaptive regulation layer; to adapt to the demand of grid frequency regulation, the advantages of two control modes of VIC and VDC in the process of frequency regulation are fully considered, and the fuzzy control is used to allocate the participation degree of the two modes to achieve the smooth switching of the two modes while suppressing the secondary fluctuation at the switching point, and finally, the total output of multiple BESS groups participating in primary frequency regulation is obtained. The equalization control layer is the lowest layer; with the objective of optimal power distribution for multiple BESSs participating in primary FM, the differences between the technical characteristics of each group of batteries are fully considered, and the total power output of primary FM is balanced to each group of BESS based on the criterion of equal consumption micro-increase rate while maintaining a good battery charge level, and finally, the final power output of each group of BESS after balanced control is obtained. The requirement of grid frequency regulation is met while the coordinated operation of numerous BESSs is achieved through the progressive control of upper and lower levels.
4.2. Adaptive Regulation Layer
Based on the control modes of VIC and VDC, the fuzzy controller of the adaptive regulation layer aims at the frequency regulation demand of the grid and takes the system frequency deviation Δfi(t) and the system frequency deviation change rate dΔfi(t)/dt in the time domain as input quantities, thus determining the allocation factors α1(t) and α2(t)(α2(t) = 1 − α1(t)) for both control modes of VIC and VDC.
The first layer of the fuzzy controller is a two-dimensional control with normalization coefficients
k1,
k2, and
k3 for the input quantities Δ
fi(
t) and dΔ
fi(
t)/d
t and the output quantity
α1(
t), as shown in Equation (10).
where Δ
F(
t) is the allowable interval of primary FM, and Δ
fimax(
t) is the maximum value of frequency deviation.
The Mamdani-type affiliation function is chosen as the affiliation function. Δfi(t) and dΔfi(t)/dt are the two inputs of the fuzzy controller with the theoretical domain range of [–1,1] and α1(t) is the output of the fuzzy controller with the theoretical domain range of [0,1]. The fuzzy sets are {NB(negative large), NM(negative medium), NS(negative small), ZO(zero), PS(positive small), PM(positive medium), PB(positive large)}.
The control rules of the first layer fuzzy controller are as follows: when dΔ
fi(
t)/d
t is larger and Δ
fi(
t) is smaller, the BESS should increase the participation of the VIC mode to help the grid to quickly suppress the frequency deviation change rate, so
α1(
t) should also increase accordingly; when dΔ
fi(
t)/d
t is smaller and Δ
fi(
t) is larger, the participation of the VDC mode should be increased to suppress the frequency deviation fluctuation to a stable value, so
α1(
t) should also decrease accordingly; when dΔ
fi(
t)/d
t and Δ
fi(
t) are both large, the energy storage equipment should be restored to Δ
fi(
t) as the primary goal, and
α1(
t) should be increased to help to stabilize the grid frequency fluctuations; when dΔ
fi(
t)/d
t and Δ
fi(
t) are both small, to prevent the frequent operation of the energy storage equipment,
α1(
t) should be taken as a moderate or large value to reduce the operating loss of energy storage when restoring Δ
fi(
t) at the time of operation loss. Next, the values of the affiliation functions of Δ
fi(
t), dΔ
fi(
t)/d
t, and
α1(
t) are defined as A
u1(
t), A
u2(
t), and A
u3(
t), respectively. Finally, the three-dimensional relations of inputs A
u1(
t) and A
u2(
t) and output A
u3(
t) can be obtained as shown in
Figure 4, and the table of fuzzy control rules is shown in
Table 2.
The output fuzzy quantity A
u3(
t) is defuzzified using the area center of gravity method, and the final distribution factors
α1(
t) and
α2(
t) are obtained as shown in Equation (11).
where
u1,
u2, and
u3 are the values of Δ
fi(
t), dΔ
fi(
t)/d
t, and
α1(
t) after fuzzy quantization, respectively, and A
u1(
t), A
u2(
t), and A
u3(
t) are the values of Δ
fi(
t), dΔ
fi(
t)/d
t, and
α1(
t) after substitution, respectively.
The virtual inertia distribution factor α1(t) and the virtual sag distribution factor α2(t) obtained from the fuzzy controller can be substituted into Equation (9) to obtain the total output force ΔPB for the multiple BESS groups participating in a single FM.
4.3. Balanced Control Layer
The optimal output allocation of each BESS is achieved based on the equal consumption micro-increase rate criterion for the overall output of the BESS, as determined by the adaptive regulation layer. The fundamental concept of equalization control can be summed up as follows: to achieve local target consistency, neighboring connected intelligence communicate with each other, and to achieve global target consistency, signals are sent to the control center. The establishing function, parameter initialization, and repeated update are the three components that make up the equilibrium control.
Figure 5 depicts the homogeneous control’s structure map.
4.3.1. Objective Function and Constraint Function
The FM loss is the change in the operating cost brought about by the change in power output of the unit in the secondary FM process, and the loss function of each group of BESS is composed of charging and discharging power and charge state. The
m moment of the FM loss function of each group of BESS is
where
DG,m is the FM loss of each group of BESS at moment
m,
aBj and
bBj are the weighting coefficients,
QSOCj,m is the charge state of each group of BESS at moment
m, QrefSOCj is the expected reference value of each group of BESS charge state during FM,
QSOCjmax and
QSOCjmin are the maximum and minimum values of each group of BESS,
RBjmax and
RBjmin are the maximum and minimum values of each group of BESS climbing rate,
PBjmax,m and
PBjmin,m are the maximum and minimum values of each group of BESS FM output, respectively, and Δ
t is the preset sampling interval of the timer.
When
PBj,m < 0,
PBj,m = PcBj,m, and BESS is the charging state, and when
PBj,m > 0,
PBj,m = PdBj,m, and BESS is the discharging state. The charge state is further expressed as the charging and discharging power in Equation (13), and the BESS FM loss function shown in Equation (14) can be finally obtained after combining it with Equation (12).
where
QSOCj,m−1 is the charge state of the BESS at
m − 1 moment, and
ηcj and
ηdj are the BESS charging and discharging efficiency.
In summary, the power balance control objective function and its constraints are
4.3.2. Initialization Settings
The slight increase in consumption
λ is the partial derivative of the loss function for power output, and its magnitude can express the FM unit’s unit power cost.
λ increases as the unit’s FM power output increases, and when the optimal power output distribution is achieved, the slight rate of increase in consumption
λ of each FM unit tends to be the same.
λ is written as follows:
The result of the average distribution of the total BESS output Δ
PB is used as the initial value of the equalization control, and the initial values of the unit output and
λ are as follows:
where
P0Bj,m is the initial value of the FM output of the BESS and
λ0Bj,m is the initial value of
λ for the BESS.
4.3.3. Iterative Update
When iterating over
λ, the unit changes its FM output so that its
λ is approximately consistent with that of the neighboring storage unit, thus achieving balanced control of the output. At
m moment, battery energy storage
j is iterated, and the virtual consumption micro-increase rate
λn~j,m for the
nth iteration is obtained by correcting
λn−1j,m and the FM unit output
Pn−1j,m for the
n−1st iteration. The correction function is
where
λn−1βd,m is the consumption micro-increase rate of unit
β adjacent to unit
j,
d ∈ [1,
D],
P0j,m is the initial value of the FM output of unit
j, and
σ1 and
σ2 are correction factors.
If the virtual consumption micro-increase rate crosses the limit during the iteration, the boundary value of its range is taken as the actual consumption micro-increase rate. The actual consumption micro-increase rate
λnj,m for the nth iteration is
where
λmax and
λmin are the maximum and minimum values of the consumption micro-increase rate of unit
j, respectively.
Substituting
λnj,m into Equation (16) gives the theoretical output
Pn~j,m of the FM unit, and using the same boundary value constraint gives the actual output
Pnj,m as
where
Pmax and
Pmin are the maximum and minimum values of unit
j FM output, respectively.
4.3.4. Balancing Control Process
The overall flow of the equalization control is as follows, based on the preceding process. The overall flowchart is shown in
Figure 6.
- Step 1:
In the FM process, define the objective function based on the total cost of the BESS and consider the charge state limit and charge/discharge power limit of energy storage as the objective function’s constraint function.
- Step 2:
Set the equivalent consumption micro-increase rate λ0Bj,m and the energy storage frequency adjustment power P0Bj,m to their starting values, while setting the algorithm’s initial iteration number n to 0.
- Step 3:
Each group of BESS is compared with the equal consumption micro-increase rate of the neighboring BESS and if the consistency condition is satisfied, it means that the storage and the neighboring storage have reached local optimization; otherwise, its equal consumption micro-increase rate is updated according to Equations (18) and (19), and the updating process requires the neighboring BESSs to exchange and update their equal consumption micro-increase rates in the process of FM control, so that the marginal cost of the neighboring BESS is consistent and at the same time equilibrium is reached among the groups of BESSs in the control network.
- Step 4:
The FM power of each group of BESS is updated according to the updated equal consumption micro-increase rate λnj,m, and after substituting the updated equal consumption micro-increase rate into Equation (16), the FM output power Pnj,m is updated in combination with Equation (20); when all BESSs update the FM power and output according to the equal consumption micro-increase rate consistency criterion, one action of FM is completed and the whole control network reaches stability.
- Step 5:
Perform the timer’s preset sampling interval Δt, and determine whether the timer’s preset value is reached; if so, end; otherwise, n = n+1; return to Step 3.