Professional Documents
Culture Documents
A R T I C L E I N F O A B S T R A C T
Keywords: As a new distributed generation system, multi-microgrid is an important part of Energy Internet. There are a
Blockchain series of problems in the selection of generation resources and power trading which includes obvious concen
Multi-microgrid tration, fairness and low credibility. Aiming at the shortcomings of microgrid in real-time electricity trade, a
Power trading
multi-microgrid electricity bidding trading model based on blockchain technology is proposed. A competitive
Ant colony algorithm
spot market with distributed "multi-seller and multi-buyer" is constructed to realize the integration of "source-
sale". This paper compares the traditional trading mode with the power trading mode supported by blockchain
technology. In addition, this paper establishes a blockchain-based multi-microgrid power trading model, and
uses ant colony algorithm random bidding matching to achieve multi-objective optimization. Through the whole
process, the unification of energy flow, information flow and currency flow are realized. Finally, the reasonable
allocation of power resources and the openness and transparency of power trading are ensured.
* Corresponding author.
E-mail address: wli907@nwpu.edu.cn (W. Li).
https://doi.org/10.1016/j.epsr.2022.108649
Received 13 January 2021; Received in revised form 19 October 2021; Accepted 14 July 2022
Available online 30 July 2022
0378-7796/© 2022 Elsevier B.V. All rights reserved.
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
Nomenclatures CMO
buy (t) Power purchase cost of microgrid operators
RMO
bonus (t) Extra bonus of microgrid
Acronyms
PCMO
extra (t) Extra punishment of microgrid
MOs Microgrid operators
minCPC (t) The objective function of large power consumers
DGAs Distributed generation aggregators
CMtoP
buy (t) The cost of large power users purchasing electricity from
PCs Large power consumers
microgrid operators
Parameters CDtoP
buy (t) The cost of large power users purchasing electricity from
YPublickey Public key used by Y distributed generation aggregators
YPrivatekey Private key used by Y maxΠDGA (t) The objective function of distributed generation
Y
Taddress Information transmission address aggregators
InforY Information set broadcast by market entityYto the PDGA
sell (t) The revenue of distributed generation aggregators from
blockchain selling electricity to other market entities
QYsell , PYsell The electricity sales and price released by market entityYin CDGA The cost of buying electricity from other market entities for
buy (t)
period [t, t + Δt] distributed generation aggregators
Y
|YPublickey |Taddress The node address calculated by the public key of pik− g (t) Transfer probability
entity Y
Inputnum The block header content of the transaction initiator
ΣXi (t) The objective function value of the entityX Outputnum The version content in the block head of the power
Variables selling user MO1
Cbuy (t) Unit cost of purchasing electricity Pi,MO1 , Ci,MO1 , Ti,MO1 The transaction power, price and transaction
time data of MO1 participating in the transaction
ηMsell Bidding strategies of microgrid operators
sign(ipublickey ) The public key information signed by the system
ηPbuy Bidding strategies of large power consumers
participant after the transaction order certification is
ηDsell Bidding strategies of distributed generation aggregators passed
maxΠMO (t) The objective function of microgrid operators maxΠMO (t) The objective function of microgrid operators
PMO
sell (t) The profit of microgrid operators
Internet trading system, distributed energy industry and electric vehicle data transparency and reliability that make it suitable for data analysis
industry were introduced. It can be seen that the current research on the and decision-making in a decentralized system structure [16]. The
application of blockchain in the Energy Internet is still at the level of market economy ecological environment based on blockchain technol
integration concept and function analysis. Research on the application ogy does not require third-party supervision, and the data is safe and
of blockchain technology has not been fully implemented. In addition, transparent. Based on the advantages of blockchain, it not only can
reference [12] considered the problem of direct bilateral transactions greatly reduce the cost of reconstruction or trust maintenance between
when large numbers of producers and consumers were connected to the different market entities, but also effectively prevent rent-seeking
Energy Internet. Based on blockchain technology, a power transaction behavior in the market [7].
method with weak centralization management was established, which This paper proposes a multi-microgrid power transaction process
solved the trust problem between traders in the power market. In based on blockchain technology. Blockchain technology is used to solve
addition, the original distributed security checking method was the problem of multi-agent peer-to-peer transactions in multi-
improved. However, the whole transaction process still needed the microgrids. The established model fully takes into account the
participation of the central agencies. The decentralization in a real sense competitive relationship and respective goals between multiple parties.
has not been realized. Reference [13] introduced blockchain technology Through the combination of blockchain technology and ant colony al
from many aspects. On this basis, how to introduce blockchain tech gorithm, specific examples are used to prove the rationality of the built
nology into large user direct power purchase was preliminarily model, which can realize the local optimization of each target entity and
explored. A blockchain framework for large user direct power purchase conform to the laws of the market. The paper provides reference value
transactions in market access transaction and settlement was con for the study of peer-to-peer transactions in multi-microgrids.
structed. In addition, the formulation of intelligent contracts in the The remainder of this paper is organized as follows: In Section 2, the
transaction process was completed. However, the papers only studied feasibility of blockchain technology and multi-microgrid power trans
the trading framework from the macro level. The technical details need action is analyzed. The traditional transaction mode and blockchain
to be improved. In [14], the characteristics of decentralization, intelli mode are compared in Section 3. Multi-microgrid power transaction
gent contract and collaborative autonomy of blockchain technology model and transaction process are established based on blockchain
were considered. It was reasonable and effective to apply it to the technology in Section 4. The rationality of the transaction model and
automatic demand response project of energy local area network. process is proved by concrete examples in Section 5. Section 6 summa
However, the construction and improvement of Energy Internet trading rizes the main conclusions and contributions of this study.
mechanism still need to be further solved.
The above-mentioned researches have achieved good results, but 2. Feasibility analysis of blockchain technology and multi-
they have not yet involved the research on competitive transactions microgrid electricity trade
among multiple entities in the multi-microgrid system. Since the multi-
microgrid system contains multiple types of market entities, if a third 2.1. Blockchain technology
party intervenes or regulates market economic activities, it will hinder
market competition, resulting in rent-seeking behaviors such as mo In essence, blockchain is a distributed, chained-connection shared
nopoly or a small number of privileged persons obtaining excess income database which has the characteristics of decentralization, transparent
[15]. As a distributed accounting system, blockchain technology has information security and etc. Blockchain technology can realize point-
2
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
Table 1
Value analysis of the blockchain technology to electricity trading.
Technical items Analysis of technical value in electricity
trading
3
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
3.2. Multi-microgrid transaction system based on blockchain entityX adjusts the strategy to provide the secondary quotation strategy
or terminate the transaction to the entityY.
The power market structure of multi-microgrid based on blockchain
is studied in this paper as shown in Fig. 2. In the market structure of 3.2.2. Multi-microgrid electricity purchase transaction matching
multi-microgrid group, the market entities mainly include microgrid
operators (MOs), distributed generation aggregators (DGAs) and large (1) Price strategy space
power consumers (PCs). Each entity is independent and profitable. They
all hope to maximize their own interests through the process of trans Before the matching process of electricity trade in multi-microgrid,
action matching. As can be seen from the Fig. 2, each market module is each market entity will form a bidding strategy space, which includes
connected and interconnected by energy flow and information flow. The unit cost of purchasing electricity Cbuy (t)and unit price of selling elec
energy flow realizes the conduction and transmission of energy at the tricitypsell (t). Each unit is yuan/(kW.h).
physical level. The information flow realizes the information trans According to their own profit maximization, each entity formulates
mission of each node in the form of blockchain. The highly merged of the electricity price as the bidding strategy space according to the spe
information flow and energy flow strengthens the reliability of energy cific situation.
transfer among various entities and guarantees the timeliness of market Therefore, the bidding strategies of microgrid are as follows: ηM sell =
transactions. In this figure, each entity has its own functions. The {pMtoM (t), p MtoD
(t), pMtoP
(t)}. Distributed larger power user do not have
sell sell sell
microgrid operator is mainly responsible for generating and buying electricity sales, so their bidding strategies are aggregated into low
electricity. In the case of abundant electricity sales by microgrid oper power purchase costs: ηPbuy = {cMtoP DtoP
buy (t), cbuy (t)} . Bidding Strategies
ators and power shortage by other entities, microgrid sells electricity for
Space set of distributed generation aggregators: ηDsell = {pDtoM DtoP
sell (t),psell (t),
profit. The distributed generation aggregators operator collects the
DtoD
scattered electricity of distributed users. When the system is short of psell (t)}.
electricity, it can still play the role of sellers and earn profits through
price difference. While the large power users only act as consumers, (1) Objective function
buying electricity but not selling electricity. According to their own
conditions, the large power users obtain the maximum electricity at the The evaluation index of each entity choosing the trading object is the
minimum cost. In this model, the large power users do not sell electricity optimum value of its own objective function. For the entities who can
at all. buy and sell, the objective function includes the maximization of the
In this paper, each market entity is regarded as a block. Each market value of the sale income and the purchase expenditure. For the large
entity trades in different periods, then the block will complete the search power users, the optimization of the objective function is the minimum
for new blocks and link work. A large blockchain network is formed. In value of the purchase cost. The competition goal of microgrid operators
large energy blockchain network, each market entity publishes its own and distributed generation aggregators is to maximize their own profits.
unit ID, generation quota, energy type, electricity quotation and elec The goal of large power users is to achieve power demand at the mini
tricity purchase and sale situation on the blockchain network. Then, the mum cost. The objective function of each entity is as follows:
information is broadcasted to the whole network. After checking and The objective function of microgrid operators (MOs):
reaching consensus, each node publishes the power supply information maxΠMO (t) = PMO MO MO MO
(2)
sell (t) − Cbuy (t) + Rbonus (t) − PCextra (t)
block. At the same time, the power buyer can read the sales information
of other main entities from the blockchain. The power buyer finds sellers Microgrid operators will sell the surplus power to the other entities
who can meet their own needs for transaction matching. Then the set who need electricity during such periods to obtain the profit PMO sell (t).
tlement is completed by intelligent contract. In addition, the transaction When the microgrid cannot be supplied by itself, electricity purchasing
information can be uploaded to the blockchain network, which can be is needed and the cost is CMO
buy (t). Besides, the strict punishment mecha
queried at any time. nism is embedded in the incentive. Later, extra bonus RMO
bonus (t) will made
available when the clean energy utilization ratio increases, and extra
3.2.1. Encryption of purchasing electricity trading information punishment PCMOextra (t) will be applied when the pollutant emissions
Each market entity publishes purchase and sale information to the increase.
blockchain network according to its own needs. The objective function of large power consumers (PCs) is:
The market entityYuses public keyYPublickey and private keyYPrivatekey to
generate transaction authentication and information transmission
MtoP
minCPC (t) = Cbuy DtoP
(t) + Cbuy (t) (3)
Y
addressTaddress with time stamp. Then the market entityYbroadcasts
CMtoP
buy (t) is the cost of large power users purchasing electricity from
power purchase demand or power sale information to the whole
microgrid operators, and the cost of large power users purchasing
network:
( ) electricity from Distributed generation aggregators is CDtoP
buy (t).
QY orPYsell , [t, t + Δt] The objective function of distributed generation aggregators (DGA)
InforY = ⃒⃒ sell ⃒ Y (1)
YPublickey ⃒T
address
is:
WhereInforY is the information set broadcast by market entityYto the maxΠDGA (t) = PDGA DGA
sell (t) − Cbuy (t) (4)
blockchain; QYsell and PYsell are the electricity sales and price released by
PDGA the revenue of distributed generation aggregators from
sell (t)is
market entityYin period [t, t + Δt] respectively;|YPublickey |Taddress
Y
is the
selling electricity to other market entities, and the cost of buying elec
node address calculated by the public key of entity Y. tricity from other market entities for distributed generation aggregators
When the market entity Xreceives the information sent by the market
is CDGA
buy (t).
entity Y, firstly, the private key YPublickey is used to decrypt the infor
mation ofY. All the contents of InforY are obtained. Secondly, it extracts
(1) Constraint condition
the transaction information and compares the signature content to verify
a Constraint condition of MOs
the authenticity of the information released by the market entity Y.
According to the published information of Yand their own needs, the
Distributed generator output constraints:
objective function valueΣXi (t)of the entityXis calculated to determine
whether the objective function value satisfies the conditions. If not, the
4
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
Electricity Price Constraints: are the load capacity provided by microgrid operators and distributed
{ } generation aggregators, respectively. This equation indicates that the
pmin (t) ≤ pMtoM MtoD MtoP
sell (t), psell (t), psell (t) ≤ pmax (t) (7)
total system load demand is equal to the total system supply.
Where, pmin (t) and pmax (t) are the minimum and maximum power In the matching process of multi-microgrid power purchase trans
selling prices of microgrid operators at time t, respectively. The price of actions, there are mainly the following parameters: the price of each unit
electricity sold by microgrid operators to other microgrid operators, of electricity sold by the sellerpsell (t) (the highest price of the seller’s
distributed aggregators and power users are between their minimum electricity purchase price is the electricity sale price); the highest
and maximum prices. transaction price of each unit of electricity in the transaction process by
the buyerCbuy (t); the power demand and power supply of the buyer and
a Constraint condition of PCs seller in each period.
The steps of using ant colony algorithm to solve the matching of
Purchasing electricity constraints: multi-microgrid power purchase transactions are as follows:
Step 1: Set up the initial set of strategies for each market entity to
∑
n1 ∑
n2
QM i toP
buy (t) +
D toP
j
Qbup (t) ≥ QPbuy (t) (8) participate in competitive trading. For all market entitiesnparticipating
i=1 j=1 in the transaction, an initial set of quotations within their quotation
range is generated. Each ant k represents a set of quotation strategies,
Where, QPbuy (t) is the minimum demand of the large user entity at
and the set of price strategies at time t can be expressed as:
time t. At any time, the power users purchase from microgrid operators ⎡ ⎤
and distributed aggregators are greater than their minimum power p1− 1 (t) p1− 2 (t) ⋯ p1− n (t)
demand. ⎢ p2− 1 (t) p2− 2 (t) ⋯ p2− n (t) ⎥
ηk (t) = ⎢ ⎥ (14)
⎣ ⋮ ⋮ ⎦
Electricity Price Constraints: ⋮ ⋮
{ } pn− 1 (t) pn− 2 (t) ⋯ pn− n (t)
cMtoP DtoP P
buy (t), cbuy (t) ≤ cbuy (t) (9)
Where, ηk (t) represents the set of price strategies at time t corre
sponding to ant k.
Where, cPbuy (t)
is the maximum price limit for large users to purchase
Step 2: Each market entity selects a certain market entity published
electricity at time t. At any time, the price of electricity purchased by
on the blockchain network as the transaction object according to its own
large power users from microgrid operators and distributed aggregators
demand. For example, when the market entity 2 receives the informa
will not be greater than the maximum price limit for large users to
tion published by the market entity 1 on the network, it first uses the
purchase electricity.
private key2 − Privatekey to decrypt 1 to obtain all the information
published by the entity 1, including the purchase, sale volume and the
a Constraint condition of DGAs
electricity price; Secondly, the transaction information extracted and the
signature content are compared to verify the authenticity of the infor
Energy storage battery power constraints:
mation published by the entity 1. According to the information released
Lmin max
ESS ≤ LESS (t) ≤ LESS (10) by entity 1 and its own needs, the objective function value of entity 2 can
be calculated to judge whether the objective function value meets the
Where, LESS (t) is the power output of the energy storage battery at conditions.
time t; Lmin
ESS and LESS are the minimum and maximum discharge power of
max
Step 3: If the objective function meets the condition, the ant jumps
the energy storage battery, respectively. In any period of time, the power out of the loop; If it is not satisfied, the ant isets off to the next target gby
output of the energy storage battery is between its minimum and calculating the transition probabilitypik− g (t) and judges whether it can be
maximum discharge power.
traded.
Electricity Sales constraints:
When all ants (that is, all quotation strategies) complete a cycle, the
∑
n1 ∑
n2
AtoD
n3
∑ objective functions of all market entities are recorded. By comparison,
0≤ QAtoM i
sell (t) + Qsell j (t) + QAtoP k
sell (t) the current optimal individual and its objective function value are
i=1 j=1 k=1
[ ] (11) recorded. The transaction price in the transaction process corresponding
∑ ∑ to the optimal individual is the optimal quotation.
n4 n1
≤ LDGS (t) − LMO
load (t) Δt
i
α=1 i=1 Step 4: Update the pheromone concentration; set the number of it
erations N = N + 1; ifN ≤ Nmax , go to step 2; otherwise, output the
In any period of time, the total amount of electricity sold by
5
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
Table 2
Bidding strategy intervals of various market entities.
Various market entities Bidding strategy space
optimal result.
6
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
Table 3
Optimal bidding strategy of 12:00.
Two trading Electricity Price Two trading Electricity Price
entities (yuan/kWh) entities (yuan/kWh)
7
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
8
Z. Xu et al. Electric Power Systems Research 213 (2022) 108649
[22] W. She, Y. Hu, X. Yang, S. Gao, W. Liu, Virtual power plant operation and [24] Y. Yuan, F.Y. Wang, Blockchain: the state of the art and future trends, Zidonghua
scheduling model based on energy blockchain network, Zhongguo Dianji Xuebao/Acta Autom. Sin. 42 (2016) 481–494, https://doi.org/10.16383/j.
Gongcheng Xuebao/Proceedings Chinese Soc. Electr. Eng. 37 (2017) 3729–3736, aas.2016.c160158.
https://doi.org/10.13334/j.0258-8013.pcsee.170364. [25] Z. Xu, D. Yang, W. Li, Microgrid group trading model and solving algorithm based
[23] Y. Yan, J. Zhao, F. Wen, X. Chen, Blockchain in energy systems: concept, on blockchain, Energies 12 (2019), https://doi.org/10.3390/en12071292.
application and prospect, Dianli Jianshe/Electric Power Constr. 38 (2017) 12–20,
https://doi.org/10.3969/j.issn.1000-7229.2017.02.002.