GridTradeRL: a multi-agent deep reinforcement learning framework for decentralized peer-to-peer energy trading in smart grid prosumer networks

The accelerating penetration of distributed photovoltaic (PV) generation and battery storage at the residential edge of the distribution network is converting passive consumers into active prosumers , exposing the limits of the unidirectional buy-from-utility / sell-to-utility settlement model. Peer-to-peer (P2P) energy trading promises to internalize the bid-ask spread of time-of-use (ToU) tariffs within local communities, but its decentralized, non-stationary, and partially observable nature makes hand-engineered control strategies brittle. This manuscript presents GridTradeRL , a multi-agent deep reinforcement learning framework for decentralized P2P energy trading in smart-grid prosumer networks. We formulate the trading problem as a partially observable stochastic game over a heterogeneous community of N prosumers and solve it with a multi-agent extension of Twin-Delayed Deep Deterministic Policy Gradient (MA-TD3) under the centralized-training, decentralized-execution (CTDE) paradigm. Each agent learns an independent actor that selects a continuous battery-dispatch and bid-aggressiveness action from local observations alone, while training is coordinated by a centralized twin critic with full access to the joint observation-action space. The local market clears via a uniform-price double auction at each hour. On a simulated 8-prosumer community with time-of-use tariffs, the trained policy reduces net daily community electricity expenditure by 42.7% versus a no-trade baseline and by 24.2% versus a rule-based heuristic, while routing 18.3% of all energy through bilateral peer-to-peer trades. Against learned baselines, it improves on independent DDPG by 29.7% and on MADDPG by 10.4%, and it attains performance within 11.5% of a perfect-foresight model-predictive-control oracle without requiring forecasts or disclosure of private prosumer data. We further establish convergence stability over a 2000-episode, five-seed training protocol; characterize sensitivity to the reward-shaping coefficients, robustness to observational noise and communication dropout, and scalability to communities of up to 64 prosumers; and prove that the midpoint clearing rule distributes surplus equitably (Gini coefficient 0.039). A fast 350-episode configuration that attains 97.8% of converged performance completes in 224 s on a single CPU core in pure NumPy without any GPU acceleration, demonstrating the suitability of the framework for nightly retraining on edge gateways. The full source code, trained policies, and an interactive simulation dashboard accompany this manuscript.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-07-23
DOI
https://doi.org/10.1038/s41598-026-58710-9
Primary Topic
Smart Grid Energy Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

GridTradeRL: a multi-agent deep reinforcement learning framework for decentralized peer-to-peer energy trading in smart grid prosumer networks

Haewon Byeon, Abdullah Rakib Akand, Hridya Sudeepon Roy, Mithila Arman et al.
Scientific Reports
Smart Grid Energy Management
article

GridTradeRL: a multi-agent deep reinforcement learning framework for decentralized peer-to-peer energy trading in smart grid prosumer networks

Haewon Byeon, Abdullah Rakib Akand, Hridya Sudeepon Roy, Mithila Arman, Samuel Kim, Sagor Ahmed, Md. Irfan Hossain, Sayed Esmat Mirja, Md Shahedul Islam
article en

Abstract

The accelerating penetration of distributed photovoltaic (PV) generation and battery storage at the residential edge of the distribution network is converting passive consumers into active prosumers , exposing the limits of the unidirectional buy-from-utility / sell-to-utility settlement model. Peer-to-peer (P2P) energy trading promises to internalize the bid-ask spread of time-of-use (ToU) tariffs within local communities, but its decentralized, non-stationary, and partially observable nature makes hand-engineered control strategies brittle. This manuscript presents GridTradeRL , a multi-agent deep reinforcement learning framework for decentralized P2P energy trading in smart-grid prosumer networks. We formulate the trading problem as a partially observable stochastic game over a heterogeneous community of N prosumers and solve it with a multi-agent extension of Twin-Delayed Deep Deterministic Policy Gradient (MA-TD3) under the centralized-training, decentralized-execution (CTDE) paradigm. Each agent learns an independent actor that selects a continuous battery-dispatch and bid-aggressiveness action from local observations alone, while training is coordinated by a centralized twin critic with full access to the joint observation-action space. The local market clears via a uniform-price double auction at each hour. On a simulated 8-prosumer community with time-of-use tariffs, the trained policy reduces net daily community electricity expenditure by 42.7% versus a no-trade baseline and by 24.2% versus a rule-based heuristic, while routing 18.3% of all energy through bilateral peer-to-peer trades. Against learned baselines, it improves on independent DDPG by 29.7% and on MADDPG by 10.4%, and it attains performance within 11.5% of a perfect-foresight model-predictive-control oracle without requiring forecasts or disclosure of private prosumer data. We further establish convergence stability over a 2000-episode, five-seed training protocol; characterize sensitivity to the reward-shaping coefficients, robustness to observational noise and communication dropout, and scalability to communities of up to 64 prosumers; and prove that the midpoint clearing rule distributes surplus equitably (Gini coefficient 0.039). A fast 350-episode configuration that attains 97.8% of converged performance completes in 224 s on a single CPU core in pure NumPy without any GPU acceleration, demonstrating the suitability of the framework for nightly retraining on edge gateways. The full source code, trained policies, and an interactive simulation dashboard accompany this manuscript.

Scientific Reports
Bangladesh University of Engineering and Technology (BD), University of Dhaka (BD), Asian University of Bangladesh (BD), Artificial Intelligence Research Institute (ES), BRAC University (BD), United International University (BD), University of Chittagong (BD), Stanford University (US)
Affordable and clean energy
Openalex Percentile: Top 15%
Smart Grid Energy Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.