IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v402y2026ipcs0306261925017714.html

Peer-to-peer energy trading in dairy farms using multi-agent reinforcement learning

Author

Listed:
  • Shah, Mian Ibad Ali
  • Cruz Victorio, Marcos Eduardo
  • Duffy, Maeve
  • Barrett, Enda
  • Mason, Karl

Abstract

The integration of renewable energy resources in rural areas, such as dairy farming communities, enables decentralized energy management through Peer-to-Peer (P2P) energy trading. This research highlights the role of P2P trading in efficient energy distribution and its synergy with advanced optimization techniques. While traditional rule-based methods perform well under stable conditions, they struggle in dynamic environments. To address this, Multi-Agent Reinforcement Learning (MARL), specifically Proximal Policy Optimization (PPO) and Deep Q-Networks (DQN), is combined with community/distributed P2P trading mechanisms. By incorporating auction-based market clearing, a price advisor agent, and load and battery management, the approach achieves significant improvements. Results show that, compared to baseline models, DQN reduces electricity costs by 14.2 % in Ireland and 5.16 % in Finland, while increasing electricity revenue by 7.24 % and 12.73 %, respectively. PPO achieves the lowest peak hour demand, reducing it by 55.5 % in Ireland, while DQN reduces peak hour demand by 50.0 % in Ireland and 27.02 % in Finland. These improvements are attributed to both MARL algorithms and P2P energy trading, which together result in electricity cost and peak hour demand reduction, and increase electricity selling revenue. This study highlights the complementary strengths of DQN, PPO, and P2P trading in achieving efficient, adaptable, and sustainable energy management in rural communities.

Suggested Citation

  • Shah, Mian Ibad Ali & Cruz Victorio, Marcos Eduardo & Duffy, Maeve & Barrett, Enda & Mason, Karl, 2026. "Peer-to-peer energy trading in dairy farms using multi-agent reinforcement learning," Applied Energy, Elsevier, vol. 402(PC).
  • Handle: RePEc:eee:appene:v:402:y:2026:i:pc:s0306261925017714
    DOI: 10.1016/j.apenergy.2025.127041
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261925017714
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2025.127041?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:402:y:2026:i:pc:s0306261925017714. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.