Energy Battery Storage for Frequency Regulation in Smart Grids: Two-Tier MPC and Delay Coordination

Energy battery storage is becoming a practical grid asset for frequency regulation because it can change active power much faster than thermal generation. As renewable generation displaces synchronous machines, the power system loses rotational inertia and primary frequency reserve, so a load imbalance produces larger frequency deviations and a higher rate of change of frequency. A single battery energy storage system (BESS) has limited power and energy, but an aggregator can combine many units with different capacities, rated powers, charge/discharge coefficients, state-of-charge (SOC) levels, and time constants into one dispatchable entity.

The main technical difficulty is not only battery response; it is coordination. The aggregator must allocate an area-level frequency-control signal among distributed units, respect battery power and SOC limits, and remain stable when communication delays make the BESS response arrive late. A hierarchical control design addresses these issues with a sparse communication structure, a two-tier model predictive control (MPC) layer, and a fuzzy coordination layer between the BESS aggregator and the conventional power plant (CPP).

Grid-connected battery energy storage modules
Battery energy storage modules provide fast active-power support for grid frequency regulation.

The Frequency-Control Problem in a Low-Inertia Grid

In a control area containing thermal generation, wind generation, and an aggregated BESS, the frequency deviation \(\Delta f_i\) can be represented by a swing equation in which the BESS power appears as a fast controllable term:

$$
2H_i\frac{d\Delta f_i}{dt}
=-D_i\Delta f_i+\Delta P_{m,i}+\Delta P_{w,i}+\Delta P_{B,i}
-\Delta P_{L,i}-\Delta P_{tie,i}
$$

Here \(H_i\) is the inertia constant, \(D_i\) is the load-damping coefficient, \(\Delta P_{m,i}\) is the thermal-generation change, \(\Delta P_{w,i}\) is the wind-power change, \(\Delta P_{B,i}\) is the aggregate BESS power change, \(\Delta P_{L,i}\) is the load change, and \(\Delta P_{tie,i}\) is the total tie-line power change. The tie-line term is

$$
\Delta P_{tie,i}=2\pi\sum_{j\in M,\ j\ne i}T_{ij}\left(\Delta f_i-\Delta f_j\right)
$$

where \(T_{ij}\) is the synchronizing torque coefficient between areas \(i\) and \(j\), and \(M\) is the set of control areas. The area control error (ACE) combines the tie-line and frequency terms:

$$
ACE_i=\beta_i\Delta f_i+\Delta P_{tie,i}
$$

with \(\beta_i\) as the frequency-bias coefficient. The ACE is split between the conventional plant and the BESS aggregator:

$$
ACE_{G,i}=\sigma_{G,i}ACE_i,\qquad
ACE_{B,i}=\sigma_{B,i}ACE_i,\qquad
\sigma_{G,i}+\sigma_{B,i}=1
$$

The BESS aggregator output is the sum of the individual battery powers:

$$
\Delta P_{AG,i}=\sum_{b=1}^{N_{B_i}}\Delta P_{B,i,b},\qquad i\in M
$$

Each battery is represented by a first-order response. Neglecting the command delay for the moment,

$$
\Delta P_{B,i,b}(s)=\frac{K_{B,i,b}}{1+T_{B,i,b}s}U_{B,i}(s)
$$

or, in time-domain form,

$$
\dot{\Delta P}_{B,i,b}
=-\frac{1}{T_{B,i,b}}\Delta P_{B,i,b}
+\frac{K_{B,i,b}}{T_{B,i,b}}U_{B,i}
$$

where \(K_{B,i,b}\) is the charge/discharge coefficient, \(T_{B,i,b}\) is the time constant, and \(U_{B,i}\) is the control command received from the BESS control center. The control problem is constrained by the rated charge and discharge power of each unit and by the SOC window, typically kept between 10% and 90% to limit battery stress. A long communication delay \(\tau_b(t)\) between the aggregator and unit \(b\) changes the effective response and can make a command arrive after the system need has already changed.

Two-Tier MPC for Aggregated BESS Control

The MPC layer separates nominal planning from feedback correction. The nominal controller uses an uncertainty-free model to generate a feasible reference trajectory, while the auxiliary controller uses measurements from the actual system to correct deviations from that trajectory. The nominal model is

$$
z_i(k+1)=A_i z_i(k)+B_iU_{B,\mathrm{nom},i}(k)+F_i d_i(k)
$$

$$
ACE_{B,\mathrm{nom},i}(k)=C_i z_i(k)
$$

and the actual uncertain model is

$$
x_i(k+1)=A_i x_i(k)+B_iU_{B,i}(k)+F_i d_i(k)+L_iP_{w,i}(k)
$$

$$
ACE_{B,\mathrm{act},i}(k)=C_i x_i(k)
$$

In these expressions, \(z_i\) and \(x_i\) are the nominal and actual state vectors, \(U_{B,\mathrm{nom},i}\) and \(U_{B,i}\) are the nominal and actual control signals, \(d_i\) is a disturbance vector, and \(P_{w,i}\) represents wind-power uncertainty. The nominal layer minimizes ACE and control effort over a prediction horizon \(p\) and a control horizon \(c\):

$$
\min_{U_{B,\mathrm{nom},i}}
\sum_{k=0}^{p}\left\|ACE_{B,\mathrm{nom},i}(k+1)-ACE_{B,\mathrm{ref},i}\right\|^2_{Q_{ACE,1}}
+\sum_{k=0}^{c}\left\|\Delta U_{B,\mathrm{nom},i}(k)\right\|^2_{Q_{U,1}}
$$

The reference ACE is set to zero. The auxiliary layer then penalizes the difference between the actual and nominal ACE trajectories, as well as the difference between the actual and nominal control signals:

$$
\min_{U_{B,\mathrm{act},i}}
\sum_{k=0}^{p}\left\|ACE_{B,\mathrm{act},i}(k+1)-ACE_{B,\mathrm{nom},i}(k+1)\right\|^2_{Q_{ACE,2}}
+\sum_{k=0}^{c}\left\|U_{B,\mathrm{act},i}(k)-U_{B,\mathrm{nom},i}(k)\right\|^2_{Q_{U,2}}
$$

The auxiliary layer keeps the actual trajectory inside a tube around the nominal trajectory while respecting the original physical constraints. These constraints cover the control signal, the ACE output, the charge/discharge power, and the SOC. The nominal layer uses a tightened constraint set—80% of the auxiliary limits in the reported test case—so that the auxiliary layer has room to correct uncertainty without violating battery or system limits. A sine-cosine algorithm is used to solve the optimization problem.

This structure has a practical advantage for an aggregator. The nominal layer can plan a smooth response using forecasts and the model, while the auxiliary layer reacts to measured wind and tie-line deviations. The BESS therefore does not need to follow a single open-loop dispatch curve; it continuously corrects its trajectory while remaining inside the same power and energy envelope.

Fuzzy Coordination Between the BESS and the Conventional Plant

Communication delay changes the division of labor between the BESS aggregator and the CPP. If the BESS receives a command late, its response may arrive after the conventional plant has already changed output, or the conventional plant may over-correct because it interprets a stale BESS signal as a persistent imbalance. The coordination layer addresses this problem by adjusting the PI gains of the conventional-plant controller online.

The conventional plant is regulated by a PI controller of the form

$$
u_{CPP,i}(t)=k_{p,i}e_i(t)+k_{i,i}\int e_i(t)\,dt
$$

where \(e_i\) is the control error derived from the ACE signal allocated to the conventional plant, and \(k_{p,i}\) and \(k_{i,i}\) are the proportional and integral gains. A fuzzy inference system uses the BESS aggregator output and the conventional-plant output as inputs, applies scaling factors \(k_1\)–\(k_3\), evaluates a rule base, and produces a gain-adjustment signal through defuzzification factors \(k_4\) and \(k_5\). The input membership functions are negative (N), zero (Z), and positive (P); the output membership functions are large negative (LN), small negative (SN), zero (ZR), small positive (SP), and large positive (LP). The rule base contains 27 rules.

In the reported tuning, the scaling factors \(k_1=0.41\), \(k_2=0.65\), \(k_3=0.29\), \(k_4=0.37\), and \(k_5=0.84\) gave the best delay-coordination behavior. The purpose is not to replace the primary frequency response of the plant, but to prevent the conventional unit from taking unnecessary or mistimed corrective action when the BESS response is delayed.

Test Conditions and Controller Settings

The control design was evaluated on a modified IEEE 39-bus system with 10 generators and three wind farms. The wind farms have a total capacity of 60 MW, with an average of 20 MW each, and are connected at buses 5, 26, and 16 in areas 1, 2, and 3. Areas 1 and 2 each contain a BESS aggregator controlling five distributed batteries.

Key test-system and controller settings
Test network Modified IEEE 39-bus system; 10 generators; 3 wind farms
Wind generation 60 MW total; 20 MW average per farm; buses 5, 26, and 16
BESS aggregation Areas 1 and 2; 4.68 MW·h and 5.25 MW·h; five units per aggregator
Individual BESS 500 kW rated charge/discharge; 0.81–1.17 MW·h; initial SOC 49–75%
ACE sharing Conventional plant 0.6; BESS aggregator 0.4
BESS ACE deadband ±0.01 p.u.
MPC horizons Prediction horizon 20; control horizon 2; sample interval 0.1 s
Constraint tightening Nominal layer limited to 80% of auxiliary-layer constraints
Fuzzy scaling factors \(k_1=0.41\), \(k_2=0.65\), \(k_3=0.29\), \(k_4=0.37\), \(k_5=0.84\)

Dynamic Response and Uncertainty

In the dynamic test, area 1 received a 10 MW load increase at \(t=10\) s, and area 2 received a 10 MW load decrease at \(t=30\) s. The two-tier controller produced smaller frequency and tie-line power deviations than conventional MPC and stayed close to the nominal MPC trajectory. The aggregator output rose faster within its rated power and delivered more energy during the transient. At the unit level, batteries in area 1 responded mainly to the area 1 disturbance, while area 2 batteries responded mainly to the area 2 disturbance. Units with higher charge/discharge coefficients and lower time constants contributed more; in area 2, the unit with the highest time constant and a comparatively low charge/discharge coefficient was the smallest contributor.

Robustness was tested with bounded uncertainty in wind power and tie-line power. The uncertainty was modeled as a uniform perturbation with upper and lower bounds equal to 2% of the absolute actual value, and a 10 MW load increase was applied in area 1 at \(t=10\) s. The two-tier controller maintained a response close to the nominal trajectory and reduced the deviation compared with conventional MPC. This result supports the use of the nominal-plus-auxiliary structure when wind and tie-line forecasts are imperfect, but it does not by itself establish performance under all forms of model error.

Communication Delay and Coordination Performance

The delay study lumped all communication latency into a single time delay \(\tau(t)\) applied to the BESS commands. A 20 MW load increase in area 1 was used as the disturbance, and the delay was varied from 0 to 1.5 s. Table 2 reports root-mean-square (RMS) frequency and tie-line deviations and the integral of time-weighted squared error (ITSE) for three controllers: auxiliary MPC with the fuzzy coordinator, auxiliary MPC alone, and conventional MPC.

RMS deviations and ITSE under a lumped BESS communication delay
Method \(\tau\) (s) RMS \(\Delta f_1\) (Hz) RMS \(\Delta f_2\) (Hz) RMS \(\Delta f_3\) (Hz) RMS \(\Delta P_{tie,1}\) (p.u.) RMS \(\Delta P_{tie,2}\) (p.u.) RMS \(\Delta P_{tie,3}\) (p.u.) ITSE
Auxiliary MPC + fuzzy coordinator 0 0.0350 0.0375 0.0380 0.0261 0.0133 0.0130 0.6600
Auxiliary MPC + fuzzy coordinator 0.5 0.0386 0.0400 0.0382 0.0271 0.0142 0.0139 0.7530
Auxiliary MPC + fuzzy coordinator 1.0 0.0430 0.0460 0.0440 0.0310 0.0171 0.0160 0.8394
Auxiliary MPC + fuzzy coordinator 1.5 0.0450 0.0490 0.0480 0.0340 0.0180 0.0170 0.9300
Auxiliary MPC 0 0.0438 0.0528 0.0530 0.0360 0.0220 0.0170 1.0120
Auxiliary MPC 0.5 0.0440 0.0542 0.0553 0.0360 0.0210 0.0160 1.0320
Auxiliary MPC 1.0 0.0460 0.0560 0.0568 0.0373 0.0225 0.0161 1.0800
Auxiliary MPC 1.5 0.0481 0.0580 0.0581 0.0384 0.0233 0.0166 1.1135
Conventional MPC 0 0.0573 0.0608 0.0592 0.0410 0.0231 0.0215 1.6800
Conventional MPC 0.5 0.0591 0.0621 0.0594 0.0452 0.0227 0.0232 1.8797
Conventional MPC 1.0 0.0650 0.0694 0.0678 0.0476 0.0260 0.0236 1.9800
Conventional MPC 1.5 0.0661 0.0695 0.0681 0.0485 0.0256 0.0257 2.2100

The coordinated controller had the lowest RMS and ITSE values at every delay. At zero delay, its ITSE was 0.6600, compared with 1.0120 for auxiliary MPC alone and 1.6800 for conventional MPC. At 1.5 s, the corresponding values were 0.9300, 1.1135, and 2.2100. The RMS frequency deviation in area 1 at 1.5 s was 0.0450 Hz with coordination, 0.0481 Hz with auxiliary MPC alone, and 0.0661 Hz with conventional MPC.

Additional tests used a 1 s delay with a 20 MW load increase in area 2 at \(t=2\) s, and a 10 s delay to examine a more severe channel condition. The fuzzy-coordinated two-tier controller reduced frequency and tie-line overshoot and kept the response closer to the nominal trajectory than conventional MPC. The coordination layer is therefore most useful when the BESS command is delayed enough that the conventional plant would otherwise act on an outdated estimate of the BESS contribution.

Design Implications and Limits of the Evidence

The control architecture points to several practical design rules for aggregated energy battery storage. First, the aggregator should allocate ACE according to both SOC and power capability, not only nameplate capacity. Units with high charge/discharge coefficients and short time constants can provide faster support, but they also risk faster SOC depletion; the MPC constraints keep this trade-off inside the battery operating envelope. Second, a sparse communication network reduces the number of wide-area signals required, but it makes delay-aware coordination essential. Third, the two-tier MPC structure separates nominal planning from feedback correction, which is useful when wind and tie-line conditions deviate from forecasts.

The evidence is simulation-based. The delay is represented as a single lumped time delay, wind and tie-line uncertainty is bounded at 2% of the actual value, and the test system is a modified IEEE 39-bus network. These conditions support the control design within the stated scope, but field deployment would also need to address variable communication jitter, topology changes, battery aging, protection interactions, and the validity of the reduced-order battery model. The fuzzy coordinator is a supervisory delay-management layer; it does not replace local protection, primary droop, or the underlying BESS power-electronics limits.

Scroll to Top