Skip to main content

Advertisement

Log in

Computationally efficient peer-to-peer energy trading mechanisms for autonomous agents considering network constraints and privacy preservation

  • Published:
Peer-to-Peer Networking and Applications Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

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

  1. 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

    Article  Google Scholar 

  2. Zhang C et al (2018) Peer-to-peer energy trading in a microgrid. Appl. Energy 220(15):1–12

    Google Scholar 

  3. Abdella J, Shuaib K (2018) Peer to peer distributed energy trading in smart grids: A survey. Energies 11(6):1560

  4. 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.

  5. 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

    Article  Google Scholar 

  6. 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

  7. Tushar W et al (2020) Peer-to-peer trading in electricity networks: An overview. IEEE Trans Smart Grid 11(4):3185–3200

    Article  Google Scholar 

  8. Khorasany M et al (2020) Paving the path for two-sided energy markets: An overview of different approaches. IEEE Access 8:223708–223722

    Article  Google Scholar 

  9. Paterakis NG et al (2017) An overview of demand response: Key-elements and international experience. Renew Sustain Energy Rev 69:871–891

    Article  Google Scholar 

  10. Adu-kankam KO, Camarinha-matos LM (2018) Towards collaborative virtual power plants: Trends and convergence. Sustain Energy Grids Netw 16:217–230

    Article  Google Scholar 

  11. Huang Q et al (2021) A review of transactive energy systems: Concept and implementation. Energy Rep 7(2018):7804–7824

    Article  Google Scholar 

  12. 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

    Article  MathSciNet  Google Scholar 

  13. 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

    Article  Google Scholar 

  14. Morstyn T et al (2019) Bilateral contract networks for peer-to-peer energy trading. IEEE Trans Smaer Grid 10(2):2026–2035

    Article  Google Scholar 

  15. Kanakadhurga D, Prabaharan N (2021) Demand response-based peer-to-peer energy trading among the prosumers and consumers. Energy Rep 7:7825–7834

    Article  Google Scholar 

  16. 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

    Article  Google Scholar 

  17. Adeyemi A et al (2020) Transactive energy markets for managing energy exchanges in power distribution systems. Electr J 33(9):106868

  18. Zhou Y et al (2020) State-of-the-art analysis and perspectives for peer-to-peer energy trading. Engineering 6(7):739–753

    Article  MathSciNet  Google Scholar 

  19. Wu Y et al (2022) P2P energy trading: Blockchain-enabled P2P energy society with multi-scale flexibility services. Energy Rep 8:3614–3628

    Article  Google Scholar 

  20. Soto EA et al (2021) Peer-to-peer energy trading: A review of the literature. Appl Energy 283:116268

  21. Bjarghov S et al (2021) Developments and challenges in local electricity markets: A comprehensive review. IEEE Access 9:58910–58943

    Article  Google Scholar 

  22. Tushar W et al (2020) Grid influenced peer-to-peer energy trading. IEEE Trans Smart Grid 11(2):1407–1418

    Article  Google Scholar 

  23. 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

    Article  Google Scholar 

  24. Wang Q et al (2021) Blockchain technology in the energy sector: From basic research to real world applications. Comput Sci Rev 39:100362

  25. Ahl A et al (2019) Review of blockchain-based distributed energy: Implications for institutional development. Renew Sustain Energy Rev 107:200–211

    Article  Google Scholar 

  26. 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

    Article  Google Scholar 

  27. 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

    Article  Google Scholar 

  28. 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

    Article  Google Scholar 

  29. 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

    Article  Google Scholar 

  30. 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

    Article  Google Scholar 

  31. Espe E et al (2018) Prosumer communities and relationships in smart grids: A literature review, evolution and future directions. Energies 11:2528

  32. Chen L et al (2021) Peer-to-peer energy sharing with dynamic network structures. Appl Energy 291:116831

  33. Sousa T et al (2019) Peer-to-peer and community-based markets: A comprehensive review. Renew Sustain Energy Rev 104:367–378

    Article  Google Scholar 

  34. 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

  35. Hu Q et al (2021) A multi-market nanogrid P2P energy and ancillary service trading paradigm: Mechanisms and implementations. Appl Energy 293:116938

  36. 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

  37. Zhang C et al (2017) Review of existing peer-to-peer energy trading projects. Energy Procedia 105:2563–2568

    Article  Google Scholar 

  38. 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

  39. Guo Z et al (2021) Online optimization for real-time peer-to-peer electricity market mechanisms. IEEE Trans Smart Grid 12(5):4151–4163

    Article  MathSciNet  Google Scholar 

  40. 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

  41. 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

    Article  Google Scholar 

  42. Gazafroudi AS et al (2021) Hierarchical approach for coordinating energy and flexibility trading in local energy markets. Appl Energy 302:117575

  43. Gokcek T et al (2022) A novel multi-hierarchical bidding strategy for peer-to-peer energy trading among communities. IEEE Access 10:23798–23807

    Article  Google Scholar 

  44. 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

    Article  Google Scholar 

  45. 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

    Article  Google Scholar 

  46. 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

  47. Umer K et al (2021) A novel communication efficient peer-to-peer energy trading scheme for enhanced privacy in microgrids. Appl Energy 296:117075

  48. 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

    Article  Google Scholar 

  49. Farivar M et al (2013) Equilibrium and dynamics of local voltage control in distribution systems. 52nd IEEE conference on decision and control, Firenze, Italy

  50. Zhou X et al (2018) Hierarchical distributed voltage regulation in networked autonomous grids. arXiv: https://doi.org/10.48550/arXiv.1809.08624

  51. Farivar M, Low SH (2013) Branch flow model: Relaxations and convexification - part I. IEEE Trans Power Syst 28(3):2554–2564

    Article  Google Scholar 

  52. Huang J et al (2021) A generalized LinDistFlow model for power flow analysis. 60th IEEE Conference on Decision and Control, Austin, TX, USA

  53. Wood AJ, Bruce F (1996) Power generation, operation, and control. John Wiley & Sons, NY

    Google Scholar 

  54. 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

  55. 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

  56. 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

  57. 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

    Article  MathSciNet  Google Scholar 

Download references

Funding

This research paper not received any outside funding.

Author information

Authors and Affiliations

Authors

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

Correspondence to Mojtaba Shivaie.

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.

Supplementary file1 (DOCX 20 KB)

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12083-023-01456-2

Keywords

Navigation