Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
. 2022 Sep 14;22(18):6935. doi: 10.3390/s22186935

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

Xiaoqing Zhong 1,2, Yi Liu 1,3,*, Kan Xie 1,4, Shengli Xie 1,5
Editor: Hsiao-Chun Wu
PMCID: PMC9506331  PMID: 36146284

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.

Keywords: multi-energy microgrid, electricity and carbon trading, Nash bargaining, blockchain, cross-chain interaction

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:

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

  2. 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;

  3. 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 iM 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.

Figure 1.

Figure 1

The basic structure of a multi-energy microgrid.

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

Figure 2.

Figure 2

The schematic model of the microgrid network (MG: microgrid).

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 Pt,iGRID and Pt,iGAS denote the amounts of electricity and gas purchased from the utilities, respectively; let Pt,iWT denote the scheduled wind power. We have:

0Pt,iGRIDPi,maxGRID, (1)
0Pt,iGASPi,maxGAS, (2)
0Pt,iWTPt,iWT,gen, (3)

where Pi,maxGRID and Pi,maxGAS denote the maximum amounts of electricity and gas that microgrid i can purchase from the electric and gas utilities, respectively, and Pt,iWT,gen denotes the wind power output of microgrid i in time slot t.

(2) CHP: Let Pt,iCHP,g denote the gas consumption of the CHP. Its electricity and heat outputs are defined as Pt,iCHP,e and Pt,iCHP,h, respectively. The operation constraints of the CHP can be described by:

Pt,iCHP,e=ηiCHP,ePt,iCHP,g, (4)
Pt,iCHP,h=ηiCHP,hPt,iCHP,g, (5)
0Pt,iCHP,gPi,maxCHP,g, (6)
RiCHP,d(Pt,iCHP,gPt1,iCHP,g)/ΔtRiCHP,u, (7)

where ηiCHP,e and ηiCHP,h represent electricity and heat conversion efficiencies of the CHP, respectively; Pi,maxCHP,g denotes the maximum gas consumption of the CHP; RiCHP,u and RiCHP,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 Pt,iGB,g denote the gas consumption of the GB. Its heat output is denoted as Pt,iGB,h. The GB should satisfy the following constraints:

Pt,iGB,h=ηiGB,hPt,iGB,g, (8)
0Pt,iGB,gPi,maxGB,g, (9)

where ηiGB,h denotes the heat conversion efficiency of the GB; Pi,maxGB,g denotes the maximum gas consumption of the GB.

(4) ELE: The ELE can generate hydrogen by consuming electricity. Let Pt,iELE,e denote the electricity consumption of the ELE. Its hydrogen output is denoted as Pt,iELE,h2. The operation constraints of the ELE are given as:

Pt,iELE,h2=ηiELE,h2Pt,iELE,e, (10)
0Pt,iELE,ePi,maxELE,e, (11)

where ηiELE,h2 denotes the hydrogen conversion efficiency of the ELE; Pi,maxELE,e denotes the maximum electricity consumption of the ELE.

(5) HFC: The HFC can generate electricity by consuming hydrogen. Let Pt,iHFC,h2 denote the hydrogen consumption of the HFC. Its electricity output is denoted as Pt,iHFC,e. The operation constraints of the HFC are given as:

Pt,iHFC,e=ηiHFC,ePt,iHFC,h2, (12)
0Pt,iHFC,h2Pi,maxHFC,h2, (13)

where ηiHFC,e denotes the electricity conversion efficiency of the HFC and Pi,maxHFC,h2 represents the maximum hydrogen consumption of the HFC.

(6) STO: We define STOS=Δ{ES,HS,H2S} as a type of storage. The ES, HS, and H2S have similar operation constraints. Let Et,iSTO denote the energy level of the STO; let Pt,iSTO,c and Pt,iSTO,d denote the charging and discharging power of the STO, respectively; let ηiSTO,c and ηiSTO,d denote the charging and discharging efficiencies of the STO, respectively. The operation constraints of the STO can be described by:

Et,iSTO=Et1,iSTO+ηiSTO,cPt,iSTO,cΔt(1/ηiSTO,d)Pt,iSTO,dΔt, (14)
Ei,minSTOEt,iSTOEi,maxSTO, (15)
0Pt,iSTO,cPi,maxSTO,c, (16)
0Pt,iSTO,dPi,maxSTO,d, (17)
E0,iSTO=ET,iSTO, (18)

where Ei,maxSTO and Ei,minSTO represent the maximum and minimum energy levels of the STO, respectively; Pi,maxSTO.c and Pi,maxSTO,d represent the maximum charging and discharging power of the STO, respectively; E0,iSTO and ET,iSTO 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:

Pt,iGRID+Pt,iWT+Pt,iCHP,e+Pt,iHFC,e+Pt,iES,d+jMiPt,ij=Pt,iEL+Pt,iES,c+Pt,iELE,e, (19)
Pt,iCHP,h+Pt,iGB,h+Pt,iHS,d=Pt,iHL+Pt,iHS,c, (20)
Pt,iELE,h2+Pt,iH2S,d=Pt,iH2L+Pt,iHFC,h2+Pt,iH2S,c, (21)
Pt,iGAS=Pt,iCHP,g+Pt,iGB,g, (22)

where Pt,ij,i,jM,ij denotes the electricity that microgrid i trades with microgrid j. If microgrid i purchases electricity from microgrid j, Pt,ij is positive; otherwise, microgrid i sells electricity to microgrid j, and Pt,ij is negative.

(8) Carbon emissions and trading: Let Wi,tCO2 denote the carbon emissions of microgrid i, which can be expressed as [23]:

Wi,tCO2=emiGRIDPt,iGRID+emiCHPPt,iCHP,g+emiGBPt,iGB,g+emiELEPt,iELE,e+emiHFCPt,iHFC,e+emiESPt,iES,c+Pt,iES,d, (23)

where emiCHP, emiGB, emiELE, emiHFC and emiES denote the carbon emission factors of CHP, GB, ELE, HFC, and ES, respectively; emiGRID 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:

0WiCO2,buyWi,maxCO2,buy, (24)
0WiCO2,sellWi,maxCO2,sell, (25)

where Wi,maxCO2,buy and Wi,maxCO2,sell 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:

WiCO2,a+WiCO2,buy+jMiWiCO2,j=tTWi,tCO2+WiCO2,sell, (26)

where WiCO2,a represents the allocated carbon allowance of microgrid i; and WiCO2,j,i,jM,ij denotes the amount of carbon allowance that microgrid i trades with microgrid j. If microgrid i purchases carbon allowance from microgrid j, WiCO2,j is positive; otherwise, microgrid i sells carbon allowance to microgrid j, and WiCO2,j is negative.

(10) Local market clearing constraints: The local electricity and carbon trading must satisfy the following market clearing constraints:

Pt,ij+Pt,ji=0, (27)
WiCO2,j+WjCO2,i=0, (28)

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 tT 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:

Pt,iGRID+Pt,iWT+Pt,iCHP,e+Pt,iHFC,e+Pt,iES,d=Pt,iEL+Pt,iES,c+Pt,iELE,e, (29)
WiCO2,a+WiCO2,buy=tTWi,tCO2+WiCO2,sell, (30)

For the local electricity trading problem, the objective of each microgrid is to minimize its operation cost FiOPE, which consists of electricity purchase cost FiGRID, gas purchase cost FiGAS, and storage degradation cost FiS,deg. The operation cost of microgrid i is given as:

FiOPE=FiGRID+FiGAS+FiS,deg, (31)
FiGRID=tT(λtePt,iGRIDΔt), (32)
FiGAS=tT(λtgPt,iGASΔt), (33)
FiS,deg=STOStTλiSTO,deg(Pt,iSTO,c+Pt,iSTO,d), (34)

where λte and λtg denote the electricity and gas prices of utilities; λiSTO,deg denotes the amortized cost of the charging and discharging of the STO. Let P1-NCi denote the operation cost minimization problem of microgrid i in the non-cooperative benchmarks. We have:

P1-NCi:

minΦNC1FiOPE,

subject to: (1)–(18), (20)–(22), and (29),

where decision variables ΦNC1={Pt,iGRID,Pt,iGAS,Pt,iWT,Pt,iCHP,g,Pt,iGB,g,Pt,iELE,e,Pt,iHFC,h2,Et,iSTO,Pt,iSTO,c,Pt,iSTO,d|tT,iM,STOS}. Here, we define {FiNC,e|iM} as the optimal objective function value of the P1-NCi.

Let FiCE denote the total carbon cost of microgrid i. We have:

FiCE=βbWiCO2,buyβsWiCO2,sell, (35)

where βb and βs denote the buying and selling prices of carbon allowance in the central carbon market, respectively. Let P2-NCi denote the carbon cost minimization problem of microgrid i in the non-cooperative benchmarks. We have:

P2-NCi:

minΦNC2FiCE,

subject to: (24), (25), and (30),

where decision variables ΦNC2={WiCO2,buy,WiCO2,sell|iM}. We define {FiNC,c|iM} as the optimal objective function value of the P2-NCi.

3.2. Local Trading Payments

Microgrids should pay for the electricity and carbon allowance that are traded in the local markets. Let πij and γij denote the payments associated with the electricity and carbon trading between microgrids i and j, respectively. If microgrid i makes payments to microgrid j, πij and γij will be positive; otherwise, microgrid i receives payments from microgrid j, πij and γij will be negative. The following payment balance equations should be satisfied:

πij+πji=0, (36)
γij+γji=0, (37)

Let FiPAY,e and FiPAY,c denote the total payments of microgrid i for local electricity trading and local carbon trading, respectively. We have:

FiPAY,e=jMiπij, (38)
FiPAY,c=jMiγij, (39)

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:

FiOPE+FiPAY,eFiNC,e, (40)
FiCE+FiPAY,cFiNC,c, (41)

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ΦNB1ΠiM[FiNC,e(FiOPE+FiPAY,e)],

subject to: (1)–(22), (27), (36), and (40),

where decision variables ΦNB1={Pt,iGRID,Pt,iGAS,Pt,iWT,Pt,iCHP,g,Pt,iGB,g,Pt,iELE,e,Pt,iHFC,h2,Et,iSTO,Pt,iSTO,c,Pt,iSTO,d,Pt,ij,πij|tT,iM,jMi,STOS}. 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ΦNB2ΠiM[FiNC,c(FiCE+FiPAY,c)],

subject to: (24)–(26), (28), (37), and (41),

where decision variables ΦNB2={WiCO2,buy,WiCO2,sell,WiCO2,j,γij|iM,jMi}. 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 FiNC,e and total operation cost (FiOPE+FiPAY,e) of microgrid i through bargaining, while the P2-NB will maximize the differences between disagreement point FiNC,c and total carbon cost (FiCE+FiPAY,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ΦETiMFiOPE,

subject to: (1)–(22), and (27),

where decision variables ΦET={Pt,iGRID,Pt,iGAS,Pt,iWT,Pt,iCHP,g,Pt,iGB,g,Pt,iELE,e,Pt,iHFC,h2,Et,iSTO,Pt,iSTO,c,Pt,iSTO,d,Pt,ij|tT,iM,jMi,STOS}. Solving the S1-ET determines the energy scheduling and trading results for each microgrid iM.

S2-EP:

maxΦEPΠiM[FiNC,e(F¯iOPE+FiPAY,e)],

subject to: (36) and (40),

where decision variables ΦEP={πij|iM,jMi}; and F¯iOPE 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ΦCTiMFiCE,

subject to: (24)–(26), and (28),

where decision variables ΦCT={WiCO2,buy,WiCO2,sell,WiCO2,j|iM,jMi}. The carbon scheduling and trading results of microgrids will be obtained by solving the S1-CT.

S2-CP:

maxΦCPΠiM[FiNC,c(F¯iCE+FiPAY,c)],

subject to: (37) and (41),

where decision variables ΦCP={γij|iM,jMi}; F¯iCE 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ΦEPiMlog(FiNC,e(F¯iOPE+FiPAY,e)), (42)
minΦCPiMlog(FiNC,c(F¯iCE+FiPAY,c)), (43)

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.

Figure 3.

Figure 3

Implementations of the local electricity and carbon trading.

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.

Figure 4.

Figure 4

Local electricity trading and electricity coin transfer.

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.

Figure 5.

Figure 5

The processes of exchanging electricity coins into carbon coins.

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.

Figure 6.

Figure 6

Load demands and wind power generation of microgrids.

Figure 7.

Figure 7

The electricity prices of the electric utility.

Table 1.

Parameters for the microgrids (iM,STOS).

Parameter Value Unit Parameter Value Unit
RiCHP,d/RiCHP,u −20/20 kW/h Pi,maxES,c/Pi,maxHS,c/Pi,maxH2S,c 20/18/20 kW
Pi,maxCHP,g/Pi,maxGB,g 100/60 kW Pi,maxES,d/Pi,maxHS,d/Pi,maxH2S,d 20/18/20 kW
Pi,maxELE,h2/Pi,maxHFC,e 100/80 kW Ei,maxES/Ei,maxHS/Ei,maxH2S 30/25/30 kWh
ηiCHP,e/ηiCHP,h 0.32/0.408 - Ei,minES/Ei,minHS/Ei,minH2S 6/5/6 kWh
ηiSTO,c/ηiSTO,d 0.95/0.95 - WiCO2,a 600 kg
ηiGB,h/ηiELE,h2/ηiHFC,e 0.7/0.87/0.85 - Wi,maxCO2,buy/Wi,maxCO2,sell 500/500 kg
emiGRID 0.92 kg/kWh emiCHP 0.202 kg/kWh
emiGB 0.202 kg/kWh emiELE 0.12 kg/kWh
emiHFC 0.15 kg/kWh emiES 0.083 kg/kWh

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.

Figure 8.

Figure 8

The electricity trading profiles between microgrids.

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.

Figure 9.

Figure 9

The allocated carbon allowance and carbon emissions 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 10.

Figure 10

Local electricity market clearing results.

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

Figure 11.

Figure 11

Local carbon market clearing results.

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.

Table 2.

Local market settings (Y: Yes; N: No).

Market Settings Local Electricity Trading Local Carbon Trading
Case 1 N N
Case 2 N Y
Case 3 Y N
Case 4 Y Y

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.

Figure 12.

Figure 12

Comparison results under different market settings.

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.

Funding Statement

This research was supported by the National Key R&D Program of China (2020YFB1807805, 2020YFB1807800) and the National Natural Science Foundation of China under Grant (U1911401).

Footnotes

Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

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. doi: 10.1016/j.rser.2016.02.006. [DOI] [Google Scholar]
  • 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. doi: 10.1109/TSG.2020.3031013. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.apenergy.2020.116268. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.apenergy.2018.03.010. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.energy.2022.124208. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.jclepro.2021.125973. [DOI] [Google Scholar]
  • 7.Wang H., Huang J. Incentivizing Energy Trading for Interconnected Microgrids. IEEE Trans. Smart Grid. 2018;9:2647–2657. doi: 10.1109/TSG.2016.2614988. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.energy.2022.123428. [DOI] [Google Scholar]
  • 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. doi: 10.1002/ese3.1189. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.energy.2021.121704. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.epsr.2020.106412. [DOI] [Google Scholar]
  • 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. doi: 10.3390/s19224862. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 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. doi: 10.3390/s22134826. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 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. doi: 10.3390/s21061985. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 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. doi: 10.1109/TSG.2021.3109103. [DOI] [Google Scholar]
  • 16.Hua W., Sun H. A blockchain-based peer-to-peer trading scheme coupling energy and carbon markets; 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. doi: 10.1016/j.energy.2021.122194. [DOI] [Google Scholar]
  • 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. doi: 10.1109/TITS.2020.2990462. [DOI] [Google Scholar]
  • 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. doi: 10.1109/TVT.2021.3098170. [DOI] [Google Scholar]
  • 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. doi: 10.35833/MPCE.2019.000144. [DOI] [Google Scholar]
  • 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. doi: 10.1109/TSG.2019.2906059. [DOI] [Google Scholar]
  • 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. doi: 10.1016/j.energy.2018.07.156. [DOI] [Google Scholar]
  • 24.Gurobi Optimizer Reference Manual. 2021. [(accessed on 15 May 2021)]. Available online: http://www.gurobi.com.
  • 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. doi: 10.1007/s10107-004-0559-y. [DOI] [Google Scholar]
  • 26.PJM Real-Time Hourly LMPs. 2022. [(accessed on 4 April 2022)]. Available online: https://dataminer2.pjm.com/feed/rt_hrl_lmps/definition.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Not applicable.


Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES