Abstract
The development of distributed energy resources (DERs) alongside the recent advances in information and communication technology has motivated electricity customers to play a more active role in network operations. The peer-to-peer (P2P) energy trading is a promising answer to this need, in which players can trade directly with each other and the main network via a two-way exchange of power and information. Therefore, this paper presents a P2P energy platform that aims to implement computationally efficient pool-based, semi-decentralized and decentralized clearing mechanisms considering network constraints and privacy preservation. To solve the newly developed pool-based and semi-decentralized/decentralized clearing mechanisms, a particle swarm optimization (PSO) algorithm and an iterative-based heuristic technique are employed, respectively. Simulations are conducted on the IEEE 11-kV, 33-bus distribution network where both dispatchable generations and renewable resources are present. Four types of consumers including agricultural, commercial, domestic, and industrial (ACDI) loads are considered for simulation purposes. Based on the results, several conclusions can be drawn: (i) even though the decentralized mechanism preserves the privacy of customers by eliminating the role of third parties, it does not guarantee network constraints; (ii) the presence of a central entity in the pool-based mechanism keeps the technical envelopes within the standard range; (iii) the semi-decentralized mechanism is the best time-consuming one, and to some extent conserves information security; and, (iv) all these devised methods are superior in terms of computational efficiency compared to a well-known primal-dual gradient method that exists in the literature.
Similar content being viewed by others
Data availability
The data and material that has been used in this research paper is cited with references at their respective place.
Abbreviations
- ADMM:
-
Alternative direction method of multipliers
- CM:
-
Community manager
- CO:
-
Constrained optimization
- DDGs:
-
Dispatchable distributed generations
- DERs:
-
Distributed energy resources
- DR:
-
Demand response
- DSO:
-
Distribution system operator
- ETD-ADMM:
-
Energy trading distributed-alternative direction method of multipliers
- F-ADMM:
-
Fast-ADMM
- LP:
-
Linear programming
- MILP:
-
Mixed integer linear programming
- OC-ADMM:
-
Online consensus alternative direction method of multipliers.
- P2P:
-
Peer-to-peer
- PDG:
-
Primal-dual gradient
- RDGs:
-
Renewable distributed generations
- SP:
-
Stochastic programming
- TE:
-
Transactive energy
- VPPs:
-
Virtual power plants
- \({\mathcal{B}}\) :
-
Set of buyers
- \(b\) :
-
Index for buyers
- \(C\) :
-
Cost function [$]
- \({\mathcal{D}}\) :
-
Nodal communication matrix
- \(E\) :
-
Energy [kJ]
- \(h\) :
-
Index for matrix \({\mathcal{D}}\) elements
- \(i,j\) :
-
Index for starting and ending buses for line \(l\)
- \(k\) :
-
Index for PSO algorithm/iterative-based heuristic technique iterations
- \(l\) :
-
Index for lines
- \({\mathcal{L}}\) :
-
Set of lines
- \(m\) :
-
Index for buses
- \({\mathcal{N}}_{j}\) :
-
Set of bus \(j\)’s downstream neighbors
- \(n,f\) :
-
Indices for agents
- \(n_{s}\) :
-
Total number of sellers
- \(n_{b}\) :
-
Total number of buyers
- \({\mathcal{N}}\) :
-
Set of all market players
- \(N\) :
-
Number of market players
- \(p_{n}\) :
-
Active power producing/requesting [kW]
- \(p_{b}\) :
-
Active power requested by buyers [kW]
- \(p_{s}\) :
-
Active power produced by sellers [kW]
- \(p\) :
-
Vector of active power injections [kW]
- \(P\) :
-
Vector of active power flows [kW]
- \(q\) :
-
Vector of reactive power injections [kVAR]
- \(Q\) :
-
Vector of reactive power line flows [kVAR]
- \(R\) :
-
Resistance matrix [ohm]
- \(s\) :
-
Index for sellers
- \({\mathcal{S}}\) :
-
Set of sellers
- \(T_{s}\) :
-
A row vector with \(n{}_{s}*1\) dimension whose all elements are -1
- \(T_{b}\) :
-
A row vector with \(n{}_{b}*1\) dimension whose all elements are 1
- \(U_{gross}\) :
-
Gross utility [$]
- \(U_{net}\) :
-
Net utility [$]
- \(v\) :
-
Vector of nodal voltages [p.u.]
- \(X\) :
-
Reactance matrix [ohm]
- \(\left| {\left\{ x \right\}} \right|\) :
-
The number of elements in set \(x\)
- \(\alpha\) :
-
Cost function parameter [$/kWh2]
- \(\beta\) :
-
Cost function parameter [$/kWh]
- \(\gamma\) :
-
Cost function parameter [$]
- \(\delta\) :
-
Utility function constant parameter [$/kWh2]
- \(\varepsilon\) :
-
Acceptable error to stop the solution methodology related to the pool-based and semi-decentralized mechanisms
- \(\varepsilon_{\lambda }\) :
-
Acceptable error for the local energy price between two iterations in the solution methodology associated with the decentralized market clearing mechanism
- \(\varepsilon_{p}\) :
-
Acceptable error for the local power imbalance in the solution methodology pertaining to the decentralized market clearing mechanism
- \(\eta\) :
-
Players’ willingness to cooperate in the pool-based mechanism
- \(\lambda\) :
-
Energy price [$/kWh]
- \(\mu { },{ }\mu^{^{\prime}}\) :
-
Inequality coefficients in the Lagrange function
- \(\xi\) :
-
Accuracy factor of the semi-decentralized and decentralized mechanisms
- \({\Pi }\) :
-
Set of local branches in the tree communication graph
- \(\omega\) :
-
Buyers’ tendency to purchase energy [$/kWh]
- \({\Omega }\) :
-
Tree graph for electric network topology
- \({\mathcal{G}}\) :
-
Tree graph for communication network topology
- \(\left| . \right|\) :
-
The absolute value inside the brackets
- \(\left[ 1 \right]\) :
-
A vector whose all entries are equal to 1
References
Li F et al (2018) Big data analytics for flexible energy sharing: Accelerating a Low-carbon future. IEEE Power Energy Mag. 16(3):35–42
Zhang C et al (2018) Peer-to-peer energy trading in a microgrid. Appl. Energy 220(15):1–12
Abdella J, Shuaib K (2018) Peer to peer distributed energy trading in smart grids: A survey. Energies 11(6):1560
Morais H et al (2020) Integration of renewable energy in smart grid. In: Lee KY, Vale ZA (eds) Applications of Modern Heuristic Optimization Methods in Power and Energy Systems, pp 613–773.
Navarro-espinosa A et al (2016) Probabilistic impact assessment of low carbon technologies in LV distribution systems. IEEE Trans Power Syst 31(3):2192–2203
Guerrero J et al (2020) Towards a transactive energy system for integration of distributed energy resources: Home energy management, distributed optimal power flow, and peer-to-peer energy trading. Renew Sustain Energy Rev 132:110000
Tushar W et al (2020) Peer-to-peer trading in electricity networks: An overview. IEEE Trans Smart Grid 11(4):3185–3200
Khorasany M et al (2020) Paving the path for two-sided energy markets: An overview of different approaches. IEEE Access 8:223708–223722
Paterakis NG et al (2017) An overview of demand response: Key-elements and international experience. Renew Sustain Energy Rev 69:871–891
Adu-kankam KO, Camarinha-matos LM (2018) Towards collaborative virtual power plants: Trends and convergence. Sustain Energy Grids Netw 16:217–230
Huang Q et al (2021) A review of transactive energy systems: Concept and implementation. Energy Rep 7(2018):7804–7824
Tushar W et al (2018) Transforming energy networks via peer-to-peer energy trading: The potential of game-theoretic approaches. IEEE Signal Process Mag 35(4):90–111
Paudel A et al (2020) Peer-to-peer energy trading in smart grid considering power losses and network fees. IEEE Trans. Smart Grid 11(6):4727–4737
Morstyn T et al (2019) Bilateral contract networks for peer-to-peer energy trading. IEEE Trans Smaer Grid 10(2):2026–2035
Kanakadhurga D, Prabaharan N (2021) Demand response-based peer-to-peer energy trading among the prosumers and consumers. Energy Rep 7:7825–7834
Morstyn T et al (2018) Using peer-to-peer energy-trading platforms to incentivize prosumers to form federated power plants. Nat Energy 3(2):94–101
Adeyemi A et al (2020) Transactive energy markets for managing energy exchanges in power distribution systems. Electr J 33(9):106868
Zhou Y et al (2020) State-of-the-art analysis and perspectives for peer-to-peer energy trading. Engineering 6(7):739–753
Wu Y et al (2022) P2P energy trading: Blockchain-enabled P2P energy society with multi-scale flexibility services. Energy Rep 8:3614–3628
Soto EA et al (2021) Peer-to-peer energy trading: A review of the literature. Appl Energy 283:116268
Bjarghov S et al (2021) Developments and challenges in local electricity markets: A comprehensive review. IEEE Access 9:58910–58943
Tushar W et al (2020) Grid influenced peer-to-peer energy trading. IEEE Trans Smart Grid 11(2):1407–1418
Khorasany M et al (2018) Market framework for local energy trading: A review of potential designs and market clearing approaches. IET Gener Transm Distrib 12(22):5899–5908
Wang Q et al (2021) Blockchain technology in the energy sector: From basic research to real world applications. Comput Sci Rev 39:100362
Ahl A et al (2019) Review of blockchain-based distributed energy: Implications for institutional development. Renew Sustain Energy Rev 107:200–211
Zepter JM et al (2019) Prosumer integration in wholesale electricity markets: Synergies of peer-to-peer trade and residential storage. Energy Build 184:163–176
Vahedipour-Dahraie M et al (2021) Peer-to-peer energy trading between wind power producer and demand response aggregators for scheduling joint energy and reserve. IEEE Syst J 15(1):705–714
Elbatawy S, Morsi WG (2022) Integration of prosumers with battery storage and electric vehicles via transactive energy. IEEE Trans Power Deliv 37(1):383–394
Aznavi S et al (2020) Peer-to-peer operation strategy of PV equipped office buildings and charging stations considering electric vehicle energy pricing. IEEE Trans Ind Appl 56(5):5848–5857
Lüth A et al (2018) Local electricity market designs for peer-to-peer trading: The role of battery flexibility. Appl Energy 229:1233–1243
Espe E et al (2018) Prosumer communities and relationships in smart grids: A literature review, evolution and future directions. Energies 11:2528
Chen L et al (2021) Peer-to-peer energy sharing with dynamic network structures. Appl Energy 291:116831
Sousa T et al (2019) Peer-to-peer and community-based markets: A comprehensive review. Renew Sustain Energy Rev 104:367–378
Zhou Y et al (2020) Framework design and optimal bidding strategy for ancillary service provision from a peer-to-peer energy trading community. Appl Energy 278:115671
Hu Q et al (2021) A multi-market nanogrid P2P energy and ancillary service trading paradigm: Mechanisms and implementations. Appl Energy 293:116938
Tushar W et al (2021) Peer-to-peer energy systems for connected communities: A review of recent advances and emerging challenges. Appl Energy 282:116131
Zhang C et al (2017) Review of existing peer-to-peer energy trading projects. Energy Procedia 105:2563–2568
Sæther G et al (2021) Peer-to-peer electricity trading in an industrial site: Value of buildings flexibility on peak load reduction. Energy Build 236:110737
Guo Z et al (2021) Online optimization for real-time peer-to-peer electricity market mechanisms. IEEE Trans Smart Grid 12(5):4151–4163
Chernova T, Gryazina E (2021) Peer-to-peer market with network constraints, user preferences and network charges. Int J Electr Power Energy Syst 131:106981
Guerrero J et al (2019) Decentralized P2P energy trading under network constraints in a low-voltage network. IEEE Trans Smart Grid 10(5):5163–5173
Gazafroudi AS et al (2021) Hierarchical approach for coordinating energy and flexibility trading in local energy markets. Appl Energy 302:117575
Gokcek T et al (2022) A novel multi-hierarchical bidding strategy for peer-to-peer energy trading among communities. IEEE Access 10:23798–23807
Gokcek T et al (2022) A hierarchical approach for P2P energy trading considering community energy storage and PV-enriched system operator. IET Gener Transm Distrib 16(23):4738–4749
Sampath LPMI et al (2022) Peer-to-peer energy trading enabled optimal decentralized operation of smart distribution grids. IEEE Trans Smart Grid 13(1):654–666
Ullah MH, Park JD (2021) Peer-to-peer energy trading in transactive markets considering physical network constraints. IEEE Trans Smart Grid 12(4):3390–3403
Umer K et al (2021) A novel communication efficient peer-to-peer energy trading scheme for enhanced privacy in microgrids. Appl Energy 296:117075
Khorasany M et al (2020) A decentralized bilateral energy trading system for peer-to-peer electricity markets. IEEE Trans Ind Electron 67(6):4646–4657
Farivar M et al (2013) Equilibrium and dynamics of local voltage control in distribution systems. 52nd IEEE conference on decision and control, Firenze, Italy
Zhou X et al (2018) Hierarchical distributed voltage regulation in networked autonomous grids. arXiv: https://doi.org/10.48550/arXiv.1809.08624
Farivar M, Low SH (2013) Branch flow model: Relaxations and convexification - part I. IEEE Trans Power Syst 28(3):2554–2564
Huang J et al (2021) A generalized LinDistFlow model for power flow analysis. 60th IEEE Conference on Decision and Control, Austin, TX, USA
Wood AJ, Bruce F (1996) Power generation, operation, and control. John Wiley & Sons, NY
Samadi P et al (2010) Optimal real-time pricing algorithm based on utility maximization for smart grid. First IEEE International Conference on Smart Grid Communications, Gaithersburg, MD, USA
Song X, Qu J (2015) An improved real-time pricing algorithm based on utility maximization for smart grid. 11th World Congress on Intelligent Control and Automation, Shenyang, China
Niromandfam A, Choboghloo SP (2020) Modeling electricity demand, welfare function and elasticity of electricity demand based on the customers risk aversion behavior. arXiv: https://doi.org/10.48550/arXiv.2010.07600
Dolatabadi SH et al (2021) An enhanced IEEE 33 bus benchmark test system for distribution system studies. IEEE Trans Power Syst 36(3):2565–2572
Funding
This research paper not received any outside funding.
Author information
Authors and Affiliations
Contributions
Seyed Ali Sadati (Conceptualization, Methodology, Visualization, Software, Writing-original draft); Mojtaba Shivaie (Methodology, Formal analysis, Validation, Supervision, Writing-review & editing); and AmirAli Nazari (Methodology, Software, Validation, Resources, Writing-original draft).
Corresponding author
Ethics declarations
Ethics approval
This research paper does not involve any work related to ethics.
Consent to participate
All authors consent to participate.
Consent for publication
All authors consent to publication.
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
This article belongs to the Topical Collection: Special Issue on 2 - Track on Security and Privacy
Guest Editor: Rongxing Lu
Supplementary Information
Below is the link to the electronic supplementary material.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Sadati, S.A., Shivaie, M. & Nazari, A. Computationally efficient peer-to-peer energy trading mechanisms for autonomous agents considering network constraints and privacy preservation. Peer-to-Peer Netw. Appl. 16, 1088–1105 (2023). https://doi.org/10.1007/s12083-023-01456-2
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12083-023-01456-2