Energies 17 01220
Energies 17 01220
Article
Economic Pricing in Peer-to-Peer Electrical Trading for a
Sustainable Electricity Supply Chain Industry in Thailand
Adisorn Leelasantitham, Thammavich Wongsamerchue and Yod Sukamongkol *
Technology of Information System Management Division, Faculty of Engineering, Mahidol University, 25/25
Phutthamonthon Sai 4 Road, Salaya, Phutthamonthon, Nakhon Pathom 73170, Thailand;
[email protected] (A.L.); [email protected] (T.W.)
* Correspondence: [email protected]
Abstract: The state-owned power Electricity Generating Authority of Thailand (EGAT), a monopoly
market in charge of producing, distributing, and wholesaling power, is the focal point of Thailand’s
electricity market. Although the government has encouraged people to install on-grid solar panels to
sell electricity as producers and retail consumers, the price mechanism, i.e., purchasing price and
selling prices, is still unilaterally determined by the government. Therefore, we are interested in
studying the case where blockchain can be used as a free trading platform. Without involving buying
or selling from the government, this research presents a model of fully traded price mechanisms.
Based on the study results of the double auction system, data on buying and selling prices of electrical
energy in Thailand were used as the initial data for the electricity peer-to-peer free-trading model.
Then, information was obtained to analyze the trading price trends by using the law of demand and
supply in addition to the principle of the bipartite graph. The price trend results agree well with
those of price equilibrium equations. Therefore, we firmly believe that the model we offer can be
traded in a closed system of free-trade platforms. In addition, the players in the system can help to
determine the price trend that will occur according to various parameters and will cause true fairness
in the sustainable electricity supply chain industry in Thailand.
Figure 1.
Figure 1. The
The current
current structure
structureof
ofthe
theThai
Thaielectricity
electricityindustry.
industry.
One of
One of the
the responsibilities
responsibilitiesofofthe
the ERC
ERC isis to
to regulate
regulate the
the electrical
electrical energy
energy price
price that
that the
the
EGAT will pay for each producer. The electrical energy pricing rate depends
EGAT will pay for each producer. The electrical energy pricing rate depends on the energy on the energy
sourcefor
source forgenerating
generatingelectricity
electricity such
such as as natural
natural gas,gas,
coal,coal,
and and renewable
renewable energy.
energy. Nor-
Normally,
mally,
the the cost
energy energy cost generated
generated from renewable
from renewable energy,
energy, i.e., i.e., solar,
solar, wind, wind, or
or biomass, is biomass,
lower than is
that generated
lower than that from fuel, trash,
generated fromor fuel,
industrial
trash,waste. Therefore,
or industrial the ERC
waste. has announced
Therefore, the ERC thehas
purchasing
announced price of electricalprice
the purchasing energy as summarized
of electrical energy in
as Table 1 [3]. in Table 1 [3].
summarized
Table1.1. EGAT’s
Table EGAT’s electrical
electrical energy
energy purchasing
purchasingprice.
price.
EnergySource
Energy Source UnitPrice
Unit Price(Baht/kWh)
(Baht/kWh)
Solar
Solar Energy
Energy
Rooftop
Rooftop 2.20
2.20
On ground
On ground 2.16
2.16
Wind
Wind Energy
Energy 3.10
3.10
Waste
Waste
VSPP
VSPP 5.08
5.08
SPP
SPP 3.66
3.66
Biomass
Biomass 2.79
2.79
Biogas
Biogas 3.57
3.57
Onthe
On theother
otherhand,
hand,the the
PEAPEA and
and thethe MEA,
MEA, who who distribute
distribute electricity
electricity to consumers,
to consumers, also
also gather electrical energy fees. The current electrical energy tariff for
gather electrical energy fees. The current electrical energy tariff for selling to residential selling to residen-
tial consumers
consumers is a ladder
is a ladder methodmethod [4]. more
[4]. The The more electricity
electricity that isthat is used,
used, the morethe more billsmust
bills that that
must be paid. Electricity tariffs are classified into two groups, namely,
be paid. Electricity tariffs are classified into two groups, namely, those who consume no those who consume
no more
more than than
400400 units
units perper month
month andand those
those whowho use
use morethan
more than400400units
unitsperpermonth.
month. TheThe
electricity tariff
electricity tariff information
information isisshown
shownin inTable
Table2.2.
Nevertheless, in recent years, the establishment
Nevertheless, in recent years, the establishment of of small-scale
small-scale distributed
distributed generation
generation
systems from solar energy and wind energy has taken place
systems from solar energy and wind energy has taken place rapidly. In many nations, rapidly. In many nations,
including Thailand, prosumers are becoming more and more popular
including Thailand, prosumers are becoming more and more popular as both producers and as both producers
and consumers
consumers of electrical
of electrical energy.energy. Additionally,
Additionally, a new paradigm
a new paradigm has been has been introduced
introduced known
known
as as peer-to-peer
peer-to-peer (P2P) electrical
(P2P) electrical energy trading,
energy trading, in which inlocal
which local prosumers
prosumers and con-
and consumers
sumers
can tradecan trade electricity
electricity with one with oneThus,
another. another.P2PThus,
energy P2P
freeenergy free
trade is trade isincurrently
currently its infancy in
itsThailand.
in infancy inHowever,
Thailand.from However,
the abovefrominformation,
the above information,
it is obviouslyit isseen
obviously seen that
that Thailand’s
Thailand’smarket
electricity electricity market
is still is still
with the ESB, with
where the the
ESB, where the
electrical electrical
energy energyrate
purchasing purchasing
is fixed,
rate isthe
while fixed, while the
electrical electrical
energy sellingenergy
rate is selling
varied rate
dueis to
varied due to price,
the ladder the ladder
which price,
leadswhich
to a
leads
1–2 to ahigher
times 1–2 times higher purchasing
purchasing price for renewable
price for renewable energy. energy.
Energies 2024, 17, 1220 3 of 19
Table 2. PEA and MEA electrical energy selling price (ladder method).
As mentioned above, the consumer electrical energy expense is about 1–2 times
higher than the selling income from renewable energy, especially from solar energy. The
price difference may result from operating costs, management costs, maintenance costs,
administrative costs, and other overhead profits that are formed to be the structure of
electricity costs in Thailand, as presented by Leelasantitham [2]. For the genuine equity
and sustainability of all parties involved in Thailand’s electrical energy trade, the objective
of this study is to develop a model of fully free-trade price mechanisms where a blockchain
can be used as a peer-to-peer free-trading platform.
Moreover, the main contribution of this paper is its minimization of the previous
research gaps, which will be discussed in Section 2, by developing the P2P energy trading
model based on the mix of the double-auction technique, pricing optimization, the demand
and supply economic law, and bipartite graph theory. Then, the benefits of the practical
implications to the economic pricing in the P2P electrical trading for the Sustainable
Electricity Supply Chain Industry (SESCI) in Thailand are presented in Section 6.
Additionally, the scope of this study is narrow and clear. Attention is paid to the
buying and selling of electrical energy rates from renewable energy only. According to the
previous study results of the double auction system [5], randomly simulating the generated
and the consumed electrical energy data of four houses, consumers, and prosumers, are
used as the initial data along with the buying and the selling prices of electrical energy. At
that time, the procedures replicate the data re-established with the sale of N houses in the
form of a double auction, then, the results are obtained to analyze the trading price trends
by using the law of demand and supply in addition to the principle of the bipartite graph.
For this study, a blockchain-based business model guideline for Thai electrical utility
systems, as provided by Leelasantitham [2], was also utilized in the BT double-auction
Energies
Energies 2024,
2024, 17,
17, xx FOR
FOR PEER
PEER REVIEW
REVIEW 55 of
of 19
19
Figure 3.
Figure 3. The
The 4-house P2P electrical
4-house P2P electrical energy
energy trading
trading model
model [5].
[5].
As
As mentioned above, one
mentioned above, one of
of the
the gaps
gaps in
in the
the related
related studies
studies is
is pricing
pricing optimization.
optimization.
Thus,
Thus, the
the pricing
pricing optimizations
optimizations for
for energy
energy trading
trading were also reviewed,
were also reviewed, and
and their
their summary
summary
is provided in Table 4. Some studies used the optimization approach to prevent
is provided in Table 4. Some studies used the optimization approach to prevent energy energy loss
for the suppliers, including power balance and energy management systems [22–24].
loss for the suppliers, including power balance and energy management systems [22–24]. The
others usedused
The others the profit maximization
the profit algorithm
maximization (PMA)
algorithm to increase
(PMA) productivity
to increase alongalong
productivity with
increasing profits for the electricity producers [21,25–27]. According to their results, it can
be seen that, in the near future, the free trading market for electricity trading may open,
and the energy trading market may shift from ESB to P2P energy trading.
Energies 2024, 17, 1220 6 of 19
system model to increase the efficiency of sky usage cost-effectively. The study [36] found
that electricity bills could be reduced by as much as 44.73%. It was also found that electricity
costs could be reduced by 51.80% when using the scheduling algorithm.
2.3.
2.3. Bipartite
Bipartite Graph
Graph Theory
Theory
A
A bipartite graph isisaatype
bipartite graph typeofofgraph
graphthat
thatdescribes
describesthetherelationship
relationship between
between twotwo sets
sets of
of data
data such
such that
that there
there areare never
never twotwo adjacent
adjacent vertices
vertices in the
in the samesame
set. set. In other
In other words,
words, this this
is a
is a graph
graph where where
eacheach
edgeedge
joinsjoins a vertex
a vertex from from one
one set toset to another.
another. Generally,
Generally, thisoftype
this type graph of
graph is often used to describe a one-to-one relationship and to solve matching
is often used to describe a one-to-one relationship and to solve matching problems. Some problems.
Some researchers
researchers have bipartite
have used used bipartite
graphgraph
theorytheory to help
to help determine
determine the case
the case of a of a one-to-
one-to-one
one relationship,
relationship, for example,
for example, P2P P2P trading
trading ordouble-auction
or the the double-auction matching
matching platform.
platform.
Some studies
studies presented
presentedaadecision-supporting
decision-supportingmodel modelfor forP2P
P2P lending
lendinginvestment
investment to
help make
to help investment
make investment decisions using
decisions the the
using principles of the
principles of bipartite
the bipartitegraph [36,43].
graph For
[36,43].
simultaneous
For simultaneous recalculation, they they
recalculation, usedused
real data fromfrom
real data America’s largest
America’s P2P lending
largest mar-
P2P lending
ketplace
marketplace to estimate the loans from unknown people. The results of these studies can
to estimate the loans from unknown people. The results of these studies
prove that the model helped the borrowers choose choose good
good loans
loans from
from thethe lenders.
lenders. Similarly,
Similarly,
it helped the loan owners to lend profitably. The bipartite correlation diagrams led to the
calculation of the decision model for the investment; example case studies for selling and
buying are shown in Figures
Figure 44and
andFigure 5, respectively.
5, respectively.
Figure 4. Bipartite
Bipartiterelationship
relationshipininselling. The
selling. The letters S, B,
letters S, and t stand
B, and for selling,
t stand buying,
for selling, and transaction,
buying, and trans-
action, respectively,
respectively, while thewhile the numbers
numbers 1, 2,
1, 2, 3, and 3, and 4 represent
4 represent the housethe houseThe
number. number. The blue,
blue, orange, or-
and green
ange,
colors and greenthe
represent colors represent
matched the matched
transactions from thetransactions from the
seller numbers 1, 2,seller
and 3,numbers 1, 2, and 3,
respectively.
respectively.
Energies 2024, 17, x FOR PEER REVIEW
Energies 2024, 17, 1220 8 of 19
Figure5.5.Bipartite
Figure Bipartiterelationship in buying.
relationship The letters
in buying. S, B, and
The letters S, tB,stand
and for selling,
t stand forbuying, and
selling, buying, a
transaction, respectively, while the numbers 1, 2, 3, and 4 represent the house number.
transaction, respectively, while the numbers 1, 2, 3, and 4 represent the house number. The The blue,
orange,
orange,and andgreen colors
green represent
colors the matched
represent transactions
the matched from the from
transactions buyer the
numbers
buyer1, numbers
2, and 1, 2,
3, respectively.
respectively.
The equation used to calculate the buyer’s confidence, LS, is shown as follows:
The equation used to calculate
m
the buyer’s confidence, LS, is shown as follow
∑ j=1 eij × status j
LSi = m ∑ 𝑒 , i =𝑠𝑡𝑎𝑡𝑢𝑠
1, 2, . . . , n (1)
𝐿𝑆∑ j=1 eij ,𝑖 1, 2, … , 𝑛
∑ 𝑒
The equation used to calculate the seller’s confidence, BS, is shown as follows:
The equation used to calculate
n
the seller’s confidence, BS, is shown as follow
∑i=1 eij × LS j
BSi = , i = 1, 2, . . . , m (2)
∑in=1 eij∑ 𝑒 𝐿𝑆
𝐵𝑆 ,𝑖 1, 2, … , 𝑚
∑ 𝑒purchases; n = the number of sellers;
where statusj = {0, 1}; m = the number of completed
and e = the amount of energy that sellers have sold to buyers.
where statusj = {0, 1}; m = the number of completed purchases; n = the number of
2.4.
andContents
e = theand Contributions
amount of energythat sellers have sold to buyers.
According to the literature review, it is obvious that blockchain technology is suitable
for the P2P electricity trading platform with various pricing mechanisms. However, we do
2.4. Contents and Contributions
not know what the trend will be if the electrical treading market in Thailand is completely
According
free. Thus, to the
this study literature
focuses on thisreview, it both
issue for is obvious thatbuyers
sides, the blockchain
and thetechnology
sellers, is
along
for thewith
P2Pthe electricity
pricing scenarios for the
trading P2P electrical
platform withtrading in Thailand
various pricingtomechanisms.
discover their Howe
sentiment
do not know in thewhat
market.
theBased
trendonwill
the relevant
be if theresearch studies
electrical mentioned
treading above,
market inthe
Thailand
comparative P2P energy trading models, with various techniques and methods, are shared
pletely
in free. Thus, this study focuses on this issue for both sides, the buyers and the
Table 6.
along with the pricing scenarios for the P2P electrical trading in Thailand to discov
Table 6. Comparison
sentiment in theof market.
the results from
Basedother
onresearch studies andresearch
the relevant this work.
studies mentioned ab
comparative P2P energy trading models, Demand with
and various techniques and metho
Benefits and
Trading Auction Pricing Opti- Confidential
Research P2P shared Platform
Energy in Table 6.Method mization
Supply
Trading
Contribution to
Economic Law SESCI
√ √ Therefore,
√ the -primary contributions of this paper to the literature are desc
[6,8,12,13,17–20] - - - -
[5,7,9–11,14,16,27]
√ follows:
√ √ √
- - - -
√ √ √ √ √
[25,26,28–30] (1) In this study, the
- P2P energy trading model, based- on the mix- of the double-
√ √ √ √
[22–24,31] technique, the pricing optimization,- the demand-and-supply
- - - law, and b
√ √ √ √ √
[33,34,38,41]
√
graph theory, is presented
-
√
to minimize
√
the previous
-
√
research gaps. Several N
-
[37,44] - case -
studies - take the responsive demand and the varied numbers
that - of parti
√ √ √ √ √ √ √ √
This work
prosumers into account are carried out in order to demonstrate the efficac
studied model.
(2) After the developed model is conducted and verified, the benefits of the p
implications to the economic pricing in P2P electrical trading for the SESCI
land are explored in terms of the social environment and the economic area.
tion, the SESCI consists of five main processes in the electrical industry, i.e., f
curement, electricity production, electrical transmission system, electricity tr
Energies 2024, 17, 1220 9 of 19
Therefore, the primary contributions of this paper to the literature are described as
follows:
(1) In this study, the P2P energy trading model, based on the mix of the double-auction
technique, the pricing optimization, the demand-and-supply law, and bipartite graph
theory, is presented to minimize the previous research gaps. Several N-house case
studies that take the responsive demand and the varied numbers of participating
prosumers into account are carried out in order to demonstrate the efficacy of the
studied model.
(2) After the developed model is conducted and verified, the benefits of the practical
implications to the economic pricing in P2P electrical trading for the SESCI in Thailand
are explored in terms of the social environment and the economic area. In addition, the
SESCI consists of five main processes in the electrical industry, i.e., fuel procurement,
electricity production, electrical transmission system, electricity transportation in the
distribution system, and electrical retail.
3. Research Methodology
To achieve the objective, the pricing model scenarios for P2P electrical trading in
Thailand were studied in two steps, which were the 4-house P2P trading model and the
N-house P2P trading model.
Figure 6.
Figure 6. Example
Exampledata
dataobtained
obtainedby
byuniform
uniformrandom
random sampling
sampling in in
anan auction.
auction. The
The redred color
color repre-
represents
sents the offer prices and the amount of energy for selling, while the black color represents the
the offer prices and the amount of energy for selling, while the black color represents the bidding
bidding prices for buying.
prices for buying.
3.1.2. Price
3.1.2. Price at
at the
the Equilibrium
Equilibrium State
State
The price,
The price, PPxx,,atatthe
theequilibrium
equilibriumpoint
pointcan bebe
can determined by by
determined using thethe
using theory of de-
theory of
mand and supply [18]. The linear supply and demand equations are shown
demand and supply [18]. The linear supply and demand equations are shown as follows:as follows:
The equation
The equation for for the
the supply
supply curve
curve is
is
Qs = a + bPx (3)
Qs = a + bPx (3)
where Qs = the amount of supply; a = the quality of supplied products; and b = the price of
where Qs = the product
each supplied amount.of supply; a = the quality of supplied products; and b = the price of
each The
supplied product.
equation for the demand curve is
The equation for the demand curve is
Qd = c − dPx (4)
Qd = c − dPx (4)
where Qd = the amount of demand; c = the quality of demanded products; and d = the price
of eachQdemanded product.
where d = the amount of demand; c = the quality of demanded products; and d = the price
In demanded
of each order to find the equilibrium price, the supply function is set to equal to the de-
product.
mand function so that
In order to find the equilibrium price, the supply function is set to equal to the demand
function so that Qs = Qd (5)
Qs = Qd (5)
4. Tested Results
4.1. The Four-House P2P Trading Model
From the random sampling data on buying demand and selling supply, according to
Figure 3, House A and House B made bids, while House C and House D made offers. The
prices of the electrical energy for buying and selling were between THB 1.00 and 5.00 per
unit and the total demand and supply of the electrical energy in those four houses was
20 kWh; the data are shown in Table 7.
Table 7. Buying and selling prices with the amount of demand and supply in the system.
Demand Supply
THB/kWh House A House B Total House C House D Total
5.00 1.50 0.50 3.00 8.50 14.00 20.00
4.00 3.00 3.00 7.00 6.50 11.00 15.00
3.00 4.50 7.50 11.00 5.00 7.50 10.00
2.00 7.00 9.00 15.00 4.50 3.00 5.00
1.00 10.00 10.00 19.00 2.00 0.50 0.00
According to the information in Table 7, the calculation of the demand and supply
equations was completed as follows:
Supply Equation (3) was calculated as:
b = |∆Qs /∆Px |
= |(15.00-20.00)/(4.00-5.00)| = 5
d = |∆Qd /∆Px |
= |(7.00-3.00)/(4.00-5.00)| = 4
At the equilibrium state, the price, Px , was determined by Equation (5) as:
Qd = Qs
23 − 4 Px = −5 + 5 Px
After the data obtained from the experiment were represented in the chart, it was
found that the relationship between buying and selling demand was in accordance with
the theory of supply and demand. For the demand curve, when a product’s price drops,
the demand curve’s trend also declines. This means that consumers will consume more
electrical energy if its price is low. On the other hand, the trend in the supply curve rises
when the product’s price increases. This implies that suppliers want to sell more energy
as they perceive higher profit margins if the price is high. However, it is obviously seen
from the graph that the equilibrium price was 3.27 THB/kWh when the amount of electri-
cal energy
Figure
Figure 7. was 10.6 kWh.
7. Relationship
Relationship between price
between price and
and quantity
quantity when
when nn == 4.
4.
4.2.
4.2. The N-House
After the dataP2Pobtained
Trading
Trading Model
Model
from the experiment were represented in the chart, it was
found Inthat
In this the relationship
experimental
experimental between
scenario,
scenario, it buying
it was and selling
assumed demand
that the was in accordance
P2P free-trade with
electrical power
the theory
market
market of supply
consists
consists 100and
ofof100 demand.
houses
houses that For the
thatmade
made demand
random
random curve,
10,000
10,000bids
bidswhen
andanda 10,000
product’s
10,000 offers. price
The
offers. drops,
relation-
The rela-
the demand
ship between
tionship curve’s
buying
between trend also declines.
confidence
buying confidence and This
and selling means
confidence
selling that
wasconsumers
confidence observed; will
theirconsume
was observed; more
frequencies
their frequen-of
electrical
buying energy
success and if its
of price
sellingis low.
success On the
are other
shown hand,
in the
Figure
cies of buying success and of selling success are shown in Figure 8. trend
8. in the supply curve rises
when the product’s price increases. This implies that suppliers want to sell more energy
as they perceive higher profit margins if the price is high. However, it is obviously seen
from the graph that the equilibrium price was 3.27 THB/kWh when the amount of electri-
cal energy was 10.6 kWh.
Figure 8.
Figure 8. Success
Success frequencies
frequencies in
in buying
buying and
and selling.
selling.
Figure 9.
Figure 9. Buying
Buying confidence
confidence chart.
chart.
4.2.2.
4.2.2. Relationship between Sales
Sales Success
Success Confidence
Confidence and
and the
the Offer
Offer Price
Price
When
When thethe data
data on
on the
the selling
selling sentiment
sentiment and
and the
the success
success in
in winning
winning bids
bids were
were broken
broken
down,
down, thethe confidence
confidence data
data between
between 0.86
0.86 and
and 0.95 led to 87.11–90.00 percent accuracy.
accuracy. This
This
shows the consistency in the sales confidence.
shows the consistency in the sales confidence. There is an
an obvious correlation with the
obvious correlation with the
Energies 2024, 17, x FOR PEER REVIEW
number
number of the winning bids, as shown in Table 9, which can
of the winning bids, as shown in Table 9, which can be
be seen
seen more clearly 14
more clearly in of
in the19
the
chart in Figure
chart in Figure 10.10.
Sales confidence 0.86 0.87 0.88 0.89 0.90 0.91 0.92 0.93 0.94 0.95
Sales success 325 392 354 388 259 160 251 278 224 162
All bidding 370 450 400 440 280 180 280 310 250 180
Unsuccessful 12.16 12.89 11.50 11.82 10.71 11.11 10.36 10.32 10.40 10.00
AR 87.84 87.11 88.50 88.18 89.29 88.89 89.64 89.68 89.60 90.00
Figure10.
Figure 10.Sales
Salesconfidence
confidencechart.
chart.
4.2.3. The Trend of the Relationship between Price and Sentiment for N Houses
The scatter plots in Figure 11 display the selling and the buying prices on the hori-
zontal axis with their confidence on the vertical axis. According to the trendlines, from the
buyer’s view, when the buyers offer low prices, they have low buying confidence. But if
they pay more attention to buying at higher prices, their buying confidence will increase.
Energies 2024, 17, 1220 14 of 19
Sales confidence 0.86 0.87 0.88 0.89 0.90 0.91 0.92 0.93 0.94 0.95
Sales success 325 392 354 388 259 160 251 278 224 162
All bidding 370 450 400 440 280 180 280 310 250 180
Unsuccessful 12.16 12.89 11.50 11.82 10.71 11.11 10.36 10.32 10.40 10.00
AR 87.84 87.11 88.50 88.18 89.29 88.89 89.64 89.68 89.60 90.00
Figure 10. Sales confidence chart.
4.2.3. TheTrend
4.2.3. The Trendof ofthe
theRelationship
Relationshipbetween
between Price
Price andand Sentiment
Sentiment for for N Houses
N Houses
The scatter
The scatter plots
plots in
in Figure
Figure 11 11 display
display the
the selling
selling and
andthe
thebuying
buyingprices
priceson
onthe
thehorizontal
hori-
axis with their confidence on the vertical axis. According to the trendlines,
zontal axis with their confidence on the vertical axis. According to the trendlines, from from the buyer’s
the
view,
buyer’swhen
view,the buyers
when the offer
buyers low prices,
offer they have
low prices, theylow
have buying confidence.
low buying But ifBut
confidence. theyif pay
more attention
they pay to buying
more attention at higher
to buying prices,prices,
at higher their buying confidence
their buying will will
confidence increase. On the
increase.
other
On thehand,
otherfrom
hand,thefrom
seller’s view, when
the seller’s view,the
whensellers
the offer low
sellers prices,
offer low their sales
prices, theirconfidence
sales
is high. When
confidence the sellers
is high. When want to sellwant
the sellers at higher
to sellprices,
at highertheir salestheir
prices, confidence will decrease.
sales confidence
It is decrease.
will evidentlyIt seen that the
is evidently intersection
seen point of both
that the intersection pointtrendlines, which which
of both trendlines, represents
rep- the
equilibrium price at theprice
resents the equilibrium equilibrium state, is approximately
at the equilibrium THB 2.8THB
state, is approximately per unit.
2.8 per unit.
Figure 11.
Figure 11. Buying–selling
Buying–sellingconfidence
confidenceequilibrium point.
equilibrium point.
The P2P
The P2Pfree-trade
free-trademodel
modelfor
forNN houses
houses tested
tested by by
thethe bipartite
bipartite graph
graph method
method revealed
revealed
the buyer
buyer relationship
relationshipandandbuying
buying behavior,
behavior, which
which helps
helps to identify
to identify howhow successful
successful eacheach
buyer is.
buyer is.The
Thestatistical purchase
statistical success
purchase ratesrates
success are between 0.86%0.86%
are between and 0.95%
and with
0.95%anwith
ac- an
curacy between
accuracy between77.62%
77.62%andand
88.35%. Similarly,
88.35%. the the
Similarly, model can can
model alsoalso
givegive
insights into into
insights sellerseller
relationships and selling behavior, which can be used to predict sales opportunities from
past sales behavior. The successful sales statistic values are between 0.86% and 0.95% with
an accuracy between 87.84% and 90.00%. Moreover, the equilibrium price, which was
derived by using the demand and supply law and the bipartite graph method, was THB
2.78 per kWh.
5. Discussion
According to the four-house and the N-house double-auction data simulations, the
results of the tested P2P pricing model agreed with each other and their trendlines went in
the same direction. Those models were also verified by the proven results from demand
and supply theory and bipartite graph theory. This can be expressed as: more goods on
Energies 2024, 17, 1220 15 of 19
the supply side leads to the lower price of those goods on the market. In other words,
the lack of products results in their higher price. Moreover, the buying confidence will
rise with higher prices, and if the purchasing price is high, the buying confidence is also
increased. In addition, when the demand for a product is high, the price of the product will
rise, and the price of the product will decrease if there is less demand for it. In terms of
sales confidence, the chances of sales success will vary inversely with the offered prices. If
the offered price for sale is high, the chances of winning the auction or confidence in the
sale will decrease, while if the bidding price is low, the sales confidence will increase.
Both models have consistency in terms of price trends, but they still cannot point out
the right price. Indeed, the bipartite graph method is the backbone for the buyer and the
seller’s estimated prices to be used in the competition. With the bipartite graph principle,
P2P trading gives confidence in the trading, increasing the chances of winning bids and
the chances of winning auction sales. The result showed that the equilibrium price was
2.78 THB/kWh. Given that the regulated price that suppliers can sell their electrical energy
produced from solar energy is 2.20 THB/kWh (as shown in Table 1) and consumers must
pay about 3.27 to 4.51 THB/kWh for their used energy (as shown in Table 2), the suppliers
can increase their income by 0.58 THB/kWh, while the consumers can decrease their energy
expense by about 0.49 to 1.73 THB/kWh. Therefore, it can be concluded that both suppliers
and consumers will obtain more advantages from participating in this P2P model such as
increasing incomes and decreasing expenses, respectively. In addition, this will help both
buyers and sellers offer the right price due to the mechanism of a truly free market, which
will cause true fairness in the sustainable electricity supply chain industry in Thailand. The
findings of this study are consistent with those of the previous reports [2].
Once the regulated price is cheaper than the price determined in P2P transactions,
consumers will have no willingness to participate in the transaction. However, according to
the demand and supply law, consumers normally still want to pay less than that regulated
price, while the suppliers, who want to sell their goods, will also cut their margins off,
which leads to the lower selling price. Therefore, the equilibrium price in P2P transactions
will change to another lower price, which is lower than the regulated price again. Then,
both suppliers and consumers still obtain advantages such as gaining profits and saving
expenses, respectively.
In addition, the P2P trading platform will not have any participants in the transactions
if the Thai government announces a policy that will promote the very high regulated
buying price and subsidize the regulated selling price in the electricity market. That means
the suppliers will be willing to sell their produced electricity to EGAT to gain very high
profits, while the consumers will prefer to buy electricity directly from the grid instead of
the suppliers. This phenomenon will not sustain the social, environmental, or economic
aspects. Finally, when the government does not have the money to finance the policy, the
regulated prices will return to the real regulated prices, and then P2P transactions will be
active again.
of five main processes in the electrical industry, i.e., (1) fuel procurement, (2) electricity
production, (3) the electrical transmission system, (4) electricity transportation in the dis-
tribution system, and (5) electrical retail. The benefits of the studied P2P electrical trading
platform on those five processes in the field of social, environmental, and economic areas
are shown in Table 10.
Table 10. Benefits of the P2P platform on the electricity supply chain in social, environmental, and
economic areas.
Author Contributions: Conceptualization, A.L. and Y.S.; methodology, A.L., T.W. and Y.S.; software,
A.L., T.W. and Y.S.; validation, A.L. and Y.S.; formal analysis, A.L., T.W. and Y.S.; investigation, A.L.
and Y.S.; resources, T.W.; data curation, T.W.; writing—original draft preparation, A.L., T.W. and Y.S.;
writing—review and editing, A.L. and Y.S.; visualization, A.L., T.W. and Y.S.; supervision, A.L. and
Y.S.; project administration, A.L. and Y.S. All authors have read and agreed to the published version
of the manuscript.
Funding: This research received no external funding, and the APC was funded by Mahidol University.
Data Availability Statement: The double-auction bidding random data, the success confidence in
buying and selling data, and figures and tables, as well as the simulation input files, are available
upon request.
Conflicts of Interest: The authors declare that this research was conducted in the absence of any
commercial or financial relationships that could be construed as a potential conflict of interest.
References
1. ERC. Establishment of the Energy Regulatory Commission. Available online: https://www.erc.or.th/en/history-page (accessed
on 15 July 2023).
2. Leelasantitham, A. A Business Model Guideline of Electricity Utility Systems Based on Blockchain Technology in Thailand: A
Case Study of Consumers, Prosumers and SMEs. Wirel. Pers. Commun. 2020, 115, 3123–3136. [CrossRef]
3. ERC. Establishment of the Energy Regulatory Commission. Available online: https://www.erc.or.th/en/power-purchasing3/2
697 (accessed on 30 September 2022).
4. MEA. Type 1 Residential Service. Available online: https://www.mea.or.th/en/our-services/tariff-calculation/other/
-yosbxMGAjzp0 (accessed on 2 August 2023).
5. Wongsamerchue, T.; Leelasantitham, A. An Electronic Double Auction Prepaid Electricity Trading Using Blockchain Technology.
J. Mob. Multimed. 2022, 18, 1829–1850. [CrossRef]
Energies 2024, 17, 1220 18 of 19
6. Baig, M.J.A.; Iqbal, M.T.; Jamil, M.; Khan, J. Design and implementation of an open-Source IoT and blockchain-based peer-to-peer
energy trading platform using ESP32-S2, Node-Red and, MQTT protocol. Energy Rep. 2021, 7, 5733–5746. [CrossRef]
7. Bandara, K.Y.; Thakur, S.; Breslin, J. Flocking-based decentralised double auction for P2P energy trading within neighbourhoods.
Int. J. Electr. Power Energy Syst. 2021, 129, 106766. [CrossRef]
8. Khorasany, M.; Dorri, A.; Razzaghi, R.; Jurdak, R. Lightweight blockchain framework for location-aware peer-to-peer energy
trading. Int. J. Electr. Power Energy Syst. 2021, 127, 106610. [CrossRef]
9. Park, B.R.; Chung, M.H.; Moon, J.W. Becoming a building suitable for participation in peer-to-peer energy trading. Sustain. Cities
Soc. 2022, 76, 103436. [CrossRef]
10. 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. [CrossRef]
11. Wongthongtham, P.; Marrable, D.; Abu-Salih, B. Blockchain-enabled Peer-to-Peer energy trading. Comput. Electr. Eng. 2021, 94,
107299. [CrossRef]
12. Dorahaki, S.; Rashidienjad, M.; Ardestani, S.F.F.; Abdollahi, A.; Salehizadeh, M.R. A Peer-to-Peer energy trading market model
based on time-driven prospect theory in a smart and sustainable energy community. Sustain. Energy Grids Netw. 2021, 28, 100542.
[CrossRef]
13. Hu, Q.; Zhu, Z.; Bu, S.; Li, F. A multi-market nanogrid P2P energy and ancillary service trading paradigm: Mechanisms and
implementations. Appl. Energy 2021, 293, 116938. [CrossRef]
14. Leong, C.H.; Gu, C.; Li, F. Auction Mechanism for P2P Local Energy Trading considering Physical Constraints. Energy Procedia
2019, 158, 6613–6618. [CrossRef]
15. Esmat, A.; de Vos, M.; Ghiassi-Farrokhfal, Y.; Palensky, P.; Epema, D. A novel decentralized platform for peer-to-peer energy
trading market with blockchain technology. Appl. Energy 2021, 282, 116123. [CrossRef]
16. Mengelkamp, E.; Garttner, J.; Rock, K.; Kessler, S.; Orsini, L. Designing microgrid energy markets: A case study: The Brooklyn
Microgrid. Appl. Energy 2018, 210, 870–880. [CrossRef]
17. Umar, A.; Kumar, D.; Ghose, T. Blockchain-based decentralized energy intra-trading with battery storage flexibility in a community
microgrid system. Appl. Energy 2022, 322, 119544. [CrossRef]
18. Zeng, X.; Liu, L.; Leung, S.; Du, J.; Wang, X.; Li, T. A decision support model for investment on P2P lending platform. PLoS ONE
2017, 12, e0184242. [CrossRef] [PubMed]
19. Khorasany, M.; Gazafroudi, A.S.; Razzaghi, R.; Morstyn, T.; Shafie-khah, M. A framework for participation of prosumers in
peer-to-peer energy trading and flexibility markets. Appl. Energy 2022, 314, 118907. [CrossRef]
20. Azim, M.I.; Tushar, W.; Saha, T.K. Cooperative negawatt P2P energy trading for low-voltage distribution networks. Appl. Energy
2021, 299, 117300. [CrossRef]
21. PankiRaj, J.S.; Yassine, A.; Choudhury, S. An Auction Mechanism for Profit Maximization of Peer-to-Peer Energy Trading in
Smart Grids. Procedia Comput. Sci. 2019, 151, 361–368. [CrossRef]
22. López-García, D.A.; Torreglosa, J.P.; Vera, D. A decentralized P2P control scheme for trading accurate energy fragments in the
power grid. Int. J. Electr. Power Energy Syst. 2019, 110, 271–282. [CrossRef]
23. Han, D.; Zhang, C.; Ping, J.; Yen, Z. Smart contract architecture for decentralized energy trading and management based on
blockchains. Energy 2020, 199, 117417. [CrossRef]
24. Görgülü, H.; Topcuogla, Y.; Yaldiz, A.; Gökcek, T.; Erding, O. Peer-to-peer energy trading among smart homes considering
responsive demand and interactive visual interface for monitoring. Sustain. Energy Grids Netw. 2022, 29, 100584. [CrossRef]
25. Liu, Y.; Ma, H.; Jiang, Y.; Li, Z. Learning to recommend via random walk with profile of loan and lender in P2P lending. Expert
Syst. Appl. 2021, 174, 114763. [CrossRef]
26. Taleizadeh, A.A.; Safaei, A.Z.; Bhattacharya, A.; Amjadian, A. Online peer-to-peer lending platform and supply chain finance
decisions and strategies. Ann. Oper. Res. 2022, 315, 397–427. [CrossRef]
27. 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. [CrossRef]
28. Kong, K.G.H.; Lim, J.Y.; Leong, W.D.; Ng, W.P.Q.; Teng, S.Y.; Sunarso, J.; How, B.S. Fuzzy optimization for peer-to-peer (P2P)
multi-period renewable energy trading planning. J. Clean. Prod. 2022, 368, 133122. [CrossRef]
29. Zhou, W.; Wang, Y.; Peng, F.; Liu, Y.; Sun, H. Distribution network congestion management considering time sequence of
peer-to-peer energy trading. Int. J. Electr. Power Energy Syst. 2022, 136, 107646. [CrossRef]
30. Chen, Y.; Lei, X.; Yang, J.; Zhong, H.; Huang, T. Decentralized P2P power trading mechanism for dynamic multi-energy microgrid
groups based on priority matching. Energy Rep. 2022, 8, 388–397. [CrossRef]
31. Kanakadhurga, D.; Prabaharan, N. Demand response-based peer-to-peer energy trading among the prosumers and consumers.
Energy Rep. 2021, 7, 7825–7834. [CrossRef]
32. Suryono, R.R.; Purwandari, B.; Budi, I. Peer to Peer (P2P) Lending Problems and Potential Solutions: A Systematic Literature
Review. Procedia Comput. Sci. 2019, 161, 204–214. [CrossRef]
33. 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. [CrossRef]
34. Lin, J.; Pipattanasomporn, M.; Rahman, S. Comparative analysis of auction mechanisms and bidding strategies for P2P solar
transactive energy markets. Appl. Energy 2019, 255, 113687. [CrossRef]
Energies 2024, 17, 1220 19 of 19
35. Zheng, B.; Wie, W.; Chen, Y.; Wu, Q.; Mei, S. A peer-to-peer energy trading market embedded with residential shared energy
storage units. Appl. Energy 2022, 308, 118400. [CrossRef]
36. Yahaya, A.S.; Javaid, N.; Alzahrani, F.A.; Rehman, A.; Ullah, I.; Shahid, A.; Shafiq, M. Blockchain Based Sustainable Local Energy
Trading Considering Home Energy Management and Demurrage Mechanism. Sustainability 2020, 12, 3385. [CrossRef]
37. Lohachab, A.; Garg, S.; Kang, B.H.; Amin, M.B. Performance evaluation of Hyperledger Fabric-enabled framework for pervasive
peer-to-peer energy trading in smart Cyber–Physical Systems. Future Gener. Comput. Syst. 2021, 118, 392–416. [CrossRef]
38. An, J.; Hong, T.; Lee, M. Development of the business feasibility evaluation model for a profitable P2P electricity trading by
estimating the optimal trading price. J. Clean. Prod. 2021, 295, 126–138. [CrossRef]
39. Wu, Y.; Cimen, H.; Vasquez, J.C.; Guerrero, J.M. P2P energy trading: Blockchain-enabled P2P energy society with multi-scale
flexibility services. Energy Rep. 2022, 8, 3614–3628. [CrossRef]
40. Zhang, M.; Eliassen, F.; Taherkordi, A. Demand–Response Games for Peer-to-Peer Energy Trading With the Hyperledger
Blockchain. IEEE Trans. Syst. Man Cybern. Syst. 2021, 52, 19–31. [CrossRef]
41. 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. [CrossRef]
42. Zhang, H.; Zhao, H.; Liu, Q.; Chen, E.; Huang, X. Finding potential lenders in P2P lending: A Hybrid Random Walk Approach.
Inf. Sci. 2018, 432, 376–391. [CrossRef]
43. Suryono, R.R.; Budi, I.; Purwandari, B. Detection of fintech P2P lending issues in Indonesia. Heliyon 2021, 7, e06782. [CrossRef]
[PubMed]
44. W3Schools. Python Random Module. Available online: https://www.w3schools.com/python/module_random.asp (accessed on
15 March 2022).
45. Sukma, N.; Leelasantitham, A. A community sustainability ecosystem modeling for water supply business in Thailand. Front.
Environ. Sci. 2022, 10, 940955. [CrossRef]
46. Sukma, N.; Leelasantitham, A. From conceptual model to conceptual framework: A sustainable business framework for
community water supply businesses. Front. Environ. Sci. 2022, 10, 1013153. [CrossRef]
47. Wu, Z.; Wang, J.; Zhong, H.; Gao, F.; Pu, T.; Tan, C.; Chen, X.; Li, G.; Zhou, M.; Xia, Q. Sharing Economy in Local Energy Markets.
J. Mod. Power Syst. Clean Energy 2023, 11, 714–726. [CrossRef]
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.