Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2019 8th International Conference on Modern Power Systems (MPS)

An Efficient Peer-to-Peer Based Blokchain Approach


for Prosumers Energy Trading in Microgrids
Bogdan Constantin Neagu, IEEE Member, Gheorghe Grigoraș, Ovidiu Ivanov, IEEE Member
Power Engineering Department
„Gheorghe Asachi” Technical University
Iasi, Romania
email: bogdan.neagu@tuiasi.ro, ggrigor@tuiasi.ro, ovidiuivanov@tuiasi.ro

Abstract— The pressure of climate change and the need to technology, consumers can obtain electricity at significantly,
adopt renewable energy sources (RES) have led to an increased lower price offers than from traditional suppliers.
development of microgrid technologies. Their modularizable and
scalable nature presents opportunities for the development of a In Romania, the consumers purchase electricity from
new class of players in the power system, i.e. prosumers. The suppliers operating on the competitive electricity market. The
large-scale integration of RES creates acute challenges to the commercial market operator OPCOM manages the transactions
existing power systems. In this context, a reliable and secured between producers and suppliers using a Bilateral Contracts
balance between energy generation and consumption is highly Market (BCM) and Day-Ahead Market (DAM). Each of these
required. To overcome these problems at microgrid level, a key trading channels has its own dynamics regarding quantities and
role is played by the peer-to-peer energy trading using the prices. From 1 January 2018, according to the National
blockchain concept. In this paper, we present an efficient Regulatory Authority for Energy, the electricity price is
approach that can be useful for energy trading using blockchain liberalized for all consumers, including residential, which can
from both active participants (prosumers and consumers). The purchase electricity from one of the last-resort regional
proposed approach meets the new Romanian regulation suppliers, or are free to choose a commercial supplier [5].
regarding prosumers. The results of the study emphasize that the Suppliers serving end customers purchase electricity from the
proposed methodology could lead to an efficient balance between market. The lower the purchase price, the more commercial
local supply and demand with benefits to the participants. offers of the suppliers can be more attractive.
Keywords—peer-to-peer; blokchain; prosumers; trading; In the European Union, the implementation of smart
microgrids. metering systems is finished in some countries and is in various
levels of development in others [6]. A special attention should
I. INTRODUCTION be paid to the management of the databases with information
provided by smart meters using new technologies such as
The microgrids (μGs) represent a finite group of producers
Knowledge Data Discovery or Data Mining, Blockchain. In
with local demands (prosumers) mainly through renewable
addition to the metering functions, the smart meters provide, a
energy resources. Their presence increases the power supply
wide range of applications: two-way communication between
reliability, which is useful for distribution network operators
the smart meters mounted at consumer/prosumers sites and
(DNOs) in the case of power outages [1]. The μG energy
concentrators (management platforms or traders), secure data
markets (micro-markets) enable small-scale participants such
transmission between the participants, remotely controlled
as consumers (residential buildings) and prosumers (defined as
connections on the μGs and specify the limitation of
consumers with excess of produced power) to locally exchange
consumers/prosumers and differentiated time-of-use tariffs [7].
the energy surplus [2].
When an electricity provider (i.e. energy market provider,
Consequently, these micro-markets emphasize in an
traders or a local community electricity network) and a
efficient economic (but also technical) way the balance
potential customer agree to make a transaction, they determine
between the renewable power generation (solar panels mounted
the trading variables, such as the sender, the recipient, the
on the residential buildings) and consumption in μGs [3].
transaction value etc. It should be noted that, at μG level, each
Moreover, these platforms allow the interchange of energy
transaction is distributed and encrypted for data validation and
between prosumers and consumers, with the purpose to
local storage. Each member of the network automatically
establish self-sustainable μG communities [4].
verifies, confirms and saves the authenticity of the transaction
The electricity suppliers bound by contracts with prosumers data. Furthermore, the traditional intermediaries are not
are required to buy the electricity at the weighted average day- needed, because the trading process is performed by μG
ahead market price from the previous year. Thus, the prosumer participants, which become witnesses and guarantees for every
can sell on the market its electricity generation surplus, while transaction.
the advantage for the supplier is the exemption from the
The blockchain concept, as a rising technology, proposes
payment of the distribution network tariff. Through bilateral
new challenges for the μG based on the decentralized or
prosumer-consumer contracts, using the innovative blockchain

978-1-7281-0750-9/19/$31.00 ©2019 IEEE


community energy market, which ensures clear and favourable permanent changes in their operation. A new type of electrical
applications that allow consumers to be prosumers in a secured network capable of operating in both islanded and grid
way [8]. The application of blockchain for μG energy markets connected mode, with the proper optimization of renewable
has recently earned the consideration of the researchers energy resources that promises emission free green energy, is
worldwide. the microgrid. Renewable sources such as solar energy are
frequently operated at capacities to feed all available power
In [9], a proof-of-concept operation of a small blockchain into the grid, maximizing grid output regardless of its state
applied for machine-to-machine electricity market with one [16]. However, due to the μG energy markets, small-scale
consumer and two producers from a chemical factory was prosumers and consumers now have a market platform to trade
proposed. that the blockchain concept can set up very small- energy generated locally within their community. In this way,
scale electricity markets such as μG communities. In [10] the loss of energy is reduced, because the consumption of energy is
authors show that the use of blockchain technology for in close proximity to the source. This helps to promote the
electricity transactions enables μG to become more resilient by sustainable and efficient utilization of local resources, because
building trust between participatins. These opportunities are the market participants in a μG energy market do not
notably with respect to financial payments and electricity compulsorily need to be physically connected.
delivery [11]. The P2P concept represents a process in which
the prosumers trade energy in exchange for a deposit with the Multiple energy producers, prosumers, and consumers can
consumer [12]. be added to form a local community (or virtual for our paper)
and the control can be maintained through local (virtual) μGs.
The paper describes a particular approach for prosumers Blockchain is a very secure system for transactions, which also
energy trading in microgrids as an efficient P2P exchange provides distributed applications to convey understanding of
based on the blockchain technology. Specifically, our each block and data on the system [17]. A good number of
algorithm solves a mathematical model for the latest challenges research papers are available on the μG energy markets and
regarding both the active distribution networks (the so-called blockchain technology individually but their aggregation is
microgrids) and the newest type of electricity market lacking [8], [10], [18-21].
participants (prosumers). This paper is organized as follows.
Section 2 describes the concept of the transactive energy in
active low voltage distribution networks (μG). Section 3 III. THE ALGORITHM FOR PROSUMERS ENERGY TRADING
describes the proposed approach by formulating the problem This section describes the mathematical model of the
and its solving methodology. In Section 4 a case study is algorithm for selling the energy produced by small-scale
performed using a test μG with 27 consumers (of which four renewable sources (solar panels from residential users)
are prosumers with solar panels). Finally, Section 5 presents between the participating agents in the μG markets - prosumers
conclusions. (Prs) and consumers (Crs). In Fig. 1, the flowchart of the P2P
based blockchain for prosumers energy trading is presented.
II. THE TRANSACTIVE ENERGY CONCEPT Taking into account that “prosumers” are the energy producers
which sell their surplus energy, they can sell the surplus of
In the literature the “transactive energy” paradigm is produced energy (Wgp) if their own consumptions (Woc) are less
defined as a platform tool for grid management taking into than the own generation. If this constraint is fulfilled, the
account the market-based incentives, in order to ensure grid blockchain system starts working. First, in accordance with the
reliability and resiliency, that “uses economic signals and flowchart if the energy demand (Wd) quantities are higher than
operational information to coordinate and manage devices' Wgp, the total prosumers offered energy (Wof) are set taking into
production and/or consumption of electricity in the grid” [13]. account total generated power (Wg) by prosumers as:
Thus, transactive energy defines the policies, technologies, and
financial drivers convergence in an active prosumer (buildings, n n n

μGs, and virtual power plants) market [14]. 


k =1
Wofk ,h = (U
k =1
k ,h
g ⋅ I gk ,h ) − W
k =1
k ,h
oc
(1)
In our paper, the P2P contracts are used for selling the
surplus of generated energy from the prosumers. In active Ug and Ig is the generated voltage level and current value, for
distribution networks, the P2P trading process is structured as a prosumer k, at hour h.
four-layer architectural business model, from which three
dimensions for secured energy exchange. The dimensions The total energy losses (ΔWT) for n lines are computed as:
include bidding between prosumers and consumers for a n n n

  Rli ,h ⋅ ( I li ,h ) + (U ⋅ I mi ,h )
2
certain unit of energy through smart contracts, exchanging the Δ WTi ,h = i ,h
m
(2)
energy and settling payments through blockchain technology i =1 i =1 i =1
[12]. In the aforementioned transaction procedure, a ledger is
posted in the blockchain, verified by μG and finally, is where Rl is the resistance and Il is the value of the current flow
accepted by the P2P contracts level. Moreover, the energy on the ith line at hour h, and Um·Im represent the miscellaneous
demands can be met by any prosumer, and energy exchange in power losses. Afterwards, the offered energy (Wof) can be
lieu of digital money takes place through a secured medium for calculated by subtracting (2) from (1):
μG [15]. n n n n

The presence of distributed generation resources in low


voltage networks is in accelerated expansion, leading to
i =1
Wofi ,h = i =1
Δ Wgpi ,h −  i =1
Δ Woci ,h − Δ W
i =1
T
i ,h
(3)
variables of this transaction by specifying the recipient, the
sender and the size of the transaction, among other things.
When Crs give their demand ledger status, the blockchain
module creates the Wd list in accordance with the required
quantity of energy (Wr) to compare both Wd and Wof list
available in the system. Further, a message to all implied Prs
and Crs is sent with a notification about the transaction status.
If they agree with the transaction status, the Wof will be
transferred from the μG (Prs) to the Crs. The crypto PP2P will
be used as a virtual way of payment.
Another blockchain role in our algorithm is the control if
the power left in the μG satisfies the Wd list or there are no
prosumers who want to sell energy. In this scenario,
transactions cannot be done, and Crs must to wait until selling
offers become available. Then, the Crs can see the
advertisement of selling offers and the blockchain system will
sell the power to the consumers using the first come first serve
(FCFS) rule. The algorithm continues while Wof is greater than
zero or Wd from Crs exist. Finally, if the trading process is
completed the Prs and Crs will get notifications.

IV. RESULTS AND DISCUSSIONS


For testing the proposed approach, a test μG (Fig. 2) with
23 Crs and only 4 Prs (residential with photovoltaic panels)
was used. The μG is supplied from a MV/LV transformer using
LV bundled overhead cable type NFA2X50OL-AL+3x70mm2.
The prosumers have the following installed power for the on-
grid PV panels: 3 kW (P3), 13.5 kW (P12 and P20) and 15 kW
(P22). The simulations are performed using a MATLAB
application for one hour (14.00-15.00) of a working day from
July, considering three cases for Wof injection on μG: the four
Prs (case A), three Prs (P12, P20 and P22–case B) and two Prs
(P12 and P22-case C). In Table I, the prosumers information
regarding the total energy generated (Wg), the own
consumption (Woc) and surplus (Wof) that can be sold to Crs are
presented. It can be seen that the offered energy of the four
prosumers can lead to a profit of 7300 €/year.

TABLE I. PROSUMERS INFORMATION


Type of Prosumers from considered μG (Fig. 1)
Energy P3 P12 P20 P22
Wg (kWh) 2.74 8.94 8.63 9.28
Woc (kWh) 1.15 1.00 1.89 1.27
Wof (kWh) 1.59 7.94 6.74 8.01
PT (€/h) 0.12 0.60 0.51 0.60
Pyear (4000h) 477.2 2381.1 2020.8 2402.7

The total consumption at the considered hour is 57.96 kWh.


Taking into account that the studied μG has only 23 Crs, all of
Fig. 1. The flowchart for the proposed algorithm them require energy at a low price, and sign contracts with the
Prs with a medium price PP2P = 0.08 €/kWh (for comparison,
The total price (PT) for the Wof are determined through the the price for the kWh bought by the trader is 0.17 €/kWh). It
multiplication with the energy per unit price (PP2P), assured by must be emphasized that total price are computed only for the
negotiating process between Prs and Crs (from a local μG) energy offered by Prs without miscellaneous power losses.
using P2P contracts. In next stage, for each available Prs the Moreover, by using the proposed algorithm, all participants
Wof status goes online and all Prs are notified by the particular have advantages, because the bidirectional power flow on the
blockchain system presented in Fig.1. When Wd is greater than power lines decrease the μG active power losses in all
the Wgp the consumers want to buy energy from the local Prs, if considered cases, as given in Table II. In addition, the overall
have already signed a P2P contract. Where a provider and a energy exchange between the μG and the utility grid is
customer agree to enter into a transaction, they determine the reduced. The active power losses are halved.
Fig. 2. The one-line diagram of the test microgrid. [5] National Regulatory Authority for Energy, “The 228 Order for the
Approval of the Technical Norm Technical Conditions for Connection to
TABLE II. THE INFLUENCE OF THE PROPOSED ALGORITHM ON THE the Public Electrical Networks of the Prosumers”, Romania, dec. 2018.
ANALYSED MICROGRID STEADY STATE [6] R. Hierzinger, M. Albu, H. van Elburg, A. Scott, A. Lazicki, L.
Penttinen, F. Puente, H. Saele, “European Smart Metering Landscape
Parameters All considered scenarios Report”, IEE, 2013.
(kWh) Case 0 Case A Case B Case C
WSubst 57.96 29.22 31.09 40.38 [7] A. Pitì, G. Verticale, C. Rottondi, A. Capone, L. Lo Schiavo, “The role
of smart meters in enabling real-time energy services for households:
Wgp 0 28.74 26.87 17.58
The Italian case”, Energies, vol. 10 (2), p. 199, feb. 2017.
Wcons 56.04 27.77 29.54 38.51
ΔWT 1.92 0.84 0.89 1.08 [8] E. Mengelkamp, B. Notheisen, C. Beer, D. Dauer, C. Weinhardt, “A
ΔWT (%) 3.31 1.45 1.54 1.86 blockchain-based smart grid: Towards sustainable local energy
markets”, Comput. Sci. Res. Dev., vol. 33, pp. 207–214, Feb. 2018.
Where Wsubst –the energy provided from LV substation bars, [9] J. J. Sikorski, J. Haughton, and M. Kraft, “Blockchain technology in the
Wcons – energy consumption from the utility grid. chemical industry: Machine-to-machine electricity market,” Applied
Energy, vol. 195, pp. 234-246, Jun. 2017.
CONCLUSIONS [10] F. Hasse, A. von Perfal, T. Hillebrand, E. Smole, L. Lay, and M.
Charlet, “Blockchain – an opportunity for energy producers and
The paper proposes an original approach for energy trading consumers?” PwC Global Power & Utilities, Technical Report, 2016.
in microgrids with prosumers using a blockchain technology [11] E. Mengelkamp, J. Gärttner, K. Rock, S. Kessler, L. Orsini, C.
using virtual or crypto price as the transaction currency. Also, Weinhardt, “Designing microgrid energy markets A case study: The
this work emphasizes the capabilities and plausible benefits of Brooklyn Microgrid,” App. Energy, vol. 210, pp. 870-880, Jan. 2018.
P2P contracts for energy trading in local microgrids from the [12] C. Zhanga, J. Wua, M. Chenga, Y. Zhoub, and C. Longa, “A Bidding
technical perspectives. Taking into account that the Smart System for Peer-to-Peer Energy Trading in a Grid connected
Microgrid,” Energy Proc., vol. 103, pp. 147-152, Dec. 2016.
Meters are able to perform automatic energy transfer from the
prosumers to the microgrid, the energy exchanged between the [13] C. Hertzog, “Transactive energy american perspectives on grid trans-
formations,” 2013, available on www.smartgridlibrary.com.
μG, the utilities will be reduced, trough the minimization of
[14] S. Muhanji, A. Muzhikyan, and A. M. Farid. "Long-Term Challenges
active power losses. The proposed algorithm developed in the for Future Electricity Markets with Distributed Energy Resources."
Matlab environment is in the early stages and will be further Smart Grid Control. Springer, Cham, 2019. 59-81.
developed as a final energy market transaction platform for [15] E. Espe, V. Potdar, E. Chang,“Prosumer Communities and Relationships
both the prosumers and traders. in Smart Grids: A Literature Review, Evolution and Future Directions”,
Energies vol. 11, no. 2528, 2018.
AKNOWLEDGMENT [16] C.F. Calvillo, A. Sánchez-Miralles, and J. Villar, "Assessing low voltage
network constraints in distributed energy resources planning." Energy,
This paper was realized with the support of COMPETE no. 84, pp. 783-793, 2015.
project no.9PFE/2018, financed by the Romanian Government. [17] M. Andoni, V. Robu, D. Flynn, S. Abram, D. Geach, D. Jenkins, P.
McCallum, A. Peacock, “Blockchain technology in the energy sector: A
systematic review of challenges and opportunities. Renew. and Sust.
REFERENCES Energy Rev., vol. 100, pp. 143-174, Feb. 2019.
[1] M.J. Burke, and J.C. Stephens, “Political power and renewable energy [18] C. Burger, A. Kuhlmann, P. Richard, and J. Weinmann, “Blockchain in
futures: A critical review”, En. Res. Soc. Sci., vol. 35, pp.78-93, 2018. the energy transition. A survey among decision-makers in the German
[2] P. Kohlhepp, H. Harb, H. Wolisz, S. Waczowicz, D. Müller, V. energy industry,” Deutsche Energie-Agentur GmbH - Technical Report,
Hagenmeyer, “Large-scale grid integration of residential thermal energy Nov. 2016.
storages as demand-side flexibility resource: A review of international [19] M. Conoscenti, A. Vetro, and J. C. De Martin, “Blockchain for the
field studies,” Renew. and Sust. En. Rev., Elsevier, vol. 101(C), pp. 527- Internet of Things: A Systematic Literature Review,” in 13th Intern.
547, 2019. Conf. of Computer Systems and Applications, pp. 1–6, 2016.
[3] L. Chang, X. Wang, and M. Mao, “Transactive energy scheme based on [20] O. I. Konashevych, “Advantages and Current Issues of Blockchain Use
multi-factor evaluation and contract net protocol for distribution network in Microgrids,” Electronic Modeling, vol. 38, no. 2, 2016.
with high penetration of DERs”, 2017 IEEE Chinese Automation
[21] P. Danzi, M. Angjelichinoski, C. Stefanovic, and P. Popovski,
Congress (CAC), pp. 7139-7144, Oct. 2017.
“Distributed Proportional-Fairness Control in MicroGrids via
[4] R. Schleicher-Tappeser, “How renewables will change electricity Blockchain Smart Contracts,” IEEE International Conference on Smart
markets in the next five years,” En. Pol., vol. 48, pp. 64-75, Sep. 2012. Grid Communications (SmartGridComm), pp. 45–51, 2017.

You might also like