RL and Rule-Based Pricing Compared for P2P Energy Trading

Pablo Benalcazar, Maciej Kalka, Wilian Guam\'an, Jacek Kami\'nski· September 3, 2026 View original

Key takeaways

  • Rule-based pricing is competitive for P2P energy trading in PV-only communities.
  • Battery energy storage significantly enhances the performance of RL-based pricing.
  • SDR-shaped pricing outperforms multiplier-based RL approaches.
  • Benefits from P2P trading can be unevenly distributed among households.

Who benefits

EnergyUtilitiesSmart GridReal EstateSustainable Technology

Summary

This paper compares reinforcement learning (RL) and rule-based pricing mechanisms for peer-to-peer (P2P) electricity trading in residential photovoltaic communities. It finds that rule-based methods often outperform RL in PV-only setups, but battery energy storage significantly boosts RL performance, with SDR-shaped pricing proving superior.

This research investigates and compares the effectiveness of two distinct approaches for pricing electricity in peer-to-peer (P2P) trading within residential communities equipped with photovoltaic (PV) systems. The study evaluates both traditional rule-based pricing mechanisms and more advanced learning-based methods, specifically reinforcement learning (RL) implemented via a Deep Q-Network. Rule-based benchmarks included bill-sharing, mid-market rates, and supply-demand-ratio (SDR) pricing. The findings reveal that in scenarios where only PV generation is considered, the rule-based benchmarks generally delivered better community savings than the best RL policy. However, the introduction of battery energy storage (BES) dramatically altered the landscape. When BES was integrated, the community savings under the best RL policy saw a substantial increase, improving from EUR 734.23 to EUR 978.52. Across all learning-based configurations, SDR-shaped pricing consistently outperformed multiplier-based parameterizations. The paper concludes that while rule-based pricing remains highly competitive in simpler setups, the addition of energy storage significantly enhances the outcomes for learning-based approaches. Despite overall community benefits, the distribution of these financial advantages remained heterogeneous among individual households.

Why it matters

Energy companies, smart grid developers, and community energy managers can use these insights to design more efficient and equitable P2P energy trading platforms, especially with the integration of battery storage.

How to implement this in your domain

  1. 1Analyze existing residential energy communities to identify opportunities for P2P trading.
  2. 2Pilot rule-based pricing mechanisms (e.g., SDR pricing) in PV-only communities.
  3. 3Integrate battery energy storage systems (BES) into community energy infrastructure.
  4. 4Develop and test Deep Q-Network-based RL policies for P2P pricing in BES-equipped communities.
  5. 5Evaluate the distribution of benefits among households to ensure equitable outcomes.

Original post by Pablo Benalcazar, Maciej Kalka, Wilian Guam\'an, Jacek Kami\'nski

"arXiv:2609.01680v1 Announce Type: new Abstract: This paper compares rule-based and learning-based pricing mechanisms for peer-to-peer (P2P) electricity trading in residential photovoltaic communities. The rule-based benchmarks comprise bill-sharing as an ex post allocation mechan…"

View on X

Originally posted by Pablo Benalcazar, Maciej Kalka, Wilian Guam\'an, Jacek Kami\'nski on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses