Proximal Policy Optimization Based Reinforcement Learning for Joint Bidding in Energy and Frequency Regulation Markets

Muhammad Anwar, Changlong Wang, Frits de Nijs, Hao Wang2022 IEEE Power & Energy Society General Meeting (PESGM) 2022 · DOI

Abstract

Driven by the global decarbonization effort, the rapid integration of renewable energy into the conventional electricity grid presents new challenges and opportunities for the battery energy storage system (BESS) participating in the energy market. Energy arbitrage can be a significant source of revenue for the BESS due to the increasing price volatility in the spot market caused by the mismatch between renewable generation and electricity demand. In addition, the Frequency Control Ancillary Services (FCAS) markets established to stabilize the grid can offer higher returns for the BESS due to their capability to respond within milliseconds. Therefore, it is crucial for the BESS to carefully decide how much capacity to assign to each market to maximize the total profit under uncertain market conditions. This paper formulates the bidding problem of the BESS as a Markov Decision Process, which enables the BESS to participate in both the spot market and the FCAS market to maximize profit. Then, Proximal Policy Optimization, a model-free deep reinforcement learning algorithm, is employed to learn the optimal bidding strategy from the dynamic environment of the energy market under a continuous bidding scale. The proposed model is trained and validated using real-world historical data of the Australian National Electricity Market. The results demonstrate that our developed joint bidding strategy in both markets is significantly profitable compared to individual markets.

Introduction

As the global energy landscape shifts toward renewable sources, power grids face a significant "flexibility gap." The intermittent nature of solar and wind power leads to high price volatility in spot markets and an increased demand for Frequency Control Ancillary Services (FCAS) to maintain grid stability. Battery Energy Storage Systems (BESS) are uniquely positioned to address these challenges by performing energy arbitrage—buying low and selling high—and providing rapid frequency response. However, because BESS capacity is limited, determining the optimal allocation between these two markets in a volatile environment is a complex optimization problem. Traditional methods often rely on perfect foresight or computationally intensive models that lack real-time adaptability. This research proposes an "online" strategy using deep reinforcement learning to navigate these market dynamics.

Methodology: PPO and Actor-Critic Framework

The bidding challenge is framed as a Markov Decision Process (MDP), where the state includes the battery's state of charge and current market prices. The action is a continuous value representing capacity allocation, and the reward is the net profit minus battery degradation costs.

To solve this MDP, the authors employ Proximal Policy Optimization (PPO), a state-of-the-art reinforcement learning algorithm known for its training stability. PPO utilizes a "clipped" objective function to prevent erratic strategy updates. The implementation uses an Actor-Critic architecture: the "Actor" network determines the bidding strategy, while the "Critic" network estimates expected rewards to guide the Actor's improvement.

The Actor-Critic architecture used in the PPO-based bidding strategy.

Unlike models that use discrete price bins, this approach leverages Deep Neural Networks (DNNs) to handle a continuous action space, allowing the agent to identify mathematically optimal bidding points rather than selecting from predefined categories.

Experimental Setup

The model was trained and validated using real-world historical data from the Australian National Electricity Market (NEM), specifically the Victoria region from 2015 to 2020. The data features 5-minute intervals to match actual market settlement periods. Training was conducted on data from the full year of 2016, with validation performed on the first quarter of 2017. To simulate physical response requirements, synthetic signals were used to represent frequency regulation demands within contingency bands.

Results and Discussion

The experimental results reveal a significant "synergy effect" in joint bidding. The profit generated from participating in both markets simultaneously often exceeded the combined profits of two separate batteries operating independently in each market. This suggests that the RL agent successfully learned to utilize the same state of charge to meet requirements in both markets effectively.

Cumulative profit comparison between joint bidding, FCAS-only, and Energy-only strategies over 12 weeks.

During the 12-week validation period, the joint strategy achieved a cumulative profit of nearly $4.5 million. In contrast, the FCAS-only strategy yielded approximately $1 million, and the energy-only strategy performed even lower. Furthermore, the PPO agent demonstrated high efficiency by learning to avoid conflicting actions, such as simultaneous charging and discharging, through its internal reward and penalty structure.

Conclusion

This study demonstrates that a model-free DRL approach using PPO can effectively maximize BESS profitability in complex, multi-market environments. By incorporating battery degradation into the reward function, the model ensures sustainable operation. Future work will focus on refining degradation models to account for non-linear factors like temperature and depth of discharge, as well as incorporating real-world frequency regulation signals to further test the physical limits of the BESS.

Summary updated

BibTeX
@inproceedings{anwar2022proximal,
  author = {Muhammad Anwar and Changlong Wang and Frits de Nijs and Hao Wang},
  title = {{Proximal Policy Optimization Based Reinforcement Learning for Joint Bidding in Energy and Frequency Regulation Markets}},
  booktitle = {2022 IEEE Power \& Energy Society General Meeting (PESGM)},
  year = {2022},
  doi = {10.1109/pesgm48719.2022.9917082},
}
Figure