Abstract
This paper proposes a safe reinforcement learning algorithm for generation bidding decisions and unit maintenance scheduling in a competitive electricity market environment. In this problem, each unit aims to find a bidding strategy that maximizes its revenue while concurrently retaining its reliability by scheduling preventive maintenance. The maintenance scheduling provides some safety constraints which should be satisfied at all times. Satisfying the critical safety and reliability constraints while the generation units have an incomplete information of each others' bidding strategy is a challenging problem. Bi-level optimization and reinforcement learning are state of the art approaches for solving this type of problems. However, neither bi-level optimization nor reinforcement learning can handle the challenges of incomplete information and critical safety constraints. To tackle these challenges, we propose the safe deep deterministic policy gradient reinforcement learning algorithm which is based on a combination of reinforcement learning and a predicted safety filter. The case study demonstrates that the proposed approach can achieve a higher profit compared to other state of the art methods while concurrently satisfying the system safety constraints.
Introduction
In modern competitive electricity markets, power generation units operate as independent agents with the primary goal of maximizing profit through strategic bidding. However, economic optimization cannot come at the expense of system reliability. Units must periodically undergo preventive maintenance to ensure long-term functionality. This creates a complex multi-agent game characterized by two major hurdles: incomplete information regarding competitors' strategies and critical safety constraints.
The power grid must always meet consumer demand; if too many units go offline for maintenance simultaneously, the grid faces catastrophic failure. While traditional bi-level optimization struggles with the incomplete information inherent in decentralized markets, standard reinforcement learning (RL) lacks the mechanisms to guarantee that its trial-and-error exploration phase won't violate these critical safety boundaries. This paper introduces a framework that bridges this gap by decoupling economic learning from physical constraint satisfaction.
Methodology: Safe Multi-Agent RL Framework
The proposed solution utilizes a bi-level architecture that combines Deep Reinforcement Learning with a deterministic safety layer.
Multi-Agent Deep RL (Upper Level)
At the upper level, each generation unit is modeled as an agent using the Deep Deterministic Policy Gradient (DDPG) algorithm. Unlike traditional Q-learning, which requires discretizing bids and suffers from the "curse of dimensionality," DDPG handles continuous action spaces natively. Each agent's actor-critic network learns to output bidding strategies and maintenance schedules based on the current state $S(t)$, which includes previous market clearing prices and demand levels.
Predicted Safety Filter
The core innovation is the Predicted Safety Filter. Because RL agents may suggest unsafe maintenance actions during exploration, their decisions are intercepted before execution. This filter, formulated as a Mixed Integer Linear Programming (MILP) problem, adjusts the requested maintenance schedule $u(t)$ to the closest safe schedule $u_f(t)$ that satisfies all physical constraints, such as minimum maintenance duration and maximum allowable offline capacity.
Market Clearing (Lower Level)
The filtered, safe decisions are passed to the Independent System Operator (ISO). The ISO clears the market to minimize total system cost while meeting demand. The resulting clearing price and dispatch instructions are then fed back to the agents as a reward signal $r(t)$, allowing them to update their policies for the next time step.
Experimental Results
The algorithm was evaluated using a simulated environment based on the standard IEEE 30-bus system with six generation units. The simulation spanned 100 episodes, each representing a 30-day operational period.
Key findings include:
- Strict Safety Guarantees: The safety filter successfully prevented grid failures. Without the filter, RL agents frequently attempted to schedule maintenance simultaneously during early training phases, which would have violated load satisfaction constraints.
- Fast Convergence: The safe DDPG algorithm converged to optimal bidding and maintenance strategies within approximately 40 episodes.
- Superior Performance: The proposed approach achieved significantly higher average profits compared to a safe Q-learning baseline. The continuous action space of DDPG allowed for more precise bidding than the discretized state-action spaces required by Q-learning.
Conclusion and Future Work
This research demonstrates that safety filters enable the application of online RL in critical infrastructure by offloading hard physical constraints to a deterministic MILP layer. This allows agents to explore economically optimal strategies without risking grid collapse.
Future work will focus on extending this framework to handle the high uncertainty introduced by renewable energy sources like wind and solar. Additionally, the authors plan to scale the algorithm to larger power systems and incorporate more complex network contingency constraints, such as N-1 security criteria, to better reflect the complexities of real-world grid operations.
Summary updated