Next Article in Journal
Model Checking Autonomous Components within Electric Power Systems Specified by Interpreted Petri Nets
Next Article in Special Issue
SSA-VMD for UWB Radar Sensor Vital Sign Extraction
Previous Article in Journal
Real-Time and Efficient Multi-Scale Traffic Sign Detection Method for Driverless Cars
Previous Article in Special Issue
Deep Lossless Compression Algorithm Based on Arithmetic Coding for Power Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Local Electricity and Carbon Trading Method for Multi-Energy Microgrids Considering Cross-Chain Interaction

1
School of Automation, Guangdong University of Technology, Guangzhou 510006, China
2
Key Laboratory of Intelligent Information Processing and System Integration of IoT, Ministry of Education, Guangzhou 510006, China
3
111 Center for Intelligent Batch Manufacturing Based on IoT Technology, Guangzhou 510006, China
4
Guangdong Key Laboratory of IoT Information Technology, Guangzhou 510006, China
5
Guangdong-HongKong-Macao Joint Laboratory for Smart Discrete Manufacturing, Guangzhou 510006, China
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(18), 6935; https://doi.org/10.3390/s22186935
Submission received: 15 August 2022 / Revised: 3 September 2022 / Accepted: 6 September 2022 / Published: 14 September 2022
(This article belongs to the Special Issue Advanced Communication and Computing Technologies for Smart Grid)

Abstract

:
The objective of this paper is to propose a local electricity and carbon trading method for interconnected multi-energy microgrids. A local electricity market and a local carbon market are established, allowing microgrids to trade electricity and carbon allowance within the microgrid network. Specifically, excessive electricity and carbon allowance of a microgrid can be shared with other microgrids that require them. A local electricity trading problem and a local carbon trading problem are formulated for multi-energy microgrids using the Nash bargaining theory. Each Nash bargaining problem can be decomposed into two subproblems, including an energy/carbon scheduling problem and a payment bargaining problem. By solving the subproblems of the Nash bargaining problems, the traded amounts of electricity/carbon allowance between microgrids and the corresponding payments will be determined. In addition, to enable secure information interactions and trading payments, we introduce an electricity blockchain and a carbon blockchain to record the trading data for microgrids. The novelty of the usage of the blockchain technology lies in using a notary mechanism-based cross-chain interaction method to achieve value transfer between blockchains. The simulation results show that the proposed local electricity and carbon trading method has great performance in lowering total payments and carbon emissions for microgrids.

1. Introduction

With the benefits of promoting a sustainable society and reducing carbon emissions, many countries greatly support the use of renewable energy to replace traditional fossil fuels [1]. Installing distributed power sources, e.g., photovoltaic panels and wind turbines, in microgrids will provide many advantages, such as reducing energy procurement costs and lowering carbon emissions by consuming renewable energy [2]. To reduce the curtailment of renewable energy and long-distance electricity transmission, the local electricity trading mechanism is introduced into the power market, which will allow microgrids to become prosumers that can buy and sell electricity in the local electricity market [3]. Through local electricity trading, microgrids will have an opportunity to obtain revenues by selling their excess renewable energy. Therefore, local electricity trading provides economic and environmental benefits for microgrids [4].
Considering that microgrids are both energy consumers and carbon emitters, the inclusion of microgrids in the electricity and carbon markets is necessary [5]. With the construction of electricity transmission infrastructure between microgrids, local electricity trading can be conducted within the microgrid network. In addition, microgrids should pay for carbon emissions. Introducing the carbon market, e.g., the carbon cap-and-trade market [6], is an effective way to impact the carbon emissions from microgrids. When the carbon emissions of microgrids exceed their allocated carbon allowance, they should purchase the deficient carbon allowance, which will motivate them to reduce carbon emissions.
Many researchers, e.g., [7,8,9,10], have investigated electricity or carbon trading between entities. In [7], a Nash-bargaining-based electricity interaction method is proposed for interconnected microgrids, and the alternating direction method of multipliers (ADMM) method is used to solve Nash bargaining problems in a distributed manner. An optimal energy management method for multi-energy multi-microgrid networks is proposed in [8], where two scheduling horizons including the day-ahead phase and intra-day phase are considered. An investment decision model for microgrids is proposed in [9], where the impacts of the carbon trading mechanism are taken into account. In [10], a dynamic economic dispatch model of plug-in electric vehicles is constructed, and the effectiveness of compensating battery degradation costs with carbon trading revenues is verified. Furthermore, some studies, e.g., [5,11], consider both electricity and carbon trading. A bi-level distributed day-ahead schedule model for multi-microgrids is proposed in [11], where both the local electricity trading and local carbon trading between microgrids are taken into account. A cooperative operation method for a battery swapping station, a charging station, and a residential building is proposed in [5], where the electricity and carbon trading between these three entities is considered. However, these papers [5,7,8,9,10,11] have not considered that when entities operate cooperatively, the payments for local electricity trading and local carbon trading may be separate.
Blockchain is an immutable and distributed ledger, which provides a secure way to record transaction data [12]. Many researchers, e.g., [13,14], have considered using the blockchain technology to establish a secure local electricity market. Ref. [13] proposes a decentralized peer-to-peer (P2P) energy trading scheme that performs via blockchain-based smart contracts. Ref. [14] considers a blockchain-based P2P energy trading system between prosumers and consumers. Furthermore, some studies, e.g., [15,16], have considered using a blockchain to store transaction data for both electricity and carbon markets. In [15], electricity and carbon trading markets are established for networked microgrids, and a blockchain is applied to save the transaction data associated with electricity and carbon trading. A fully decentralized blockchain-based P2P trading scheme for prosumers is proposed in [16], where a blockchain is introduced to record both electricity and carbon trading data. However, these papers [13,14,15,16] have not considered that there would be two different blockchains, one for the electricity market and the other for the carbon market.
In this paper, a local electricity and carbon trading method for multi-energy microgrids is proposed using the Nash bargaining theory [7]. The local electricity and carbon markets are established within the microgrid network. An electricity blockchain is introduced to record the electricity trading data and a carbon blockchain is introduced to record carbon trading data. Two cryptocurrencies, named electricity coins and carbon coins, are used to trade payments in the electricity blockchain and carbon blockchain, respectively. Furthermore, a notary mechanism-based cross-chain interaction method is proposed to realize value transfer between electricity and carbon blockchains [17,18].
The contributions of this paper are summarized below:
  • We propose a Nash bargaining-based local electricity and carbon trading method for interconnected multi-energy microgrids, which helps to determine the traded amounts of electricity and carbon allowance between microgrids and the corresponding local electricity and carbon payments of microgrids in a fair manner;
  • We introduce an electricity blockchain and a carbon blockchain for secure information interactions and payments, while electricity coins and carbon coins are introduced as cryptocurrencies for these two blockchains, respectively;
  • A notary mechanism-based cross-chain interaction method is proposed to achieve value transfer between the electricity and carbon blockchains.
The rest of this paper is structured in the following manner: Section 2 describes the system model of the microgrid and microgrid network. Section 3 develops the mathematical formulation of the local electricity and carbon trading problems. Section 4 introduces the electricity and carbon blockchains and presents the cross-chain interaction method. Case studies are conducted in Section 5. Finally, we conclude this paper in Section 6.

2. System Model

In this section, we will first present the basic structures of multi-energy microgrids and their connective topology. Then, the detailed models of various energy devices and the operation constraints of microgrids are given.

2.1. Microgrid Model

Figure 1 shows the basic structure of a multi-energy microgrid. Each microgrid i M contains the following components: a wind turbine (WT), a combined heat and power (CHP) unit, a gas boiler (GB), an electrolyzer (ELE), a hydrogen fuel cell (HFC), electric storage (ES), heat storage (HS), and hydrogen storage (H2S). Three different types of load demands for microgrids should be met: electric loads (ELs), heat loads (HLs), and hydrogen loads (H2Ls). Microgrids will participate in both local electricity and carbon markets. Thus, each microgrid can sell its excess renewable energy to other microgrids that need to purchase electricity. In the meantime, the carbon allowance of microgrids can be traded within the microgrid network.

2.2. Microgrid Network

Figure 2 presents the schematic model of the microgrid network that is composed of three microgrids (i.e., MG-1, MG-2, and MG-3). Let M = { 1 , , M } denote the set of M microgrids. Microgrids can purchase electricity and gas from the electric and gas utilities. In the meantime, microgrids can purchase insufficient or sell surplus carbon allowance in the central carbon market. Microgrids are connected to each other through electricity transmission infrastructures, which enables local electricity trading within the microgrid network. Moreover, microgrids are connected to each other through the wireless communication network, which realizes the information transmission between microgrids [19,20]. The operation horizon T = { 1 , T } is composed of T equal time slots, and each time slot is denoted as t T . A microgrid manager is responsible for scheduling energy and carbon allowance and clearing local electricity and carbon markets for microgrids. Note that the carbon trading can be conducted not only in a global market or national market, but also in the local markets. Many researchers, e.g., [10,15,21], have focused on the ability of local carbon markets and entities in the markets to trade carbon allowance with each other. Specifically, entities participating in local carbon markets can include microgrids [15], energy hubs [21], and plug-in electric vehicles [10], etc. Thus, we believe that it is reasonable to integrate multi-energy microgrids into the local carbon market. Moreover, the local carbon market considered in this paper is similar to the global/national carbon markets. The carbon emissions of a multi-energy microgrid can be calculated as Equation (23). Then, each microgrid can sell its excess carbon allowance to other microgrids that need to purchase carbon allowance. Thus, we believe that the local carbon trading between microgrids can emulate the global/national carbon markets.

2.3. Microgrid Operation Constraints

The detailed models of energy devices and the operation constraints of microgrids are formulated as follows.
(1) Power sources: Each microgrid can purchase electricity and gas from utilities, and the wind turbine will supply renewable energy for the microgrid. Let P t , i G R I D and P t , i G A S denote the amounts of electricity and gas purchased from the utilities, respectively; let P t , i W T denote the scheduled wind power. We have:
0 P t , i G R I D P i , max G R I D ,
0 P t , i G A S P i , max G A S ,
0 P t , i W T P t , i W T , g e n ,
where P i , max G R I D and P i , max G A S denote the maximum amounts of electricity and gas that microgrid i can purchase from the electric and gas utilities, respectively, and P t , i W T , g e n denotes the wind power output of microgrid i in time slot t.
(2) CHP: Let P t , i C H P , g denote the gas consumption of the CHP. Its electricity and heat outputs are defined as P t , i C H P , e and P t , i C H P , h , respectively. The operation constraints of the CHP can be described by:
P t , i C H P , e = η i C H P , e P t , i C H P , g ,
P t , i C H P , h = η i C H P , h P t , i C H P , g ,
0 P t , i C H P , g P i , max C H P , g ,
R i C H P , d ( P t , i C H P , g P t 1 , i C H P , g ) / Δ t R i C H P , u ,
where η i C H P , e and η i C H P , h represent electricity and heat conversion efficiencies of the CHP, respectively; P i , max C H P , g denotes the maximum gas consumption of the CHP; R i C H P , u and R i C H P , d denote the ramp up/down limits of the CHP, respectively; and Δ t represents a time slot (i.e., an hour in this paper).
(3) GB: The GB can consume gas to satisfy the heat demands of the microgrid. Let P t , i G B , g denote the gas consumption of the GB. Its heat output is denoted as P t , i G B , h . The GB should satisfy the following constraints:
P t , i G B , h = η i G B , h P t , i G B , g ,
0 P t , i G B , g P i , max G B , g ,
where η i G B , h denotes the heat conversion efficiency of the GB; P i , max G B , g denotes the maximum gas consumption of the GB.
(4) ELE: The ELE can generate hydrogen by consuming electricity. Let P t , i E L E , e denote the electricity consumption of the ELE. Its hydrogen output is denoted as P t , i E L E , h 2 . The operation constraints of the ELE are given as:
P t , i E L E , h 2 = η i E L E , h 2 P t , i E L E , e ,
0 P t , i E L E , e P i , max E L E , e ,
where η i E L E , h 2 denotes the hydrogen conversion efficiency of the ELE; P i , max E L E , e denotes the maximum electricity consumption of the ELE.
(5) HFC: The HFC can generate electricity by consuming hydrogen. Let P t , i H F C , h 2 denote the hydrogen consumption of the HFC. Its electricity output is denoted as P t , i H F C , e . The operation constraints of the HFC are given as:
P t , i H F C , e = η i H F C , e P t , i H F C , h 2 ,
0 P t , i H F C , h 2 P i , max H F C , h 2 ,
where η i H F C , e denotes the electricity conversion efficiency of the HFC and P i , max H F C , h 2 represents the maximum hydrogen consumption of the HFC.
(6) STO: We define STO S = Δ { ES , HS , H 2 S } as a type of storage. The ES, HS, and H2S have similar operation constraints. Let E t , i S T O denote the energy level of the STO; let P t , i S T O , c and P t , i S T O , d denote the charging and discharging power of the STO , respectively; let η i S T O , c and η i S T O , d denote the charging and discharging efficiencies of the STO , respectively. The operation constraints of the STO can be described by:
E t , i S T O = E t 1 , i S T O + η i S T O , c P t , i S T O , c Δ t ( 1 / η i S T O , d ) P t , i S T O , d Δ t ,
E i , min S T O E t , i S T O E i , max S T O ,
0 P t , i S T O , c P i , max S T O , c ,
0 P t , i S T O , d P i , max S T O , d ,
E 0 , i S T O = E T , i S T O ,
where E i , max S T O and E i , min S T O represent the maximum and minimum energy levels of the STO , respectively; P i , max S T O . c and P i , max S T O , d represent the maximum charging and discharging power of the STO , respectively; E 0 , i S T O and E T , i S T O denote the energy levels of the STO in the initial and terminal time slots, respectively. Note that constraint (18) denotes that the energy levels of the STO are equal in the initial and terminal time slots [22].
(7) Power balance equations: The electricity, heat, hydrogen, and gas balance equations of microgrid i are shown as:
P t , i G R I D + P t , i W T + P t , i C H P , e + P t , i H F C , e + P t , i E S , d + j M i P t , i j = P t , i E L + P t , i E S , c + P t , i E L E , e ,
P t , i C H P , h + P t , i G B , h + P t , i H S , d = P t , i H L + P t , i H S , c ,
P t , i E L E , h 2 + P t , i H 2 S , d = P t , i H 2 L + P t , i H F C , h 2 + P t , i H 2 S , c ,
P t , i G A S = P t , i C H P , g + P t , i G B , g ,
where P t , i j , i , j M , i j denotes the electricity that microgrid i trades with microgrid j. If microgrid i purchases electricity from microgrid j, P t , i j is positive; otherwise, microgrid i sells electricity to microgrid j, and P t , i j is negative.
(8) Carbon emissions and trading: Let W i , t C O 2 denote the carbon emissions of microgrid i, which can be expressed as [23]:
W i , t C O 2 = e m i G R I D P t , i G R I D + e m i C H P P t , i C H P , g + e m i G B P t , i G B , g + e m i E L E P t , i E L E , e + e m i H F C P t , i H F C , e + e m i E S P t , i E S , c + P t , i E S , d ,
where e m i C H P , e m i G B , e m i E L E , e m i H F C and e m i E S denote the carbon emission factors of CHP, GB, ELE, HFC, and ES, respectively; e m i G R I D denotes the carbon emission factor associated with the electricity procurement from the electric utility. In the carbon cap-and-trade market, microgrids will be allocated certain amounts of carbon allowance for free. When microgrids purchase or sell carbon allowance in the central carbon market, they should satisfy:
0 W i C O 2 , b u y W i , max C O 2 , b u y ,
0 W i C O 2 , s e l l W i , max C O 2 , s e l l ,
where W i , max C O 2 , b u y and W i , max C O 2 , s e l l denote the maximum amounts of carbon allowance that microgrid i can purchase or sell in the central carbon market during one day.
(9) Carbon balance equation: The carbon balance equation means that the total amount of carbon allowance owned by microgrid i is equal to its total carbon emissions, which can be formulated as:
W i C O 2 , a + W i C O 2 , b u y + j M i W i C O 2 , j = t T W i , t C O 2 + W i C O 2 , s e l l ,
where W i C O 2 , a represents the allocated carbon allowance of microgrid i; and W i C O 2 , j , i , j M , i j denotes the amount of carbon allowance that microgrid i trades with microgrid j. If microgrid i purchases carbon allowance from microgrid j, W i C O 2 , j is positive; otherwise, microgrid i sells carbon allowance to microgrid j, and W i C O 2 , j is negative.
(10) Local market clearing constraints: The local electricity and carbon trading must satisfy the following market clearing constraints:
P t , i j + P t , j i = 0 ,
W i C O 2 , j + W j C O 2 , i = 0 ,
Note that due to the close distances between microgrids, we neglect the energy losses during the electricity transmission.

3. Local Electricity and Carbon Trading

In this section, we present the mathematical formulations of the local electricity trading problem and local carbon trading problem. Since the scheduling horizons and market mechanisms of the energy market and carbon market are different, we consider that the local electricity trading and local carbon trading are conducted sequentially. Specifically, the local electricity trading is conducted in each time slot t T and the local carbon trading is conducted after the energy scheduling, i.e., after t = 24 .

3.1. Non-Cooperative Benchmarks

In the non-cooperative benchmarks, microgrids will not exchange electricity and carbon allowance with each other, i.e., the local electricity and carbon trading will not be conducted. Thus, the electricity and carbon balance equations of microgrid i should be revised as:
P t , i G R I D + P t , i W T + P t , i C H P , e + P t , i H F C , e + P t , i E S , d = P t , i E L + P t , i E S , c + P t , i E L E , e ,
W i C O 2 , a + W i C O 2 , b u y = t T W i , t C O 2 + W i C O 2 , s e l l ,
For the local electricity trading problem, the objective of each microgrid is to minimize its operation cost F i O P E , which consists of electricity purchase cost F i G R I D , gas purchase cost F i G A S , and storage degradation cost F i S , deg . The operation cost of microgrid i is given as:
F i O P E = F i G R I D + F i G A S + F i S , deg ,
F i G R I D = t T ( λ t e P t , i G R I D Δ t ) ,
F i G A S = t T ( λ t g P t , i G A S Δ t ) ,
F i S , deg = S T O S t T λ i S T O , deg ( P t , i S T O , c + P t , i S T O , d ) ,
where λ t e and λ t g denote the electricity and gas prices of utilities; λ i S T O , deg denotes the amortized cost of the charging and discharging of the STO . Let P1-NC i denote the operation cost minimization problem of microgrid i in the non-cooperative benchmarks. We have:
P1-NC i :
min Φ N C 1 F i O P E ,
subject to: (1)–(18), (20)–(22), and (29),
where decision variables Φ N C 1 = { P t , i G R I D , P t , i G A S , P t , i W T , P t , i C H P , g , P t , i G B , g , P t , i E L E , e , P t , i H F C , h 2 , E t , i S T O , P t , i S T O , c , P t , i S T O , d | t T , i M , S T O S } . Here, we define { F i N C , e | i M } as the optimal objective function value of the P1-NC i .
Let F i C E denote the total carbon cost of microgrid i. We have:
F i C E = β b W i C O 2 , b u y β s W i C O 2 , s e l l ,
where β b and β s denote the buying and selling prices of carbon allowance in the central carbon market, respectively. Let P2-NC i denote the carbon cost minimization problem of microgrid i in the non-cooperative benchmarks. We have:
P2-NC i :
min Φ N C 2 F i C E ,
subject to: (24), (25), and (30),
where decision variables Φ N C 2 = { W i C O 2 , b u y , W i C O 2 , s e l l | i M } . We define { F i N C , c | i M } as the optimal objective function value of the P2-NC i .

3.2. Local Trading Payments

Microgrids should pay for the electricity and carbon allowance that are traded in the local markets. Let π i j and γ i j denote the payments associated with the electricity and carbon trading between microgrids i and j, respectively. If microgrid i makes payments to microgrid j, π i j and γ i j will be positive; otherwise, microgrid i receives payments from microgrid j, π i j and γ i j will be negative. The following payment balance equations should be satisfied:
π i j + π j i = 0 ,
γ i j + γ j i = 0 ,
Let F i P A Y , e and F i P A Y , c denote the total payments of microgrid i for local electricity trading and local carbon trading, respectively. We have:
F i P A Y , e = j M i π i j ,
F i P A Y , c = j M i γ i j ,
A microgrid will only participate in the local electricity and carbon trading if it can reduce the total payment for the microgrid. Thus, we have:
F i O P E + F i P A Y , e F i N C , e ,
F i C E + F i P A Y , c F i N C , c ,

3.3. Nash Bargaining Problems

We denote the Nash bargaining problems of the local electricity trading and local carbon trading as P1-NB and P2-NB, respectively. The P1-NB is shown as follows:
P1-NB:
max Φ N B 1 Π i M [ F i N C , e ( F i O P E + F i P A Y , e ) ] ,
subject to: (1)–(22), (27), (36), and (40),
where decision variables Φ N B 1 = { P t , i G R I D , P t , i G A S , P t , i W T , P t , i C H P , g , P t , i G B , g , P t , i E L E , e , P t , i H F C , h 2 , E t , i S T O , P t , i S T O , c , P t , i S T O , d , P t , i j , π i j | t T , i M , j M i , S T O S } . By solving the P1-NB, the energy scheduling results and the local electricity trading payments will be obtained for microgrids. Note that based on the energy-scheduling results, the carbon emissions of microgrids can be calculated by (23).
The P2-NB is presented as follows:
P2-NB:
max Φ N B 2 Π i M [ F i N C , c ( F i C E + F i P A Y , c ) ] ,
subject to: (24)–(26), (28), (37), and (41),
where decision variables Φ N B 2 = { W i C O 2 , b u y , W i C O 2 , s e l l , W i C O 2 , j , γ i j | i M , j M i } . By solving the P2-NB, the carbon allowance scheduling results and the local carbon trading payments will be obtained for microgrids.

3.4. Solution Method

The Nash bargaining problems P1-NB and P2-NB are non-convex, as they have non-convex objective functions. Specifically, the P1-NB will maximize the differences between disagreement point F i N C , e and total operation cost ( F i O P E + F i P A Y , e ) of microgrid i through bargaining, while the P2-NB will maximize the differences between disagreement point F i N C , c and total carbon cost ( F i C E + F i P A Y , c ) through bargaining. The product formulations in the objective functions will guarantee that the benefits of cooperation can be fairly distributed by microgrids that participate in the local electricity and carbon markets [7]. Based on the findings of the previous research [5], the Nash bargaining problems P1-NB and P2-NB can be solved via decomposition into two subproblems, respectively.
In this paper, the P1-NB is decomposed into an energy-scheduling problem S1-ET and an electricity payment bargaining problem S2-EP. The P2-NB is decomposed into a carbon scheduling problem S1-CT and a carbon payment bargaining problem S2-CP. The S1-ET and S2-EP are presented as follows:
S1-ET:
min Φ E T i M F i O P E ,
subject to: (1)–(22), and (27),
where decision variables Φ E T = { P t , i G R I D , P t , i G A S , P t , i W T , P t , i C H P , g , P t , i G B , g , P t , i E L E , e , P t , i H F C , h 2 , E t , i S T O , P t , i S T O , c , P t , i S T O , d , P t , i j | t T , i M , j M i , S T O S } . Solving the S1-ET determines the energy scheduling and trading results for each microgrid i M .
S2-EP:
max Φ E P Π i M [ F i N C , e ( F ¯ i O P E + F i P A Y , e ) ] ,
subject to: (36) and (40),
where decision variables Φ E P = { π i j | i M , j M i } ; and F ¯ i O P E denotes the optimal operation cost of microgrid i, which is obtained by solving the S1-ET. Solving the S2-EP determines the electricity trading payments for microgrids.
Now, we present the S1-CT and S2-CP as follows:
                     S1-CT:
min Φ C T i M F i C E ,
subject to: (24)–(26), and (28),
where decision variables Φ C T = { W i C O 2 , b u y , W i C O 2 , s e l l , W i C O 2 , j | i M , j M i } . The carbon scheduling and trading results of microgrids will be obtained by solving the S1-CT.
S2-CP:
max Φ C P Π i M [ F i N C , c ( F ¯ i C E + F i P A Y , c ) ] ,
subject to: (37) and (41),
where decision variables Φ C P = { γ i j | i M , j M i } ; F ¯ i C E denotes the optimal carbon cost of microgrid i, which is obtained by solving the S1-CT. The carbon trading payments of microgrids will be obtained by solving the S2-CP.
The constraints and objective functions of the scheduling problems S1-ET and S1-CT are linear, which means that the S1-ET and S1-CT are both convex problems. We can obtain the optimal energy and carbon allowance scheduling results for microgrids. Thus, the non-convexity of the Nash bargaining problems will not prevent us from obtaining the optimal scheduling results for microgrids.
The non-convexity of the Nash bargaining problems P1-NB and P2-NB helps to arrange the usage of energy and carbon allowance and conduct payment bargaining. Solving the Nash bargaining problems can not only obtain the optimal energy and carbon allowance scheduling results, but also the corresponding local payments for microgrids. The corresponding local payments of microgrids will help to fairly distribute the profits obtained from cooperation among microgrids. Moreover, although the Nash bargaining problems P1-NB and P2-NB are non-convex, we can obtain the globally optimal solutions for these two problems. This is because each Nash bargaining problem can be solved by decomposing it into two convex subproblems. The optimal solutions of the subproblems can be found, and the solutions are the Nash bargaining solutions as well [5].

3.5. Solution Procedures

The S1-ET and S1-CT are convex problems, which can be easily solved by off-the-shelf solvers, e.g., Gurobi [24]. However, the S2-EP and S2-CP are non-convex problems. By taking the log and negating the objective functions of the S2-EP and S2-CP, we can rewrite the objective functions of these two problems as follows:
min Φ E P i M log ( F i N C , e ( F ¯ i O P E + F i P A Y , e ) ) ,
min Φ C P i M log ( F i N C , c ( F ¯ i C E + F i P A Y , c ) ) ,
Under the new objective functions, the S2-EP and S2-CP will become convex problems as well. We can solve these two problems using commercial solvers, e.g., Ipopt [25].
The implementations of the local electricity and carbon trading between microgrids are presented in Figure 3.

4. Cross-Chain Interaction Method

In this section, we first introduce the electricity and carbon blockchains. Then, a notary mechanism-based cross-chain interaction method is proposed to realize the value transfer between the electricity blockchain and the carbon blockchain.

4.1. Electricity and Carbon Blockchains

Two private blockchains, an electricity blockchain and a carbon blockchain, are considered in this paper. These two blockchains act as digital databases and store the metadata of local electricity and carbon trading information of microgrids. The microgrid manager is responsible for recording the trading information of microgrids in the electricity and carbon blockchains. The trading information includes pseudonyms of microgrids, transaction data, and a timestamp of transaction generation. The trading information will be structured into blocks, and the blocks are chronologically added into the blockchains. The information of the blocks can only be accessed by microgrids and the microgrid manager. Two different digital cryptocurrencies, named electricity coins and carbon coins, are introduced into the electricity blockchain and the carbon blockchain, respectively. The electricity coins and carbon coins are used as currencies in the local electricity market and local carbon market, respectively.
Here, we take the local electricity trading between microgrids as an example to illustrate the operation mechanism of the electricity blockchain. Firstly, the microgrid manager will solve the Nash bargaining problem of local electricity trading to obtain the local electricity payments for microgrids. Each microgrid has an electricity wallet to store its own electricity coins, which will be used to pay for the electricity obtained through local electricity trading. Then, the microgrid manager will implement the payments for microgrids, transferring the electricity coins between the electricity wallets of microgrids. Thus, the local electricity trading payments can be completed. The implementation of the local electricity trading and the corresponding electricity coin transfer are shown in Figure 4. Note that when a microgrid does not have enough electricity coins, it can exchange the fiat currency for the electricity coins via the microgrid manager. The microgrid manager will complete the exchanges in the cryptocurrency exchange center.

4.2. Cross-Chain Interactions

Since the electricity and carbon coins are used in the local electricity market and local carbon market, respectively, it is necessary to realize the exchange between these two types of cryptocurrencies. In this paper, a cross-chain interaction method is proposed to achieve the value transfer between the electricity blockchain and carbon blockchain. Through the cross-chain interactions, the electricity coins and carbon coins can be exchanged. In this way, the profits obtained through the local electricity/carbon trading can be used to cover the payments of the local carbon/electricity trading.
We use the notary mechanism to realize the cross-chain interaction. In the notary mechanism, a notary is introduced and is responsible for the cross-chain interactions. During the cross-chain interactions, the notary acts as a trusted third party to realize the exchange of electricity coins and carbon coins and truly record the exchange results in the blockchains. Based on the cryptocurrency exchange requests, the notary will achieve cryptocurrency exchange in the cryptocurrency exchange center. In this paper, we consider that the microgrid manager will act as the notary.
Here, we take the exchange of electricity coins into carbon coins as an example to illustrate the processes of a cross-chain interaction. Figure 5 shows the processes of exchanging the electricity coins into carbon coins. The detailed steps of the cross-chain interaction are shown as follows:
1.
Microgrid i transfers electricity coins from its electricity wallet to the wallet of the notary;
2.
The notary receives the cryptocurrency exchange request and transfers the received electricity coins to the cryptocurrency exchange center;
3.
The notary exchanges the electricity coins into the carbon coins based on the exchange rate between the electricity coins and carbon coins;
4.
The exchanged carbon coins are transferred into the wallet of the notary;
5.
The notary transfers the carbon coins from its wallet to the carbon wallet of microgrid i.

5. Case Studies

To verify the performance of local electricity and carbon trading between multi-energy microgrids, experiments are conducted in this section on a microgrid network consisting of three interconnected microgrids. All simulations are conducted in Matlab.

5.1. Scenario Description

The test system is shown in Figure 2. Each microgrid has the same structures and energy devices. The optimization horizon is one day, and each time slot Δ t is equal to one hour. Figure 6 depicts the electricity, heat, and hydrogen demands and wind power generation of microgrids. Figure 7 presents the electricity prices of the electric utility, which are obtained from the PJM database [26]. The gas prices are constant in all time slots, and are equal to 0.0571 $/kW [8]. The buying and selling prices of carbon allowance in the central carbon market are 0.06 $/kg and 0.02 $/kg, respectively [15]. The maximum amounts of electricity and gas that microgrids can purchase from the utilities in each time slot are both set as 1000 kW. Other parameters related to microgrids are tabulated in Table 1. Moreover, we consider that one electricity coin can be exchanged for USD 1 and one carbon coin can be exchanged for USD 2. That is, one carbon coin can be exchanged for two electricity coins.

5.2. Local Electricity Trading

Figure 8 depicts the electricity trading profiles between microgrids. In Figure 8, if the shared electricity between microgrid i and j is a positive value, it means that microgrid i will purchase electricity from microgrid j; otherwise, if the shared electricity between microgrid i and j is a negative value, it means that microgrid i will sell electricity to microgrid j. It can be seen that microgrid 1 can obtain electricity in the daytime because of its high load demands but low wind power output during that period. Moreover, microgrid 2 will transmit electricity to the other microgrids during the day and microgrid 3 will supply electricity to other microgrids from time slots 10 to 24. This demonstrates that each microgrid actively participates in local electricity trading and acts as an electricity buyer or seller in different time slots.

5.3. Local Carbon Trading

Figure 9 shows the initial carbon allowance and carbon emissions of microgrids. It can be seen that the carbon emissions of microgrids 1 and 3 exceed their allocated carbon allowance, but the carbon emissions of microgrid 2 are lower than its allocated carbon allowance. Specifically, microgrids 1 and 3 should purchase another 57.0121 kg and 21.7490 kg of carbon allowance, respectively. Microgrid 2 can sell 87.2163 kg of carbon allowance in the central or local carbon markets. Through local carbon trading, microgrids 1 and 3 can receive a total of 78.7611 kg of carbon allowance from microgrid 2. Therefore, microgrids 1 and 3 will not purchase carbon allowance from the central carbon market, while microgrid 2 will sell the remaining 8.4552 kg of carbon allowance in the central carbon market. Since the buying price of carbon allowance in the central carbon market is higher than the selling price, we know that local carbon trading can lower the total carbon cost of microgrids.

5.4. Electricity and Carbon Trading Payments

Figure 10 presents the clearing results of the local electricity market. The net electricity trading payments of microgrids are shown in the figure. According to the Nash bargaining solutions of the local electricity trading problem, the net electricity trading payments of microgrids 1 and 2 are 3.5511$ and 5.5938$, respectively. The net electricity trading payment of microgrid 3 is −9.1449$, which means that microgrid 3 will receive the revenue by sharing its electricity with other microgrids. This is because microgrid 3 mainly shares its electricity with other microgrids when the electricity prices are relatively high. Thus, microgrid 3 makes the greatest contribution in lowering the payment for microgrids.
Figure 11 presents the clearing results of the local carbon market. The net carbon trading payments of microgrids are presented in the figure. It can be seen that microgrids 1 and 3 should pay for their received carbon allowance, and their corresponding payments are 0.6090$ and 1.5964$, respectively. Microgrid 2 shares its excess carbon allowance with other microgrids. Thus, it will receive 2.2054$.

5.5. Cross-Chain Interaction Results

As shown in Figure 10 and Figure 11, microgrid 2 will make a payment in the local electricity market but will receive a payoff in the local carbon market. Microgrid 3 will receive a payment in the local electricity market but will make a payment in the local carbon market. Thus, microgrids 2 and 3 can conduct the cross-chain interactions between the electricity blockchain and carbon blockchain.
After the implementation of local electricity and carbon trading, the microgrid manager will record the information of local electricity and carbon trading into the blockchains. Then, the cross-chain interactions will be conducted. Through local electricity and carbon trading, microgrid 2 will obtain 1.1027 carbon coins and will pay out 5.5938 electricity coins, while microgrid 3 will receive 9.1449 electricity coins and will pay out 0.7982 carbon coins. Thus, microgrid 2 can exchange all of its carbon coins into 2.2054 electricity coins, which will be used to pay for the obtained electricity. In the meantime, microgrid 3 can exchange 1.5964 electricity coins into carbon coins, which will be used to pay for the obtained carbon allowance. It is the cross-chain interactions that enables the value transfer between the electricity blockchain and carbon blockchain.

5.6. Comparison Results under Different Market Settings

To demonstrate the performance of the proposed market settings in lowering payments and carbon emissions for microgrids, four different market settings are compared, as shown in Table 2.
Figure 12 shows the comparison results of total costs and carbon emissions of microgrids under different market settings. It can be observed that under the proposed market setting, microgrids will have the lowest total cost and carbon emissions. Specifically, compared to Case 1, i.e., non-cooperative benchmarks, the total cost of microgrids decreases by 17.35% and the total carbon emissions of microgrids decrease by 35.09%. It can be explained that (i) local electricity trading allows microgrids to use more renewable energy while reducing the procurement of electricity; (ii) local carbon trading enables microgrids to lower the procurement of carbon allowance.

6. Conclusions

In this paper, we propose a local electricity and carbon trading method for multi-energy microgrids. The local electricity and carbon trading problems are formulated using the Nash bargaining theory. We solve the Nash bargaining problems by decomposing each problem into an energy/carbon scheduling problem and a payment bargaining problem. In addition, blockchain technology is used to record the transaction data and realize secure information interactions. A notary-mechanism-based cross-chain interaction method is proposed, achieving the value transfer between the electricity blockchain and carbon blockchain. The simulation results show that the proposed method is economically and environmentally beneficial for microgrids. Compared to the non-cooperative benchmarks, 17.35% of total cost and 35.09% of carbon emissions are reduced for microgrids. In future research, we will explore cross-chain interactions between electricity and carbon blockchains using other mechanisms, e.g., side chain and Hash locking.

Author Contributions

Formal analysis, X.Z., Y.L., K.X. and S.X.; investigation, X.Z.; methodology, X.Z.; software, X.Z.; visualization, X.Z.; writing—original draft, X.Z.; writing—review and editing, X.Z., Y.L., K.X. and S.X.; funding acquisition, Y.L. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dogan, E.; Seker, F. The influence of real output, renewable and non-renewable energy, trade and financial development on carbon emissions in the top renewable energy countries. Renew. Sustain. Energy Rev. 2016, 60, 1074–1085. [Google Scholar] [CrossRef]
  2. Zhong, W.; Xie, S.; Xie, K.; Yang, Q.; Xie, L. Cooperative P2P Energy Trading in Active Distribution Networks: An MILP-Based Nash Bargaining Solution. IEEE Trans. Smart Grid 2020, 12, 1264–1276. [Google Scholar] [CrossRef]
  3. Soto, E.A.; Bosman, L.B.; Wollega, E.; Leon-Salas, W.D. Peer-to-peer energy trading: A review of the literature. Appl. Energy 2020, 283, 116268. [Google Scholar] [CrossRef]
  4. Zhang, C.; Wu, J.; Zhou, Y.; Cheng, M.; Long, C. Peer-to-Peer energy trading in a Microgrid. Appl. Energy 2018, 220, 1–12. [Google Scholar] [CrossRef]
  5. Zhong, X.; Zhong, W.; Liu, Y.; Yang, C.; Xie, S. Cooperative operation of battery swapping stations and charging stations with electricity and carbon trading. Energy 2022, 254, 124208. [Google Scholar] [CrossRef]
  6. Entezaminia, A.; Gharbi, A.; Ouhimmou, M. A joint production and carbon trading policy for unreliable manufacturing systems under cap-and-trade regulation. J. Clean. Prod. 2021, 293, 125973. [Google Scholar] [CrossRef]
  7. Wang, H.; Huang, J. Incentivizing Energy Trading for Interconnected Microgrids. IEEE Trans. Smart Grid 2018, 9, 2647–2657. [Google Scholar] [CrossRef]
  8. Zhong, X.; Zhong, W.; Liu, Y.; Yang, C.; Xie, S. Optimal energy management for multi-energy multi-microgrid networks considering carbon emission limitations. Energy 2022, 246, 123428. [Google Scholar] [CrossRef]
  9. Yu, G.; Wang, K.; Hu, Y.; Chen, W. Research on the investment decisions of PV microgrid enterprises under carbon trading mechanisms. Energy Sci. Eng. 2022, 10, 3075–3090. [Google Scholar] [CrossRef]
  10. Nie, Q.; Zhang, L.; Tong, Z.; Dai, G.; Chai, J. Cost compensation method for PEVs participating in dynamic economic dispatch based on carbon trading mechanism. Energy 2022, 239, 121704. [Google Scholar] [CrossRef]
  11. Zhang, Y.; Ai, Q.; Wang, H.; Li, Z.; Huang, K. Bi-level distributed day-ahead schedule for islanded multi-microgrids in a carbon trading market. Electr. Power Syst. Res. 2020, 186, 106412. [Google Scholar] [CrossRef]
  12. Alladi, T.; Chamola, V.; Rodrigues, J.J.; Kozlov, S.A. Blockchain in smart grids: A review on different use cases. Sensors 2020, 19, 4862. [Google Scholar] [CrossRef]
  13. Kumari, A.; Sukharamwala, C.U.; Tanwar, S.; Raboaca, M.S.; Alqahtani, F.; Tolba, A.; Sharma, R.; Aschilean, I.; Mihaltan, T.C. Blockchain-Based Peer-to-Peer Transactive Energy Management Scheme for Smart Grid System. Sensors 2022, 22, 4826. [Google Scholar] [CrossRef] [PubMed]
  14. Song, J.G.; Kang, E.S.; Shin, H.W.; Jang, J.W. A Smart Contract-Based P2P Energy Trading System with Dynamic Pricing on Ethereum Blockchain. Sensors 2021, 21, 1985. [Google Scholar] [CrossRef] [PubMed]
  15. Yan, M.; Shahidehpour, M.; Alabdulwahab, A.; Abusorrah, A.; Gurung, N.; Zheng, H.; Ogunnubi, O.; Vukojevic, A.; Paaso, E.A. Blockchain for Transacting Energy and Carbon Allowance in Networked Microgrids. IEEE Trans. Smart Grid 2021, 12, 4702–4714. [Google Scholar] [CrossRef]
  16. Hua, W.; Sun, H. A blockchain-based peer-to-peer trading scheme coupling energy and carbon markets. In Proceedings of the 2019 International Conference on Smart Energy Systems and Technologies (SEST), Porto, Portugal, 9–11 September 2019; pp. 1–6. [Google Scholar]
  17. Xiong, A.; Liu, G.; Zhu, Q.; Jing, A.; Loke, S.W. A notary group-based cross-chain mechanism. Digital Communications and Networks. Digit. Commun. Netw. 2022, 22, 2352–8648. [Google Scholar]
  18. Wang, L.; Jiao, S.; Xie, Y.; Xia, S.; Zhang, D.; Zhang, Y.; Li, M. Two-way dynamic pricing mechanism of hydrogen filling stations in electric-hydrogen coupling system enhanced by blockchain. Energy 2022, 239, 122194. [Google Scholar] [CrossRef]
  19. Huang, X.; Yu, R.; Xie, S.; Zhang, Y. Task-container matching game for computation offloading in vehicular edge computing and networks. IEEE Trans. Intell. Transp. Syst. 2020, 22, 6242–6255. [Google Scholar] [CrossRef]
  20. Huang, X.; Li, P.; Yu, R.; Wu, Y.; Xie, K.; Xie, S. Fedparking: A federated learning based parking space estimation with parked vehicle assisted edge computing. IEEE Trans. Veh. Technol. 2021, 70, 9355–9368. [Google Scholar] [CrossRef]
  21. Luo, Y.; Zhang, X.; Yang, D.; Sun, Q. Emission trading based optimal scheduling strategy of energy hub with energy storage and integrated electric vehicles. J. Mod. Power Syst. Clean Energy 2020, 8, 267–275. [Google Scholar] [CrossRef]
  22. Cui, S.; Wang, Y.; Xiao, J. Peer-to-Peer Energy Sharing among Smart Energy Buildings by Distributed Transaction. IEEE Trans. Smart Grid 2019, 10, 6491–6501. [Google Scholar] [CrossRef]
  23. Yi, J.H.; Ko, W.; Park, J.K.; Park, H. Impact of carbon emission constraint on design of small scale multi-energy system. Energy 2018, 161, 792–808. [Google Scholar] [CrossRef]
  24. Gurobi Optimizer Reference Manual. 2021. Available online: http://www.gurobi.com (accessed on 15 May 2021).
  25. Wächter, A.; Biegler, L.T. On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Math. Program. 2019, 106, 25–57. [Google Scholar] [CrossRef]
  26. PJM Real-Time Hourly LMPs. 2022. Available online: https://dataminer2.pjm.com/feed/rt_hrl_lmps/definition (accessed on 4 April 2022).
Figure 1. The basic structure of a multi-energy microgrid.
Figure 1. The basic structure of a multi-energy microgrid.
Sensors 22 06935 g001
Figure 2. The schematic model of the microgrid network (MG: microgrid).
Figure 2. The schematic model of the microgrid network (MG: microgrid).
Sensors 22 06935 g002
Figure 3. Implementations of the local electricity and carbon trading.
Figure 3. Implementations of the local electricity and carbon trading.
Sensors 22 06935 g003
Figure 4. Local electricity trading and electricity coin transfer.
Figure 4. Local electricity trading and electricity coin transfer.
Sensors 22 06935 g004
Figure 5. The processes of exchanging electricity coins into carbon coins.
Figure 5. The processes of exchanging electricity coins into carbon coins.
Sensors 22 06935 g005
Figure 6. Load demands and wind power generation of microgrids.
Figure 6. Load demands and wind power generation of microgrids.
Sensors 22 06935 g006
Figure 7. The electricity prices of the electric utility.
Figure 7. The electricity prices of the electric utility.
Sensors 22 06935 g007
Figure 8. The electricity trading profiles between microgrids.
Figure 8. The electricity trading profiles between microgrids.
Sensors 22 06935 g008
Figure 9. The allocated carbon allowance and carbon emissions of microgrids.
Figure 9. The allocated carbon allowance and carbon emissions of microgrids.
Sensors 22 06935 g009
Figure 10. Local electricity market clearing results.
Figure 10. Local electricity market clearing results.
Sensors 22 06935 g010
Figure 11. Local carbon market clearing results.
Figure 11. Local carbon market clearing results.
Sensors 22 06935 g011
Figure 12. Comparison results under different market settings.
Figure 12. Comparison results under different market settings.
Sensors 22 06935 g012
Table 1. Parameters for the microgrids ( i M , S T O S ).
Table 1. Parameters for the microgrids ( i M , S T O S ).
ParameterValueUnitParameterValueUnit
R i C H P , d / R i C H P , u −20/20kW/h P i , max E S , c / P i , max H S , c / P i , max H 2 S , c 20/18/20kW
P i , max C H P , g / P i , max G B , g 100/60kW P i , max E S , d / P i , max H S , d / P i , max H 2 S , d 20/18/20kW
P i , max E L E , h 2 / P i , max H F C , e 100/80kW E i , max E S / E i , max H S / E i , max H 2 S 30/25/30kWh
η i C H P , e / η i C H P , h 0.32/0.408- E i , min E S / E i , min H S / E i , min H 2 S 6/5/6kWh
η i S T O , c / η i S T O , d 0.95/0.95- W i C O 2 , a 600kg
η i G B , h / η i E L E , h 2 / η i H F C , e 0.7/0.87/0.85- W i , m a x C O 2 , b u y / W i , m a x C O 2 , s e l l 500/500kg
e m i G R I D 0.92kg/kWh e m i C H P 0.202kg/kWh
e m i G B 0.202kg/kWh e m i E L E 0.12kg/kWh
e m i H F C 0.15kg/kWh e m i E S 0.083kg/kWh
Table 2. Local market settings (Y: Yes; N: No).
Table 2. Local market settings (Y: Yes; N: No).
Market SettingsLocal Electricity TradingLocal Carbon Trading
Case 1NN
Case 2NY
Case 3YN
Case 4YY
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhong, X.; Liu, Y.; Xie, K.; Xie, S. A Local Electricity and Carbon Trading Method for Multi-Energy Microgrids Considering Cross-Chain Interaction. Sensors 2022, 22, 6935. https://doi.org/10.3390/s22186935

AMA Style

Zhong X, Liu Y, Xie K, Xie S. A Local Electricity and Carbon Trading Method for Multi-Energy Microgrids Considering Cross-Chain Interaction. Sensors. 2022; 22(18):6935. https://doi.org/10.3390/s22186935

Chicago/Turabian Style

Zhong, Xiaoqing, Yi Liu, Kan Xie, and Shengli Xie. 2022. "A Local Electricity and Carbon Trading Method for Multi-Energy Microgrids Considering Cross-Chain Interaction" Sensors 22, no. 18: 6935. https://doi.org/10.3390/s22186935

APA Style

Zhong, X., Liu, Y., Xie, K., & Xie, S. (2022). A Local Electricity and Carbon Trading Method for Multi-Energy Microgrids Considering Cross-Chain Interaction. Sensors, 22(18), 6935. https://doi.org/10.3390/s22186935

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop