IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v13y2020i20p5359-d427989.html
   My bibliography  Save this article

Automatic P2P Energy Trading Model Based on Reinforcement Learning Using Long Short-Term Delayed Reward

Author

Listed:
  • Jin-Gyeom Kim

    (Department of Electronic Engineering, Inha University, Incheon 22212, Korea)

  • Bowon Lee

    (Department of Electronic Engineering, Inha University, Incheon 22212, Korea)

Abstract

Automatic peer-to-peer energy trading can be defined as a Markov decision process and designed using deep reinforcement learning. We consider prosumer as an entity that consumes and produces electric energy with an energy storage system, and define the prosumer’s objective as maximizing the profit through participation in peer-to-peer energy trading, similar to that of the agents in stock trading. In this paper, we propose an automatic peer-to-peer energy trading model by adopting a deep Q-network-based automatic trading algorithm originally designed for stock trading. Unlike in stock trading, the assets held by a prosumer may change owing to factors such as the consumption and generation of energy by the prosumer in addition to the changes from trading activities. Therefore, we propose a new trading evaluation criterion that considers these factors by defining profit as the sum of the gains from four components: electricity bill, trading, electric energy stored in the energy storage system, and virtual loss. For the proposed automatic peer-to-peer energy trading algorithm, we adopt a long-term delayed reward method that evaluates the delayed reward that occurs once per month by generating the termination point of an episode at each month and propose a long short-term delayed reward method that compensates for the issue with the long-term delayed reward method having only a single evaluation per month. This long short-term delayed reward method enables effective learning of the monthly long-term trading patterns and the short-term trading patterns at the same time, leading to a better trading strategy. The experimental results showed that the long short-term delayed reward method-based energy trading model achieves higher profits every month both in the progressive and fixed rate systems throughout the year and that prosumer participating in the trading not only earns profits every month but also reduces loss from over-generation of electric energy in the case of South Korea. Further experiments with various progressive rate systems of Japan, Taiwan, and the United States as well as in different prosumer environments indicate the general applicability of the proposed method.

Suggested Citation

  • Jin-Gyeom Kim & Bowon Lee, 2020. "Automatic P2P Energy Trading Model Based on Reinforcement Learning Using Long Short-Term Delayed Reward," Energies, MDPI, vol. 13(20), pages 1-27, October.
  • Handle: RePEc:gam:jeners:v:13:y:2020:i:20:p:5359-:d:427989
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/13/20/5359/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/13/20/5359/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Pazheri, F.R. & Othman, M.F. & Malik, N.H., 2014. "A review on global renewable electricity scenario," Renewable and Sustainable Energy Reviews, Elsevier, vol. 31(C), pages 835-845.
    2. Alam, Muhammad Raisul & St-Hilaire, Marc & Kunz, Thomas, 2019. "Peer-to-peer energy trading among smart homes," Applied Energy, Elsevier, vol. 238(C), pages 1434-1443.
    3. Rodica Branzei & Dinko Dimitrov & Stef Tijs, 2008. "Models in Cooperative Game Theory," Springer Books, Springer, edition 0, number 978-3-540-77954-4, December.
    4. Ning Wang & Weisheng Xu & Zhiyu Xu & Weihui Shao, 2018. "Peer-to-Peer Energy Trading among Microgrids with Multidimensional Willingness," Energies, MDPI, vol. 11(12), pages 1-22, November.
    5. Christie Etukudor & Benoit Couraud & Valentin Robu & Wolf-Gerrit Früh & David Flynn & Chinonso Okereke, 2020. "Automated Negotiation for Peer-to-Peer Electricity Trading in Local Energy Markets," Energies, MDPI, vol. 13(4), pages 1-19, February.
    6. Thomas Morstyn & Niall Farrell & Sarah J. Darby & Malcolm D. McCulloch, 2018. "Using peer-to-peer energy-trading platforms to incentivize prosumers to form federated power plants," Nature Energy, Nature, vol. 3(2), pages 94-101, February.
    7. Lüth, Alexandra & Zepter, Jan Martin & Crespo del Granado, Pedro & Egging, Ruud, 2018. "Local electricity market designs for peer-to-peer trading: The role of battery flexibility," Applied Energy, Elsevier, vol. 229(C), pages 1233-1243.
    8. Zhang, Chenghua & Wu, Jianzhong & Zhou, Yue & Cheng, Meng & Long, Chao, 2018. "Peer-to-Peer energy trading in a Microgrid," Applied Energy, Elsevier, vol. 220(C), pages 1-12.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Harri Aaltonen & Seppo Sierla & Rakshith Subramanya & Valeriy Vyatkin, 2021. "A Simulation Environment for Training a Reinforcement Learning Agent Trading a Battery Storage," Energies, MDPI, vol. 14(17), pages 1-20, September.
    2. Charbonnier, Flora & Morstyn, Thomas & McCulloch, Malcolm D., 2022. "Coordination of resources at the edge of the electricity grid: Systematic review and taxonomy," Applied Energy, Elsevier, vol. 318(C).
    3. Wang, Yi & Qiu, Dawei & Strbac, Goran, 2022. "Multi-agent deep reinforcement learning for resilience-driven routing and scheduling of mobile energy storage systems," Applied Energy, Elsevier, vol. 310(C).
    4. Samende, Cephas & Cao, Jun & Fan, Zhong, 2022. "Multi-agent deep deterministic policy gradient algorithm for peer-to-peer energy trading considering distribution network constraints," Applied Energy, Elsevier, vol. 317(C).
    5. Zhu, Ziqing & Hu, Ze & Chan, Ka Wing & Bu, Siqi & Zhou, Bin & Xia, Shiwei, 2023. "Reinforcement learning in deregulated energy market: A comprehensive review," Applied Energy, Elsevier, vol. 329(C).
    6. Hannie Zang & JongWon Kim, 2021. "Reinforcement Learning Based Peer-to-Peer Energy Trade Management Using Community Energy Storage in Local Energy Market," Energies, MDPI, vol. 14(14), pages 1-18, July.
    7. Charbonnier, Flora & Morstyn, Thomas & McCulloch, Malcolm D., 2022. "Scalable multi-agent reinforcement learning for distributed control of residential energy flexibility," Applied Energy, Elsevier, vol. 314(C).
    8. Qiu, Dawei & Ye, Yujian & Papadaskalopoulos, Dimitrios & Strbac, Goran, 2021. "Scalable coordinated management of peer-to-peer energy trading: A multi-cluster deep reinforcement learning approach," Applied Energy, Elsevier, vol. 292(C).
    9. Liangyi Pu & Song Wang & Xiaodong Huang & Xing Liu & Yawei Shi & Huiwei Wang, 2022. "Peer-to-Peer Trading for Energy-Saving Based on Reinforcement Learning," Energies, MDPI, vol. 15(24), pages 1-16, December.
    10. Meritxell Domènech Monfort & César De Jesús & Natapon Wanapinit & Niklas Hartmann, 2022. "A Review of Peer-to-Peer Energy Trading with Standard Terminology Proposal and a Techno-Economic Characterisation Matrix," Energies, MDPI, vol. 15(23), pages 1-29, November.
    11. Tek-Tjing Lie, 2021. "Editorial to the Special Issue “AI Applications to Power Systems”," Energies, MDPI, vol. 14(18), pages 1-3, September.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Capper, Timothy & Gorbatcheva, Anna & Mustafa, Mustafa A. & Bahloul, Mohamed & Schwidtal, Jan Marc & Chitchyan, Ruzanna & Andoni, Merlinda & Robu, Valentin & Montakhabi, Mehdi & Scott, Ian J. & Franci, 2022. "Peer-to-peer, community self-consumption, and transactive energy: A systematic literature review of local energy market models," Renewable and Sustainable Energy Reviews, Elsevier, vol. 162(C).
    2. Schwidtal, J.M. & Piccini, P. & Troncia, M. & Chitchyan, R. & Montakhabi, M. & Francis, C. & Gorbatcheva, A. & Capper, T. & Mustafa, M.A. & Andoni, M. & Robu, V. & Bahloul, M. & Scott, I.J. & Mbavarir, 2023. "Emerging business models in local energy markets: A systematic review of peer-to-peer, community self-consumption, and transactive energy models," Renewable and Sustainable Energy Reviews, Elsevier, vol. 179(C).
    3. Soto, Esteban A. & Bosman, Lisa B. & Wollega, Ebisa & Leon-Salas, Walter D., 2021. "Peer-to-peer energy trading: A review of the literature," Applied Energy, Elsevier, vol. 283(C).
    4. Arnob Das & Susmita Datta Peu & Md. Abdul Mannan Akanda & Abu Reza Md. Towfiqul Islam, 2023. "Peer-to-Peer Energy Trading Pricing Mechanisms: Towards a Comprehensive Analysis of Energy and Network Service Pricing (NSP) Mechanisms to Get Sustainable Enviro-Economical Energy Sector," Energies, MDPI, vol. 16(5), pages 1-27, February.
    5. Zhou, Yue & Wu, Jianzhong & Song, Guanyu & Long, Chao, 2020. "Framework design and optimal bidding strategy for ancillary service provision from a peer-to-peer energy trading community," Applied Energy, Elsevier, vol. 278(C).
    6. Azim, M. Imran & Tushar, Wayes & Saha, Tapan K. & Yuen, Chau & Smith, David, 2022. "Peer-to-peer kilowatt and negawatt trading: A review of challenges and recent advances in distribution networks," Renewable and Sustainable Energy Reviews, Elsevier, vol. 169(C).
    7. Jiang, Yanni & Zhou, Kaile & Lu, Xinhui & Yang, Shanlin, 2020. "Electricity trading pricing among prosumers with game theory-based model in energy blockchain environment," Applied Energy, Elsevier, vol. 271(C).
    8. Shan Shan & Siliang Yang & Victor Becerra & Jiamei Deng & Honglei Li, 2023. "A Case Study of Existing Peer-to-Peer Energy Trading Platforms: Calling for Integrated Platform Features," Sustainability, MDPI, vol. 15(23), pages 1-22, November.
    9. Park, Sung-Won & Zhang, Zhong & Li, Furong & Son, Sung-Yong, 2021. "Peer-to-peer trading-based efficient flexibility securing mechanism to support distribution system stability," Applied Energy, Elsevier, vol. 285(C).
    10. Wang, Zibo & Yu, Xiaodan & Mu, Yunfei & Jia, Hongjie, 2020. "A distributed Peer-to-Peer energy transaction method for diversified prosumers in Urban Community Microgrid System," Applied Energy, Elsevier, vol. 260(C).
    11. Davarzani, Sima & Pisica, Ioana & Taylor, Gareth A. & Munisami, Kevin J., 2021. "Residential Demand Response Strategies and Applications in Active Distribution Network Management," Renewable and Sustainable Energy Reviews, Elsevier, vol. 138(C).
    12. Lin, Wen-Ting & Chen, Guo & Zhou, Xiaojun, 2022. "Distributed carbon-aware energy trading of virtual power plant under denial of service attacks: A passivity-based neurodynamic approach," Energy, Elsevier, vol. 257(C).
    13. Andreolli, Francesca & D'Alpaos, Chiara & Kort, Peter, 2023. "Does P2P Trading Favor Investments in PV-Battery Systems?," FEEM Working Papers 330498, Fondazione Eni Enrico Mattei (FEEM).
    14. Alaa A. F. Husain & Maryam Huda Ahmad Phesal & Mohd Zainal Abidin Ab Kadir & Ungku Anisa Ungku Amirulddin & Abdulhadi H. J. Junaidi, 2021. "A Decade of Transitioning Malaysia toward a High-Solar PV Energy Penetration Nation," Sustainability, MDPI, vol. 13(17), pages 1-16, September.
    15. Filipe Bandeiras & Álvaro Gomes & Mário Gomes & Paulo Coelho, 2023. "Exploring Energy Trading Markets in Smart Grid and Microgrid Systems and Their Implications for Sustainability in Smart Cities," Energies, MDPI, vol. 16(2), pages 1-41, January.
    16. Wang, Zibo & Yu, Xiaodan & Mu, Yunfei & Jia, Hongjie & Jiang, Qian & Wang, Xiaoyu, 2021. "Peer-to-Peer energy trading strategy for energy balance service provider (EBSP) considering market elasticity in community microgrid," Applied Energy, Elsevier, vol. 303(C).
    17. Seyedhossein, Seyed Saeed & Moeini-Aghtaie, Moein, 2022. "Risk management framework of peer-to-peer electricity markets," Energy, Elsevier, vol. 261(PB).
    18. Paladin, Andrea & Das, Ridoy & Wang, Yue & Ali, Zunaib & Kotter, Richard & Putrus, Ghanim & Turri, Roberto, 2021. "Micro market based optimisation framework for decentralised management of distributed flexibility assets," Renewable Energy, Elsevier, vol. 163(C), pages 1595-1611.
    19. Qiu, Dawei & Ye, Yujian & Papadaskalopoulos, Dimitrios & Strbac, Goran, 2021. "Scalable coordinated management of peer-to-peer energy trading: A multi-cluster deep reinforcement learning approach," Applied Energy, Elsevier, vol. 292(C).
    20. Francesca Andreolli & Chiara D'Alpaos & Peter Kort, 2023. "Does P2P Trading Favor Investments in PV-Battery Systems?," Working Papers 2023.02, Fondazione Eni Enrico Mattei.

    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:gam:jeners:v:13:y:2020:i:20:p:5359-:d:427989. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.