⚙️ Grid Operations — 4.2
Developer HubModule 4: Grid Operations4.2
Reading15 min

Frequency Regulation and AGC

⚙️ Module 4: Grid Operations

Frequency Regulation and AGC

Frequency regulation is the most fundamental grid service. It ensures that the grid frequency stays at its nominal value (50 Hz or 60 Hz) by continuously matching generation to load in real time.

Why Frequency Matters

All synchronous generators rotate at a speed directly proportional to the grid frequency. The relationship between generation, load, and frequency is governed by the swing equation:

2H * (df/dt) = P_mech - P_elec

where H is the inertia constant (seconds), df/dt is the rate of frequency change, P_mech is mechanical power input, and P_elec is electrical power output. When load exceeds generation, frequency drops; generators slow down.

Three Layers of Frequency Control

1. Primary Frequency Response (Governor Response) -- 0 to 30 seconds

Every generator has a governor (or droop controller for inverter-based resources) that automatically adjusts power output in response to frequency deviations. The relationship is defined by the droop characteristic:

Delta_P / P_rated = -(1/R) * (Delta_f / f_nominal)

where R is the droop setting (typically 4-5%, meaning a 5% change in frequency produces a 100% change in power). A generator with 5% droop and 100 MW rated power will increase output by 20 MW for a 1 Hz drop (at 50 Hz nominal).

2. Secondary Frequency Response (AGC) -- 30 seconds to 15 minutes

Automatic Generation Control (AGC) is a centralized control system that dispatches participating generators to restore frequency to exactly 50.000 Hz and correct tie-line flow errors between control areas. The AGC calculates an Area Control Error (ACE):

ACE = (P_actual - P_scheduled) + 10 * B * (f_actual - f_scheduled)

where B is the frequency bias (MW/0.1 Hz). The AGC distributes the total correction signal to participating generators based on their participation factors and ramp rates.

3. Tertiary Response (Reserves) -- 15 minutes to hours

When AGC exhausts its regulation range, the operator dispatches spinning reserves and non-spinning reserves to relieve AGC and restore adequate headroom.

Battery Storage for Frequency Regulation

Batteries are ideal for frequency regulation because:

  • Response time: < 100 ms (vs. 2-10 seconds for gas turbines)
  • Accuracy: Precise power control, no minimum stable operating point
  • Bidirectional: Can provide both up-regulation (discharge) and down-regulation (charge)
  • No fuel cost: Revenue is purely from the regulation service payment

In ERCOT, batteries providing fast frequency response earn $15-30/MW per hour. In PJM, the RegD signal (fast regulation) pays a mileage-based rate that rewards batteries' fast response.

Implementation in EnergyAtIt

The dispatch engine reads the grid frequency from substation telemetry, calculates the required regulation response based on droop settings, and sends power setpoints to participating batteries and generators via Modbus or DNP3:

if (frequency < 49.95) {
  // Under-frequency: discharge batteries, increase generation
  const delta_f = 50.0 - frequency;
  const required_MW = delta_f * frequency_bias;
  dispatchRegulationUp(required_MW);
} else if (frequency > 50.05) {
  // Over-frequency: charge batteries, curtail generation
  const delta_f = frequency - 50.0;
  const required_MW = delta_f * frequency_bias;
  dispatchRegulationDown(required_MW);
}

Synthetic Inertia

As synchronous generators are replaced by inverter-based resources (solar, wind, batteries), the grid loses physical inertia. Synthetic inertia (also called virtual inertia) programs inverters to mimic the inertial response of a synchronous machine by injecting power proportional to the rate of change of frequency (ROCOF).

Log in to track your progress and earn certifications.