[Paper Review] Proximal Policy Optimization with Graph Neural Networks for Optimal Power Flow
This paper proposes a novel Proximal Policy Optimization (PPO) framework enhanced with Graph Neural Networks (GNNs) to solve the non-convex Alternating Current Optimal Power Flow (ACOPF) problem. By leveraging GNNs to model power grid topology and PPO to learn optimal control policies, the method generalizes across unseen network configurations—achieving cost performance within 1.38× of the DCOPF baseline under load variations and maintaining feasibility even after removing up to 8 lines.
Optimal Power Flow (OPF) is a very traditional research area within the power systems field that seeks for the optimal operation point of electric power plants, and which needs to be solved every few minutes in real-world scenarios. However, due to the nonconvexities that arise in power generation systems, there is not yet a fast, robust solution technique for the full Alternating Current Optimal Power Flow (ACOPF). In the last decades, power grids have evolved into a typical dynamic, non-linear and large-scale control system, known as the power system, so searching for better and faster ACOPF solutions is becoming crucial. Appearance of Graph Neural Networks (GNN) has allowed the natural use of Machine Learning (ML) algorithms on graph data, such as power networks. On the other hand, Deep Reinforcement Learning (DRL) is known for its powerful capability to solve complex decision-making problems. Although solutions that use these two methods separately are beginning to appear in the literature, none has yet combined the advantages of both. We propose a novel architecture based on the Proximal Policy Optimization algorithm with Graph Neural Networks to solve the Optimal Power Flow. The objective is to design an architecture that learns how to solve the optimization problem and that is at the same time able to generalize to unseen scenarios. We compare our solution with the DCOPF in terms of cost after having trained our DRL agent on IEEE 30 bus system and then computing the OPF on that base network with topology changes
Motivation & Objective
- Address the lack of fast, robust, and generalizable solutions for full ACOPF in modern, dynamic power systems.
- Overcome limitations of traditional numerical methods and linear DCOPF approximations that fail under heavy loading or non-convex conditions.
- Integrate Graph Neural Networks (GNNs) with Deep Reinforcement Learning (DRL) to exploit structural information in power grids and improve generalization.
- Develop a DRL agent that learns to optimize power flow while respecting operational constraints across diverse, unseen network topologies.
- Demonstrate feasibility and performance of the proposed architecture on the IEEE 30-bus system under load variations, line removals, and topology changes.
Proposed method
- Propose a PPO-based DRL agent trained on power grid states represented as graphs, with nodes encoding bus information (e.g., load, generation, voltage) and edges encoding transmission lines.
- Use GNNs to encode the graph structure and propagate information across buses, enabling the agent to understand network topology and power flow dynamics.
- Define the reinforcement learning environment with state space including power injections, voltage magnitudes, and line flows, and action space as generator real power setpoints.
- Design a reward function that penalizes constraint violations (e.g., voltage limits, line flows) and minimizes total generation cost.
- Train the agent on a base IEEE 30-bus system with varied load conditions and validate generalization on modified topologies (load changes, line removals).
- Use a shared encoder (GNN) for state representation and a policy head for action selection, with PPO’s clipped objective to ensure stable training.
Experimental results
Research questions
- RQ1Can a PPO agent with GNN-based state representation generalize to unseen power grid topologies while maintaining feasibility and low cost?
- RQ2How does the performance of the proposed PPO-GNN method compare to the standard DCOPF approximation under load variations and network modifications?
- RQ3To what extent does the GNN component enhance generalization compared to non-graph-based DRL approaches in ACOPF?
- RQ4Does the method remain robust when key network components (e.g., lines or loads) are removed after training?
- RQ5Can the agent learn a policy that respects all AC power flow constraints without explicit supervision on constraint satisfaction?
Key findings
- The PPO-GNN agent achieved a cost performance ratio of 1.38 relative to DCOPF when loads were increased from 0.1 to 0.4 per unit, indicating strong generalization under load variation.
- After removing up to 50% of loads, the agent’s cost remained within 1.05× of the DCOPF baseline, demonstrating robustness to load changes.
- Even after removing 8 lines (26.7% of total), the agent maintained a cost performance ratio of 1.51 compared to DCOPF, showing resilience to topology changes.
- In cases with 2–5 removed loads, the agent matched or slightly outperformed DCOPF, with ratios of 1.00 or less, indicating high feasibility and efficiency.
- The model generalized effectively to unseen topologies, including line removals, with a notable drop in performance only when 8 lines were removed, suggesting a limit to generalization under extreme structural changes.
- The integration of GNNs with PPO enabled the agent to learn structural dependencies in power networks, leading to better generalization than non-graph-based DRL methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.