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

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.

[1]  Thomas Kunz,et al.  Peer-to-peer energy trading among smart homes , 2019, Applied Energy.

[2]  Peter Dayan,et al.  Q-learning , 1992, Machine Learning.

[3]  P. Pardalos,et al.  Pareto optimality, game theory and equilibria , 2008 .

[4]  Hoay Beng Gooi,et al.  Peer-to-Peer Energy Trading in a Prosumer-Based Community Microgrid: A Game-Theoretic Model , 2019, IEEE Transactions on Industrial Electronics.

[5]  Wencong Su,et al.  Indirect Customer-to-Customer Energy Trading With Reinforcement Learning , 2019, IEEE Transactions on Smart Grid.

[6]  Jianzhong Wu,et al.  Review of Existing Peer-to-Peer Energy Trading Projects , 2017 .

[7]  Davy Janssens,et al.  Peer to Peer Energy Trading with Electric Vehicles , 2016, IEEE Intelligent Transportation Systems Magazine.

[8]  Lei Wu,et al.  Peer-to-peer (P2P) electricity trading in distribution systems of the future , 2019, The Electricity Journal.

[9]  Jürgen Schmidhuber,et al.  Long Short-Term Memory , 1997, Neural Computation.

[10]  W. Fruh,et al.  Automated Negotiation for Peer-to-Peer Electricity Trading in Local Energy Markets , 2020, Energies.

[11]  F. R. Pazheri,et al.  A review on global renewable electricity scenario , 2014 .

[12]  Thomas Morstyn,et al.  Using peer-to-peer energy-trading platforms to incentivize prosumers to form federated power plants , 2018, Nature Energy.

[13]  Wayes Tushar,et al.  Transforming Energy Networks via Peer to Peer Energy Trading: Potential of Game Theoretic Approaches , 2018, IEEE Signal Process. Mag..

[14]  Ning Wang,et al.  Peer-to-Peer Energy Trading among Microgrids with Multidimensional Willingness , 2018, Energies.

[15]  Meng Cheng,et al.  Peer-to-Peer energy trading in a Microgrid , 2018, Applied Energy.

[16]  J. Zepter,et al.  Local electricity market designs for peer-to-peer trading: The role of battery flexibility , 2018, Applied Energy.

[17]  Tao Chen,et al.  Local Energy Trading Behavior Modeling With Deep Reinforcement Learning , 2018, IEEE Access.