Grid-connected energy battery storage, particularly lithium-ion systems, is increasingly evaluated as a dual-market resource. It can charge when energy prices are low and discharge when they are high, and it can also reserve capacity for automatic generation control (AGC). Those two uses compete for the same megawatts and megawatt-hours. The central market question is therefore not whether a battery can provide AGC—its speed makes that technically attractive—but how much AGC capacity it should offer when every reserved megawatt reduces its freedom in the energy market.

AGC Response and the Physical Constraints That Shape It
AGC corrects area control error by adjusting active power in response to frequency and interchange deviations. For a battery, active-power/frequency droop control is a common implementation:
$$ \Delta P_{s,t} = -\frac{\Delta f_t}{\delta_s} $$
where \(\Delta P_{s,t}\) is the change in storage active power at time \(t\), \(\Delta f_t\) is the frequency deviation, and \(\delta_s\) is the storage droop coefficient. The battery absorbs or injects power according to the sign and magnitude of the frequency deviation, subject to its power and energy limits.
The physical case for battery AGC is strong. In a same-rating comparison, a battery reached steady output after a frequency disturbance in about 1 s, while a thermal unit took about 6 s; the thermal response also showed more overshoot. A battery can move across the full range from \(-P_{max}\) to \(P_{max}\), whereas a thermal unit is bounded by its physical ramp and minimum output. The binding constraint is not speed but energy. AGC reserve must be backed by stored energy, and lithium-ion systems are typically kept within a 10–90% state-of-charge window to limit overcharge and overdischarge. Frequent regulation also consumes cycle life, so AGC is not a free service even when the battery is idle in the energy market.
Energy-Market Operation and the Cost of Holding Reserve
In the energy market, the storage unit is dispatched subject to charging and discharging power limits, mutual exclusivity, stored-energy continuity, and state-of-charge bounds:
$$ 0\le P^{ch}_t\le b^{ch}_t P^{ch,max},\qquad 0\le P^{dch}_t\le b^{dch}_t P^{dch,max} $$
$$ b^{ch}_t+b^{dch}_t\le 1 $$
$$ E_t=E_{t-1}+\eta_{ch}P^{ch}_tT-\frac{P^{dch}_t}{\eta_{dch}}T,\qquad E_{min}\le E_t\le E_{max} $$
Here \(P^{ch}_t\) and \(P^{dch}_t\) are charging and discharging power, \(b^{ch}_t\) and \(b^{dch}_t\) are binary charging states, \(E_t\) is stored energy, \(\eta_{ch}\) and \(\eta_{dch}\) are charging and discharging efficiencies, \(T\) is the dispatch interval, and \(E_{min}\) and \(E_{max}\) are the energy bounds.
Cycling costs are represented by a degradation term plus an operation-and-maintenance term:
$$ C_{D,t}=\frac{C_I}{2N_{life}Q_0}\left(P^{ch}_t+P^{dch}_t\right)T $$
$$ C_{M,t}=K_M\left(P^{ch}_t+P^{dch}_t\right)T $$
where \(C_I\) is initial investment, \(N_{life}\) is cycle life, \(Q_0\) is rated energy capacity, and \(K_M\) is the O&M cost coefficient. The storage profit from energy arbitrage over \(N\) intervals is
$$ \Pi_e=\sum_{t=1}^{N}\left[\lambda_t\left(P^{dch}_t-P^{ch}_t\right)T-C_{D,t}-C_{M,t}\right] $$
with \(\lambda_t\) as the energy price. The energy-market clearing problem minimizes thermal generation cost plus storage degradation and O&M cost, subject to power balance, thermal ramping and start-up constraints, wind availability, and the storage constraints above. The storage profit is then evaluated from the resulting dispatch and prices. Because the unit is small relative to the system in the case considered here, it is treated as a price-taker.
When \(R\) MW is reserved symmetrically for upward and downward AGC, the energy window available to the energy market shrinks. For an AGC duration \(t_{AGC}\),
$$ E’_{min}=E_{min}+R t_{AGC},\qquad E’_{max}=E_{max}-R t_{AGC} $$
and the charging and discharging power bounds are tightened in the corresponding directions. The energy-market profit with reserve is \(\Pi_e(R)\). The opportunity cost of holding \(R\) MW for AGC is the foregone energy-market profit:
$$ C_{OP}(R)=\Pi_e(0)-\Pi_e(R) $$
This is a shadow value of reserve capacity, not an accounting cost. It is obtained by re-solving the energy-market problem with the reserve-adjusted storage bounds, so it captures the joint effect of reduced power headroom, reduced energy headroom, and the price profile.
Decision Rule for AGC Capacity
If the AGC capacity payment is \(p_{AGC}\) per MW and the expected regulation-duty cost is \(C_{reg}\) per MW, total profit as a function of reserve capacity is
$$ \Pi_{total}(R)=\Pi_e(0)-C_{OP}(R)+p_{AGC}R-C_{reg}R $$
The profit-maximizing reserve satisfies the marginal condition
$$ MOC(R^*)+C_{reg}=p_{AGC} $$
where \(MOC(R)=dC_{OP}/dR\) is the marginal opportunity cost. In discrete market bids, the operator selects the largest reserve for which the incremental opportunity cost plus regulation cost does not exceed the AGC compensation rate. If the compensation rate is below the first increment’s cost, the optimal AGC capacity is zero. If it exceeds the marginal cost up to the storage’s power rating, the optimal capacity is the full rating. The average unit opportunity cost \(C_{OP}(R)/R\) is useful for reporting, but the capacity decision is governed by the marginal curve.
Case Study: IEEE 6-Bus System With 20 MW/100 MWh Storage
The case uses a modified IEEE 6-bus system with three thermal units, one wind farm, and a 20 MW/100 MWh lithium-ion storage unit at bus 5. Table 1 summarizes the key inputs and base-case energy-market results.
Table 1. Base-case parameters and energy-market results
| Parameter | Value used in the case |
|---|---|
| Test network | IEEE 6-bus, 3 thermal units and 1 wind farm |
| Battery storage | 20 MW / 100 MWh lithium-ion, bus 5 |
| Round-trip efficiency | 90% |
| O&M cost | 4 $/MWh |
| Peak energy price | 40.57 $/MWh |
| Valley energy price | 17.05 $/MWh |
| Storage charging / discharging energy | 68.82 MWh / 61.94 MWh |
| Thermal / wind output | 6,106.89 MWh / 1,471.2 MWh |
The clearing price is set by the marginal cost of thermal generation: 40.57 $/MWh at peak and 17.05 $/MWh at valley. With 90% efficiency, the efficiency-adjusted peak–valley spread is \(0.9\times40.57-17.05=19.46\) $/MWh, which exceeds the 4 $/MWh O&M cost; arbitrage is therefore profitable. Over the day, the storage charged 68.82 MWh and discharged 61.94 MWh. The case accounting gives 1,199 in gross arbitrage margin, 524 in operating cost, and 675 in net energy-market margin in case currency units.
Results: Rising Marginal Opportunity Cost and the Optimal AGC Share
As AGC reserve increases, the energy-market profit falls and the opportunity cost rises. The stored-energy traces show the mechanism. At zero AGC reserve, the stored-energy range was about 22–100 MWh, a usable range of about 78 MWh. At 10 MW, the upper level fell below 80 MWh; at 12 MW, below 70 MWh; at 18 MW, the range narrowed to 20–40 MWh, only about 20 MWh of usable energy. At high reserve levels, the power rating becomes the dominant constraint because the battery has little remaining capacity to arbitrage the price spread.
The opportunity-cost curve steepens with reserve capacity. The slope is 0.1 $/MW between 0 and 2 MW and 1.35 $/MW between 16 and 18 MW. This rise is the economic signature of a scarce resource: the first megawatts of AGC reserve displace the least valuable arbitrage, while later megawatts displace the most valuable discharge windows. The marginal opportunity cost, not the average, determines the optimal bid.
Table 2 applies two regional AGC capacity compensation rates from China. The regulation cost is treated as an empirical input of 0.1 $/MW in both cases.
Table 2. AGC capacity compensation and optimal reserve allocation
| AGC compensation reference | Capacity payment | Equivalent used in the case | Optimal AGC capacity |
|---|---|---|---|
| North China grid | 5 yuan/MW | 0.78 $/MW | 7.5 MW |
| Northwest grid | 20 yuan/MW | 3.14 $/MW | 20 MW, full rating |
With the North China compensation rate, the marginal opportunity cost plus regulation cost reaches the AGC payment at about 7.5 MW, or 37.5% of the 20 MW rating. At that point the storage maximizes total revenue across the energy and AGC markets. A larger AGC bid would reduce total revenue because the foregone energy-market profit would exceed the additional capacity payment. With the Northwest compensation rate, the AGC payment is high enough that the model allocates the full 20 MW to AGC.
Interpretation and Limits
The result is a market-specific allocation rule, not a universal preference for AGC. Opportunity cost depends on the energy price profile, storage efficiency and degradation, the assumed AGC duration, initial and terminal energy constraints, and the storage’s size relative to the market. The case is deterministic and uses forecast prices and wind; uncertainty would shift the opportunity-cost curve and call for stochastic or rolling optimization. The case also treats the storage unit as a price-taker. A large storage fleet would need the reserve decision embedded in market clearing because its AGC bid could move prices.
The regulation cost \(C_{reg}\) is an empirical input here, not a measured duty-cycle cost. A bankable estimate requires AGC signal data, C-rate, temperature, depth of discharge, and cell degradation characterization. Markets that pay separately for upward and downward regulation, mileage, or performance would require separate marginal revenue terms and a multi-product allocation. The model also assumes symmetric AGC bidding; asymmetric products would produce separate opportunity-cost curves for upward and downward reserve.
Conclusion
Opportunity cost turns AGC reservation into a transparent trade-off between capacity payment and foregone energy-market profit. For lithium-ion energy battery storage, the profit-maximizing AGC capacity is the largest reserve for which marginal opportunity cost plus regulation cost does not exceed the AGC compensation rate. In the 20 MW/100 MWh case, that condition gives 7.5 MW under North China compensation and full capacity under Northwest compensation. The same logic can be used to screen AGC bids, assess compensation levels, and compare storage with other flexible resources in co-optimized energy and ancillary-service markets.
