Next Article in Journal
Optimal Dispatch of Aggregated HVAC Units for Demand Response: An Industry 4.0 Approach
Previous Article in Journal
Demand Price Elasticity of Residential Electricity Consumers with Zonal Tariff Settlement Based on Their Load Profiles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Distributed Peer-to-Peer Electricity Trading Considering Network Loss in a Distribution System

1
School of Electrical Engineering and Automation, Anhui University, Hefei 230601, China
2
Collaborative Innovation Center of Industrial Energy-saving and Power Quality Control, Anhui University, Hefei 230601, China
3
School of Internet, Anhui University, Hefei 230601, China
4
Faculty of Science, Engineering and Technology, Swinburne University of Technology, Melbourne, VIC 3122, Australia
5
State Grid Anhui Dispatching and Control Center, No.9 Huangshan Road, Hefei 230069, China
*
Author to whom correspondence should be addressed.
Energies 2019, 12(22), 4318; https://doi.org/10.3390/en12224318
Submission received: 27 September 2019 / Revised: 27 October 2019 / Accepted: 7 November 2019 / Published: 13 November 2019

Abstract

:
In this paper, a distributed peer-to-peer (P2P) electricity trading model was proposed to study economic interactions between load aggregators (LAs) and microgrid operators (MGOs) considering network losses in a distribution system. In this model, the economic interactions among market participants were formulated as a Nash bargaining game, where LAs and MGOs can bargain with each other on the trading volume of electricity and payment. To achieve the Nash bargaining solution, the game was divided into two sub-problems: social welfare maximization and payment bargaining. Then, the alternating direction method of multipliers was used to solve the two sub-problems with limited information exchange. Finally, we tested the proposed model on a 12 × 12 km2 distribution system, and the results verify its effectiveness.

1. Introduction

The traditional electricity trading market is a highly centralized top-to-bottom transaction model, in which electricity is unidirectionally transmitted from a distribution network operator (DNO) to consumers over long distances [1]. With the increasing penetration of distributed energy resources and the deepening reform of the electricity market into distribution networks, traditional electricity supply for distribution networks has undergone significant changes to encourage multidirectional electricity transactions within a local geographical area [2]. Consequently, a large number of emerging electricity trading participants, such as load aggregators (LAs) and microgrid operators (MGOs), are allowed to trade with each other directly, which can alleviate electricity demand pressure and improve economic efficiency of a distribution system by means of energy management [3,4,5].
Recently, enormous interest has grown in exploring different strategies to improve the benefits of participants in the future electricity market [6,7,8,9,10,11,12,13]. For an LA of residential consumers, it can reduce electricity cost by shifting the load from peak hours to off-peak hours or purchasing from other electricity suppliers when the time-of-use (TOU) tariffs of the corresponding DNO are at the peak [6,7,8]. Furthermore, the LA can also benefit from providing ancillary services to power systems such as frequency regulation service [9]. For an MGO, the basic strategy is to schedule the controllable units within a microgrid, such as formulating charging and discharging strategies for energy storage, and demand response mechanisms for internal loads [10]. Moreover, the self-interested MGOs can benefit from directly exchanging electricity among microgrid clusters or with consumers under signed agreements [11,12,13]. The direct electricity trading among suppliers and consumers is also known as peer-to-peer (P2P) electricity trading.
This P2P electricity trading, where suppliers are allowed to compete with the DNO, relies on multi-bilateral direct transaction contracts among participants [14,15,16]. Different from traditional centralized electricity market, P2P platforms have no need to store renewable energy and predict the load demand of all participants which avoids the issue of privacy and security [17]. Furthermore, the P2P platform can specify transaction rules, supervise sharing activities of energy resources, and provide associated metering and billing mechanisms [18]. However, there are conflicts of interest among market participants, and it is challenging to establish fair trading mechanisms for a P2P electricity market.
To address this challenge, game theory has been applied to a P2P electricity market [19]. A multi-level game trading model was proposed in Reference [20]. In this model, the competition among suppliers was firstly modeled as a non-cooperative game, where consumers use evolutionary game theory to choose suppliers, and the transaction between consumers and suppliers are finally formulated as a Stackelberg game. In Reference [21], a hierarchical framework was modeled to address the optimal electricity trading, where the direct trading mechanism between suppliers and consumers was studied to fairly allocate the coalition group’s revenue based on the asymptotic Shapley value. In Reference [22], the competition among MGOs (i.e., electricity buyers) was modeled as a non-cooperative game to eliminate the selfish behavior of the MGOs.
In this paper, we investigated the impact of distribution network losses on P2P trading by building a distributed P2P trading model. Based on a distribution network, Nash bargaining solution (NBS) theory was applied to the model which can maximize the benefits of LAs and MGOs and offer a Pareto-efficient outcome to coalition participants [23,24,25,26]. In addition, the electricity scheduling and trading of all the LAs and MGOs were jointly optimized by taking advantage of their own diverse demand and supply patterns. The contributions of this paper are summarized as follows:
(1)
Compared with existing P2P trading models, our proposed model considers the impact of network losses on P2P trading. The LAs and MGOs need to provide the DNO with the wheeling costs based on the calculation results of network losses;
(2)
The economic interaction among LAs and MGOs in our proposed model are analyzed and formulated by NBS theory. The formulated non-convex bargaining problem is decomposed into two convex sub-problems: social welfare maximization and payment bargaining;
(3)
A distributed algorithm based on the alternating direction method of multipliers (ADMM) is applied to solve the two sub-problems which can protect the privacy of market participants and simultaneously realize the bargaining between LAs and MGOs with limited information exchange.
The rest of this paper is organized as follows. Section 2 introduces the structure of a distributed P2P electricity trading model, analyzes the impact of network losses on economic interactions in P2P electricity trading systems, and presents the trading models of LAs and MGOs. Section 3 formulates the NBS model to describe the economic interactions between LAs and MGOs. Section 4 elaborates an ADMM-based distributed solution to solve the bargaining model. Section 5 provides the simulation results. Finally, the conclusions are summarized in Section 6.

2. Distributed P2P Electricity Trading Model

2.1. System Structure

The P2P electricity trading model built on a distribution network is shown in Figure 1, where the market participants include LAs and MGOs. For LAs, there are fixed loads, interruptible loads and shiftable loads. For MGOs, they are composed of an energy storage system (ESS), renewable energy generator, internal load, and communication equipment. For simplicity, this paper used the set C = { 1 , 2 , , C } to represent LAs and the set N = { 1 , 2 , , N } to represent MGOs. The operation horizon of the proposed model was one day, which was denoted by the set T = { 1 , 2 , , T } , where T = 24 h. In the proposed model, market participants can trade electricity not only with a DNO but also directly with each other via bargaining. Nevertheless, the DNO can charge participants the wheeling costs for network losses. There are conflicts of interest among participants in the P2P transactions. Generally, a reasonable P2P pricing model of electricity can resolve these conflicts, otherwise it is counterproductive. In this model, we no longer focused on the P2P transactions clearing at a certain time point, but on the whole time period in the day ahead. The NBS theory was used to clear the P2P trading, which enabled market participants to obtain fair and Pareto-efficient revenue.
The distributed P2P platform in Figure 1, hosted by local government on the distribution side, is a non-profit organization and serves free of charge to assist P2P trading for reducing the congestion in the network [20]. The platform, communicating with all market participants by advanced information and communication technologies (such as LTE cellular technology), acts like an auctioneer to supervise transactions, provides clearing services for all participants, and updates related variables in the process of distributed P2P trading so as to ensure the orderly and stable operation of the electricity market rather than for the purposes of profit. Owing to the differences in electric power trading system, this distributed P2P trading model is not applicable for all regions. The proposed model was mainly designed for China after the electricity market reform on the selling side. When using this model in other regions, please firstly follow the local specific policies.

2.2. Analysis of Network Loss

In existing P2P studies, network loss is usually overlooked. To illustrate the impact of network losses on economic interactions in P2P electricity trading systems, we show P2P electricity trading between one LA and two MGOs in different geographical locations in Figure 2. Obviously, LA1 in location l7 is closer to MGO1. Under the premise that MGO 1 and 2 have the same bargaining skills, if both of them have surplus electricity, LA1 should give a higher priority to purchasing electricity from MGO1 than MGO2 and only purchases electricity from MGO2 when the electricity from MGO1 is sold out. This analysis is based on the consideration of network loss. If network loss is ignored, it will be no different for LA1 to purchase electricity from MGO1 or MGO2, because there is no cost to transfer electricity through either of the distribution lines. Moreover, it may occur that MGO1 sells electricity to LA1 through lines l69 and l67, which transfer electricity via MGO2. This is totally unreasonable. Therefore, network loss cannot be ignored in P2P trading.
When an LA trades with a DNO and MGOs, there are network losses in electricity transaction. Usually, three kinds of network losses are considered. The first is the loss of power transmission through the distribution network. The second is the loss of transformers, which mainly contains copper loss and iron loss; copper loss refers to the loss caused by the resistance of the primary and secondary windings of the transformer and can be obtained by short-circuit test; core loss refers to the loss caused by alternating flux in the core, which is generally considered equal to a no-load loss and can be obtained from a no-load test. The last is the loss caused by other factors such as increasingly serious harmonic loss as a result of access to renewable resources and new electric equipment, dielectric loss of the capacitor, reactor loss including conductor loss, hysteresis loss, and eddy current loss. Owing to the wide variety of losses caused by other factors, it is unlikely that they will be listed one by one. Generally, the greater the current on the line, the greater the loss caused by other factors. Based on the above considerations, taking the LA c trading with the MGO n, as an example, these three kinds of losses can be expressed as:
P t , l o s s n , c = I t 2 R n , c + 2 ( P t C o p + P t I r o n ) + α I t 2
where P t , l o s s n , c denotes the network loss between the LA c and the MGO n at the time slot t for electricity trading; I t n , c and R n , c denote the line current and the transmission line resistance, respectively; P t C o p and P t I r o n denote the copper loss and iron loss of transformers, respectively. The former coefficient of 2 indicates that the trading between LA c and MGO n passes through two transformers. α is the coefficient of the network loss caused by other factors. Let P t n , c represent the electricity that the LA c buys from the MGO n at the time slot t. Assuming the power factor angle and voltage of the grid connection point are δ t and U t , then I t = P t n , c / ( U t cos δ ) . Therefore, Equation (1) can be reformulated as:
P t , l o s s n , c = ( P t n , c U t cos δ t ) 2 R n , c + 2 ( P t C o p + P t I r o n ) + α ( P t n , c U t cos δ t ) 2
When the LA c and the MGO n are trading, the DNO has the right to charge them the wheeling cost for network loss at the time slot t as:
C t n , C = 1 2 n = 1 N γ P t , l o s s n , c
where γ denotes the network loss penalty coefficient. This wheeling cost is considered to be shared equally by both parties.

2.3. The Model of LA

Under the P2P electricity trading model, each LA can trade independently with a DNO and MGOs. The objective (or benefit) function of LA c is defined as:
max U c = t = 1 T [ ( a c P c , t 2 + b c P c , t ) b t P c , t G C t n , C ] n = 1 N Z n c
where the first term is the utility function of power consumption. Both ac and bc are the coefficients of the utility function; ac is usually negative, while bc is usually positive; P c , t denotes the load at the time slot t after optimal scheduling. The second term is the cost of buying electricity from the DNO, including electricity price b t and power drawn from the DNO P c , t G at the time slot t. The third term is the wheeling cost of the direct electricity trading between the LA c and the MGOs. The last term is the total payment that the LA c pays to the MGOs for electricity trading, where Z n c denotes the payment between the LA c and the MGO n. The specific amount is determined by the bargaining agreement which is given in follow section. The following constraints should be satisfied at the time slot t:
P c , t = P c , t f o r e + P c , t i n P c , t o u t P c , t I L , t T , c C
0 P c , t i n P c , t i n , max , t T , c C
0 P c , t o u t P c , t o u t , max , t T , c C
t = 1 T P c , t i n = t = 1 T P c , t o u t , t T , c C
0 P c , t I L P c , t I L , max , t T , c C
where P c , t f o r e denotes the forecasted total load consumption of LA c at time slot t. This is the original load predicted value of each period before the optimization strategy is added; this paper used historical data to evaluate it. P c , t i n and P c , t o u t denote the load transferred in and out, respectively. P c , t I L represents the interruptible load. P c , t i n , max and P c , t o u t , max denote the upper bound of load transferred in and out, respectively. Equation (8) guarantees that the total amount of the shiftable loads remain unchanged in the operation horizon. P c , t I L , max is the upper bound of the interruptible load. Furthermore, the constraints to maintain the balance of demand and supply of the LA system are considered as follows:
P c , t min P c , t P c , t max , t T , c C
0 P c , t G P c , t G , max , t T , c C
0 P t n , c p n max , t T , n N , c C
P c , t = P c , t G + n = 1 N P t n , c , t T , c C
where P c , t min and P c , t max denote the lower and upper bound of the power consumption of the LA at the time slot t. P c , t G , max and p n max denote the maximum trading electricity with the DNO and the MGO n, respectively. Equation (13) guarantees the power balance of the LA system.

2.4. The Model of MGO

For the MGO n, it can trade with the DNO, LAs, and other MGOs. The objective function of the MGO n is described as:
max U n = t = 1 T ( s t P n , t s , G + u n , t L ) t = 1 T ( b t P n , t b , G + C t n , C + C t n , N + C n , t E S S ) + Z n
C t n , C = 1 2 c = 1 C γ P t , l o s s n , c
C t n , N = 1 2 n N / { n } γ P t , l o s s n , n
C n , t E S S = σ n ( E n , t + + E n , t ) , t T , n N
u n , t L = a n P n , t 2 + b n P n , t , t T , n N
Z n = n N / { n } Z n n + c = 1 C Z n c
where s t denotes the selling electricity price that the MGO n sells the power P n , t s , G to the DNO at the time slot t. u n , t L is the internal load utility of the MGO n. an and bn denote the load utility coefficient of the MGO n, and P n , t denotes the load consumption at the time slot t after optimization. P n , t b , G denotes the power that the MGO n buys from the DNO. C n , t E S S denotes the converted cost of charging and discharging of an ESS in MGO n. σ n is the converted cost coefficient. E n , t + and E n , t denote the charging and discharging amount at the time slot t, respectively. Zn is the total payment that the MGO n trades with LAs and other MGOs. If the payment of Z n n in Equation (19) is greater than zero, it indicates that the MGO n is a seller in the microgrid when it is trading with the MGO n′, otherwise it is a buyer in the microgrid. The specific payment amount is also determined by a bargaining agreement.
Considering the charging and discharging status of an ESS, the following constraints should be satisfied:
0 E n , t , E n , t + E n max , t T , n N
S n , t = S n , t 1 + η c E n , t + E n , t η d , t T , n N
S n min S n , t S n max , t T , n N
S n , o = S n , T , n N
where E n max denotes the maximum charging and discharging energy. S n , t denotes the energy storage level at the time slot t. η c and η d denote the charging and discharging efficiencies, respectively. S n min and S n max are the lower and upper bound of the energy storage level, respectively. S n , o and S n , T denote the initial and final energy storage level of the ESS in the operation horizon. In the MGO n, loads have the same characteristic as the loads in a LA, thus they can be simply represented by:
P n , t = { P n , t F I X , P n , t S L , P n , t I L } , t T , n N
where P n , t F I X denotes the fixed load in MGO n at the time slot t. P n , t S L and P n , t I L denote the shiftable load and interruptible load in MGO n, respectively. The specific constraints of the loads in MGO n have the same form as the loads in the LA.
In order to maintain the safe and stable operation of a microgrid, the relevant constraints are considered as follows:
0 P n , t s , G , P n , t b , G P n max ,   t T , n N
P n , t + P n , t s , G + E n , t + + c = 1 C P t n , c + n N / { n } P t n , n + c = 1 C P t , l o s s n , c + n N / { n } P t , l o s s n , n = P n , t R G + P n , t b , G + E n , t ,   t T , n N , c C
where P n max denotes the maximum power trading with the DNO. P t n , n denotes the electricity that the MGO n′ buys from the MGO n through the transmission of distribution networks. P n , t R G denotes the renewable power generation in the MGO n at the time slot t.
Since there is a quadratic term in network losses P t , l o s s n , c and P t , l o s s n , n , Equation (26) is non-linear; the linearization of this equation is needed. The details can be seen in Appendix A.

3. Nash Bargaining Model

3.1. Problem Analysis

The P2P platform provides a market mechanism for participants to improve their own interests. In the following, we will explain how P2P trading can produce extra benefits for the participants and fairly share the benefits among them compared with traditional trading.
Generally, TOU tariffs have the constraint s t b t [10]. When a DNO purchases/sells the power Pt from/to the MGO n/LA c at the time slot t, the revenue/cost of the MGO n/LA c is t = 1 T s t P t / t = 1 T b t P t within a day. Assuming that the LA c and the MGO n reach an agreement that the payment between them satisfies:
t = 1 T s t P t Z n c + C l o s s t = 1 T b t P t
where C l o s s denotes the wheeling cost charged to the LA c and the MGO n within a day. Obviously, trading electricity through the agreement in Equation (27) can reduce the purchasing cost of LA c and increase the selling benefit of MGO n. When Znc is closer to the right side of the inequality in Equation (27), the benefit for MGO n will be greater, otherwise the benefit for LA c will be greater. Since both LA c and MGO n are rational individuals, it is important to establish the P2P trading mechanism to share benefits fairly and reasonably. The key to facilitating fair P2P transactions is to determine the specific amount of Znc.

3.2. Nash Bargaining Solution

Nash bargaining theory, a branch of cooperative game theory, can stimulate electricity market participants to form a cooperative alliance, as it has the potential to achieve a Pareto-efficient and fair outcome. In the following, we will explain how Nash bargaining solution can solve problems in P2P trading to fairly distribute the benefits. As mentioned earlier, all participants in the proposed P2P electricity trading model are rational individuals in that they have equal skills in bargaining. For simplicity, we selected two individuals for analysis. Let Λ be a set of cooperative strategies of the two individuals. U = { u 1 , u 2 } is the set of the benefit functions of the two individuals. D = { d 1 , d 2 } is the set of the benefits for the two individuals when they are non-cooperative, which is called a disagreement point (DP) in Nash bargaining theory. We assumed equilibrium existed and let c ( Λ ) denote the solution in Λ for cooperation. Before introducing Nash bargaining theory for a distribution network, we first give four axioms.
  • Pareto efficiency: Assuming α is a point in Λ , and β is another point in Λ . If u 1 ( α ) > u 1 ( β ) and u 2 ( α ) > u 2 ( β ) , then β c ( Λ ) .
  • Symmetry: If the DP of the two individuals satisfies d 1 = d 2 , then u 1 = u 2 under the solution c ( Λ ) .
  • Invariance to affine transformations: If the profit function of the two individuals transform into u i # = a i + b i u i , i { 1 , 2 } , then c ( Λ ) is still the solution point in this system.
  • Independence of irrelevant alternatives: If T S , c ( Λ ) T , then c ( Λ ) is also the solution for strategy T.
If these four axioms are satisfied, John Nash in Reference [27] pointed out that the solution, which is also called Nash bargaining solution, is the optimal solution for the constrained optimization problem as follows:
max c = 1 C ( U c U c o , * ) n = 1 N ( U n U n o , * ) varibles : { P c , t , P c , t G , P t n , c , Z c , P c , t , P c , t i n , P c , t o u t , P c , t I L , P t n , n P n , t s , G , P n , t b , G , Z n , E n , t + , E n , t , P n , t , P n , t U N , P n , t T L , P n , t I L } s . t . ( 5 13 ) , ( 15 27 ) , U c U c o , * , U n U n o , *
where U c U c o and U n U n o satisfy rational individual requirements. U c o , * and U n o , * are the DPs of the LA c and the MGO n, respectively. The DP is the benefit value of the electric entity under non-bargaining trading which is selected as the optimal value of trading only with the DNO in this paper. The optimal value can be obtained from the following model.
  • DP model of LA c:
    max U c o = t = 1 T [ ( a c P c , t 2 + b c P c , t ) b t P c , t G ] s . t . ( 5 11 ) , P c , t = P c , t G , t T , c C
  • DP model of MGO n:
    max U n o = t = 1 T ( s t P n , t s , G + u n , t L ) t = 1 T ( b t P n , t b , G + C n , t E S S ) s . t . ( 17 24 ) , P n , t + P n , t s , G + E n , t + = P n , t R G + P n , t b , G + E n , t , t T , n N
Assuming U c o , * and U n o , * are the optimal solutions of Equations (29) and (30), then U c o , * and U n o , * are the DPs of the LA c and the MGO n in the cooperative alliance.

3.3. Model Equivalent Transformation

The NBS model described by Equation (28) is a non-convex problem which can be decomposed into two sequential convex sub-problems (SPs): social welfare maximization and payment bargaining. The detailed proof is shown in Appendix B.
SP1: social welfare maximization
max c = 1 C U c + n = 1 N U n varibles : { P c , t , P c , t G , P t n , c , P c , t , P c , t i n , P c , t o u t , P c , t I L , P t n , n P n , t s , G , P n , t b , G , E n , t + , E n , t , P n , t , P n , t U N , P n , t T L , P n , t I L } s . t . ( 5 13 ) , ( 15 26 )
Equation (31) represents the problem of social welfare maximization under P2P transactions. Let U c * and U n * be the solutions of U c ,   U n , respectively, which are then substituted into Equation (28) and converted to SP2.
SP2: payment bargaining
max c = 1 C ln ( δ c Z c ) + n = 1 N ln ( δ n + Z n ) varibles : { Z c , Z n } s . t . Z c 0 , ( B 2 )
where δ c = U c * U c o , * ,   δ n = U n * U n o , * .
The solutions of Z c and Z n in Equation (32) are the specific payments in the bargaining agreement that LAs and MGOs should agree to sign. All the participants in the cooperative alliance can increase their benefits and obtain Pareto optimal solution by solving the payment bargaining problem.
So far, Equation (28) was successfully decomposed into two sequential convex SPs, which can be solved efficiently by commercial software such as CPLEX. Firstly, LAs and MGOs cooperate together to trade electricity and to maximize social welfare. From this step, we can calculate the optimal trading power among the participants under the bargaining transaction in the day-ahead electricity market. Then, LAs and MGOs can settle the amount of electricity according to Equation (32), which finally leads to the NBS. In the following, we explain how to solve the two sub-problems in a distributed fashion.

4. Distributed Solution Method

Although Equations (31) and (32) can be computed in a centralized way, this method will reveal the privacy of alliance participants and is prone to single point failures owing to excessive data processing. Therefore, we use a distributed algorithm to address the bargaining problem in this section. As a distributed algorithm, ADMM has the characteristics of fast convergence speed and good convergence properties and is widely used at present. LAs and MGOs are power coupled through electricity transactions; therefore, they must be decoupled before the ADMM is used.

4.1. Distributed Solution of SP1

Since SP1 involves a larger number of emerging participants, we introduced the auxiliary variables P ^ t n , c and P ^ t n , n to divide SP1 into an equivalent multi-block structure.
P t n , c = P ^ t n , c
P t n , n = P ^ t n , n
where Equation (33) decouples the LA c and the MGO n, and Equation (34) decouples the MGO n′ and the MGO n. According to the principle of ADMM algorithm, the iterative augmented Lagrange function of the LA c and the MGO n of SP1 can be formulated as:
L c 1 = U c + n = 1 N t = 1 T λ t , ( k 1 ) n , c ( P t n , c P ^ t , ( k 1 ) n , c ) + n = 1 N t = 1 T ρ t , ( k 1 ) n , c 2 P t n , c P ^ t , ( k 1 ) n , c 2 2
L n 1 = U n + c = 1 C t = 1 T λ t , ( k 1 ) n , c ( P t , ( k ) n , c P ^ t n , n ) + c = 1 C t = 1 T ρ t , ( k 1 ) n , c 2 P t , ( k ) n , c P ^ t n , n 2 2 + n N / { n } t = 1 T λ t , ( k 1 ) n , n ( P t , ( k ) n , n P ^ t n , n ) + n N / { n } t = 1 T ρ t , ( k 1 ) n , c 2 P t , ( k ) n , n P ^ t n , n 2 2
where P ^ t , ( k 1 ) n , c denotes the updated value of P ^ t n , c after k − 1 iterations; and P t , ( k ) n , c and P t , ( k ) n , n denote the updated value of P t n , c and P t n , n after k iterations, respectively. ρ > 0 is the penalty parameter. λ is the Lagrange multiplier, which is updated in each iteration for the LA c and the MGO n as follows:
λ t , ( k ) n , c = λ t , ( k 1 ) n , c + ρ t , ( k ) n , c ( P t , ( k ) n , c P ^ t , ( k ) n , c )
λ t , ( k ) n , n = λ t , ( k 1 ) n , n + ρ t , ( k ) n , n ( P t , ( k ) n , n P ^ t , ( k ) n , n )
In order to accelerate the convergence speed of the ADMM algorithm, the penalty parameter, ρ , is updated as follows for all participants in the cooperative alliance [28]:
ρ t , ( k ) = { τ i n c r ρ t , ( k 1 ) , if   r k > μ s k ρ t , ( k 1 ) / τ d e c r , if   s k > μ r k ρ t , ( k 1 ) , others
where τ i n c r , τ d e c r , and μ are constants, and r k and s k are the primal and dual residuals which are also often used as the convergence criterion of the ADMM algorithm.

4.2. Distributed Solution of SP2

To solve SP2, we also needed to introduce auxiliary variables to decouple the payments among participants. Noting that n N n N / { n } Z n n = 0 , we introduced auxiliary variables Z ^ n c and Z ^ n n as follows:
Z n c = Z ^ n c
Z n n = Z ^ n n
According to the ADMM algorithm, the iterative augmented Lagrange function of the LA c and the MGO n of SP2 are:
L c 2 = ln ( δ c n = 1 N Z n c ) + n = 1 N λ ˙ ( k 1 ) n , c ( Z n c Z ^ n c ( k 1 ) ) + n = 1 N ρ ˙ ( k 1 ) n , c 2 Z n c Z ^ n c ( k 1 ) 2 2
L n 2 = ln ( δ c + n N / { n } Z ^ n n + c = 1 C Z ^ n c ) + c = 1 C λ ˙ ( k 1 ) n , c ( Z n c ( k ) Z ^ n c ) + c = 1 C ρ ˙ ( k 1 ) n , c 2 Z n c ( k ) Z ^ n c 2 2 + n N / { n } λ ˙ ( k 1 ) n , n ( Z n n ( k ) Z ^ n n ) + n N / { n } ρ ˙ ( k 1 ) n , n 2 Z n n ( k ) Z ^ n n 2 2
The Lagrange multipliers are updated as follows:
λ ˙ ( k ) n , c = λ ˙ ( k 1 ) n , c + ρ ˙ ( k ) n , c ( Z n c ( k ) Z ^ n c ( k ) )
λ ˙ ( k ) n , n = λ ˙ ( k 1 ) n , n + ρ ˙ ( k ) n , n ( Z n n ( k ) Z ^ n n ( k ) )

4.3. Algorithm Implementation

The detailed procedure to solve SP1 is summarized in Algorithm 1. For simplicity, we took LA c and MGO n as an example. A similar procedure was also applied to SP2 which is summarized in Algorithm 1.
Algorithm 1. Distributed P2P electricity trading
Step1: Solving SP1
1: Initialization1: k = 0, Lagrange multipliers λ t , ( 0 ) n , c = 0 , λ t , ( 0 ) n , n = 0 , penalty parameter ρ t , ( k ) n , c , ρ t , ( k ) n , n and convergence precision ε 1 ;
2: while ( m = 1 C + N r 1 , m k + m = 1 C + N s 1 , m k ) 2 > ε 1 do
3: k ← k + 1;
4: broadcast λ t , ( k 1 ) n , c and ρ t , ( k 1 ) n , c from distributed P2P platform to LA c and MGO n;
5: For LA c wait
6: until: receive P ^ t , ( k 1 ) n , c from MGO n;
7: Solve problem of (35) under the constraints (5)–(13);
8: For LA c wait
9: until: receive P t , ( k ) n , c and P t , ( k ) n , n from LA c and MGO n′;
10: Solve problem of (36) under the constraints (15)–(26);
11: update λ t , ( k ) n , c , λ t , ( k ) n , n and ρ t , ( k ) n , c in the P2P platform according to (37)–(39), respectively;
12: end while
Step2: Solving SP2
13: Initialization2: k = 0, multipliers λ ˙ ( 0 ) n , c = 0 , λ ˙ ( 0 ) n , n = 0 , ρ ˙ ( k ) n , c , ρ ˙ ( k ) n , n and convergence precision ε 2 ;
14: For LA c and MGO n wait
15: until: receive δ c and δ n from step 1;
16: while ( m = 1 C + N r 2 , m k + m = 1 C + N s 2 , m k ) 2 > ε 2 do
17: kk + 1;
18: broadcast λ ˙ ( k ) n , c from distributed P2P platform to LA c and MGO n;
19: For LA c wait
20: until: receive Z ^ n c ( k 1 ) from MGO n;
21: Solve problem of (42);
22: For MGO n wait
23: until: receive Z n c ( k ) and Z n n ( k ) from LA c and MGO n′;
24: Solve problem of (43);
25: update multipliers and penalty parameter in the P2P platform according to (44), (45) and (39);
26: end while
As can be seen from Algorithm 1, LA c and MGO n only need to exchange the limited information on electricity trading and payments, which can greatly protect their privacy. The distributed P2P platform provides the service of updating the Lagrange multipliers and penalty parameter in the process of iteration to ensure fairness.

5. Case Study

The simulation results regarding distributed P2P electricity trading between 2 LAs and 3 MGOs are presented in this section. The simulations were all run on the MATLAB2016a-Yalmip with the solver of CPLEX.

5.1. Simulation Parameters

A 12 × 12 km2 distribution system was chosen as the studied distribution network in this paper. The geographical locations of the LAs and MGOs in the distribution system are shown in Figure 3. The distances of the transactions among the participants are represented by the straight-line distance of the participants. The daily predicted load of LAs, load, and power generation in MGOs are all presented in Figure 4 [24]. The utility coefficients of consuming electricity in the LAs and MGOs were a = −0.005 RMB/kWh2 and b = 15 RMB/kWh. The upper and lower bound of the optimized load in LA 1 and 2 were 1.1 and 0.95 times the predicted data, respectively. The ESS capacities in each microgrid were set to 400, 600, and 1000 kWh, respectively, where the corresponding maximum charging/discharging powers were 150, 200, and 300 kWh, respectively, and their charging/discharging efficiency was 95%. The converted cost coefficient of ESS in each microgrid was 0.05 RMB/kWh. Copper loss was 15 kW and iron loss was 10 kW. The penalty cost coefficients of network loss was 0.3 RMB/kWh and α = 0.5 . The Power factor and voltage of the grid connection point were cos δ t = 0.81 and U t = 12.66 kV, respectively. The line resistance was 0.35 Ω/km. The hourly TOU tariffs are illustrated in Table 1.

5.2. Simulation Results and Analysis

5.2.1. Distributed P2P Trading Results Considering Network Loss

Table 2 lists the benefits of market participants under a distributed P2P electricity trading model. The payments after bargaining among participants are also listed in Table 2 where negative means the payment to others and positive means it receives the payment. Through the payments, LAs and MGOs can obtain a fair and Pareto-efficient sharing outcome according to NBS theory. Compared with the benefit under the DP model, the benefit of participants under a distributed P2P model was improved. Besides, we can see the surplus benefit of each participant was generally the same, which satisfies the requirement of B1 shown in Appendix B.
To further elaborate the activities of participants in the distributed P2P transactions, Figure 5 and Figure 6 show the load curves after bargaining in LAs and MGOs, respectively. As can be seen from Figure 5 and Figure 6, the load curves of the LAs and MGOs after bargaining were smoother than the original, which was obtained by the optimal demand response. For consumers, power consumption during 9:00–12:00 and 17:00–22:00 are the periods of peak TOU tariffs; thus, transferring the load of these periods to the flat or valley of periods can effectively reduce the cost of load power consumption. Moreover, MGOs can have more surplus electricity during peak TOU tariff periods through peak shaving and valley filling. Selling surplus electricity to consumers through bargaining agreements during peak periods of electricity price can improve the benefit of the coalition, as the objective of SP1 is to maximize social welfare.
Figure 7 shows the capacity level of ESS. As it can be observed in Figure 7, dynamic changes in the ESS in each microgrid conforms to the strategy of discharging at peak periods of TOU tariff and charging at flat or valley periods of TOU tariff. Similar to the peak shaving and valley filling of loads adopted in MGOs, this strategy can also increase the surplus electricity of MGOs and thereby improve social welfare efficiency.
Figure 8 shows the electricity procurement by LA1 and MGO1 from the DNO and Figure 9 shows the electricity trading results between LAs and MGOs. It can be seen from Figure 8 that LA2 and MGOs 2 and 3 do not trade with the DNO, and the loads of LA2 are supplied by the MGOs 2 and 3 as depicted in Figure 9b, while MGOs 2 and 3 are self-sufficient in their own power generation. Thus, we can conclude that the coalition participants avoid trading with the DNO under P2P trading. Instead, they directly trade with each other to enhance the benefits of self and social welfare as depicted in Figure 9. It can be seen from Figure 9 that MGO2 does not trade with LA1 and MGO1 does not trade with LA2. This is because MGO1 is closer to 1 in the geographical location as shown in Figure 3, while MGO2 is closer to LA2. Therefore, MGO1 chooses to sell all surplus power to LA1 and MGO2 to LA2 to avoid large network losses. For MGO3, because neither MGO1 nor MGO2 can fully supply electricity to LA1 and LA2 all a day, MGO3 will provide part of the power to LA1 and LA2, respectively. Since MGO3 is closer to LA2, MGO3 will give higher priority to supply LA2 than LA1. After being sold to LA2, MGO3 does not have sufficient surplus electricity to supply LA1, so LA1 has to purchase power from the DNO as shown in Figure 8. Similarly, MGO1 cannot buy electricity from other MGOs to balance itself during several time slots for its geographical location; it can only buy power from the DNO.

5.2.2. Trading without Consideration of Network Losses

To illustrate the effectiveness of considering network loss for P2P electricity trading, Figure 10 depicts the P2P electricity trading between participants without considering network losses. It can be seen that the trading strategies of LAs and MGOs are different with/without considering network losses. Figure 10a illustrates that the overall charging and discharging trends of ESS in each microgrid are identical. Without considering network loss, ESS lost its specificity for each microgrid when maximizing social benefits, which is equivalent to a large ESS participating in scheduling. Figure 10b,c shows that MGO2 now trades with LA1 and MGO1 now trades with LA2, and all MGOs trade with each other which confirms our analysis in Section 2.2. This is because LAs and MGOs ignore the influence of geographical location and only consider how to maximize social benefits. Our simulation results indicate that the benefit of ignoring network loss is 841,713 RMB, which is greater than that considering network loss. However, this trading strategy results in unreasonable results.

6. Conclusions

In this paper, we studied distributed P2P electricity trading between LAs and MGOs in the distribution network. Compared with existing P2P trading studies, this study took network loss into account in the proposed P2P trading model, which makes P2P trading more rational. In the proposed model, LAs and MGOs formulated a coalition to improve their own interests in the day-ahead electricity market. Their conflicts of interest were resolved by NBS theory which can bring them a fair and Pareto-efficient sharing outcome. The ADMM-based distributed algorithm, which can protect internal privacy, was used to solve a non-convex Nash bargaining problem which was decomposed into two sub-problems. In the case study, we analyzed electricity trading among coalition participants with and without considering network losses, respectively. The results showed that power flow is more reasonable, and benefits can be fairly shared among coalition participants after considering network loss, verifying the effectiveness of the proposed P2P electricity trading model.

Author Contributions

Conceptualization, J.Z.; methodology, J.Z.; software, J.Z.; validation, J.Z., T.R. and W.S.; formal analysis, J.Z.; investigation, J.Z.; resources, C.H., C.Z. and T.R.; data curation, J.Z.; writing—original draft preparation, J.Z.; writing—review and editing, C.H., C.Z., T.R. and W.S.; visualization, J.Z., T.R. and W.S.; supervision, C.H., C.Z., T.R. and B.W.; project administration, C.H. and C.Z.; funding acquisition, C.H. and C.Z.

Funding

This research was funded by the National Key R&D Plan of China 2016YFB0900400.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Assuming U t and cos δ t are constant and both P t , l o s s n , c and P t , l o s s n , n are single variable functions, for this single variable nonlinear function, the following method was used to linearize.
Figure A1. Piecewise linearization of a single-variable function.
Figure A1. Piecewise linearization of a single-variable function.
Energies 12 04318 g0a1
In Figure A1, ( x 1 , f 1 ) , , ( x 5 , f 5 ) are a number of points given on the curve of the original function and all of them are known quantities. We introduce a i ( i { 1 , , 5 } ) and d i ( i { 1 , , 4 } ) , which are both limited to the range of {0, 1}, and their respective summation is equal to one. In this way, the function can be characterized by the mixed integer linear constraints as:
{ f ( x ) = i = 1 5 a i f i , x = i = 1 5 a i x i a i , d i { 0 , 1 } , a 1 d 1 , a 5 d 4 , a i d i 1 + d i ( i { 2 , , 4 } ) i = 1 5 a i = 1 , i = 1 4 d i = 1

Appendix B

When the maximum value of Equation (28) is obtained, the following equation is satisfied [24]:
U c U c o , * = U n U n o , * = c = 1 C ( U c U c o , * ) + n = 1 N ( U n U n o , * ) C + N
In the cooperative alliance, one participant pays and the other gains. Let Z c = n = 1 N Z n c , and the capitals for insider trading in the alliance satisfy the following condition:
n = 1 N Z n c = 1 C Z c = 0
Substituting (A3) into (A2) gives:
U c U c o , * = U n U n o , * = c = 1 C ( U c U c o , * ) + n = 1 N ( U n U n o , * ) C + N
U c = t = 1 T [ ( a c P c , t 2 + b c P c , t ) b t P c , t G C t n , C ]
U n = t = 1 T ( s t P n , t s , G + u n , t L ) t = 1 T ( b t P n , t b , G + C t n , C + C t n , N + C n , t E S S )
Substituting (A4) into Equation (28) yields the following equivalent optimization problem:
max ( c = 1 C ( U c U c o , * ) + n = 1 N ( U n U n o , * ) ) C + N C + N
Since U c o , * and U n o , * are constant, we can obtain the sub-problem 1 (SP1) of Equation (31) by taking the natural logarithm of the objective function in problem (A7).

References

  1. Sandgani, M.R.; Sirouspour, S. Energy management in a network of grid-connected microgrids/nanogrids using compromise programming. IEEE Trans. Smart Grid 2018, 9, 2180–2191. [Google Scholar]
  2. Zhang, C.; Wu, J.; Yue, Z.; Cheng, M.; Long, C. Peer-to-peer energy trading in a microgrid. Appl. Energy 2018, 220, 1–12. [Google Scholar] [CrossRef]
  3. Mostafa, H.A.; El Shatshat, R.; Salama, M.M. A correlated equilibrium game-theoretic approach for multiple participants electric distribution systems operation. IEEE Trans. Smart Grid 2016, 7, 32–42. [Google Scholar] [CrossRef]
  4. Liu, W.; Zhan, J.; Chung, C.Y. A novel transactive energy control mechanism for collaborative networked microgrids. IEEE Trans. Power Syst. 2019, 34, 2048–2060. [Google Scholar] [CrossRef]
  5. Morstyn, T.; Teytelboym, A.; McCulloch, M.D. Bilateral contract networks for peer-to-peer energy trading. IEEE Trans. Smart Grid 2019, 10, 2026–2035. [Google Scholar] [CrossRef]
  6. Chen, S.; Chen, Q.; Xu, Y. Strategic bidding and compensation mechanism for a load aggregator with direct thermostat control capabilities. IEEE Trans. Smart Grid 2018, 9, 2327–2336. [Google Scholar] [CrossRef]
  7. Yu, M.; Hong, S.H.; Ding, Y.M.; Ye, X. An incentive-based demand response (dr) model considering composited dr resources. IEEE Trans. Ind. Electron. 2019, 66, 1488–1498. [Google Scholar] [CrossRef]
  8. Li, Z.; Wang, S.; Zheng, X.; de León, F.; Hong, T. Dynamic demand response using customer coupons considering multiple load aggregators to simultaneously achieve efficiency and fairness. IEEE Trans. Smart Grid 2018, 9, 3112–3121. [Google Scholar] [CrossRef]
  9. Hu, J.; Cao, J.; Guerrero, J.M.; Yong, T.; Yu, J. Improving frequency stability based on distributed control of multiple load aggregators. IEEE Trans. Smart Grid 2017, 8, 1553–1567. [Google Scholar] [CrossRef]
  10. Han, Y.; Zhang, K.; Li, H.; Coelho, E.A.A.; Guerrero, J.M. MAS-based distributed coordinated control and optimization in microgrid and microgrid clusters: A Comprehensive Overview. IEEE Trans. Power Electron. 2018, 33, 6488–6508. [Google Scholar] [CrossRef]
  11. Sakurama, K.; Miura, M. Communication-based decentralized demand response for smart microgrids. IEEE Trans. Ind. Electron. 2017, 64, 5192–5202. [Google Scholar] [CrossRef]
  12. Esfahani, M.M.; Hariri, A.; Mohammed, O.A. A multiagent-based game-theoretic and optimization approach for market operation of multimicrogrid systems. IEEE Trans. Ind. Inf. 2019, 15, 280–292. [Google Scholar] [CrossRef]
  13. Li, J.; Liu, Y.; Wu, L. Optimal operation for community based multi-party microgrid in grid-connected and islanded modes. IEEE Trans. Smart Grid 2018, 9, 756–765. [Google Scholar] [CrossRef]
  14. Lüth, A.; Martin, Z.J.; Pedro, C.D.G.; Ruud, E. Local electricity market designs for peer-to-peer trading: The role of battery flexibility. Appl. Energy 2018, 229, 1233–1243. [Google Scholar] [CrossRef]
  15. Baroche, T.; Pinson, P.; Latimier, R.L.G.; Ahmed, H.B. Exogenous cost allocation in peer-to-peer electricity markets. IEEE Trans. Power Syst. 2019, 34, 2553–2564. [Google Scholar] [CrossRef]
  16. Guerrero, J.; Chapman, A.C.; Verbič, G. Decentralized p2p energy trading under network constraints in a low-voltage network. IEEE Trans. Smart Grid 2019, 10, 5163–5173. [Google Scholar] [CrossRef]
  17. Morstyn, T.; Mcculloch, M. Multi-class energy management for peer-to-peer energy trading driven by prosumer preferences. IEEE Trans. Power Syst. 2019, 34, 4005–4014. [Google Scholar] [CrossRef]
  18. Zhou, Y.; Wu, J.; Long, C. Evaluation of peer-to-peer energy sharing mechanisms based on a multiagent simulation framework. Appl. Energy 2018, 222, 993–1022. [Google Scholar] [CrossRef]
  19. Zhang, N.; Yan, Y.; Su, W. A game-theoretic economic operation of residential distribution system with high participation of distributed electricity prosumers. Appl. Energy 2015, 154, 471–479. [Google Scholar] [CrossRef]
  20. Paudel, A.; Chaudhari, K.; Long, C.; Gooi, H.B. Peer-to-peer energy trading in a prosumer-based community microgrid: A game-theoretic model. IEEE Trans. Ind. Electron. 2019, 66, 6087–6097. [Google Scholar] [CrossRef]
  21. Li, Z.; Chen, L.; Nan, G. Small-scale renewable energy source trading: A contract theory approach. IEEE Trans. Ind. Inf. 2018, 14, 1491–1500. [Google Scholar] [CrossRef]
  22. Jadhav, A.M.; Patne, N.R.; Guerrero, J.M. A novel approach to neighborhood fair energy trading in a distribution network of multiple microgrid clusters. IEEE Trans. Ind. Electron. 2019, 66, 1520–1531. [Google Scholar] [CrossRef]
  23. Wang, H.; Huang, J. Cooperative planning of renewable generations for interconnected microgrids. IEEE Trans. Smart Grid 2016, 7, 2486–2496. [Google Scholar] [CrossRef]
  24. Fan, S.; Ai, Q.; Piao, L. Bargaining-based cooperative energy trading for distribution company and demand response. Appl. Energy 2018, 226, 469–482. [Google Scholar] [CrossRef]
  25. Nguyen, H.K.; Mohsenian-Rad, H.; Khodaei, A.; Han, Z. Decentralized reactive power compensation using nash bargaining solution. IEEE Trans. Smart Grid 2017, 8, 1679–1688. [Google Scholar] [CrossRef]
  26. Nguyen, H.K.; Khodaei, A.; Han, Z. Incentive mechanism design for integrated microgrids in peak ramp minimization problem. IEEE Trans. Smart Grid 2018, 9, 5774–5785. [Google Scholar] [CrossRef]
  27. Nash, J.F., Jr. The bargaining problem. Econom. J. Econom. Soc. 1950, 18, 155–162. [Google Scholar] [CrossRef]
  28. Boyd, S.; Parikh, N.; Chu, E.; Eckstein, J. Distributed optimization and statistical learning via the alternating direction method of multipliers. Found. Trends Mach. Learn. 2010, 3, 1–122. [Google Scholar] [CrossRef]
Figure 1. Distributed peer-to-peer (P2P) trading model.
Figure 1. Distributed peer-to-peer (P2P) trading model.
Energies 12 04318 g001
Figure 2. P2P electricity trading between one LA and two MGOs in different geographical locations.
Figure 2. P2P electricity trading between one LA and two MGOs in different geographical locations.
Energies 12 04318 g002
Figure 3. Geographical location of the LAs and MGOs.
Figure 3. Geographical location of the LAs and MGOs.
Energies 12 04318 g003
Figure 4. Predicted data of the LAs and MGOs.
Figure 4. Predicted data of the LAs and MGOs.
Energies 12 04318 g004
Figure 5. Load curves after bargaining in LAs.
Figure 5. Load curves after bargaining in LAs.
Energies 12 04318 g005
Figure 6. Load curves after bargaining in MGOs.
Figure 6. Load curves after bargaining in MGOs.
Energies 12 04318 g006
Figure 7. Energy level of ESS after bargaining in MGOs.
Figure 7. Energy level of ESS after bargaining in MGOs.
Energies 12 04318 g007
Figure 8. Procurement by LA1 and MGO1 from DNO.
Figure 8. Procurement by LA1 and MGO1 from DNO.
Energies 12 04318 g008
Figure 9. P2P electricity trading between LAs and MGOs. (a) P2P electricity trading between LA1 and MGOs. (b) P2P electricity trading between LA2 and MGOs.
Figure 9. P2P electricity trading between LAs and MGOs. (a) P2P electricity trading between LA1 and MGOs. (b) P2P electricity trading between LA2 and MGOs.
Energies 12 04318 g009
Figure 10. P2P electricity trading results without considering network losses. (a) Energy level of ESS. (b) Electricity trading between LAs and MGOs. (c) Electricity trading among MGOs.
Figure 10. P2P electricity trading results without considering network losses. (a) Energy level of ESS. (b) Electricity trading between LAs and MGOs. (c) Electricity trading among MGOs.
Energies 12 04318 g010
Table 1. Time-of-use price in the distribution network.
Table 1. Time-of-use price in the distribution network.
TypePeriod/hbt (RMB/kWh)st (RMB/kWh)
Peak09:00–12:001.24120.3573
17:00–22:00
Flat08:00–09:000.77930.3573
12:00–17:00
22:00–23:00
Valley23:00–08:000.48800.3573
Table 2. Computational time comparison for distributed P2P electricity trading.
Table 2. Computational time comparison for distributed P2P electricity trading.
ParticipantsP2P BenefitDP BenefitPaymentSurplus
LA1231,811227,847−12,8953964
LA2238,945234,986−19,1123959
MGO1128,642124,68052533962
MGO2118,316114,35387333963
MGO3118,849114,88718,0213962
System836,563816,753019,810

Share and Cite

MDPI and ACS Style

Zhang, J.; Hu, C.; Zheng, C.; Rui, T.; Shen, W.; Wang, B. Distributed Peer-to-Peer Electricity Trading Considering Network Loss in a Distribution System. Energies 2019, 12, 4318. https://doi.org/10.3390/en12224318

AMA Style

Zhang J, Hu C, Zheng C, Rui T, Shen W, Wang B. Distributed Peer-to-Peer Electricity Trading Considering Network Loss in a Distribution System. Energies. 2019; 12(22):4318. https://doi.org/10.3390/en12224318

Chicago/Turabian Style

Zhang, Jin, Cungang Hu, Changbao Zheng, Tao Rui, Weixiang Shen, and Bo Wang. 2019. "Distributed Peer-to-Peer Electricity Trading Considering Network Loss in a Distribution System" Energies 12, no. 22: 4318. https://doi.org/10.3390/en12224318

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