Next Article in Journal
Progressive Cellular Architecture in Microscale Gas Chromatography for Broad Chemical Analyses
Next Article in Special Issue
Blockchain Based Transaction System with Fungible and Non-Fungible Tokens for a Community-Based Energy Infrastructure
Previous Article in Journal
Comparative Study on Estimation Methods of Dynamic Resistance Using Dynamic Cone Penetrometer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Bi-Directional Mutual Energy Trade between Smart Grid and Energy Districts Using Renewable Energy Credits

1
Department of Electrical & Computer Engineering, Abbottabad Campus, COMSATS University Islamabad, Abbottabad 22060, Pakistan
2
School of Electrical Engineering & Computer Science (SEECS), National University of Sciences & Technology (NUST), Islamabad 44000, Pakistan
3
Department of Electrical Engineering, Sialkot Campus, University of Management and Technology Lahore, Sialkot 51310, Pakistan
4
Department of Electrical and Computer Engineering, King Abdulaziz University, Jeddah 21589, Saudi Arabia
5
Center of Excellence in Intelligent Engineering Systems, King Abdulaziz University, Jeddah 21589, Saudi Arabia
6
Department of Computer Science, Umm Al-Qura University, Makkah 24381, Saudi Arabia
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(9), 3088; https://doi.org/10.3390/s21093088
Submission received: 8 March 2021 / Revised: 21 April 2021 / Accepted: 22 April 2021 / Published: 29 April 2021
(This article belongs to the Special Issue Blockchain Applications in Smart Energy Grids)

Abstract

:
A central authority, in a conventional centralized energy trading market, superintends energy and financial transactions. The central authority manages and controls transparent energy trading between producer and consumer, imposes a penalty in case of contract violation, and disburses numerous rewards. However, the management and control through the third party pose a significant threat to the security and privacy of consumers’/producers’ (participants) profiles. The energy transactions between participants involving central authority utilize users’ time, money, and impose a computational burden over the central controlling authority. The Blockchain-based decentralized energy transaction concept, bypassing the central authority, is proposed in Smart Grid (SG) by researchers. Blockchain technology braces the concept of Peer-to-Peer (P2P) energy transactions. This work encompasses the SolarCoin-based digital currency blockchain model for SG incorporating RE. Energy transactions from Prosumer (P) to Prosumer, Energy District to Energy District, and Energy District to SG are thoroughly investigated and analyzed in this work. A robust demand-side optimized model is proposed using Genetic Algorithm (GA) and Particle Swarm Optimization (PSO) to maximize Prosumer Energy Surplus (PES), Grid revenue (GR), percentage energy transactions accomplished, and decreased Prosumer Energy Cost (PEC). Real-time averaged energy data of Australia are employed, and a piece-wise energy price mechanism is implemented in this work. The graphical analysis and tabular statistics manifest the efficacy of the proposed model.

1. Introduction

Smart Grid (SG) has changed the way electricity is generated and consumed due to the adoption of the: (a) Advanced computational platform, (b) bi-directional communication of energy, (c) satisfying consumers need through reduced energy cost, and (d) automated, smart, secure network [1]. Energy Districts (EDs) permit small-scale Renewable Energy (RE) consumers and prosumers to trade energy locally [2], an evolving concept of environment-friendly energy transfer.
In conventional centralized energy systems, a central authority manages the energy transfer between consumers and prosumers. The central authority is responsible for supervising agreements and accomplishing transparent trading among participants [3]. However, the outlook of energy with the concept of prosumers accompanied with SG is complicated and challenging [4]. The intermittent RE resources demand for storage options to store surplus energy within SG. Therefore, the most important feature of transportation electrification is the Vehicle to Grid (V2G) concept that store the surplus energy and ensure the provision of surplus energy to SG during high load demand. The storage capability of V2G enhances the utilization of renewable energy sources within EDs [5,6]. The nonlinear and stochastic data within SG demands for advanced machine learning methods. Machine learning is an efficient tool to design energy management model for bidirectional energy and data flow between SG and ED [7]. The complex energy future with the need of integrating more and more RE in the power grid cannot be effectively managed through the conventional centralized system; thus, an alternative decentralized market approach is required.
In a traditional centralized network, more time and money of consumers are wasted involving a third party. The consumers encounter high transaction and management costs and have no direct access to the energy market [8]. The critical centralized architecture results in a computational burden on central authority and is greatly at threat of single-point failure [9]. The challenges associated with the conventional centralized energy network can be addressed through a decentralized approach surpassing the central authority. Blockchain technology is a widely emerging decentralized concept. Blockchain provides a platform for consumers and prosumers to buy and sell energy in a peer-to-peer (P2P) fashion [10] directly with each other and with the SG, bypassing the third party. P2P energy transactions reduce the management and transaction cost and permit consumers to have direct access to the energy market. Due to its decentralized nature blockchain is immune to a single-point failure.
The cost of running decentralized networks and mining cryptocurrencies requires a tremendous amount of energy resulting in an expensive decentralized blockchain network. The high cost of mining cryptocurrencies restricts the blockchain network to the moneyed community. Given the aforementioned issues incurred in decentralized blockchain networks, advance research is focusing on a cryptocurrency that assists a cost-effective network [11]. SolarCoin (SLR)-based blockchain is an evolving platform that addresses the issue of high energy consumption of another cryptocurrencies-based blockchain [12]. A cost-effective SLR blockchain network lays out an equal opportunity platform. Any person owning some SLR stakes is invited to join the blockchain network. Besides cracking the energy consumption problem, SLR encourages the transition from fossil fuel to clean green energy. Small or large-scale solar energy producers registered with Solar Coin Foundation (SCF) earns one SLR as a free incentive at the rate of one MW produced. Encouraging the users to install and rely on solar panels rather than the conventional fossil fuel energy method, through disbursing one SLR for each MWh as a free reward, is contributing towards a carbon-free environment. SLRs can be exercised for any purpose or can be converted to fiat currency [13].
Extensive research works have been dedicated to blockchain technology over the last few years [8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]. Authors in [14] proposed IBM HyperLedger Fabric blockchain-based P2P crowdsourced energy model. Authors in [15] presented demand-side management permitting users to reduce their electricity bill through effective day-ahead scheduling of energy consumption incorporating the blockchain technology. In [16], authors explored ongoing blockchain-based microgrid projects and came with the idea of establishing a blockchain-based microgrid. Authors in [8] came up with the architecture of solar energy production and distribution incorporating Smart Contracts to establish an energy exchange market. In [3], authors proposed the design and implementation of a Decentralized Transactive platform encompassing fault detection. Authors in [17] proposed the design and implementation of local energy markets on a private blockchain and evaluation of an economic market mechanism.
A case study incorporating implemented Ethereum-based Brooklyn Microgrid (BMG) was evaluated by researchers in [2]. Authors in [18] proposed a privacy-preserving blockchain-enabled trading model. The authors addressed the privacy protection of individuals on consortium blockchain-based energy trading systems through the introduction of a noise-based privacy-preserving approach. In [19], authors evaluated blockchain-based demand–response distributed energy management for SGs. Effective distributed management through the detection of energy unbalances and disbursement of rewards and penalties was implemented using Smart Contracts. Authors in [20] proposed the implementation of blockchain technology to empower Machine-to-Machine (M2M) interactions in a chemical industry based on a proof-of-concept. The employment of Smart Contracts to enhance the speed, security, and scalability of blockchain-based energy exchange was proposed by authors in [21]. Different blockchain solutions were tested on the Pacific Northwest National Lab (PNNL)’s transactive campus to investigate and reduce possible associated cyber risks.
Although the above-mentioned research works successfully explored and implemented the characteristics and applications of blockchain technology in the energy market and SG, they lack in dispensing (a) the SLR blockchain-based Mutual Energy Trade Model (METM) incorporating demand-side management, (b) the evaluation of optimized energy transactions accomplished in a blockchain network considering seasonal variations, and (c) the implementation of energy transactions between prosumers, consumers, and multi-EDs based on SLR blockchain. Moreover, free SLRs disbursement as an incentive for Solar Energy Prosumers was not incorporated in previous works.
Significant contributions of this work based on the previous-mentioned issues are:
  • SLR blockchain-based energy trade model is designed and analyzed that deploys Smart Contracts to empower mutual energy transactions between Prosumer and Consumer, Prosumer and Prosumer, multiple EDs, and between ED and SG. Three EDs are considered in this work with each ED comprising of N-consumers and N-prosumers. EDs are interfaced with SG as ED1 and ED2 are Solar Energy Districts and ED3 is Wind Energy District.
  • A demand-side multi-objective optimization model is implemented. The Australian-based piece-wise real-time pricing scheme is considered. Price-based incentives are considered for prosumers to achieve the objectives of maximizing Prosumer Energy Surplus (PES), Grid Revenue (GR), percentage energy transactions accomplished, and minimization of Prosumer Energy Cost (PEC).
  • Incentives coupled with SLR blockchain are considered for Solar Energy Prosumers. The performance of the proposed model is evaluated using a Genetic Algorithm and Particle Swarm Optimization considering seasonal variations. In-depth tabular and graphical comparison of GA optimized results and PSO is critically analyzed.
Table 1 summarizes the comparative analysis of selected research work conducted on blockchain technology. Table 1 also highlights the contributions of this work compared to existing research work. In Table 1, “🗸” represents the presence of the attributes and “🗴” represents the absence of the attributes.
The rest of the paper is organized as follows. Section 2 presents the proposed SLR blockchain-based METM. A blockchain-based optimization model is discussed in Section 3. Section 4 covers the performance evaluation accompanied by the data analysis, seasonal variations, blockchain implementation, and tabular statistics. The paper concludes with a summary and future directions in Section 5.

2. SolarCoin (SLR) Blockchain-Based Mutual Energy Trade Model (METM)

This section presents the proposed SLR Blockchain-based METM. The pricing mechanism and mutual energy contracts employed in this work are also explicated in this section.

2.1. System Model

Figure 1 presents the proposed blockchain-based energy model, which comprises three distributed EDs: Two Solar EDs and a wind ED. Each Solar ED includes N-consumers and N-Solar Energy Prosumers (SEPs). Similarly, Wind ED incorporates N-Wind Energy Prosumers (WEPs) accompanied by N-consumers. The energy demand of three EDs cannot be met alone through RE and are interfaced with SG. Three EDs also support SG during peak hours. The energy transactions between multiple prosumers, consumers, EDs, and SG are carried on a P2P SLR blockchain platform, as shown in Figure 1.
Transactions executed on a digital network eliminating the third party contribute to a cost-effective system. SEPs and WEPs produce energy, satisfy their load requirements, and share the surplus, unused energy with neighboring consumers. Blockchain permits prosumers and consumers to trade energy transparently and securely without relying on the grid. Consumers and Prosumers on the network can buy energy at a reduced cost and are paid for selling excess energy to neighboring users and the grid. Participants on the blockchain network are referred to as nodes. SLR is exchanged among the nodes of the network as a result of energy transactions.
In Figure 1, SEPs and WEPs update their status on the network claiming to sell energy. Consumers wanting to buy energy put requests on the network.
Prosumers and consumers on the blockchain network undertake an agreement under the umbrella of a contract without the need of trusting each other. The nodes must fulfill contract conditions to carry out energy transactions. The contract will be executed automatically after the conditions are satisfied. The system (a) connects prosumer and consumer on the network and scrutinizes (b) energy availability according to consumer’s request, (c) Consumer’s balance, and SLRs at hand. On satisfactory execution of the contract, the transaction record is dispensed to each node of the network for verification. After verification, the transaction is accomplished, and a block of the transaction is added to the chain of the network.

2.2. Pricing Mechanism

The Queensland, Australia-based piece-wise energy price mechanism is implemented in this work. In this pricing mechanism, consumers are charged according to (a) the amount of energy utilized and (b) the day and time of energy utilization. Consumers encounter high energy utilization rates during peak hours. Low energy utilization rates are offered during off-peak hours. No peak hour utilization rates are charged on weekends [22]. The pricing mechanism incorporated in this work is illustrated in Table 2. In Queensland, on 26 February 2020, peak and off-peak utilization rates charged were $325.87/MWhr and $151.73/MWhr, respectively [23]. One USD (United States Dollar) is equal to 34.06690740614567 SLRs as of 23 February 2021 [24].
The proposed blockchain-based EDs offer consumers lower energy prices than the conventional grid. Prosumers rate their surplus energy 10 percent lower than rates offered by the traditional grid. Energy exported to SG is 10 percent higher than the normalized rates. Table 3 demonstrates the pricing mechanism exercised on the proposed blockchain platform.

2.3. Mutual Energy Contract (MEC)

The nodes of the network agree upon and sign a desired and flexible mutual energy contract to carry out energy transactions without involving a third party. This energy contract across the blockchain platform is referred to as Smart Contract (SC), which is an enforced agreement holding certain rules that need to be followed by every node of the network. SC empowers transparent and trusted energy transactions among nodes of the network and behaves as the controlling entity of a decentralized network [19]. SC is immutable, self-executing, written in the form of code, and is stored on the blockchain [25].
Prosumer mode: Whenever the energy produced by a participant of the network is more than the energy demand, participants announce themselves as prosumers to sell extra, unused energy to grid or neighboring users.
Prosumer   mode P gen h > P dem h
where P gen h   and P dem h refer to prosumer’s energy generation and demand at hour h, respectively.
Consumer mode: Whenever the energy produced by the participants is not enough to satisfy their energy demand, participants announce themselves as consumers and put an energy request on the network.
Consumer   mode P gen h < P dem h
Prosumer energy rate: On the blockchain network, prosumers sell energy at a rate 10 percent less than the normalized rates. Consumers buy energy from prosumers on the network at a price offered less than the traditional grid. Prosumers export energy to SG at a rate 10 percent higher than the normalized rates.
P P r h for   C , 10 % < P R h for   S G , 10 % > P R h
where P P r h is the real-time energy Price (Pr) offered by the Prosumer (P) to Consumer (C) and SG in a blockchain network at hour h. P R h is the real-time energy price offered by the grid at hour h.
Incentives: Solar energy prosumers are rewarded 1 SLR for each MW solar energy produced from the SCF [13].
Energy Transactions: In our proposed model, energy transactions are carried out in four different categories under SC.
(a)
Prosumer-to-Consumer (P-C): On the digital blockchain network, prosumers share the information of their energy generation. Consumers reach the prosumer to satisfy load requirements, without relying on the grid.
h = 1 H C dem h h = 1 H P E S h
where C dem h demonstrates the Consumer energy demand at hour h, P E S h refers to Prosumer Energy Surplus (PES) at hour h. Arrow indicates the C energy demand satisfying through PES.
(b)
Prosumer-to-Prosumer (P-P): Whenever the prosumers’ energy produced from RE is not enough to meet their load requirements, prosumers import energy from other prosumers in an ED.
h = 1 H P 1 , dem h   h = 1 H P 2 , dem h
where P 1 , dem h ,   P 2 , dem h   indicate the first and second Prosumer energy demand at hour h, respectively. The arrow specifies mutual energy trade between two prosumers.
(c)
Energy District-to-Energy District (ED-ED): An ED fulfills its load requirements from other ED at times of reduced energy generation from RE.
h = 1 H E D 1 , dem h   h = 1 H E D 2 , dem h
where E D 1 , dem h ,   E D 2 , dem h points out the first ED’s and 2nd ED’s energy demand at hour h, respectively.
(d)
Energy District-to-Smart Grid (ED-SG): The bi-directional feature and addition of prosumer to SG is beneficial to both SG and prosumer. At times of minimum RE generation, EDs import deficient energy from SG, while at times of maximum RE production, EDs sell surplus and unused energy to SG and are incentivized with SLRs.
h = 1 H E D dem h h = 1 H S G dem h
where S G dem h refers to Smart Grid’s energy demand at hour h.
Constraints: The following constraints are encoded in our implemented SC.
(a)
Prosumers and consumers must be connected on the blockchain network.
h = 1 H P c h = h = 1 H C c h = 1
where P c h ,   C c h in Equation (8) refers to prosumer and consumer connectivity in the blockchain network at hour h, respectively.
h = 1 H P E S h     h = 1 H C dem h
(b)
Prosumers must have enough surplus energy to satisfy the consumer’s load requirement.
(c)
The consumer must not be a defaulter (must have enough SLR to import energy).
h = 1 H Caccount h     h = 1 H P P r h
where Caccount h demonstrates the consumer’s account status at hour h and P P r h refers to th ereal-time energy price offered by prosumer at hour h.
(d)
Prosumer must sell energy at a reduced rate.
h = 1 H P P r h     h = 1 H P R h
where P R h in Equation (11) indicates the real-time energy price encounters by the consumer from the grid.

3. Blockchain-Based Robust Optimization Model

The advanced technical appliances contribute to an elevated consumers’ energy consumption profile. The increased energy consumption overturns high energy costs. An effective Demand-Side Management (DSM) technique curtails the consumer’s energy consumption and the energy cost incurred by the consumer is substantial. The bi-directional communication in SG assists for an effective DSM [26]. Moreover, it empowers RE prosumers to import surplus energy to neighboring users and the grid.
In this paper, the implemented pricing mechanism assists in the execution of DSM. Consumers are encouraged to shift their energy consumption pattern towards off-peak periods due to low energy prices offered during off-peak hours. The implementation of the DSM technique results in (a) reduced consumer’s energy cost, (b) increased production of Prosumer Energy Surplus through maximum utilization of RES, and (c) increased Grid Revenue as a result of maximum RE import to the grid. The multi-objective optimization problem is solved using demand-response algorithms. The Genetic Algorithm (GA) Optimization and the Particle Swarm Optimization (PSO) algorithm are implemented in this work.

3.1. Prosumer Energy Surplus (PES)

The prosumer energy generated from solar or wind suffers from fluctuations. At times, the energy generated through RE exceeds the prosumer’s energy demand, enabling prosumers to merchandise this excess energy with the neighboring user. This generated energy that outstrips prosumers’ energy demand is referred to as Prosumer Energy Surplus (PES) [27].
P E S = P gen P dem
The system defined in this work maximizes the PES considering certain constraints. The optimization problem of PES is formulated as:
max h = 1 H P gen h P dem h
Subject to:
0 P gen h P gen , max h
0 P dem h P dem , max h
where P gen h refers to prosumers’ energy generated from wind or solar at hour h and P dem h speaks for prosumers’ actual energy demand at hour h. P gen , max h and P dem , max h identifies the prosumers’ maximum energy generation and demand, respectively. Equation (13) represents the objective function, and Equations (14) and (15) are inequality constraints of an optimization problem.

3.2. Prosumer Energy Cost (PEC)

The prosumer energy demand that exceeds wind- or solar-generated energy compels the prosumer to import this deficient energy from the grid or neighboring users to meet energy requirements. The imported energy cost incurred by the prosumer is referred to as Prosumer Energy Cost (PEC).
P E C = P dem P gen
The presented model focuses on minimizing PEC through optimization of the prosumer energy demand. The mathematical formulation of the optimization problem for PEC is expressed as:
min h = 1 H P R h * P dem h P gen h
Subject to:
0 P gen h P gen , max h
0 P dem h P dem , max h
where Equation (17) specifies the objective function of the presented optimization problem with Equations (18) and (19) acting as inequality constraints. P R h refers to real-time energy price offered by the grid at hour h.

3.3. Grid Revenue

The PES exported to the grid results in an incentive for prosumers defined as Grid Revenue (GR), expressed as:
G R = ( ( P R * E impSG ) + ( ( P R P ɳ ) + P E S ) )
  max h = 1 H ( ( P R h * E impSG h ) + P E S h * ( P R h P ɳ h ) )
0 P gen h P gen , max h
Subject to:
0 P dem h P dem , max h
The proposed model emphasizes the maximization of GR. The optimization problem formulation for GR is illustrated in Equations (21)–(23). Equation (21) presents the objective function of the maximization problem while Equations (22) and (23) are inequality constraints of an optimization problem.
P ɳ h is the nominal price proposed to SG on account of prosumer energy export and E impSG h is the energy imported from SG at hour h.

3.4. Prosumer Energy Surplus (PES) and Prosumer Energy Cost (PEC)

This research work focuses on the comparative analysis of PES and PEC in one domain subjected to diverse weather fluctuations. The merged mathematical model for the minimization of PEC and maximization of PES is expressed as:
min h = 1 H P R h * P dem h P gen h ɳ * max h = 1 H P gen h P dem h
Subject to:
0 P gen h P gen , max h
0 P dem h P dem , max h
0 ɳ h 100
where ɳ is the weighting function.

3.5. Optimization Algorithm

This research work uses Particle Swarm Optimization (PSO) and Genetic Algorithm (GA) optimization algorithms for the minimization of PEC and maximization of PES, percentage energy transactions accomplished throughout the year, and GR.
Algorithms 1 and 2 solve the multi-objective optimization problem to carry out the objectives of increased PES, GR, and minimized PEC, respectively.
The layout of GA for the optimization of PEC, PES, and GR is presented as:
Algorithm 1 Robust GA optimization algorithm for PEC, PES, GR
1:   Initialize P R h ,   P E dem h ,   P E gen h
2:   t = 0
3:   Evaluate P E S   using (12), P E C using (16) and G R using (20)
4:   Evaluate optimization problem for P E S , P E C and G R using (13)–(15), (17)–(19), (20)–(23), and (24)–(27)
5:   If optimization converges, then optimization achieved.
6:                Else
7:                t = t + 1
8:                Evaluate next generation.
9:        End
10: End
Algorithm 2 presents the layout of the PSO technique for PEC, PES, and GR.
Algorithm 2 Robust PSO algorithm for PEC, PES, GR
1:   Initialize P R h ,   P E dem h ,   P E gen h
2:   t = 0
3:   Evaluate   P E S   using (12), P E C using (16) and G R using (20)
4:   Evaluate optimization problem for P E S , P E C and G R using (13)–(15), (17)–(19), (20)–(23), and (24)–(27)
5:   If optimization converges, then optimization achieved.
6:               Else
7:               t = t + 1
8:       End
9: End

3.6. Proposed Blockchain Optimization Model

Robust demand-side optimization is considered to be a pivotal element in implementing blockchain-based energy transactions. This work aims at accomplishing maximum energy transactions among participants of the SLR blockchain network throughout the year. The mathematical formulation of the optimization problem is expressed in Equations (28)–(39), with Equations (28)–(31) acting as the objective function of the maximum optimization problem. Equations (32)–(35) and Equations (37)–(39) are inequality constraints of the optimization problem while Equation (36) presents equality constraints of the proposed optimization problem.
max ( h = 1 H C dem h h = 1 H P E S h )
max ( h = 1 H P 1 , dem h   h = 1 H P 2 , dem h )
max ( h = 1 H E D 1 , dem h   h = 1 H E D 2 , dem h )
max ( h = 1 H E D dem h h = 1 H S G dem h )
Subject to:
0 C dem h C dem , max h
0 P 1 , d e m h P 1 , dem , max h
0 P 2 , dem h P 2 , dem , max h
0 E D 1 , dem h E D 2 , dem , max h
h = 1 H P c h = h = 1 H C c h = 1
h = 1 H P E S h     h = 1 H C d e m h
h = 1 H Caccount h     h = 1 H P P r h
h = 1 H P P r h     h = 1 H P R h
where C dem , max h is the consumer’s maximum energy demand at hour h. P 1 , dem , max h represents the first prosumer’s maximum energy demand and P 2 , dem , max h illustrates the second prosumer’s maximum energy demand at hour h. E D 2 , dem , max h represents ED’s maximum demand at hour h.
Energy transactions among multiple participants of the proposed model are accomplished utilizing Algorithms 3 and 4.
The layout of the energy transactions carried out among multiple prosumers, consumers, EDs, and SG is portrayed through the following algorithms:
Algorithm 3 Blockchain-based P-C energy transaction algorithm
1:   Initialize P E S h ,   C d e m h , P P r h ,
2:   Gather prosumer’s and consumer’s active status on the blockchain network
3:   Gather consumer’s account details.
4:   Accomplish energy transaction between Prosumer to the Consumer using (28) subject to the constraints in (32)–(39)
5:   If the transaction successful
6:       Energy transferred to the consumer, SLRs transferred to prosumer.
7:       Else
8:          No energy transacted, shift to another prosumer.
9:          Repeat step 1–10 for another energy transaction
10: End
11: End
Algorithm 4 Blockchain-based P-P, ED-ED, and ED-SG energy transactions algorithm
1:   Initialize P 1 E S h ,   P 2 E S h ,   P 1 d e m h , P 2 dem h ,   P P r h ,
2:   Gather prosumer1 and prosumer2 active status on the blockchain network.
3:   Gather prosumer1 and prosumer2 account details.
4:   Decide prosumer and consumer from prosumer1 and prosumer2.
5:   Accomplish bi-directional energy transaction between Prosumer to Prosumer, Energy District to Energy District and Energy District to Smart Grid using (29)–(31) subject to the constraints in (32)–(39)
6:   If the transaction successful
7:        Energy transferred to the consumer, SLRs transferred to prosumer.
8:     Else
9:        No energy transacted, shift to another prosumer.
10:         Repeat step 1–10 for another energy transaction
11: End
12: End

4. Performance Evaluation

This section arrays the implementation of SLR blockchain-based METM. An in-depth analysis accompanied by the detailed results of the proposed model is incorporated in this section.

4.1. Data Analysis

The proposed model in this article is evaluated regulating Australian-based case studies. The energy generation and consumption data profiles of one year from Queensland (Australia) are considered. For the simulation of each day, energy data of 24 h are considered. We have considered independent solar energy producers, and their energy profiles are taken from Queensland Live Solar Outputs [28]. Two onshore wind farms, Cooper Gap Wind Farm (COOPGWF1) and Mount Emerald Wind Farm (MEWF1), with the generating capacity of 452 and 180 MW, respectively, are considered. Their hourly energy generation data are extracted from Aneroid Energy [29]. The energy demand for Queensland and grid generation data are extracted from AEMO [30].

4.2. Seasonal Variations

In our presented case study, blockchain-based energy transactions and DSM are analyzed under the influence of four seasons i.e., Spring, Summer, Autumn, and Winter seasons.

4.2.1. Spring Season

Australian seasons come about at times opposite to the northern hemisphere. The Spring season is observed from September to November [31]. In Queensland, September and October are the months experiencing the best solar performance with 7.25 and 6.28 peak sun h/day [32]. These months are considered as windier months of the year with an average wind speed exceeding 4.2 m/s [33]. Prosumers have enough energy generation, and export surplus energy to neighboring users and the grid. Increased export and decreased import from the grid overturns reduced PEC. Figure 2 shows the unoptimized and optimized PEC, PES, and GR. ED1 and the month of October are considered for graphical analysis. The 9th, 14th, 23rd, 24th, and 29th of October have the maximum solar irradiance resulting in escalated solar energy generation and minimum PEC; while on the 4th, 10th, and 15th of October, minimum solar energy is produced, compelling the prosumer to import energy from the grid, resulting in an increased PEC. The figure demonstrates that the maximum solar energy is produced on the 9th, 14th, 23rd, 24th, and 29th of October due to increased solar radiation resulting in high PES. The minimum solar energy is generated on the 4th, 10th, and 15th of October leading to decreased PES. The maximum generation of PES on the 9th, 14th, 23rd, 24th, and 29th of October permits the prosumer to sell extra energy to the grid, paving the way for an escalated GR; while the minimum PES generation on the 4th, 10th, and 15th of October results in decreased GR.
The energy transactions between P-C, P-P, ED-ED, and ED-SG are presented in Figure 3. The optimized results outweigh the unoptimized results. GA and PSO maximize the PES and GR and minimize PEC. Similarly, more optimized energy transactions are performed than unoptimized transactions due to the maximization of PES. Due to the availability of surplus energy, ED imports surplus unused energy to SG, as shown in Figure 3.

4.2.2. Summer Season

In Australia, the Summer season is observed from December to February. Average solar performance during the summer season is recorded as 6.22 peak sun h/day. The months in the Summer season are considered as the windier part of the year with an average wind speed of 4.2 m/s. February 26th is recorded as the windiest day of the year with an average wind speed of 4.5 m/s [33]. Excellent solar irradiance and wind speed contribute to an increased PES and minimized PEC. Unoptimized and optimized PEC, PES, and GR are presented in Figure 4. Maximum PEC is observed on 10th, 15th, 20th, 23rd, and 31st of January while the 1st, 5th, 12th, 18th, 21st, and 30th of January flag the minimum PEC. Due to high solar irradiance observed on the 1st, 5th, 12th, 18th, 21st, and 30th of January, the maximum energy surplus is produced. On the 10th, 15th, 20th, 23rd, and 31st of January, the minimum energy surplus is produced. The maximum GR is marked on the 3rd of January while minimum GR is observed on the 10th, 15th, and 20th of January due to the minimum energy production. The energy transactions between P-C, P-P, ED-ED, and ED-SG are presented in Figure 5.
Due to the availability of energy surplus, enough energy transactions are performed between P-C, P-P, and ED-ED throughout the month. Increased PES permits prosumer to export energy to the grid as illustrated in Figure 5.

4.2.3. Autumn Season

The Autumn season is observed in Queensland, Australia in March, April, and May, where 4.39 peak sun h/day is recorded as the average sun performance during the Autumn season with an average wind speed of 3.5 m/s. The maximum surplus energy generation on the 3rd and 16th of March results in minimized PEC as depicted from Figure 6. The increased PES on the 3rd, 11th, 16th, 20th, and 29th of March permits ED to export energy to the grid, contributing to escalated GR. Figure 7 presents energy transactions performed between P-C, P-P, ED-ED, and ED-SG, respectively.

4.2.4. Winter Season

The Winter season is observed in Queensland, Australia from June to August. June has the worst average solar performance with 5.36 peak sun h/day. The average wind speed in Queensland from June to August is 3.8 m/s. The optimized and unoptimized PEC, PES, and GR are presented in Figure 8. The 4th, 10th, 15th, 24th, and 31st of July have the maximum while the 6th, 13th, 14th, 20th, 26th, and 27th of July have the minimum PEC. The maximum PES is observed on the 6th, 13th, 14th, 20th, 26th, and 27th of July. The 4th, 10th, 15th, 24th, and 31st of July exhibits low PES leading prosumer towards grid energy import and a reduced PEC. Days with low PES (4th, 10th, 15th, 24th, and 31st of July) result in decreased GR while the maximum GR is observed on the days of high PES. Figure 9 demonstrates the number of unoptimized and optimized energy transactions performed between P-C, P-P, ED-ED, and ED-SG throughout the month. Due to the minimum wind speed and solar radiance, minimal energy transactions are accomplished throughout the month. GA maximizes the number of energy transactions more so than PSO as depicted in Figure 9.

4.2.5. Comparative Analysis of Genetic Algorithm (GA) Optimization and Particle Swarm Optimization (PSO)

Optimization of PEC, PES, and GR performed through the GA and PSO algorithms is comparatively analyzed in this work. Optimized results achieved through GA outperform the PSO results. The maximum reduction of PEC is accomplished using GA in all four seasons compared to PSO. Similarly, GA assists in the maximization of PES and GR more effectively than PSO.
Table 4 summarizes the average results of GA optimization and PSO for three EDs. The table shows average change observed between unoptimized and optimized results of GA is more than the average change of PSO results and signifies the better performance of GA in this work.

4.2.6. SolarCoin (SLR) Blockchain Implementation

Figure 10 demonstrates energy transactions performed between a prosumer and a consumer on the SLR blockchain. The record of the transaction exhibits an encrypted hash of the block, the address of prosumer and consumer, the time of the transaction, and the amount of energy /SLR transacted. A consumer with the address “s0987654321dfghjkl” requests 0.043014 MW of energy on the network. The system searches for a prosumer on the network owning 0.043014 MW surplus energy. The system connects the consumer with the prosumer with the address “x123456789zcvbnm”. SC executes and implements the encoded constraints. On successful implementation of constraints, the prosumer sells the required energy to the consumer and the consumer pays the prosumer with 1172 SLRs.

4.3. Prosumer Energy Cost (PEC) and Prosumer Energy Surplus (PES)

Figure 11 signifies the impact of the variation of PES on PEC. An increase in the PES on account of the increased peak sun h/day and increased wind speed eliminates the need for energy import from the grid, resulting in a decreased PEC as depicted in Figure 11. For each MWhr rise in PES, PEC subsequently decreases.

4.4. Critical Analysis

The comparative tabular analysis of unoptimized and optimized GA DSM is scrutinized in this sub-section. Aggregate energy transactions accomplished in all four seasons are extensively analyzed.

4.4.1. Comparative Analysis of Demand Management

Table 5 presents the comparative statistics of DSM performed on the proposed SLR blockchain-based METM. Unoptimized and GA-optimized results for ED1, ED2, and ED3 enveloping PEC, PES, and GR are manifested in this table. The average change observed between unoptimized and optimized results of the three EDs is analyzed. The table shows GA optimized results surpass the unoptimized results. PEC is effectively minimized throughout the year as a result of optimization of EDs’ demand. Similarly, energy surplus is maximized empowering prosumers to satisfy their load requirements and import energy to SG, resulting in an increased GR for prosumers.

4.4.2. Smart Contract Validation

Extensive variation in solar radiation and wind speed throughout the year influence the aggregated RE generation engendering enough or reduced energy transactions. The averaged percentage of unoptimized, GA-optimized, and PSO-based energy transactions accomplished in each month are summarized in Table 6. The table shows that the percentage of optimized transactions is more than the percentage of unoptimized energy transactions. In addition, the percentage change of GA optimized energy transactions is greater than the average change observed in PSO.

5. Conclusions and Future Work

A central authority supervising energy and financial transactions in an energy sector experiences a substantial computational burden. Stakeholders are being charged for each transaction made by a central authority and the privacy of their transactions’ profile is greatly at threat. The trading approach in a decentralized fashion bypassing central authority is greatly in need. Blockchain technology underpins peer-to-peer energy transactions and eliminates the issues associated with the central authority. SLR blockchain-based METM is proposed to permit a decentralized energy trading concept. Two Solar EDs and a Wind ED incorporating N-SEPs, N-WEPs, and N-consumers are deployed in the proposed model. Energy transactions are carried out between P-C, P-P, ED-ED, and ED-SG. SLRs are exchanged among the users as a result of energy trading. The demand-side optimization problem is formulated using GA and PSO for the maximization of PES and GR and minimization of PEC. The performance of the SLR blockchain-based METM is evaluated in all four seasons. The unoptimized, GA-optimized, and PSO results of four seasons are critically and comparatively analyzed. Maximum energy surplus is generated in the Summer and Spring (52 percent) seasons on account of the high wind speed and enough solar radiations. Seventy-one percent of GR is earned in the Summer and Spring seasons. Similarly, the minimum PEC is observed in the Spring and Summer (53 percent) seasons compared to the Autumn and Winter seasons. The GA optimized results outperform the PSO results. GA maximizes PES on average by 29 percent compared to PSO (28 percent). The uncertainty confronted by the RE generation affects the average energy transactions carried out in each season. Thirty-nine percent of energy transactions are accomplished between P-C in the Spring season and 35 percent in the Summer season compared to Autumn (13 percent) and Winter (10 percent) season. Similarly, GA effectively maximizes the percentage of energy transactions accomplished as compared to PSO. A 62 percent average increase in energy transactions carried out between P-C by GA optimization is observed in the Summer season compared to that carried out by PSO (60 percent).
The scalability of our proposed model incorporating multiple energy transactions among numerous EDs and SG at one time is a possible future direction of this work. Furthermore, issues coupled with the scalability of blockchain technology need to be addressed in the future. Speed and security are the major directions of improvement in a scaled blockchain network.

Author Contributions

Conceptualization, S.R., B.K., and S.M.A.; methodology, J.A.; software, S.R.; validation, B.K.; formal analysis, B.K.; investigation, S.M.A.; resources, B.K.; data curation, S.M.A.; writing—original draft preparation, S.R.; writing—review and editing, Z.U.; visualization, J.A.; supervision, B.K.; project administration, Z.U.; funding acquisition, A.J.A. and A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Deanship of Scientific Research at Umm Al-Qura University under Grant 19-COM-1-01-0017.

Institutional Review Board Statement

Not Applicable.

Informed Consent Statement

Not Applicable.

Data Availability Statement

This study did any report any data.

Acknowledgments

We are thankful to COMSATS University Islamabad, Abbottabad Campus for providing a simulation Laboratory to validate our results.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

AcronymsDefinitions
CConsumer
DRPDemand Response Program
DSMDemand-Side Management
EDsEnergy Districts
EMEnergy Management
GAGenetic Algorithm
GRGrid Revenue
MECMutual Energy Contract
METMMutual Energy Trade Model
PProsumer
PECProsumer Energy Cost
PESProsumer Energy Surplus
PSOParticle Swarm Optimization
P2PPeer-to-peer
RERenewable Energy
SCSmart Contract
SEPsSolar Energy Prosumers
SGSmart Grid
SLRsSolar Coins
WEPsWind Energy Prosumers

References

  1. Pieroni, A.; Scarpato, N.; Nunzio, L.D.; Fallucchi, F.; Raso, M. Smarter City: Smart Energy Grid based on Blockchain Technology. Int. J. Adv. Sci. Eng. Inf. Technol. 2018, 8, 298. [Google Scholar] [CrossRef]
  2. Mengelkamp, E.; Gärttner, J.; Rock, K.; Kessler, S.; Orsini, L.; Weinhardt, C. Designing microgrid energy markets. Appl. Energy 2018, 210, 870–880. [Google Scholar] [CrossRef]
  3. Laszka, A.; Eisele, S.; Dubey, A.; Karsai, G.; Kvaternik, K. TRANSAX: A Blockchain-Based Decentralized Forward-Trading Energy Exchanged for Transactive Microgrids. In 2018 IEEE 24th International Conference on Parallel and Distributed Systems (ICPADS); Institute of Electrical and Electronics Engineers (IEEE): Singapore, 2018; pp. 918–927. [Google Scholar]
  4. Hasankhani, A.; Hakimi, S.M.; Shafie-Khah, M.; Asadolahi, H. Blockchain technology in the future smart grids: A comprehensive review and frameworks. Int. J. Electr. Power Energy Syst. 2021, 129, 106811. [Google Scholar] [CrossRef]
  5. Shaukat, N.; Khan, B.; Ali, S.; Mehmood, C.; Khan, J.; Farid, U.; Majid, M.; Anwar, S.; Jawad, M.; Ullah, Z. A survey on electric vehicle transportation within smart grid system. Renew. Sustain. Energy Rev. 2018, 81, 1329–1349. [Google Scholar] [CrossRef]
  6. Asghar, R.; Rehman, F.; Ullah, Z.; Qamar, A.; Ullah, K.; Iqbal, K.; Aman, A.; Nawaz, A.A. Electric vehicles and key adaptation challenges and prospects in Pakistan: A comprehensive review. J. Clean. Prod. 2021, 278, 123375. [Google Scholar] [CrossRef]
  7. Ahmed, W.; Ansari, H.; Khan, B.; Ullah, Z.; Ali, S.M.; Mehmood, C.A.; Qureshi, M.B.; Hussain, I.; Jawad, M.; Khan, M.U.S.; et al. Machine Learning Based Energy Management Model for Smart Grid and Renewable Energy Districts. IEEE Access 2020, 8, 185059–185078. [Google Scholar] [CrossRef]
  8. Yahaya, A.S.; Javaid, N.; Javed, M.U.; Shafiq, M.; Khan, W.Z.; Aalsalem, M.Y. Blockchain-Based Energy Trading and Load Balancing Using Contract Theory and Reputation in a Smart Community. IEEE Access 2020, 8, 222168–222186. [Google Scholar] [CrossRef]
  9. Masaud, T.M.; Warner, J.; El-Saadany, E.F. A Blockchain-Enabled Decentralized Energy Trading Mechanism for Islanded Networked Microgrids. IEEE Access 2020, 8, 211291–211302. [Google Scholar] [CrossRef]
  10. Ahl, A.; Yarime, M.; Tanaka, K.; Sagawa, D. Review of blockchain-based distributed energy: Implications for institutional development. Renew. Sustain. Energy Rev. 2019, 107, 200–211. [Google Scholar] [CrossRef]
  11. Musleh, A.S.; Yao, G.; Muyeen, S.M. Blockchain Applications in Smart Grid–Review and Frameworks. IEEE Access 2019, 7, 86746–86757. [Google Scholar] [CrossRef]
  12. Siano, P.; Marco, G.D.; Rolan, A.; Loia, V. A Survey and Evaluation of the Potentials of Distributed Ledger Technology for Peer-to-Peer Transactive Energy Exchanges in Local Energy Markets. IEEE Syst. J. 2019, 13, 3454–3466. [Google Scholar] [CrossRef]
  13. SolarCoin. Available online: https://solarcoin.org/wp-content/uploads/SolarCoin_Policy_Paper_EN-1.pdf (accessed on 23 February 2021).
  14. Wang, S.; Taha, A.F.; Wang, J.; Kvaternik, K.; Hahn, A. Energy Crowdsourcing and Peer-to-Peer Energy Trading in Blockchain-Enabled Smart Grids. IEEE Trans. Syst. ManCybern. Syst. 2019, 49, 1612–1623. [Google Scholar] [CrossRef] [Green Version]
  15. Noor, S.; Yang, W.; Guo, M.; Dam, K.H.V.; Wang, X. Energy Demand Side Management within micro-grid networks enhanced by blockchain. Appl. Energy 2018, 228, 1385–1398. [Google Scholar] [CrossRef]
  16. Kim, G.; Park, J.; Ryou, J. A Study on Utilization of Blockchain for Electricity Trading in Microgrid. In Proceedings of the 2018 IEEE International Conference on Big Data and Smart Computing (BigComp), Shanghai, China, 15–17 January 2018. [Google Scholar]
  17. Mengelkamp, E.; Notheisen, B.; Beer, C.; Dauer, D.; Weinhardt, C. A blockchain-based smart grid: Towards sustainable local energy markets. Comput. Sci. Res. Dev. 2017, 33, 207–214. [Google Scholar] [CrossRef]
  18. Gai, K.; Wu, Y.; Zhu, L.; Qiu, M.; Shen, M. Privacy-Preserving Energy Trading Using Consortium Blockchain in Smart Grid. IEEE Trans. Ind. Inform. 2019, 15, 3548–3558. [Google Scholar] [CrossRef]
  19. Pop, C.; Cioara, T.; Antal, M.; Anghel, I.; Salomie, I.; Bertoncini, M. Blockchain Based Decentralized Management of Demand Response Programs in Smart Energy Grids. Sensors 2018, 18, 162. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  20. Sikorski, J.J.; Haughton, J.; Kraft, M. Blockchain technology in the chemical industry: Machine-to-machine electricity market. Appl. Energy 2017, 195, 234–246. [Google Scholar] [CrossRef]
  21. Mylrea, M.E.; Gourisetti, S.N.G. Blockchain for smart grid resilience: Exchanging distributed energy at speed, scale and security. In Proceedings of the Resilience Week (RWS 2017), Wilmington, DE, USA, 18–22 September 2017. [Google Scholar]
  22. P. by S. D. 05/07/2020, “Peak & Off-Peak Electricity Times: Tariffs & Rates,” Canstar Blue, 07-Apr-2021. [Online]. Available online: https://www.canstarblue.com.au/electricity/peak-off-peak-electricity-times (accessed on 23 February 2021).
  23. AEMO|NEM data dashboard. Available online: https://aemo.com.au/Energy-systems/Electricity/National-Electricity-Market-NEM/Data-NEM/Data-Dashboard-NEM (accessed on 26 February 2020).
  24. Solarcoin Price, SLR Price Index, Chart, and Info|CoinGecko. Available online: https://www.coingecko.com/en/coins/solarcoin (accessed on 23 February 2021).
  25. Frankenfield, J. Smart Contracts: What You Need to Know. Available online: https://www.investopedia.com/terms/s/smart-contracts.asp (accessed on 23 February 2021).
  26. Lokeshgupta, B.; Sivasubramani, S. Multi-objective home energy management with battery energy storage systems. Sustain. Cities Soc. 2019, 47, 101458. [Google Scholar] [CrossRef]
  27. Hussain, I.; Ali, S.; Khan, B.; Ullah, Z.; Mehmood, C.; Jawad, M.; Farid, U.; Haider, A. Stochastic Wind Energy Management Model within smart grid framework: A joint Bi-directional Service Level Agreement (SLA) between smart grid and Wind Energy District Prosumers. Renew. Energy 2019, 134, 1017–1033. [Google Scholar] [CrossRef]
  28. Available online: https://pvoutput.org/live.jsp (accessed on 23 February 2020).
  29. Miskelly, A. Wind Energy. Available online: https://anero.id/energy/wind-energy (accessed on 23 March 2020).
  30. Nemweb Market Data. Available online: http://www.nemweb.com.au/ (accessed on 23 March 2020).
  31. Weather in Australia. Available online: https://www.australia.com/en/facts-and-planning/weather-in-australia.html (accessed on 23 March 2020).
  32. Rpc.com.au. 2020. Available online: https://www.rpc.com.au/pdf/Solar_Radiation_Figures.pdf (accessed on 23 March 2020).
  33. WeatherSpark.com. Available online: https://weatherspark.com/y/144671/Average-Weather-in-Brisbane-Australia-Year-Round (accessed on 23 March 2020).
Figure 1. (a) Blockchain-based bi-directional METM, (b) SLR Blockchain-based bi-directional METM.
Figure 1. (a) Blockchain-based bi-directional METM, (b) SLR Blockchain-based bi-directional METM.
Sensors 21 03088 g001aSensors 21 03088 g001b
Figure 2. (a): Prosumer Energy Cost (PEC); (b): Prosumer Energy Surplus (PES); (c): Grid Revenue (GR).
Figure 2. (a): Prosumer Energy Cost (PEC); (b): Prosumer Energy Surplus (PES); (c): Grid Revenue (GR).
Sensors 21 03088 g002
Figure 3. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) TE: Transacted Energy, UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer 2 PSO transacted energy; (c) UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Figure 3. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) TE: Transacted Energy, UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer 2 PSO transacted energy; (c) UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Sensors 21 03088 g003
Figure 4. (a) Prosumer Energy Cost (PEC), (b) Prosumer Energy Surplus (PES), (c) Grid Revenue (GR).
Figure 4. (a) Prosumer Energy Cost (PEC), (b) Prosumer Energy Surplus (PES), (c) Grid Revenue (GR).
Sensors 21 03088 g004
Figure 5. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer 2 PSO transacted energy; (c) UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) ED-SG Energy Transaction, UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Figure 5. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer 2 PSO transacted energy; (c) UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) ED-SG Energy Transaction, UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Sensors 21 03088 g005
Figure 6. (a) Prosumer Energy Cost (PEC), (b) Prosumer Energy Surplus (PES), (c) Grid Revenue (GR).
Figure 6. (a) Prosumer Energy Cost (PEC), (b) Prosumer Energy Surplus (PES), (c) Grid Revenue (GR).
Sensors 21 03088 g006
Figure 7. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer2 PSO transacted energy; (c) UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Figure 7. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer2 PSO transacted energy; (c) UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Sensors 21 03088 g007
Figure 8. (a) Prosumer Energy Cost (PEC), (b) Prosumer Energy Surplus (PES), (c) Grid Revenue (GR).
Figure 8. (a) Prosumer Energy Cost (PEC), (b) Prosumer Energy Surplus (PES), (c) Grid Revenue (GR).
Sensors 21 03088 g008
Figure 9. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer 2 PSO transacted energy; (c) ED-ED Energy Transaction, UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) ED-SG Energy Transaction, UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Figure 9. (a) P-C, (b) P-P, (c) ED-ED, and (d) ED-SG Energy Transactions. (a) UNOPTA1: Unoptimized Consumer Energy, OPTA2 (GA): GA Optimized consumer energy, OPTA3 (PSO): PSO consumer energy; (b) UNOPTA1: Prosumer 1 Unoptimized transacted energy, UNOPTA2: Prosumer 2 Unoptimized transacted energy, OPTA1G: Prosumer 1 GA Optimized transacted energy, OPTA2G: Prosumer 2 GA Optimized transacted energy, OPTA1P: Prosumer 1 PSO transacted energy, OPTA2P: Prosumer 2 PSO transacted energy; (c) ED-ED Energy Transaction, UNOPTA1: ED1 Unoptimized transacted energy, UNOPTA2: ED2 Unoptimized transacted energy, OPTA1G: ED1 GA Optimized transacted energy, OPTA2G: ED2 GA Optimized transacted energy, OPTA1P: ED1 PSO transacted energy, OPTA2P: ED2 PSO transacted energy; (d) ED-SG Energy Transaction, UNOPTE: ED Unoptimized transacted energy, UNOPTS: SG Unoptimized transacted energy, OPTEG: ED GA Optimized transacted energy, OPTSG: SG GA Optimized transacted energy, OPTEP: ED PSO transacted energy, OPTSP: SG PSO transacted energy.
Sensors 21 03088 g009
Figure 10. Blockchain transaction.
Figure 10. Blockchain transaction.
Sensors 21 03088 g010
Figure 11. PES and PEC comparison.
Figure 11. PES and PEC comparison.
Sensors 21 03088 g011
Table 1. Literature Review
Table 1. Literature Review
Ref.DSMBCSLR-BCSLRDO-PECO-PESO-GRO-ET
[2]🗴🗸🗴🗴🗴🗴🗴🗴
[3]🗴🗸🗴🗴🗴🗴🗴🗴
[5]🗴🗸🗴🗴🗴🗴🗴🗴
[11]🗴🗸🗴🗴🗴🗴🗴🗴
[12]🗸🗸🗴🗴🗸🗴🗴🗸
[13]🗴🗸🗴🗴🗴🗴🗴🗴
[14]🗸🗸🗴🗴🗸🗴🗴🗸
[15]🗴🗸🗴🗴🗴🗴🗴🗴
[16]🗸🗸🗴🗴🗸🗴🗴🗸
[17]🗴🗸🗴🗴🗴🗴🗴🗴
[18]🗴🗸🗴🗴🗴🗴🗴🗴
TW🗸🗸🗸🗸🗸🗸🗸🗸
Abbreviations: DSM: Demand-side Management; BC: Blockchain; SLR-BC: SolarCoin Blockchain; SLRD: SolarCoin Disbursement; O-PEC: Optimized Prosumer Energy Cost; O-PES: Optimized Prosumer Energy Surplus; O-GR; Optimized Grid Revenue; O-ET: Optimized Energy Transactions; TW: This Work.
Table 2. The implemented energy price mechanism.
Table 2. The implemented energy price mechanism.
Time of UtilizationAmount of Energy Consumed (MWhr)Energy Price in Dollars ($/MWhr)Energy Price in SLRs (SLR/MWhr)
Off-peak0.2151.73 × 0.2 = 30.330.3 × 94.0733 = 2854
On-peak0.2325.87 × 0.2 = 65.165.1 × 94.0733 = 6131
Table 3. Implemented price mechanism in a blockchain.
Table 3. Implemented price mechanism in a blockchain.
Time of UtilizationAmount of Energy Consumed (MWhr)Energy Price in Dollars ($/MWhr, 10 Percent Discounted Rates)Energy Price in SLRs (SLR/MWhr)
Off-peak0.227.22556
On-peak0.258.55517
Table 4. Comparative analysis of GA and PSO optimized results.
Table 4. Comparative analysis of GA and PSO optimized results.
GA optimization ResultsPSO Results
EDsMonth, YearΔPEC (×105)ΔPESΔGR (×105)ΔPEC (×105)ΔPESΔGR (×105)
July, 192.761.92170.9182.751.88400.877
Aug, 190.240.88150.94070.2280.8360.8773
Sep, 190.862.8384.34400.2422.7574.157
ED1Oct, 190.531.95054.96130.5011.8364.9613
Nov, 190.5311.9492.92840.5121.8782.783
Dec, 190.3021.1092.36390.2791.0252.158
Jan, 200.391.4072.3690.34461.2632.369
Feb, 200.2951.0422.23450.2841.0422.051
Mar, 200.3251.2371.10180.3141.1511.025
April, 200.5291.9763.14700.51881.9022.987
July, 190.4871.7862.60090.468811.7182.468
Aug, 190.6052.2183.45390.58452.1423.389
ED2Sep, 190.72932.6745.72270.702082.5735.4344
Oct, 190.60602.22183.92580.58342.1383.7288
Nov, 190.53892.22511.32930.58832.18151.336
Dec, 190.588642.03961.15560.52711.99961.1097
Jan, 200.42941.5741.15380.41821.53311.106
Feb, 200.41181.50951.76590.39831.461.435
Mar, 200.84543.09945.00450.8223.01294.791
April, 200.645772.36722.00540.63112.3135.235
July, 1929.535108.26839.228.641056537
Aug, 1935.674130.79327.934.6491278924
ED3Sep, 1933.122121.411,23831.9211710,685
Oct, 1934.794127.512,04733.5512311,461
Nov, 1941.191150.915,20139.83214614,495
Dec, 1940.268147.613,39639.01314312,792
Jan, 2046.878171.8215,54845.56116714,883
Feb, 2034.109125.0210,06333.0121219602
Mar, 2040.216147.421,05838.46814119,888
April, 2035.062128.5129,99533.28412218,234
Abbreviations: ∆PEC: Average change between optimized and unoptimized PEC; ∆PES: Average change between optimized and unoptimized PES; ∆GR: Average change between optimized and unoptimized GR.
Table 5. Comparative analysis of unoptimized and GA optimized results.
Table 5. Comparative analysis of unoptimized and GA optimized results.
EDsMonth, YearPEC (un-opt) (×105)PEC (opt)(×105)ΔPEC (×105)PES (un-opt)PES (opt)ΔPESGR (un-opt) (×105)GR (opt) (×105)ΔGR (×105)
July, 191.94−4.702.7601.92171.92170.123861.04120.9182
Aug, 19−0.393−0.6330.241.44122.32270.88150.586191.52260.9407
Sep, 19−0.35−1.210.861.29244.13072.8380.471394.81544.3440
ED1Oct, 19−1.05−1.580.533.86865.81911.95054.22379.1854.9613
Nov, 19−0.46−0.9910.5311.68623.63591.9490.802433.73092.9284
Dec, 19−0.878−1.180.3023.21884.32861.1092.92405.28792.3639
Jan, 20−1.62−2.010.395.96387.37151.40710.03812.4072.369
Feb, 20−0.80913−1.1040.2952.96584.00821.0422.48244.71692.2345
Mar, 20−0.8605−1.1860.3253.15444.39211.2372.80823.91001.1018
April, 20−0.499−1.02890.5291.83203.80881.9760.947194.09423.1470
July, 19−0.46−0.9470.4871.68613.47261.7860.802333.40332.6009
Aug, 19−0.4499−1.0550.6051.64923.86762.2180.767604.22153.4539
ED2Sep, 19−0.66962−1.3990.72932.45445.12852.6741.70017.42285.7227
Oct, 19−0.55098−1.1570.60602.01954.24132.22181.15105.07683.9258
Nov, 190.06806−0.60700.538902.22512.22510.0681.39731.3293
Dec, 190.01836−0.5560.5886402.03962.03960.018361.17401.1556
Jan, 20−0.1396−0.5690.42940.51172.08571.5740.073891.22771.1538
Feb, 20−0.2762−0.6880.41181.01242.52191.50950.028921.79491.7659
Mar, 20−0.3576−1.2030.84541.31104.41043.09940.485065.48965.0045
April, 20−0.10343−0.74920.645770.37912.74632.36720.040562.04602.0054
July, 19−15.769−45.30429.53557.8000166.05108.2942.857782.16839.2
Aug, 19−16.642−52.31635.67461191.76130.71050.110,3789327.9
ED3Sep, 19−28.183−61.30533.122103.300224.70121.43011.514,25011,238
Oct, 19−28.264−63.05834.794103.600231.13127.53029.115,07712,047
Nov, 19−28.073−69.26441.191102.900253.87150.92988.318,19015,201
Dec, 19−23.736−64.00440.26887234.60147.62136.115,53313,396
Jan, 20−20.298−67.17646.87874.4000246.22171.821562.217,11115,548
Feb, 20−21.853−55.96234.10980.1000205.12125.021810.711,87410,063
Mar, 20−48.944−89.16040.216179.400326.80147.49083.130,14221,058
April, 20−55.601−90.66335.062203.800332.31128.5111,72231,16729,995
Table 6. Percentage energy transactions.
Table 6. Percentage energy transactions.
NodesMonth, Year% ET (un-opt)% ET (opt-GA)Δ% ET (GA)% ET (opt-PSO)Δ% ET (PSO)
July, 19101009010090
Aug, 19351006510065
Sep, 19797909689
Oct, 193994559354
P-CNov, 19401006010060
Dec, 1942100589957
Jan, 203597629762
Feb, 2014100869884
Mar, 2013100879784
April, 2019100819980
July, 191143324231
Aug, 193250185018
Sep, 192948194819
Oct, 1945483483
P-PNov, 1947481461
Dec, 1947481470
Jan, 2045483483
Feb, 207290188917
Mar, 203143124110
April, 203042124010
July, 191048384636
Aug, 20192048284727
Sep, 193550154914
Oct, 1948502502
ED-EDNov, 1948524513
Dec, 195270186917
Jan, 203750134811
Feb, 2050464464
Mar, 2042486464
April, 2039401401
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rehman, S.; Khan, B.; Arif, J.; Ullah, Z.; Aljuhani, A.J.; Alhindi, A.; Ali, S.M. Bi-Directional Mutual Energy Trade between Smart Grid and Energy Districts Using Renewable Energy Credits. Sensors 2021, 21, 3088. https://doi.org/10.3390/s21093088

AMA Style

Rehman S, Khan B, Arif J, Ullah Z, Aljuhani AJ, Alhindi A, Ali SM. Bi-Directional Mutual Energy Trade between Smart Grid and Energy Districts Using Renewable Energy Credits. Sensors. 2021; 21(9):3088. https://doi.org/10.3390/s21093088

Chicago/Turabian Style

Rehman, Sana, Bilal Khan, Jawad Arif, Zahid Ullah, Abdullah J. Aljuhani, Ahmad Alhindi, and Sahibzada M. Ali. 2021. "Bi-Directional Mutual Energy Trade between Smart Grid and Energy Districts Using Renewable Energy Credits" Sensors 21, no. 9: 3088. https://doi.org/10.3390/s21093088

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