Abstract
Frequency control plays a pivotal role in reliable power system operations. It is conventionally performed in a hierarchical way that first rapidly stabilizes the frequency deviations and then slowly recovers the nominal frequency. However, as the generation mix shifts from synchronous generators to renewable resources, power systems experience larger and faster frequency fluctuations due to the loss of inertia, which adversely impacts the frequency stability. This has motivated active research in algorithms that jointly address frequency degradation and economic efficiency in a fast timescale, among which the distributed averaging-based integral (DAI) control is a notable one that sets controllable power injections directly proportional to the integrals of frequency deviation and economic inefficiency signals. Nevertheless, DAI do not typically consider the transient performance of the system following power disturbances and has been restricted to quadratic operational cost functions. This manuscript aims to leverage nonlinear optimal controllers to simultaneously achieve optimal transient frequency control and find the most economic power dispatch for frequency restoration. To this end, we integrate reinforcement learning (RL) to the classic DAI, which results in RL-DAI. Specifically, we use RL to learn a neural network-based control policy mapping from the integral variables of DAI to the controllable power injections which provides optimal transient frequency control, while DAI inherently ensures the frequency restoration and optimal economic dispatch. Compared to existing methods, we provide provable guarantees on the stability of the learned controllers and extend allowable cost functions to a much larger class. Simulations on the 39-bus New England system illustrate our results.
Introduction
As power grids transition from traditional synchronous generators to renewable energy sources like wind and solar, they lose critical rotational inertia. In traditional grids, the physical spinning mass of large turbines naturally resists sudden frequency changes. Without this inertia, the grid experiences larger and faster frequency fluctuations during disturbances, such as generator failures or demand spikes.
Existing solutions like Distributed Averaging-based Integral (DAI) control are effective at restoring nominal frequency and ensuring economic dispatch—finding the most cost-efficient way to generate power—in the long run. However, DAI faces two significant challenges: it often exhibits poor transient performance (failing to optimize the immediate frequency "nadir" after a fault) and is mathematically restricted to simple quadratic cost functions. While Reinforcement Learning (RL) can optimize complex, nonlinear transients, it often lacks the rigorous stability guarantees required for critical infrastructure.
The RL-DAI Framework
The proposed RL-DAI framework bridges the gap between control theory and machine learning by embedding stability directly into the RL controller's architecture. The approach generalizes DAI to support a broader class of strictly convex cost functions, provided the gradients follow specific scaling properties. By mapping the integral variables of the DAI to control actions, the system inherently "remembers" errors until they are corrected, ensuring zero steady-state frequency deviation.
Monotonic Neural Network Architecture
To ensure provable stability, the authors utilize Stacked ReLU Monotonic Neural Networks. By constraining the weights and biases, the control policy is guaranteed to be Lipschitz continuous and strictly increasing. This monotonicity allows for the construction of a "weak" Lyapunov function, mathematically proving that the system will always converge to a stable equilibrium.
As shown in Figure 1, a monotonic control policy can be decomposed into positive and negative components, which are then constructed by stacking hidden neurons. This principle is implemented in the neural network architecture detailed in Figure 2, where specific weight constraints (e.g., weights of 1 or -1) and bias configurations ensure the output remains monotonic relative to the input state $s_i$.
The controller is trained using a Recurrent Neural Network (RNN) structure, allowing the RL agent to learn from the time-series dynamics of the power system and map integral frequency deviations to optimal power injection actions.
Experimental Results
The framework was evaluated using the 39-bus New England system, featuring 10 generator buses and 29 load buses. The model was trained on simulated trajectories with random power disturbances ranging from -5 to 5 per-unit (p.u.).
Key findings include:
- Improved Frequency Nadir: RL-DAI significantly reduced the maximum frequency dip compared to traditional linear DAI following a 3 p.u. disturbance.
- Economic-Control Co-optimization: The system achieved perfect frequency restoration (50/60 Hz) while ensuring identical marginal costs across all generators, satisfying optimal economic dispatch.
- Nonlinear Flexibility: The learned policies exhibited nonlinear behavior that outperformed standard linear controllers, even when using non-quadratic cost functions ($C_i(u_i) = c_i u_i^4 / 4 + b_i$).
Conclusion
RL-DAI provides a robust method for integrating machine learning into power grid control with formal stability guarantees. Future work will focus on addressing unmodeled dynamics (such as voltage profiles), moving toward fully distributed training processes, and investigating the impact of communication delays on system performance.
Summary updated