Abstract
The technology advancement and cost decline of renewable and sustainable energy increase the penetration of distributed energy resources (DERs) in distribution systems. Transactive energy helps balance the local generation and demand. Peer-to-peer (P2P) energy trading is a promising business model for transactive energy. Such a market scheme can increase the revenue of DER owners and reduce the waste of renewable energy. This article proposes an equilibrium model of a P2P transactive energy market. Every participant seeks the maximum personal interest, with the options of importing or providing energy from/to any other peer across different buses of the distribution network. The market equilibrium condition is obtained by combining the KarushāKuhnāTucker conditions of all problems of individual participants together. The energy transaction price is endogenously determined from the market equilibrium condition, which is cast as a mixed-integer linear program and solved by a commercial solver. The transactive energy flow is further embedded in the optimal power flow problem to ensure operating constraints of the distribution network. We propose a remedy to recover a near optimal solution when the second-order cone relaxation is inexact. Finally, a case study demonstrates that the proposed P2P market benefits all participants.
Introduction
With the development of modern society and economy, the energy consumption is continuously increasing. However, due to the depletion of nonrenewable energy and the greenhouse gas emission from burning fossil-fuel energy, it is imperative to develop renewable and sustainable energy (). The technology advancement and cost decline contribute to the high penetration of distributed energy resources (DERs), such as solar photovoltaics, wind turbine, and energy storage devices, in the power system (). In such circumstances, there could be multiple generation sources that are volatile and owned by profit-driven entities. The Feed-in Tariff (FiT) scheme has been implemented as an effective tool to encourage DERs investment and ownersā participation in energy trading (). In the FiT scheme, DER owners can sell their excessive energy to main grid at a designed price. But the FiT scheme has been criticized for lacking competition () and offering participants limited benefits ().
The transactive energy system is proposed to manage the energy generation and consumption and facilitate energy trading in the power system. The transactive energy scheme helps balance the local renewable energy generation and demand in the timeframe of real-time within a distribution network ().
With the advancement of Information and Communication Technology (ICT), peer-to-peer (P2P) energy trading has been designed and expected to be a promising business model for the transactive energy scheme in future power systems (). P2P trading is composed of energy buyers and sellers, power system operators, and P2P service servers. A peer in the P2P market can sell surplus energy to local peers and can choose to act as an energy buyer or seller based on personal preferences and needs (). All peers can exchange energy with each other directly, without the involvement of utility companies. The implement of P2P energy trading enables all peers to engage in energy trading, thus creating a competitive energy market. Both the energy buyer and the seller can benefit from P2P transaction because they can utilize excessive renewable energy and reach a mutually satisfactory price and quantity (). The P2P transactive market can also balance local energy supply and demand, thus reducing energy transmission losses. Furthermore, it can improve the power system reliability and reduce infrastructure investment ().
Recently, P2P energy trading has attracted great attention as never before and an increasing number of researches have been conducted to facilitate the P2P trading mechanism. The state-of-the-art of P2P energy trading is presented as follows.
There are many articles summarizing the design and architecture of the P2P energy trading market. provided a detailed overview in the P2P energy trading field and discussed the solution techniques implemented in the P2P market. The key elements in the P2P market can be divided into virtual layer and physical layer. The virtual layer has the transaction data flow and the market mechanism while the physical layer consists of the power grid and communication infrastructure to guarantee that the physical energy transaction is carried out successfully. proposed a four-layer system architecture in the P2P market, providing evaluation criteria to identify related technologies, facilities, and designs. The proposed architecture has three dimensions. The first dimension consists of business layer, control layer, ICT layer, and physical power grid layer, which form the basic framework in the P2P market. The second and third dimensions are classified according to the size of participants and energy trading process, respectively. categorized the community-based P2P structure into full market, community-based market, and hybrid market according to the degree of connection and communication. In the full market, the peers can directly trade with each other without centralized coordination. By contrast, the community-based market requires a community manager to arrange the energy transactions within the community or between communities. The hybrid market is the combination of the above two market structures. categorized the P2P energy trading based on the existence of an intermedia. Without an intermedia, prosumers can directly control their DERs and a P2P market coordinator is needed to collect participantsā information and provide price signal. With an intermedia, a third party can manage prosumersā energy and act as a market coordinator. In summary, the previously proposed P2P market architecture can be mainly classified as three types based on the degree of decentralization: decentralized market, centralized market, and hybrid market, as shown in Figure 1.
FIGURE 1
1) Decentralized market: In a decentralized P2P energy market, peers can negotiate and trade with each other directly without the intermediary. The market participants can decide their transaction amount and price to maximize their personal interest and satisfy own preferences. proposed a decentralized P2P market design based on multi-bilateral economic dispatch (MBED). The authors described a relaxed consensus + innovation (RCI) approach to solve the MBED. Such a market can cater to consumersā product differentiation preference and maximize society surplus. established a bilateral contract network for scalable P2P energy trading for real-time and forward market. The utility-maximizing preferences of agents satisfy full substitutability, which guarantees a stable result in the distributed price-adjustment process. designed a decentralized P2P scheme with a self-interested agent. The pricing mechanism builds on continuous double auction (CDA). This scheme is also the first decentralized P2P architecture considering distribution network constraints. presented a P2P energy trading application scene in electric vehicles (EV) with the objective of minimizing EV usersā energy expense. The implementation of P2P trading benefits users involved in the market and decreases charging impact on grid. proposed a P2P trading design based on coalition formation game. In such a prosumer-centric market, a prosumer can decide to join the P2P market or not by evaluating the P2P marketās attractiveness. Prosumers can also choose whom to cooperate or not to achieve more benefit.
2) Centralized market: In a centralized market, an aggregator communicates with peers and manages the operation of DERs. The aggregator collects information from participants and makes proper control decisions of devices to reach a common target, for example, maximizing financial benefit or achieving an environmentally friendly goal. implemented localized P2P energy trading among plug-in hybrid electric vehicles (PHEVs). Local aggregators communicate with PHEVs, acquire their charging and discharging demand, and allocate energy with a goal of maximizing social welfare. proposed a P2P energy trading model with a Pareto optimality method. The proposed model requires the centralized manager to solve a multiobjective optimization problem, including microgrid energy cost minimization and individual cost optimization, and finally obtain Pareto optimality results, eliminating unfair cost distribution. developed a two-stage aggregated control method in P2P energy sharing where an energy sharing aggregator controls DERs to reduce total energy cost. An adjusted supply and demand ratio pricing mechanism is proposed to benefit all participants. proposed a centralized P2P trading mechanism in a local community with rooftop PV and battery. The objective of the aggregator is to minimize the total energy cost and the problem is formulated as a mixed integer linear programming (MILP). introduced a centralized P2P energy trading to maximize the local energy balance. A linear programming is implemented to solve the market.
3) Hybrid market: Hybrid market is the combination of decentralized and centralized markets, in which a peer can decide to switch from the conventional energy market to the P2P energy market with the price signal from the aggregator. On one hand, the hybrid market requires an aggregator to manage and supervise transaction activities compared with the decentralized market. On the other hand, peers can control their devices, achieve self-interest, and protect personal privacy in comparison with the centralized market. presented three representative P2P market designs with different pricing mechanisms. They are, respectively, bill sharing, mid-market rate, and auction-based pricing strategy. constructed a P2P transaction model, with the aim of maximizing prosumersā benefit. The proposed model considers the impact of distribution network constraint on P2P transaction. devised a bidding platform āElecbayā based on the noncooperative game theory, in which all peers make their decision independently. The agents with flexibility of demand in the platform can mathematically lead to Nash equilibrium. proposed a P2P market based on multiclass energy management, in which a distributed price-directed optimization mechanism is constructed to respect prosumer preferences and minimize external cost.
Game theory approaches, optimization methods, and auction-based approaches are widely used in designing P2P energy trading. Game theory is used in a competitive circumstance in which a playerās decision and action will affect other playersā outcomes and vice versa. Game theory approaches are grouped into two parts: noncooperative and cooperative game theory (). The author summarized several P2P energy management domains adopting game theory approached, including electric vehicle, DERs, energy storage, and energy service. Optimization methods are widely used in the P2P scheme. In , an agent with rooftop PV and battery participates in P2P energy trading and proposes a centralized P2P trading mechanism in a local community with rooftop PV and battery and a mixed integer linear programming is proposed to minimize the total energy cost. used the distributed convex optimization method alternating direction method of multipliers (ADMM) to solve the multiclass energy management problem. Auction-based approaches can be applied to markets with multiple energy buyers and sellers. Continuous double auction is used to match energy sellers and buyers and bidding strategies is proposed to facilitate agentās bid and ask (). An iterative double auction algorithm is proposed based on consortium blockchain to disclose hidden information about electric vehicles ().
However, there are still some research gaps in the existing research works. Many studies did not concentrate on individual P2P market participantās interest, and such a market mechanism might damage personal interest. Many pricing designs in the P2P energy sharing market did not reflect the true value of transactive energy resources in different supplyādemand scenarios and could not guarantee every participantās benefit from the market. P2P transaction should be conducted via physical distribution network, whereas the operating constraints are rarely taken into consideration.
In this article, we study transactive energy in a P2P market with participants at different buses of a distribution network. The main contributions are twofold.
1) We propose an equilibrium model of a P2P transactive market. Every participant is rational and pursues profit maximum, with the options of importing or providing energy from/to any other peer across different buses of the distribution network. The market equilibrium condition is obtained by combining the KarushāKuhnāTucker (KKT) conditions of all problems of individual participants together. Specifically, the price is endogenously determined from the market equilibrium condition, rather than bid by the providers, which is different from existing works and better reflects the value of resources in accordance with the supplyādemand relation. The market equilibrium condition is further cast as a mixed-integer linear program and solved by a commercial solver.
2) We formulate the distribution optimal power flow (OPF) problem considering the transactive energy flow at the market equilibrium. To solve the nonlinear OPF problem, the second-order cone relaxation is performed. If the convex relaxation is inexact, a feasible recovery procedure is suggested to recover a near-optimal solution. The procedure entails solving second-order cone programs and is thus efficient. Such a framework offers a new paradigm to study power system operation with P2P transactive energy.
The remainder of this article is organized as follows. The P2P transaction scheme, the mathematical model of the P2P market, and the market equilibrium condition are presented in P2P Transactive Scheme and the Market Equilibrium. The distribution OPF problem considering the transactive energy flow of the P2P market and the solution technique are given in Optimal Power Flow With Transactive Energy. Case studies are reported in Case Study. Finally, Conclusion concludes the article.
P2P Transactive Scheme and the Market Equilibrium
In this section, a P2P transactive energy scheme is proposed. The problems of energy sellers and buyers are then presented. At last, the market equilibrium condition is given and cast as an MILP.
Problem Description
The transaction structure of the P2P energy-sharing market proposed in this article is shown in
Figure 2. In this article, a peer who has excessive energy and shares energy with other people is identified as a typical energy seller
. Similarly, a peer with deficit energy is recorded as a typical energy buyer
. In a time period, there are total
energy sellers and
energy buyers joining in the P2P market. The solid arrow connecting seller
and buyer
in
Figure 2represents P2P transaction between them. The variables
and
present the transaction energy amount and transaction price, respectively. In such a market, the following assumptions are made without loss of generality:
1) The infrastructure has been installed to operate P2P sharing scheme.
2) Associated stakeholders in the P2P market are rational and maximize their own interest. A contract with and is reached to ensure the transaction. The transaction is expected to be carried out hourly.
3) Energy sellers can choose to sell their surplus energy to the main grid in the FiT scheme or trade in the P2P market. Similarly, buyers can also purchase energy from the grid or the P2P market, with the hope to minimize their costs. A seller or buyer can sell or buy energy at a higher or lower price in the P2P market compared with traditional power utility. Otherwise, people will have no incentive to participate in P2P sharing.
4) The P2P market is operated by an aggregator. It collects supply and demand information from participants and clears the market. Then, it sends transaction results to the distribution grid.
5) All players are self-interested and they will not form an alliance. Besides, we assume all players tell their true supply and demand information to the aggregator.
FIGURE 2
Mathematic Formulation
The models of sellers, buyers, and total P2P market are presented in the following subsections.
Sellerās Problem
A rational energy seller seeks contract amount with energy buyer to reach maximum profit. The optimal problem of seller iswhere and are decision variables. is the transaction amount between seller and buyer and is the transaction price associated with . However, the price is out of control of seller and buyer but is decided by solving the market equilibrium problem. is the excessive energy for sale of seller , which comes from rooftop PV system, PV power station, wind turbine, or energy stored in batteries. is FiT and is the transaction cost, such as grid tariff for using the grid facilities. The objective function (Eq. 1) is sellerās profit maximization problem. The first term represents the total revenue of trading with energy buyers in the P2P market. The second term is the total revenue of selling energy to the main grid. Sellers can sell their energy to the main grid if they still have surplus energy after P2P market transaction. The third term is the transaction cost in the P2P market.
Constraint (Eq. 2) limits that the total P2P trading amounts should not be more than sellerās initial surplus energy. Constraint (Eq. 3) imposes non-negativity condition on the P2P trading amount. and after the colon are dual variables of the constraints.
Buyerās Problem
A rational energy buyer seeks contract amount with energy seller to reach minimum energy cost. The optimal problem of buyer iswhere and are also decision variables and have been defined in Sellerās Problem. is the total energy demand of energy buyer . is the price when the buyer purchases energy from the main grid. In this article, we assume the main grid charges energy buyers in a time-and-level-of-use(TLOU) structure, which will be presented in following content. The objective function (Eq. 4) is buyerās cost minimization problem. The first term denotes the total cost of trading with energy sellers in the P2P market. The second term is the total cost of buying energy from the main grid. Buyers can buy energy from the main grid to satisfy their remaining demand after P2P trading.
Constraint (Eq. 5) shows that the total P2P trading amounts should not exceed buyerās demand. and after the colon are dual variables of the constraints.
Time-And-Level-Of-Use Price
Energy buyers purchase energy from the main grid at the TLOU price, which consists of two dimensions: time of day and level of consumption (). The structure of TLOU is as follows:where is the TLOU price and is the benchmark price in period , respectively. is a level-wise part in which is the total energy demand satisfied by grid and is a non-negative slope coefficient. Compared with time-of-use (TOU), such a price scheme can preclude rebound demand peaks when changes because more consumption is accompanied by higher price. Besides, TLOU can also reduce demand fluctuation and benefit power system operation. In this article, the use of TLOU can also make sure the problem is convex.
Equilibrium Model
In summary, all the participants in the P2P market consider their own interest optimal problem at the same time. Sellers or buyers increase or lower the transaction price and they can reach mutually satisfactory price finally. In such a circumstance, the P2P market can be described as an equilibrium model:where all participantsā interests are taken into consideration and solved simultaneously.
Problem Reformulation
In equilibrium problem (Eq. 8), it is crucial that sellers and buyers have consistent decision variables and . However, the product term makes problem (Eqs. 1, 4) nonconvex and intractable in the traditional fixed-point method. Reformulating the primal optimal problem to its KKT conditions is a probable way to solve the problem.
It is worth mentioning that the transaction price is beyond the control of both seller and buyer and will be endogenously determined at the market equilibrium point. We regard as a constant while acquiring KKT conditions of sellers and buyers.
The KKT condition of seller is:
The expression means and are non-negative and at least one of them is 0. In vector notation, the means .
The KKT condition of each buyer at the TLOU price scheme is
Since the sellers and buyers have consistent values of and , the KKT condition (Eqs. 9, 10) can be put together, which forms a dual equilibrium problem (Eq. 11).
Problem (Eq. 11) is composed of a set of linear and nonlinear constraints. The decision variable can be obtained by solving the equilibrium problem (Eq. 11) and the market clearing price is determined automatically in (Eq. 9) or (Eq. 10), where both the equations are same. In our model, is no less than the plus , otherwise sellers will quit the P2P market. The reason is that sellers can choose to trade with higher bidder.
However, the equilibrium problem (Eq. 11) is a nonlinear problem and intrinsically hard because of the existence of nonlinear complementary slackness constraints.
Big-M Method
To deal with the complementary slackness constraints in the equilibrium problem (Eq. 11), we introduce a big-M method proposed in . Take complementary slackness constraint in KKT conditions (Eq. 9) as an example:
If the primal constraint is not binding, its dual variable is zero; similarly, if dual variable is positive, the primal constraint is binding. To depict the character, we can introduce an auxiliary binary vector and a constant parameter and transform the nonlinear constraints into linear constraints. The dimension of is compatible with . The new constraints yield:where is a manually selected parameter. The value of deserves discussion. In one respect, it should be large enough to cover the maximum points of (Eqs. 13, 14); in other respect, a smaller value contributes to the convergence and saves computation time.
However, the above constraints lack an optimization problem. We create an MILP to implement constraints (Eqs. 13, 14):
The objective function (Eq. 15) should be zero if the question is feasible. Otherwise, if the optimal value is positive, the complementary slackness constraint is violated. In the objective function, the product term is composed of a binary variable and a dual variable. It can be linearized by an additional variable , subject to:
Similarly, the reformulation can be applied to the first term .
Finally, the objective function (Eq. 15) can be written as an MILP:
Feasible solution can be obtained by solving above MILP through the commercial optimization problem solver, such as MOSEK.
Optimal Power Flow With Transactive Energy
In this section, we implement P2P energy sharing in the optimal power flow problem of a microgrid-based distribution network. A distribution system operator (DSO) controls the distribution network with an operation goal to minimize the total energy cost. Many distribution networks are radial network with tree topology. The typical connection of a radial network is shown in Figure 3. Without loss of generality, a peer in the P2P market is a bus in distribution network, whose role is, e.g., a traditional energy consumer, a prosumers with DERs, or a local solar power station, etc. Branch flow model (BFM) is used in radial distribution power grid () (). The radial network can be described by a graph , where and are the bus set and distribution line set, respectively.
FIGURE 3
Branch Flow Model
The mathematical formulation of BFM is described as follows, with an objective function to minimize total energy generation cost. is the feasible set of BFM solutions.where constraints (Eqs. 21, 22) are bus active/reactive power balance condition. Constraint (Eq. 23) is the forward voltage drop in branch . The apparent power injection at the head bus of branch is described in (Eq. 24). In proposed BFM, the initial bus is and branch is defined as the line between bus and . For constant parameters, / is the resistance/reactance of branch . is the impedance value. are fixed active/reactive power demand at bus . For variables, / and are square voltage and current magnitude. / presents the active/reactive power flow in branch . denotes active/reactive power generation at bus . The right-hand part of (Eq. 21) and (Eq. 22) are power flow started with bus .
Constraints (Eqs. 25ā28) are the physical network operating constraints, which represent the active and reactive generation capacities, nodal voltage constraint, and power flow limits in each line.
In the above constraints (Eq. 24) is a quadratic equation, which makes the BFM nonlinear and nonconvex. To solve the nonconvex problem proposed a second-order cone program (SOCP) method to make convex relaxation, which replaces the equality constraint (Eq. 24) with the following inequality constraint in a canonical form:
Such a SOCP convex relaxation is exact for BFM under some mild conditions, such as the objective function is convex and cost is strictly increasing in line losses. However, the relaxation may be inexact if the objective function violates the above mild conditions, thus resulting in infeasible solution.
Denote the BFM constraints with SOCP concisely as Cons-BFM.
Feasibility Recovery
To make sure the convex relaxation is exact proposed a method based on the convex-concave program to evaluate the initial SOCP result and run the feasibility recovery procedure if SOCP is inexact. made some improvement based on the method, gaining better convergence performance. Detailed method introduction is as follows:
Denote Following Convex Quadratic Functions
Define a gap function to show the gap in (Eq. 24) caused by the SOCP relaxation at :where is the solution from BFM with SOCP convex relaxation. If the gap does not exceed predetermined tolerance value , the relaxation is exact. Otherwise, operate the following feasibility recovery procedure to obtain exact optimal solution:
Algorithm 1:
1. Set an initial penalty coefficient , a penalty growth rate , and a penalty upper bound . Let the initial iteration index , and the initial point
2. Form linear approximation of at
And solve the following approximation of at
where is an auxiliary variable and the optimal solution is (
3. If the relxation gap , terminate and report the optimal solution; otherwise, update , and go to step 2
A Two-Stage Method
P2P market transactions should be implemented in physical power system network. First, the aggregator in the P2P market collects the transaction information and solves the P2P equilibrium problem. Second, the aggregator submits P2P transaction results to DSO. The DSO solves an optimal power flow problem in BFM to minimize total energy cost under network operating constraints.
Figure 4 shows how P2P transaction is embedded in the physical distribution network. After reaching an agreement in the P2P financial network, the supply buses inject energy into physical network and receive cash payment while the demand buses absorb energy from the physical network and pay for this transactive energy.
FIGURE 4
Case Study
To testify the proposed P2P model in this article, we implement our model in a 6-bus radial distribution network system. The system structure is presented in Figure 5 and G0 connects transmission line. B1-B4 represent the energy buyers participating in the P2P market and S1-S2 are sellers who own PV plants and sell surplus energy. The parameter setting is in the next subsection. All experiments are carried out on a 64-bit laptop with Intel Core i7-7500U CPU with 2.7 GHz and 8Ā GB RAM. The equilibrium problem and OPF problem are coded in MATLAB with YALMIP interface. Commercial solver MOSEK 9.2.29 is used to solve SOCP.
FIGURE 5
Benchmark Parameter Setting
In our P2P market model, the transaction is expected to be solved hourly. In one time period, the sellerās supply and buyerās demand are shown in Table 1. We assume that the sellers sell their surplus to energy main grid at . The grid tariff for using the network system is . Buyers can buy energy through P2P transactions or they can purchase electricity from grid at TLOU price. , where represents the electricity quantity from grid. In the above assumption, the sellers are forbidden to buy from grid and sell to the P2P market simultaneously and the TLOU price is higher than the FiT value; otherwise, an arbitrage opportunity arises.
TABLE 1
| Agent | Amount | Agent | Amount |
|---|---|---|---|
| Seller 1 | 50 | Buyer 2 | 100 |
| Seller 2 | 100 | Buyer 3 | 80 |
| Buyer 1 | 50 | Buyer 4 | 70 |
Production and consumption amount/kWh.
There are three generators located in buses 2, 3, and 4 respectively. The detailed line data and generator parameters are listed in Tables 2, 3. The reference value is 1Ā MVA and all the parameters and results are given in p.u. The voltage magnitude limits are , . The initial power demands at buses are , .
TABLE 2
| Begin bus | End bus | |||
|---|---|---|---|---|
| 1 | 2 | 0.041 | 0.052 | 3 |
| 2 | 3 | 0.049 | 0.055 | 3 |
| 3 | 4 | 0.066 | 0.070 | 3 |
| 2 | 5 | 0.036 | 0.049 | 3 |
| 3 | 6 | 0.056 | 0.078 | 3 |
Line data (in p.u.).
TABLE 3
| Unit | ||||||
|---|---|---|---|---|---|---|
| 1 | 0.99 | 3.76 | 0 | 1.5 | ā1 | 1 |
| 2 | 1.33 | 3.81 | 0 | 1.5 | ā0.5 | 0.5 |
| 3 | 0.68 | 4.53 | 0 | 1.5 | ā0.5 | 0.5 |
Generator parameters (in p.u.).
Numerical Result
In the first stage, after solving the equilibrium problem, we can obtain the following P2P market model solution.
Figure 6 depicts where buyers purchase their energy. Without P2P transaction, they can only satisfy their demands through the main grid. With the P2P market, consumers can allocate their demand between main grid and P2P market to reduce their costs. In our test case, all buyers purchase same quantity from grid and all P2P transaction prices are 0.575$/kWh, which is also the main grid marginal price. As a result, it is no difference for the buyer to choose whom to trade in the P2P market. The result is reasonable because if a buyer offers a higher price, all sellers will trade with him and other buyers will also improve their prices successively; if a buyer offers a lower price, he will loss all sellers and a rational participant will avoid the option. In this condition, the equilibrium price gradually converges to the highest main grid marginal price.
FIGURE 6
Figure 7 shows the buyersā costs and sellersā revenues comparison between the two scenarios, without and with the P2P market. The left one shows that all buyers benefit from the P2P market and have less cost, in which B2 has the most significant reduction in total energy cost because he has the largest amount consumption in the P2P market. Sellers also earn more profit through P2P sharing.
FIGURE 7
Finally, Table 4 summarizes the total cost and revenue of P2P market participants during the trading period. Owing to the introduction of P2P market, the sellers and buyers can discover transaction price in P2P trading. The price is not less than the FiT value and not more than TLOU. Therefore, buyersā cost decreases and sellersā revenue increases, with an improvement of $ 31.675 in market benefit. The local welfare gets improvement compared with market without the P2P market.
TABLE 4
| Without P2P | With P2P | Market benefit | ||
|---|---|---|---|---|
| Cost | Revenue | Cost | Revenue | |
| 173.8 | 60 | 166.875 | 84.75 | 31.675 |
Comparison of total cost and Revenue/$.
Discussion of Parameter M
In Big-M Method, we claim the value of parameter M is manually specified. It should be neither too big nor too small. In a benchmark case study, the numerical value of M is 150. To find out the performance of the optimization impacted by the value of M, we change the numerical value of M from 10 to 1,000 and record their feasibility and calculation time of equilibrium problem. The results are provided in Table 5.
TABLE 5
| Value of M | 10 | 50 | 90 | 100 | 150 | 200 | 500 | 1,000 |
|---|---|---|---|---|---|---|---|---|
| Time/s | Fail | Fail | Fail | 0.35 | 0.37 | 0.37 | 0.39 | 0.42 |
| Market Benefit/$ | Fail | Fail | Fail | 31.675 | 31.675 | 31.675 | 31.675 | 31.675 |
Comparison of different value of M.
In Table 5, fail means the equilibrium problem is infeasible in solver MOSEK. In our benchmark test, the value of M should not be less than 100, which is also the maximum value of sellerās supply and buyerās demand. When M is equal to or larger than maximum supply or demand value, the results of market benefit are identical. In terms of calculation time, we can find time increases with Mās value improvement. In view of the above finding, we can obtain some instructions about the selection of M. On one hand, it should not be less than the maximum value of sellerās supply and buyerās demand. On the other hand, it should not be too large to save calculation time.
Sensitivity Analysis
We keep other participantsā supply and demand and change buyer 1ās demand. The buyer 1ā² energy bought from P2P market also changes accompanied with demand increase, as shown in Figure 8. And the important turning points are declared in Figure 8. If the demand is less than , compared with other energy buyers, buyer 1 faces relatively lower TLOU price in the grid market and he has no incentive to offer a much higher price in the P2P market, so he will not buy any energy from the P2P market. If the demand is higher than and less than , buyer 1 will be charged at a higher TLOU price by grid, so he will buy energy from the P2P market and compete with participants, thus leading to an equilibrium problem. If the demand is higher than , buyer 1 faces a much higher TLOU price, so he will buy as much energy in the P2P market as possible. In such a scenario, buyer 1 has market power and consumes all P2P energy.
FIGURE 8
Performance of Feasibility Recovery Procedure
In this subsection, we evaluate the performance of FRP. In the first stage, the aggregator solves the equilibrium problem in the P2P market and submits P2P transaction information to DSO. In the second stage, the DSO solves BFM with SOCP relaxation. When the initial SOCP relaxation is inexact and the relaxation gap exceeds predetermined tolerance value , the initial solution is infeasible and will be passed to FRP. In FRP, we set , , , and . The initial point is the infeasible solution from BFM with SOCP relaxation.
To evaluate the performance of the solution from FRP, we compare it with a solution from NLP solver KNITRO, which can handle the nonconvex optimization problem. The results are shown in Table 6. is the total electricity generation costs in BFM.
TABLE 6
| Tolerance value | FRP | KNITRO | |||
|---|---|---|---|---|---|
| Time/s | Iteration | Time/s | |||
| 12.74 | 5.69 | 11 | 12.65 | 0.85 | |
| 12.65 | 0.71 | 0 | |||
| 12.65 | 0.61 | 0 | |||
| 12.65 | 0.52 | 0 | |||
| 12.65 | 0.55 | 0 | |||
Comparison of FRP and KNITRO.
In FRP, we change the value of and investigate the algorithm performance. When , the SOCP is inexact and the initial result is passed to FRP, which needs 11 iterations to converge. The average time is 0.5ā0.6Ā s per iteration in FRP. However, is a fairly strict criterion on SOCP relaxation. If we increase the value of , the SOCP relaxation is exact and will not use FRP. The final result is 12.65. In KNITRO, the average processing time is 0.85Ā s and the result is 12.65.
In conclusion, we can observe that in a 6-bus distribution network, SOCP relaxation is exact when the tolerance value is not extremely strict, and the solutions of FRP and KNITRO are the same. When we further reduce tolerance value, the SOCP relaxation is inexact and the FRP needs 11 iterations to converge. The result is slightly different from 12.65 because such strict tolerance is not applicable in real world and may affect the final solution. In general, the value range of is . We provided more detailed discussions about FRP in our previous work ().
Additional Case Study
To further validate our proposed P2P model, we provide a realistic case study simulated over one day with 1Ā h time-step. We collect four realistic energy buyersā demand and real-time electricity price from 200 Irish residents over the year of 2009, as shown in Figures 9, 10. Energy sellersā renewable energy generation curve is shown in Figure 11, which comes from the solar PV simulation data in Ireland. All data set has been processed and scaled to benchmark parameter setting, which can be found in our Supplementary Material. The constant coefficient in time-and-level of use price. And the FiT is proportionate to real-time price, such as 0.7. Transaction cost .
FIGURE 9
FIGURE 10
FIGURE 11
Table 7 summarizes every P2P market participantās cost and revenue comparison during one day. Both energy sellers and buyers can benefit from the introduction of the P2P market. The additional case study using realistic data further validates our proposed P2P model, which can benefit all participants.
TABLE 7
| Participants | Without P2P | With P2P | Benefit | Benefit/Without P2P (%) | |
|---|---|---|---|---|---|
| Sellerās revenue/euros | 1 | 97.13 | 101.25 | 4.12 | 4.24 |
| 2 | 68.234 | 70.96 | 2.72 | 3.99 | |
| Buyerās cost/euros | 1 | 45.23 | 38.95 | 6.28 | 13.88 |
| 2 | 72.62 | 62.00 | 10.62 | 14.62 | |
| 3 | 95.83 | 87.76 | 8.07 | 8.42 | |
| 4 | 128.53 | 110.21 | 18.32 | 14.25 | |
Comparison of participantās cost and revenue/euros.
Conclusion
In this article, we have proposed a novel P2P market framework to model the equilibrium of P2P transactive energy. The transaction price is determined endogenous by solving the KKT conditions of all peersā optimization problem. The equilibrium condition can be transformed to an MILP which can be processed by commercial solvers. The transaction energy flow information is further submitted to the distribution system operator and used to solve optimal power flow, so that network operation constraints can be guaranteed. The case study demonstrates that our proposed P2P market benefits all participants. The society also benefits from the P2P market.
Statements
Data availability statement
The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author.
Author contributions
BZ: conceptualization, writing-original draft preparation, software. YF: funding acquisition, validation. WW: conceptualization, methodology, writing-review and editing. YX: validation. SH: project administration. SM: supervision. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the Scientific and Technological Project of State Grid Qinghai Electric Power Company, China (SGQH0000DKJS2000127).
Conflict of interest
Author YF and YX are employed by State Grid Qinghai Electric Power Company, China.
The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fenrg.2021.701149/full#supplementary-material
Nomenclature
Abbreviations
- BFM
Branch flow model
- DERs
Distributed energy resources
- DSO
Distribution system operator
- FiT
Feed-in Tariff
- FRP
Feasibility recovery procedure
- ICT
Information and Communication Technology
- KKT
KarushāKuhnāTucker conditions
- MILP
Mixed-integer linear program
- OPF
Optimal power flow
- P2P
Peer-to-Peer
- SOCP
Second-order cone program
- TLOU
Time-and-level-of-use
Indices and sets
Set of energy buyers
Set of energy sellers
The index of energy buyer
The index of energy seller
Set of buses in radial distribution network
Set of lines in radial distribution network
Child buses of bus
The index of bus
The index of line
Parameters
Index of time periods
Feed-in Tariff
P2P transaction cost
The TLOU price of energy buy
Initial electricity price in TLOU
Constant coefficient in TLOU
The excessive energy for sell of seller
The energy demand of buyer
Constant parameter in big-M method
- , ,
Coefficients of the production cost function.
- ,
Fixed active and reactive power demand
- , ,
Resistance, reactance and impedance of line
- ,
Active generation limits at bus
- ,
Reactive generation limits at bus
- ,
Square voltage magnitudes limits at bus
Apparent power flow capacity of line
Variables
P2P transaction amount between seller and buyer
P2P transaction price between seller and buyer
- ,
Active and reactive power generation at bus
- ,
Active and reactive power flow in line
Square current magnitude in line
Square voltage magnitude at bus
The feasible set of BFM solution
References
1
AbdellaJ.KhaledS. (2018). āPeer to Peer Distributed Energy Trading in Smart Grids: A Survey.ā. Energies. 11 (6), 1560. 10.3390/en11061560
2
AbrishambafO.LezamaF.FariaP.ValeZ. (2019). āTowards Transactive Energy Systems: An Analysis on Current Trends.āEnerg. Strategy Rev.26., 100418. 10.1016/j.esr.2019.100418
3
AlamM. R.St-HilaireM.KunzT. (2017). āAn Optimal P2P Energy Trading Model for Smart Homes in the Smart Grid.āEnergy Efficiency. 10 (6),1475ā1493. 10.1007/s12053-017-9532-5
4
Alvaro-HermanaR.Fraile-ArdanuyJ.ZufiriaP. J.KnapenL.JanssensD. (2016). Peer to Peer Energy Trading with Electric Vehicles. IEEE Intell. Transport. Syst. Mag.8 (3), 33ā44. 10.1109/MITS.2016.2573178
5
BaranM.WuF. F. (1989a). Optimal Sizing of Capacitors Placed on a Radial Distribution System. IEEE Trans. Power Deliv.4 (1), 735ā743. 10.1109/61.19266
6
BaranM. E.WuF. F. (1989b). Network Reconfiguration in Distribution Systems for Loss Reduction and Load Balancing. IEEE Trans. Power Deliv.4 (2), 1401ā1407. 10.1109/61.25627
7
ButlerL.NeuhoffK. (2008). Comparison of Feed-In Tariff, Quota and Auction Mechanisms to Support Wind Power Development. Renew.Energ.33 (8), 1854ā1867. 10.1016/j.renene.2007.10.008
8
FarivarM.LowS. H. (2013). Branch Flow Model: Relaxations and Convexification-Part. IEEE Trans. Power Syst. 28, 2554ā2564. 10.1109/TPWRS.2013.2255317
9
Fortuny-AmatJ.McCarlB. (1981). A Representation and Economic Interpretation of a Two-Level Programming Problem. J.Oper. Res. Soc.32 (9), 783ā792. 10.2307/2581394
10
GiotitsasC.PazaitisA.KostakisV. (2015). āA Peer-To-Peer Approach to Energy Production.āTechnology Soc.42, 28ā38. 10.1016/j.techsoc.2015.02.002
11
Gomez-HerreraJ. A.AnjosM. F. (2019). āOptimization-Based Estimation of Power Capacity Profiles for Activity-Based Residential Loads.āInt. J.Electr. Power Energ. Syst.104 (2018), 664ā672. 10.1016/j.ijepes.2018.07.023
12
GuerreroJ.ChapmanA. C.VerbicG.GregorV. (2019). Decentralized P2P Energy Trading under Network Constraints in a Low-Voltage Network. IEEE Trans. Smart Grid. 10, 5163ā5173. 10.1109/tsg.2018.2878445
13
GuoZ.WeiW.ChenL.WangZ.MeiS. (2020). āOperation of Distribution Network Considering Compressed Air Energy Storage Unit and its Reactive Power Support Capability.āIEEE Trans. Smart Grid.11 (4), 2954ā2965. 10.1109/TSG.2020.2966742
14
HouK.TangP.LiuZ.JiaH.ZhuL. (2021). āReliability Assessment of Power Systems with High Renewable Energy Penetration Using Shadow Price and Impact Increment Methods.āFront. Energ. Res.9 (March), 1ā11. 10.3389/fenrg.2021.635071
15
KangJ.YuR.HuangX.MaharjanS.ZhangY.HossainE. (2017). āEnabling Localized Peer-To-Peer Electricity Trading Among Plug-In Hybrid Electric Vehicles Using Consortium Blockchains. IEEE Trans. Ind. Inf.13 (6), 3154ā3164. 10.1109/TII.2017.2709784
16
LiuB.ChenJ.WangH.WangQ. (2020). āRenewable Energy and Material Supply Risks: A Predictive Analysis Based on an LSTM Model.āFront. Energ. Res.8 (September), 1ā12. 10.3389/fenrg.2020.00163
17
LongC.WuJ.ZhangC.ChengM.Al-WakeelA. (2017). āFeasibility of Peer-To-Peer Energy Trading in Low Voltage Electrical Distribution Networks.āEnerg. Proced.105, 2227ā2232. 10.1016/j.egypro.2017.03.632
18
LongC.WuJ.ZhangC.ThomasL.ChengM.JenkinsN. (2018a). āPeer-to-Peer Energy Trading in a Community Microgrid.ā IEEE Power and Energy Society General Meeting. 2018 (July): 1ā5. 10.1109/PESGM.2017.8274546
19
LongC.WuJ.ZhouY.JenkinsN. (2018b). āPeer-to-Peer Energy Sharing through a Two-Stage Aggregated Battery Control in a Community Microgrid.āAppl.Energ.226 (April), 261ā276. 10.1016/j.apenergy.2018.05.097
20
MengelkampE.GƤrttnerJ.RockK.KesslerS.OrsiniL.WeinhardtC. (2018). āDesigning Microgrid Energy Markets.āAppl.Energ.210, 870ā880. 10.1016/j.apenergy.2017.06.054
21
MorstynT.McCullochM. D. (2019). āMulticlass Energy Management for Peer-To-Peer Energy Trading Driven by Prosumer Preferences.āIEEE Trans. Power Syst.34 (5), 4005ā4014. 10.1109/TPWRS.2018.2834472
22
MorstynT.TeytelboymA.MccullochM. D.McCulloch (2019). āBilateral Contract Networks for Peer-To-Peer Energy Trading.āIEEE Trans. Smart Grid. 10 (2), 2026ā2035. 10.1109/TSG.2017.2786668
23
NguyenS.PengW.SokolowskiP.AlahakoonD.YuX. (2018). āOptimizing Rooftop Photovoltaic Distributed Generation with Battery Storage for Peer-To-Peer Energy Trading.āAppl.Energ.228, 2567ā2580. 10.1016/j.apenergy.2018.07.042
24
PyrgouA.KyliliA.FokaidesP. A. (2016). āThe Future of the Feed-In Tariff (FiT) Scheme in Europe: The Case of Photovoltaics.āEnergy Policy.95, 94ā102. 10.1016/j.enpol.2016.04.048
25
QiM.YangH.WangD.LuoY.ZhangS.LiaoS. (2019). āProsumers Peer-To-Peer Transaction Decision Considering Network Constraints.ā2019 3rd IEEE Conference on Energy Internet and Energy System Integration. Ubiquitous Energy Network Connecting Everything. EI2 2019, no. 71931003, 643ā647. 10.1109/EI247390.2019.9061909
26
ShresthaA.BishwokarmaR.ChapagainA.BanjaraS.AryalS.MaliB.et al (2019). āPeer-to-Peer Energy Trading in Micro/Mini-Grids for Local Energy Communities: A Review and Case Study of Nepal.āIEEE Access.7, 131911ā131928. 10.1109/ACCESS.2019.2940751
27
SorinE.BoboL.PierreP. (2018). Consensus-Based Approach to Peer-To-Peer Electricity Markets with Product Differentiation. IEEE Trans.Power Syst.34 (2), 994ā1004. 10.1109/TPWRS.2018.2872880
28
SousaT.SoaresT.PinsonP.MoretF.BarocheT.SorinE. (2019). āPeer-to-Peer and Community-Based Markets: A Comprehensive Review.āRenew.Sustainable Energ. Rev.104. (January), 367ā378. 10.1016/j.rser.2019.01.036
29
TusharW.ChaiB.YuenC.SmithD. B.WoodK. L.YangZ.et al (2015). āThree-Party Energy Management with Distributed Energy Resources in Smart Grid.āIEEE Trans. Ind. Electron.62.(4), 2487ā2498. 10.1109/TIE.2014.2341556
30
TusharW.YuenC.Mohsenian-radH.SahaT.Vincent PoorH.WoodK. L. (2018). āTransforming Energy Networks via Peer-To-Peer Energy Trading: The Potential of Game-Theoretic Approaches.ā IEEE Signal Processing Magazine.35, (July), 90ā111. 10.1109/msp.2018.2818327
31
TusharW.SahaT. K.YuenC.AzimM. I.MorstynT.PoorH. V.et al (2020a). āA Coalition Formation Game Framework for Peer-To-Peer Energy Trading.ā Appl.Energ.261. (December 2019), 114436. 10.1016/j.apenergy.2019.114436
32
TusharW.SahaT. K.YuenC.SmithD.PoorH. V. (2020b). āPeer-to-Peer Trading in Electricity Networks: An Overview.āIEEE Trans. Smart Grid. 11 (4), 3185ā3200. 10.1109/TSG.2020.2969657
33
WeiW.WangJ.LiN.MeiS. (2017). Optimal Power Flow of Radial Networks and its Variations: A Sequential Convex Optimization Approach. IEEE Trans. Smart Grid. 8 (6), 2974ā2987. 10.1109/TSG.2017.2684183
34
ZhangC.WuJ.ChengM.ZhouY.LongC. (2016). āA Bidding System for Peer-To-Peer Energy Trading in a Grid-Connected Microgrid.ā Energ. Proced.103. (April), 147ā152. 10.1016/j.egypro.2016.11.264
35
ZhangC.WuJ.ZhouY.ChengM.LongC. (2018). āPeer-to-Peer Energy Trading in a Microgrid.ā Appl.Energ.220 (December 2017), 1ā12. 10.1016/j.apenergy.2018.03.010
Summary
Keywords
distribution network, market equilibrium, optimal power flow, peer-to-peer trading, transactive energy
Citation
Zheng B, Fan Y, Wei W, Xu Y, Huang S and Mei S (2021) Distribution Optimal Power Flow With Energy Sharing Via a Peer-To-Peer Transactive Market. Front. Energy Res. 9:701149. doi: 10.3389/fenrg.2021.701149
Received
27 April 2021
Accepted
21 June 2021
Published
15 July 2021
Volume
9 - 2021
Edited by
Thomas Alan Adams, McMaster University, Canada
Reviewed by
Emmanuel Ogbe, ExxonMobil, United States
Chau Yuen, Singapore University of Technology and Design, Singapore
Updates
Copyright
Ā© 2021 Zheng, Fan, Wei, Xu, Huang and Mei.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Shaowei Huang, huangsw@mail.tsinghua.edu.cn
This article was submitted to Process and Energy Systems Engineering, a section of the journal Frontiers in Energy Research
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.