Next Article in Journal
Social Aspects of Establishing Energy Cooperatives
Previous Article in Journal
Research on Medium- and Long-Term Hydropower Generation Forecasting Method Based on LSTM and Transformer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparative Analysis of Market Clearing Mechanisms for Peer-to-Peer Energy Market Based on Double Auction

by
Kisal Kawshika Gunawardana Hathamune Liyanage
and
Shama Naz Islam
*
School of Engineering, Deakin University, Waurn Ponds, VIC 3216, Australia
*
Author to whom correspondence should be addressed.
Energies 2024, 17(22), 5708; https://doi.org/10.3390/en17225708
Submission received: 25 September 2024 / Revised: 8 November 2024 / Accepted: 12 November 2024 / Published: 14 November 2024
(This article belongs to the Section A1: Smart Grids and Microgrids)

Abstract

:
This paper aims to develop an optimisation-based price bid generation mechanism for the sellers and buyers in a double-auction-aided peer-to-peer (P2P) energy trading market. With consumers being prosumers through the continuous adoption of distributed energy resources, P2P energy trading models offer a paradigm shift in energy market operation. Thus, it is essential to develop market models and mechanisms that can maximise the incentives for participation in the P2P energy market. In this sense, the proposed approach focuses on maximising profit at the sellers, as well as maximising cost savings at the buyers. The bids generated from the proposed approach are integrated with three different market clearing mechanisms, and the corresponding market clearing prices are compared. A numerical analysis is performed on a real-life dataset from Ausgrid to demonstrate the bids generated from sellers/buyers, as well as the associated market clearing prices throughout different months of the year. It can be observed that the market clearing prices are lower when the solar generation is higher. The statistical analysis demonstrates that all three market clearing mechanisms can achieve a consistent market clearing price within a range of 5 cents/kWh for 50% of the time when trading takes place.

1. Introduction

The increasing uptake of renewable energy sources, particularly as a means of distributed generation, has created new opportunities and challenges in the traditional energy system paradigm [1]. Energy consumers have transformed into energy prosumers with an enhanced capacity to participate in energy transactions. In an electricity network comprising a number of prosumers, there may be scenarios where some prosumers experience energy excess while others suffer from an energy deficit. In effect, the prosumers with excess generation can play the role of sellers, whereas the prosumers with an energy deficit can be considered buyers. As a result, these prosumers can form a local or peer-to-peer (P2P) energy market so that the supply/demand balance can be achieved in a localised manner [2]. According to the International Renewable Energy Agency (IRENA), P2P energy trading is defined as a model that “creates an online marketplace where prosumers and consumers can trade electricity, without an intermediary, at their agreed price” [3].
There is a massive amount of literature on P2P energy markets, which has primarily focused on the market models, optimisation and control mechanisms, as well as pricing structures. One of the very first papers on P2P energy trading [4] highlighted different energy trading mechanisms such as bill sharing, the mid-market rate and the supply/demand ratio and evaluated them through a multi-agent simulation framework in terms of energy balance, flat power profile and self-sufficiency. An overview of the P2P energy trading concepts and challenges in the virtual and physical layers was presented in [5]. In addition, the authors elaborated on different technical approaches, such as game theory and mathematical optimisation. On the other hand, the authors in [6] categorised P2P energy markets as full, community-based and hybrid P2P mechanisms. A bilateral trading network for representing the P2P energy market was formulated in [7], where real-time and forward markets were introduced, along with distributed price adjustment mechanisms.
A locality electricity trading system was designed in [8] which modelled the interactions between prosumers and utilities and, at the same time, optimised the operation of residential loads using a genetic algorithm through the utilisation of a transactive energy framework. A similar market model was investigated in [9], where the prosumers optimised their individual energy usage at the first stage to utilise their trading resources at the second stage best through a game theoretic analysis. The P2P energy market was modelled as a bilevel framework in [10], where distributed energy resources for a prosumer were scheduled at the lower level and the upper level managed bilateral trading among the prosumers. The interaction between prosumers and the aggregator is modelled as a non-cooperative game in [11] to investigate the impact of the aggregator’s decisions on the market clearing prices. The following subsection outlines a detailed literature review of the relevant works on P2P energy trading, highlighting the considerations of the market models, optimisation problems and pricing strategies, as well as auction mechanisms.

1.1. Related Works

Existing research on P2P energy trading explores different market architectures, including centralised and decentralised models for managing the energy transactions. To avoid reliance on a central aggregator in managing energy transactions, the authors in [12] developed a decentralised bilateral energy trading framework which took into account the product differentiation, as well as the network constraints, to optimise P2P energy trading. Similarly, a bilateral energy trading model was proposed in [13] which allowed for differentiated pricing decisions with a hierarchical pricing structure and was solved using the alternating direction method of multiplier in a decentralised manner. A hierarchical P2P energy trading model was developed in [14] with community, district and grid layers which included residential, commercial and industrial users. A consensus-based P2P energy trading algorithm was developed in [15] for multiple bilateral trading in a decentralised manner while considering product differentiation. The authors in [16] considered joint trading of power and uncertainty in electricity generation and demand by maximising the utilisation of flexible loads, with the aim of achieving a greater balance in uncertain supply/demand in the local network. The authors in [17] developed a minimum cost rolling horizon optimisation model to optimise the bids from prosumers through model predictive control while considering the impact of the uncertainty of renewable energy.
A number of research papers have also focussed on the different pricing mechanisms used for P2P energy trading. The authors in [18] reviewed synchronous and asynchronous energy pricing mechanisms and categorised the interactions between energy pricing and network service pricing for different market players. The impact of grid tariff designs on P2P energy trading markets and how different P2P market mechanisms can be embedded into the wholesale electricity market were discussed in [19]. The uncertainty in renewable energy generation and variations in user preferences can bring new challenges to the optimum trading decisions due to inaccuracies in the day-ahead predictions [20]. To mitigate these challenges, a new pricing mechanism is developed in [21], comprising the uncertainty marginal price, preference marginal price and local marginal price. Given that there can be variations in the generation and demand at the prosumers, there can be deviations in the actual amount of energy that is traded. In this vein, the authors in [22] developed a penalty mechanism that considered price, quantity and the percentage deviation from the agreed amount to calculate the penalty price. A Stackelberg game theoretical model was developed in [23] to determine the optimal prices for P2P energy trading while optimising the local energy consumption at the sellers and prioritising the load preferences at the buyers.
Given that P2P energy trading among prosumers involves balancing the incentives or utilities for both sellers and buyers, there is a need to formulate optimisation problems at the seller and buyer sides which take into account the different objectives of different prosumers and any constraints imposed by the generation and/or storage achievable. From this perspective, the authors in [24] develop a mixed-integer linear programming problem to minimise the total cost to prosumers by taking into account the purchases from the electricity grid and export from distributed generation, as well as the associated investment costs. The problem of the optimal energy dispatch for multiple microgrids was studied in [25] by considering optimisation for individual microgrids at the lower level and the energy transactions between multiple microgrids and the market operator at the upper level, ensuring parallel decision making for multiple stakeholders. The authors in [26] evaluated the optimal pricing strategies for intra-microgrid and inter-microgrid P2P energy trading in a multi-microgrid scenario. A credit-rating-based energy trading strategy was proposed in [27], where the authors developed a logistic-regression-based scorecard to model the retailer characteristics and formulate the energy transaction problem as a multi-leader, multi-follower dynamic game.
P2P energy market models often involve auction mechanisms to settle the market, comprising multiple sellers and buyers. These auction mechanisms can be single-sided (involving either the seller or buyer) or double-sided (in which both sellers and buyers participate). Double auction (DA) models have been a widely used mechanism to evaluate the market clearing conditions in P2P energy trading markets, as a DA ensures enhanced fairness and decision making power for both sellers and buyers. In a double auction market, both sellers and buyers submit bids, and the auctioneer (e.g., the aggregator or the central energy management system) decides which sellers and buyers will participate and at what price the market will be cleared. Given that both sellers and buyers have equal power in determining the price, the double auction method can equalise the electricity prices among sellers and buyers. Ranking buyers and sellers in a way that maximises the utilities of both parties in DA markets can be considered rational and reasonable. The authors in [17] optimised the bids using a model-predictive-control-based cost minimisation model for a double auction market, where the bidding strategies were updated using automatic learning. Continuous bidding curves for prosumers were investigated in the double auction framework proposed by [28], where the network operator creates groups of prosumers and decides their participation based on other prosumer groups.
A social-welfare-maximising auction scheme was proposed in [29] which ensured that the total revenue of the sellers and the total cost of the buyers matched with each other, while different participants were priced differently. The authors in [30] developed a uniformly priced double auction mechanism embedded with smart contracts and implemented the method developed in Ethereum to integrate blockchain technologies. A two-stage double auction mechanism for interconnected microgrids was designed in [31], where the first stage managed auctions within the individual microgrid and the second stage considered auctions between multiple microgrids. The authors also included a fair cost distribution algorithm in the auction mechanisms developed. The authors in [32] used an iterative double auction mechanism in which participants could update their bids in an iterative manner based on the market clearing decisions made in the previous rounds.
A real-time distributed P2P energy trading strategy based on model predictive control was developed in [33], where the authors designed a continuous double-auction-based trading mechanism considering prosumers with multiple trading preference grades. A community-based P2P energy trading market for the provision of ancillary services is designed in [34], where the prosumers optimise their bidding strategies to maximise social welfare. The authors in [35] considered second-life batteries from electric vehicles in an P2P energy trading model and developed a double-auction-based trading mechanism with average pricing for market clearing that allowed prosumers to re-bid. A dynamic operating envelope was integrated with a double auction mechanism in [36], where the prosumers could not submit bids that violated the network export/import limits, thus ensuring benefits for both the prosumers and the network operators. A co-simulation framework that simulated the distribution network performance and blockchain platforms was developed in [37], which considered the impact of double-auction-based P2P energy trading in medium-voltage distribution networks.
To factor uncertainty into the trading behaviour of prosumers, a reputation index based on trading patterns and electrical distance was integrated into the P2P energy trading mechanism and an iterative double auction model was developed in [38] utilising a self-adaptation algorithm. The authors in [39] implemented a smart auction-based P2P energy trading model where the prosumers could update bids using the probability of bidding decisions and consequences through a deep learning approach. An enhanced bidding strategy was designed in [40] which used two different supply/demand ratios to determine the trading decisions and tariffs based on price quotes and excess power. Given that the buyers and sellers are prioritised as soon as a match is obtained in the double auction mechanism, the time sequence information can be further utilised to evaluate the contribution of a trading pair in network congestion, as investigated by the authors in [41]. A mechanism for determining a uniform trading price based on the correlation between the prosumer bids and the market clearing prices in an iterative manner was designed in [42].

1.2. Motivation, Contributions and Organisation

Though there has been extensive work on developing different bidding strategies, game theoretical models and optimisation algorithms and integrating them with double auction models, very few research papers have investigated the impact of different market clearing mechanisms in the context of double-auction-based P2P energy trading. It is important to investigate how optimising the prosumer bids influences the market clearing prices for different market clearing mechanisms. For effective P2P energy trading to take place, there should be appropriate consideration of suitable market clearing models. In this sense, it is highly relevant and timely to investigate the available market clearing mechanisms in terms of their effectiveness in ensuring fairness and consistency in the market clearing prices. To the best of our knowledge, there is a lack of comparative analyses among different market clearing mechanisms for P2P energy trading applications. To address this research gap, we make the following key contributions in this work:
  • A quadratically constrained quadratic optimisation problem to determine the optimum seller/buyer bids is formulated to maximise the profit at the sellers and the savings at the buyers. The problem is solved simultaneously for both the amount of energy sold (purchased) and the seller (or buyer) price on the seller (or buyer) side.
  • The optimised bids from the sellers and buyers are integrated with a double auction market and three different market clearing mechanisms; namely, average, trade reduction (TR) and Vickrey—Clarke—Groves (VCG) mechanisms are evaluated in comparing the market clearing prices.
  • Numerical simulations are performed on the P2P energy trading model developed using a real-life solar generation and electricity demand dataset over 8 months of data during 2012–2013. The comparative analysis demonstrates a lower market clearing price for the VCG mechanism in comparison to the two other market clearing mechanisms.
This paper is organised in the following manner. The optimisation of the price bids on the seller and buyer sides is formulated in Section 2. The double auction mechanism and the associated market clearing methods for P2P energy trading are discussed in Section 3. Numerical simulation of the market clearing methods is performed in Section 4 using a real-life electricity generation and demand dataset. Finally, concluding remarks are presented in Section 5.

2. Optimisation of the Price Bids in a P2P Energy Market

In this section, an optimum bid generation mechanism for buyers and sellers in a P2P energy market is discussed. The system model under consideration comprises L number of houses (indexed by [ 1 , L ] ) equipped with solar generation. At a certain time interval, the solar generation and the load demand at the th house are denoted as G and D , respectively. Houses with excess solar generation ( G > D ) are denoted as sellers, while houses with an energy deficit ( G < D ) are denoted as buyers. The sellers aim to maximise the profit they earn from selling their excess generation. On the other hand, the buyers try to maximise the savings they achieve by reducing their purchases from the utility. To achieve these goals, the ith seller optimises the energy sold x i and the associated price p s i . Similarly, the jth buyer optimises the energy purchased x j and the associated price p b j . The feed-in tariff and the utility rate are defined as P f and P u , respectively. The sellers aim to achieve a profit above the profit threshold P th , and the buyers aim to obtain savings more than the savings threshold P sav . These thresholds are considered for every single trading interval (i.e., 5 min, 15 min or 30 min intervals). In this paper, a real-time pricing model is considered, which varies across the different time intervals of the day. At the beginning, the sellers and buyers send their energy generation and demand information to a central energy management system, which solves two optimisation problems to determine the optimum bids for the sellers and buyers. These optimisation problem formulations are discussed in the following two subsections.

2.1. The Seller Side

The optimisation problem to maximise the profit of the sellers can be formulated as follows:
max p s i , x i i p s i x i
subject to :
x i 0
x i D i G i
i x i j G j D j
P f < p s i < P u
i p s i x i P th
Here, the objective function (1) aims to maximise the profit at the sellers by optimising the price and energy sell bids for each seller. The constraint in (2) denotes that the value for energy sold cannot be negative. The energy sold by each seller should be limited by the excess generation at the seller, as defined in (3). The total energy sold by all sellers cannot be more than the total energy deficit of all buyers, as specified in (4). The sell prices asked by each seller have to be in the range between the feed-in tariff and the utility rate. If the trading price is less than the feed-in tariff, the P2P energy trading will not be cost-effective for sellers. On the other hand, if the trading price is higher than the utility rate, then the buyers will prefer to purchase energy directly from the utility. The sellers in the P2P energy market aim to achieve a minimum profit P th for each trading interval, which is represented by (6).

2.2. The Buyer Side

To maximise the energy cost savings at the buyers, the optimisation problem on the buyer side can be formulated as follows:
max x j , p b j j ( D j G j ) P u j p b j x j
subject to :
x j 0
x j D j G j
j x j i G i D i
P f < p b j < P u
j ( D j G j ) P u j p b j x j P sav
The objective function in (7) aims to maximise the savings achieved by the buyers through not purchasing electricity from the utility grid. The first term in (7) denotes the energy cost if the energy deficit is purchased from the utility grid. On the other hand, the second term denotes the energy cost if energy is purchased from the P2P trading market. The constraints in (8) and (9) indicate that the energy purchased cannot be negative and is limited by the energy deficit at the buyers, respectively. The total energy purchased cannot be more than the total excess generation at the sellers. The trading price has to be limited between feed-in tariff and utility rate, as specified in (11). The difference between the electricity cost for purchasing energy from the utility grid and P2P energy market should be higher than a certain minimum amount P sav for each trading interval, which is incorporated in the constraint in (12).
The aforementioned optimisation problems can be categorised as quadratically constrained quadratic programming and can be solved using branch and bound methods. Once the optimum price bids and energy sell/purchase amounts are obtained at the central EMS, these outputs are forwarded to the buyers and sellers, who can verify and approve these bids for the DA process.

3. Double-Auction-Based Market Clearing

DA mechanisms enable both sellers and buyers to submit bids in the P2P energy market and obtain the market clearing decisions through joint consideration of these bids. In this paper, the central EMS is considered to be the auctioneer. The DA process begins with natural ordering, where seller bids are sorted in ascending order, while buyer bids are sorted in descending order. Then, a breakeven index is determined to be the smallest n [ i , j ] for which buyer bid p b j is greater than seller bid p s i . Once the breakeven index is obtained, the first n sellers and buyers are selected to participate in the market, and the market clearing prices are computed based on the bids from the selected sellers and buyers. There are different market clearing mechanisms that can be adopted by the DA market. In this paper, three such mechanisms are investigated, namely average, TR and VCG mechanisms. The flowchart in Figure 1 illustrates the DA-based trading mechanisms with different market clearing strategies.

3.1. The Average Mechanism

With the average mechanism, the market clearing price is determined to be the average of the seller and buyer bids at the breakeven index n. Thus, the market clearing price for the average mechanism is defined as [43]
P avg = p s n + p b n 2
The first n sellers will sell energy, and the first n buyers will purchase it. This scheme aims to strike a balance between the seller and buyer bids, hence promoting fairness. It offers a strong budget balance given that the auctioneer does not gain or lose in terms of monetary incentives. In this scheme, the buyers (or sellers) can benefit by reporting a smaller (or higher) bid, allowing buyers to pay less and sellers to ask for more.

3.2. The Trade Reduction Mechanism

With the TR mechanism, the first n 1 sellers and buyers participate in the trading. The sellers receive the highest sell bid, p s n , at the breakeven index, and the buyers pay the lowest buying price p b n , where the difference between p s n and p b n is maintained by the auctioneer. Thus, the market clearing price in the TR mechanism is given by [43]
P TR = p s n seller [ 1 , n 1 ] p b n buyer [ 1 , n 1 ]
In this mechanism, the first n 1 sellers and buyers participate in the trading. The sellers receive more than what they asked for given that p s n > p s n 1 . On the other hand, buyers pay less than what they offered because p b n < p b n 1 . This mechanism is less efficient in comparison to the average mechanism given that the n t h seller and buyer do not trade even if p b n > p s n .
Figure 1. Double-auction-based P2P energy trading with three different market clearing mechanisms.
Figure 1. Double-auction-based P2P energy trading with three different market clearing mechanisms.
Energies 17 05708 g001

3.3. The Vickrey–Clarke–Groves (VCG) Mechanism

In the VCG mechanism, there can be four different cases, and the market clearing price for sellers and buyers are computed accordingly:
1.
If p s n + 1 > p b n and p b n + 1 < p s n , then the market clearing price is represented by [44]
P VCG = p b n seller [ 1 , n ] p s n buyer [ 1 , n ]
2.
If p s n + 1 < p b n and p b n + 1 < p s n , then the market clearing price is represented by [44]
P VCG = p s n + 1 seller [ 1 , n ] p s n buyer [ 1 , n ]
3.
If p s n + 1 > p b n and p b n + 1 > p s n , then the market clearing price is denoted by [44]
P VCG = p b n seller [ 1 , n ] p b n + 1 buyer [ 1 , n ]
4.
If p s n + 1 < p b n and p b n + 1 > p s n , then the market clearing price is denoted by [44]
P VCG = p s n + 1 seller [ 1 , n ] p b n + 1 buyer [ 1 , n ]
In this scheme, the difference between the market clearing prices of the sellers and buyers is paid by the auctioneer; thus, a balanced budget cannot be achieved. Since the market clearing prices of the sellers and buyers are determined by each other’s bids, the sellers and buyers cannot provide misleading bids without losing their incentives.

4. Results of the Comparative Analysis and Discussion

In this section, a comparative analysis was performed across three different market clearing mechanisms, namely the average, TR and VCG mechanisms, for a group of six residential users integrated with rooftop solar panels. The generation and demand profiles of these houses were obtained from the Ausgrid solar home electricity dataset from 1 July 2012 to 30 June 2013. The dataset contains solar generation and electricity demand information for 300 households across different postcodes in New South Wales, Australia. Many of these houses are equipped with a controlled load for hot water systems. The data are available for every 30 min interval for one year. The dataset also includes information about the postcodes and solar generation capacities of the installations. The dataset has been widely used in different research papers on P2P energy trading, particularly due to its relevance to the geographical context of the Southern Hemisphere [45,46,47]. However, it should be noted that the proposed methods can be similarly applied to other datasets, and an equivalent performance can be expected for other geographical conditions. The households selected from this dataset have solar panel generation capacities of 3.78 kWh, 1.62 kWh, 1 kWh, 1 kWh, 1 kWh and 2 kWh, respectively. Note that the analysis was performed over the months July 2012–September 2012 and February 2013–June 2013. This was due to the unavailability of some user data during October 2012–January 2013. The utility rate and feed-in tariff are considered 40 cents/kWh and 10 cents/kWh, respectively. The profit and savings thresholds are assumed to be 0.5 cents and 1 cent for every half-hour interval. The generation and demand data for the aforementioned six houses are integrated with the optimum energy trading algorithms to compute the bids to maximise the seller profits and buyer savings. Then, the bids generated are forwarded to the double-auction-based market clearing mechanisms, and the market clearing prices obtained through the average, TR and VCG mechanisms are compared.

4.1. Bidding Patterns of the Sellers and Buyers

Figure 2a,b represent the optimum bids generated for buyers and sellers by solving the optimisation problem in Section 2 and then averaging the bids over all the days in the 8 months considered in this study. Since the same prosumer can be a seller or a buyer at different time intervals, the same set of houses is present in both figures. However, it is worth noting that the same house cannot be a seller and a buyer at the same time. It can be observed that the bids at the sellers are limited between 0 and 16.5 cents/kWh, whereas for buyers, the bids are between 0 and 15.5 cents/kWh. Note that in some cases, the average bids are less than the feed-in tariff. This is because of averaging over 242 days, on some of which the prosumer did not bid as a seller/buyer, resulting into zero bid values for the seller/buyer. On average, House 1 submits the highest bid as a seller, while House 6 submits the highest bid as a buyer. As sellers, Houses 1 and 3 submit higher bids in the morning and late afternoon compared to midday, when the solar generation is expected to be higher for all houses. This is because the sellers can sell higher excess generation at a lower price and achieve the same profit threshold. On the other hand, the remaining sellers have a higher average bid at midday. This indicates that these sellers participate in bidding mostly during the midday period. The buyers also bid for a higher price during the morning and late afternoon, when they have a greater energy deficit. However, House 3 bids the lowest as a buyer, which may be due to its smaller energy deficit. As a buyer, House 1 bids the highest during the morning, indicating a significant energy deficit during this period.

4.2. Seasonal Trends in Market Clearing Prices

Figure 3a–d show the average market clearing prices across the different time intervals of the day during the months of February, April, July and September when the average, VCG and TR mechanisms are used. In Australia, the summer months include September to March, while the winter months are April to August. There are five different market clearing prices given that with the TR and VCG mechanisms, the market clearing price is different for sellers and buyers. The prices are averaged over all the days in a specific month to obtain the average market clearing prices. It can be observed that in the winter months, the market clearing stops by 5:30 p.m., whereas in summer, the market clearing continues until 8:00 p.m. due to the extended daytime during summer. The month of September shows an exception, which may be due to the fact that daylight has not increased at the beginning of spring. In all cases, the market clearing price for the average mechanism lies between the market clearing prices for sellers and buyers in the TR mechanism. The VCG mechanism leads to a lower market clearing price in all cases unless there is high penetration of solar generation, as observed for the month of September. In this case, the VCG mechanism has a lower market clearing price compared to that of the other mechanisms during early morning and late afternoon periods. This is because in the VCG mechanism, buyers pay less than the price they bid, and the central auctioneer has to balance the difference between what the buyers pay and what the sellers receive. It can also be noted that the difference between the buyer and seller market clearing prices is higher in July for the TR mechanism, whereas the difference is minimal for the VCG mechanism. On the other hand, in February, the VCG mechanism experiences the highest difference between the seller and buyer market clearing prices, while this difference is smaller for the TR mechanism.
Figure 4 illustrates the average market clearing prices for different months across the average, TR and VCG mechanisms. The market clearing prices are averaged over all samples and all time intervals in a certain month. Only the months from February to September are considered, for which generation and demand data are available for all of the houses. It can be noted that the average market clearing prices lie in a range between 3 cents/kWh and 7.5 cents/kWh for the various schemes. The overall trend for the average and TR mechanisms incorporates a higher market clearing price in the summer months, which gradually decreases during the winter months. For the VCG mechanism, a specific pattern cannot be observed. However, it is worth noting that the VCG mechanism has a lower market clearing price, similar to what was observed in Figure 3. Also, there is a greater difference between the market clearing prices for sellers and buyers in the VCG mechanism in comparison to the TR mechanism.

4.3. Statistical Analysis of the Market Clearing Prices

Figure 5a,b represent the mean and standard deviation of the market clearing prices on different days of the different months considered in the analysis for the average, TR and VCG mechanisms. The mean market clearing price demonstrates a similar trend as in Figure 3. That is, the market clearing prices for the VCG mechanism are lower than those of the average and TR mechanisms. However, the average mechanism has a slightly higher market clearing price in comparison to the TR mechanism during 1–4 p.m., which was not observed in Figure 3. On average, the highest daily market clearing prices attained by the average and TR mechanisms are 15.5 cents/kWh and 17 cents/kWh, occurring at 9 a.m. On the other hand, the highest daily market clearing price for the VCG mechanism is 13 cents/kWh, occurring at 3 p.m. From Figure 5b, it can be observed that the highest standard deviation in the market clearing prices occurs during the early morning and late afternoon periods, when the solar generation in different houses has a higher variation. The highest standard deviation is 8.3 cents/kWh, which occurs for the TR mechanism at 5.30 p.m. The VCG mechanism has a lower standard deviation compared with the average and TR mechanisms during the early morning and late afternoon periods. The VCG mechanism has a similar trend to that in the TR mechanism at midday, which is slightly greater than that for the average mechanism.
Figure 6 presents a box–whisker plot for the daily average market clearing prices across the average, TR and VCG mechanisms. The market clearing prices for each day in each month were averaged, and then only those days on which the market clearing prices for all mechanisms were non-zero were selected. This resulted in 151 samples, which were used to generate the box–whisker plot. The bottom and top edges of the boxes indicate the 25th and 75th percentiles of the data, respectively. The whiskers represent the minimum and maximum market clearing prices for each mechanism. The median of the data is represented by the line in the middle of each box, while any outliers are represented by circles. It can be observed that the VCG mechanism has more outliers in comparison to the other mechanisms, but these are still less than 5% of the samples. The median daily average market clearing prices for the average, VCG and TR mechanisms can be observed as 14.5 cents/kWh, 10 cents/kWh (11 cents/kWh for buyers) and 14 cents/kWh (15 cents/kWh for buyers). As seen from the figure, the VCG mechanism has greater variation in the market clearing prices across different samples. However, for all mechanisms, the difference between the 25th and 75th percentiles (i.e., the width of the box) is consistent and is approximately 4 cents/kWh.

4.4. Comparison of the Different Market Clearing Prices

As can be observed from Figure 3, Figure 5 and Figure 6, there is a relative pattern in the market clearing prices for the different mechanisms. The market clearing price for the average mechanism lies between that of the seller and buyer market clearing prices of the TR mechanism. This is expected from (13) and (14), which show that the market clearing price for the average mechanism is equivalent to the arithmetic mean of the seller and buyer market clearing prices in the TR mechanism. The VCG mechanism results in a lower market clearing price in most cases given that the market clearing price for buyers (either p s n or p b n + 1 ) is lower than the market clearing price ( p b n ) in the TR mechanism. It is worth noting that there is a smaller difference between the buyer and seller market clearing prices in the VCG mechanism in comparison to the TR mechanism. This is because in the VCG mechanism, sellers and buyers determine each other’s market clearing prices and hence enable the maximum social welfare. Another benefit of the VCG mechanism is that the market clearing price varies less over the course of the day, while the other mechanisms exhibit higher market clearing prices during periods of low solar generation. The VCG mechanism has a lower standard deviation in comparison to that of the other mechanisms, which may lead to less market volatility.

4.5. Comparison with Random Bidding

In this section, a comparison of the market clearing prices is demonstrated between scenarios in which the optimal bids are used and scenarios in which randomly generated bids are used. Many existing research papers have considered randomly generated bids in the DA process [43,48]. These bids are often generated as uniformly distributed random numbers between the feed-in tariff and the utility rate. Figure 7a,b illustrate the market clearing prices for the optimally and randomly generated bids, respectively. These bids were generated for the 30 days of the month of June, and the market clearing prices for the three mechanisms were computed accordingly. The market clearing prices were then averaged over the number of days and plotted in this figure. It can be observed that the market clearing prices with randomly generated bids are higher for all the market clearing mechanisms in comparison to those of the optimally generated bids. Moreover, there is greater variation between the buyer and seller market clearing prices in the TR and VCG mechanisms when using random bids. Similarly to the optimally generated bids, the random bid scenario exhibits a lower market clearing price for the VCG mechanism. In addition, the market clearing prices for the average mechanism lie between the seller and buyer market clearing prices in the trade reduction mechanism. A clear difference that can be observed between the use of optimally and randomly generated bids is that the market clearing prices are more stable during stable solar generation periods when using optimally generated bids, while the market clearing prices are more volatile when using randomly generated bids.

5. Conclusions

This paper investigates a double-auction-aided P2P energy trading mechanism where the energy sold/purchased and the seller/buyer prices are optimised to maximise the profit and cost savings for the seller and buyer, respectively. Based on the optimum price bids generated at the sellers and buyers, three different market clearing strategies, namely the average, TR and VCG mechanisms, are evaluated and compared. The developed method is evaluated for a real-life energy generation and demand dataset, and the market clearing prices obtained for the three market clearing mechanisms are compared. The numerical results demonstrate that the VCG mechanism leads to a lower market clearing price compared with that of the other market clearing mechanisms across different months of the year. Moreover, the market clearing prices decrease during periods of higher solar generation given that the participants aim for specific profit and savings thresholds. Future work will focus on developing a predictive model for market clearing prices based on user bids and, in effect, influencing user strategies to maximise their utilities in a double auction market.

Author Contributions

Conceptualization, S.N.I.; methodology, K.K.G.H.L.; formal analysis, K.K.G.H.L.; investigation, K.K.G.H.L.; resources, S.N.I.; writing—original draft preparation, S.N.I.; project administration, S.N.I. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Australian Renewable Energy Agency. Distributed Energy Resources. 2024. Available online: https://arena.gov.au/renewable-energy/distributed-energy-resources/ (accessed on 31 October 2024).
  2. Long, C.; Wu, J.; Zhang, C.; Thomas, L.; Cheng, M.; Jenkins, N. Peer-to-peer energy trading in a community microgrid. In Proceedings of the 2017 IEEE Power & Energy Society General Meeting, Chicago, IL, USA, 16–20 July 2017; pp. 1–5. [Google Scholar]
  3. International Renewable Energy Agency. Peer-to-Peer Electricity Trading Innovation Landscape Brief. 2020. Available online: https://www.irena.org/-/media/Files/IRENA/Agency/Publication/2020/Jul/IRENA_Peer-to-peer_electricity_trading_2020.pdf (accessed on 1 November 2024).
  4. 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]
  5. Tushar, W.; Saha, T.K.; Yuen, C.; Morstyn, T.; McCulloch, M.D.; Poor, H.V.; Wood, K.L. A motivational game-theoretic approach for peer-to-peer energy trading in the smart grid. Appl. Energy 2019, 243, 10–20. [Google Scholar] [CrossRef]
  6. Sousa, T.; Soares, T.; Pinson, P.; Moret, F.; Baroche, T.; Sorin, E. Peer-to-peer and community-based markets: A comprehensive review. Renew. Sustain. Energy Rev. 2019, 104, 367–378. [Google Scholar] [CrossRef]
  7. Morstyn, T.; McCulloch, M.D. Multiclass Energy Management for Peer-to-Peer Energy Trading Driven by Prosumer Preferences. IEEE Trans. Power Syst. 2019, 34, 4005–4014. [Google Scholar] [CrossRef]
  8. Hanumantha Rao, B.; Arun, S.L.; Selvan, M.P. An electric power trading framework for smart residential community in smart cities. IET Smart Cities 2019, 1, 40–51. [Google Scholar] [CrossRef]
  9. Zhang, Z.; Tang, H.; Wang, P.; Huang, Q.; Lee, W.J. Two-Stage Bidding Strategy for Peer-to-Peer Energy Trading of Nanogrid. IEEE Trans. Ind. Appl. 2020, 56, 1000–1009. [Google Scholar] [CrossRef]
  10. Yao, H.; Xiang, Y.; Hu, S.; Wu, G.; Liu, J. Optimal Prosumers’ Peer-to-Peer Energy Trading and Scheduling in Distribution Networks. IEEE Trans. Ind. Appl. 2022, 58, 1466–1477. [Google Scholar] [CrossRef]
  11. Wang, Z.; Dong, L.; Shi, M.; Qiao, J.; Jia, H.; Mu, Y.; Pu, T. Market power modeling and restraint of aggregated prosumers in peer-to-peer energy trading: A game-theoretic approach. Appl. Energy 2023, 348, 121550. [Google Scholar] [CrossRef]
  12. Khorasany, M.; Mishra, Y.; Ledwich, G. A Decentralized Bilateral Energy Trading System for Peer-to-Peer Electricity Markets. IEEE Trans. Ind. Electron. 2020, 67, 4646–4657. [Google Scholar] [CrossRef]
  13. Huang, T.; Sun, Y.; Jiao, M.; Liu, Z.; Hao, J. Bilateral energy-trading model with hierarchical personalized pricing in a prosumer community. Int. J. Electr. Power Energy Syst. 2022, 141, 108179. [Google Scholar] [CrossRef]
  14. Symiakakis, M.S.; Kanellos, F.D. Towards the detailed modeling of deregulated electricity markets comprising Smart prosumers and peer to peer energy trading. Electr. Power Syst. Res. 2023, 217, 109158. [Google Scholar] [CrossRef]
  15. Sorin, E.; Bobo, L.; Pinson, P. Consensus-Based Approach to Peer-to-Peer Electricity Markets With Product Differentiation. IEEE Trans. Power Syst. 2019, 34, 994–1004. [Google Scholar] [CrossRef]
  16. Zhang, Z.; Li, R.; Li, F. A Novel Peer-to-Peer Local Electricity Market for Joint Trading of Energy and Uncertainty. IEEE Trans. Smart Grid 2020, 11, 1205–1215. [Google Scholar] [CrossRef]
  17. Zhou, W.; Dang, W.; Peng, F.; Mahesuti, R.; Zhang, L.; Sun, K. A decentralized peer-to-peer energy trading strategy considering flexible resource involvement and renewable energy uncertainty. Int. J. Electr. Power Energy Syst. 2023, 152, 109275. [Google Scholar] [CrossRef]
  18. Kim, H.J.; Chung, Y.S.; Kim, S.J.; Kim, H.T.; Jin, Y.G.; Yoon, Y.T. Pricing mechanisms for peer-to-peer energy trading: Towards an integrated understanding of energy and network service pricing mechanisms. Renew. Sustain. Energy Rev. 2023, 183, 113435. [Google Scholar] [CrossRef]
  19. Maldet, M.; Revheim, F.H.; Schwabeneder, D.; Lettner, G.; del Granado, P.C.; Saif, A.; Löschenbrand, M.; Khadem, S. Trends in local electricity market design: Regulatory barriers and the role of grid tariffs. J. Clean. Prod. 2022, 358, 131805. [Google Scholar] [CrossRef]
  20. Kaur, D.; Islam, S.N.; Mahmud, M.A.; Haque, M.E.; Dong, Z.Y. Energy forecasting in smart grid systems: Recent advancements in probabilistic deep learning. IET Gener. Transm. Distrib. 2022, 16, 4461–4479. [Google Scholar] [CrossRef]
  21. Xia, Y.; Xu, Q.; Huang, Y.; Du, P. Peer-to-peer energy trading market considering renewable energy uncertainty and participants’ individual preferences. Int. J. Electr. Power Energy Syst. 2023, 148, 108931. [Google Scholar] [CrossRef]
  22. Zhang, B.; Du, Y.; Chen, X.; Lim, E.G.; Jiang, L.; Yan, K. A novel adaptive penalty mechanism for Peer-to-Peer energy trading. Appl. Energy 2022, 327, 120125. [Google Scholar] [CrossRef]
  23. Alsalloum, H.; Rahim, R.; Merghem-Boulahia, L. Contribution-based energy-trading mechanism: A multi-level energy management approach. Int. J. Electr. Power Energy Syst. 2022, 136, 107668. [Google Scholar] [CrossRef]
  24. Cosic, A.; Stadler, M.; Mansoor, M.; Zellinger, M. Mixed-integer linear programming based optimization strategies for renewable energy communities. Energy 2021, 237, 121559. [Google Scholar] [CrossRef]
  25. Wang, L.; Zhang, B.; Li, Q.; Song, W.; Li, G. Robust distributed optimization for energy dispatch of multi-stakeholder multiple microgrids under uncertainty. Appl. Energy 2019, 255, 113845. [Google Scholar] [CrossRef]
  26. Islam, S.N. A New Pricing Scheme for Intra-Microgrid and Inter-Microgrid Local Energy Trading. Energies 2019, 8, 898. [Google Scholar] [CrossRef]
  27. Zhang, X.; Zhu, S.; He, J.; Yang, B.; Guan, X. Credit rating based real-time energy trading in microgrids. Appl. Energy 2019, 236, 985–996. [Google Scholar] [CrossRef]
  28. Yu, A.; Tang, X.; Zhang, Y.J.; Huang, J. Continuous Group-Wise Double Auction for Prosumers in Distribution-Level Markets. IEEE Trans. Smart Grid 2021, 12, 4822–4833. [Google Scholar] [CrossRef]
  29. Faqiry, M.N.; Das, S. Double Auction with Hidden User Information: Application to Energy Transaction in Microgrid. IEEE Trans. Syst. Man Cybern. Syst. 2019, 49, 2326–2339. [Google Scholar] [CrossRef]
  30. Vieira, G.; Zhang, J. Peer-to-peer energy trading in a microgrid leveraged by smart contracts. Renew. Sustain. Energy Rev. 2021, 143, 110900. [Google Scholar] [CrossRef]
  31. Sim, J.; Lee, D.J.; Yoon, K. Trustful double auction design for Peer-to-Peer energy trading between interconnected micro-grids with supply–demand imbalance. Int. J. Electr. Power Energy Syst. 2024, 160, 110117. [Google Scholar] [CrossRef]
  32. Zhang, C.; Yang, T.; Wang, Y. Peer-to-Peer energy trading in a microgrid based on iterative double auction and blockchain. Sustain. Energy Grids Netw. 2021, 27, 100524. [Google Scholar] [CrossRef]
  33. Wang, X.; Jia, H.; Wang, Z.; Jin, X.; Deng, Y.; Mu, Y.; Yu, X. A real time peer-to-peer energy trading for prosumers utilizing time-varying building virtual energy storage. Int. J. Electr. Power Energy Syst. 2024, 155, 109547. [Google Scholar] [CrossRef]
  34. Zhou, Y.; Wu, J.; Song, G.; Long, C. Framework design and optimal bidding strategy for ancillary service provision from a peer-to-peer energy trading community. Appl. Energy 2020, 278, 115671. [Google Scholar] [CrossRef]
  35. Zhang, C.; Yang, Y.; Wang, Y.; Qiu, J.; Zhao, J. Auction-based peer-to-peer energy trading considering echelon utilization of retired electric vehicle second-life batteries. Appl. Energy 2024, 358, 122592. [Google Scholar] [CrossRef]
  36. Hoque, M.M.; Khorasany, M.; Azim, M.I.; Razzaghi, R.; Jalili, M. A framework for prosumer-centric peer-to-peer energy trading using network-secure export–import limits. Appl. Energy 2024, 361, 122906. [Google Scholar] [CrossRef]
  37. Hayes, B.; Thakur, S.; Breslin, J. Co-simulation of electricity distribution networks and peer to peer energy trading platforms. Int. J. Electr. Power Energy Syst. 2020, 115, 105419. [Google Scholar] [CrossRef]
  38. Wang, J.; Zheng, J.; Yu, L.; Goh, M.; Tang, Y.; Huang, Y. Distributed Reputation-Distance iterative auction system for Peer-To-Peer power trading. Appl. Energy 2023, 345, 121306. [Google Scholar] [CrossRef]
  39. Binyamin, S.S.; Ben Slama, S.A.; Zafar, B. Artificial intelligence-powered energy community management for developing renewable energy systems in smart homes. Energy Strategy Rev. 2024, 51, 101288. [Google Scholar] [CrossRef]
  40. Kanakadhurga, D.; Prabaharan, N. Price-based demand response with renewable energy sources and peer-to-peer trading for residential microgrid with electric vehicle uncertainty. Comput. Electr. Eng. 2024, 119, 109618. [Google Scholar] [CrossRef]
  41. Zhou, W.; Wang, Y.; Peng, F.; Liu, Y.; Sun, H.; Cong, Y. Distribution network congestion management considering time sequence of peer-to-peer energy trading. Int. J. Electr. Power Energy Syst. 2022, 136, 107646. [Google Scholar] [CrossRef]
  42. Xu, S.; Zhao, Y.; Li, Y.; Zhou, Y. An iterative uniform-price auction mechanism for peer-to-peer energy trading in a community microgrid. Appl. Energy 2021, 298, 117088. [Google Scholar] [CrossRef]
  43. Malik, S.; Thakur, S.; Duffy, M.; Breslin, J.G. Comparative Double Auction Approach for Peer-to-Peer Energy Trading on Multiple microgrids. Smart Grids Sustain. Energy 2023, 8, 21. [Google Scholar] [CrossRef]
  44. Vickrey, W. Counterspeculation, auctions, and competitive sealed tenders. J. Financ. 1961, 16, 8–37. [Google Scholar] [CrossRef]
  45. Sahih, A.Z.; Abbasi, A.; Ghasri, M. Blockchain-enabled solutions for fair and efficient peer-to-peer renewable energy trading: An experimental comparison. J. Clean. Prod. 2024, 455, 142301. [Google Scholar] [CrossRef]
  46. Moniruzzaman, M.; Yassine, A.; Benlamri, R. Blockchain and cooperative game theory for peer-to-peer energy trading in smart grids. Int. J. Electr. Power Energy Syst. 2023, 151, 109111. [Google Scholar] [CrossRef]
  47. Guerrero, J.; Sok, B.; Chapman, A.C.; Verbič, G. Electrical-distance driven peer-to-peer energy trading in a low-voltage network. Appl. Energy 2021, 287, 116598. [Google Scholar] [CrossRef]
  48. Haggi, H.; Sun, W. Multi-Round Double Auction-Enabled Peer-to-Peer Energy Exchange in Active Distribution Networks. IEEE Trans. Smart Grid 2021, 12, 4403–4414. [Google Scholar] [CrossRef]
Figure 2. Seller and buyer bids averaged over different months.
Figure 2. Seller and buyer bids averaged over different months.
Energies 17 05708 g002
Figure 3. Market clearing prices for the average, VCG and TR mechanisms averaged over different days in a certain month.
Figure 3. Market clearing prices for the average, VCG and TR mechanisms averaged over different days in a certain month.
Energies 17 05708 g003aEnergies 17 05708 g003b
Figure 4. Average market clearing prices across different months for the average, TR and VCG mechanisms.
Figure 4. Average market clearing prices across different months for the average, TR and VCG mechanisms.
Energies 17 05708 g004
Figure 5. Mean and standard deviation of the market clearing prices for the average, TR and VCG mechanisms.
Figure 5. Mean and standard deviation of the market clearing prices for the average, TR and VCG mechanisms.
Energies 17 05708 g005
Figure 6. Box–whisker plot for average (daily) market clearing prices for average, TR and VCG mechanisms. The blue circles denote the outliers.
Figure 6. Box–whisker plot for average (daily) market clearing prices for average, TR and VCG mechanisms. The blue circles denote the outliers.
Energies 17 05708 g006
Figure 7. Mean market clearing prices for average, TR and VCG mechanisms with optimally and randomly generated bids.
Figure 7. Mean market clearing prices for average, TR and VCG mechanisms with optimally and randomly generated bids.
Energies 17 05708 g007
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liyanage, K.K.G.H.; Islam, S.N. Comparative Analysis of Market Clearing Mechanisms for Peer-to-Peer Energy Market Based on Double Auction. Energies 2024, 17, 5708. https://doi.org/10.3390/en17225708

AMA Style

Liyanage KKGH, Islam SN. Comparative Analysis of Market Clearing Mechanisms for Peer-to-Peer Energy Market Based on Double Auction. Energies. 2024; 17(22):5708. https://doi.org/10.3390/en17225708

Chicago/Turabian Style

Liyanage, Kisal Kawshika Gunawardana Hathamune, and Shama Naz Islam. 2024. "Comparative Analysis of Market Clearing Mechanisms for Peer-to-Peer Energy Market Based on Double Auction" Energies 17, no. 22: 5708. https://doi.org/10.3390/en17225708

APA Style

Liyanage, K. K. G. H., & Islam, S. N. (2024). Comparative Analysis of Market Clearing Mechanisms for Peer-to-Peer Energy Market Based on Double Auction. Energies, 17(22), 5708. https://doi.org/10.3390/en17225708

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