Next Article in Journal
Applications of Supercritical Water in Waste Treatment and Valorization: A Review
Previous Article in Journal
Research on Hierarchical Control Strategy of ESS in Distribution Based on GA-SVR Wind Power Forecasting
Previous Article in Special Issue
Solar and Wind Quantity 24 h—Series Prediction Using PDE-Modular Models Gradually Developed according to Spatial Pattern Similarity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Customised Multi-Energy Pricing: Model and Solutions

1
Department of Mathematical Sciences, University of Essex, Colchester CO4 3SQ, UK
2
Alliance Manchester Business School, University of Manchester, Manchester M15 6PB, UK
3
Department of Electrical and Computer Engineering, Missouri University of Science and Technology, Rolla, MO 65409, USA
*
Author to whom correspondence should be addressed.
Energies 2023, 16(4), 2080; https://doi.org/10.3390/en16042080
Submission received: 13 November 2022 / Revised: 28 January 2023 / Accepted: 14 February 2023 / Published: 20 February 2023
(This article belongs to the Special Issue Challenges and Research Trends of Computational Intelligence)

Abstract

:
With the increasing interdependence among energies (e.g., electricity, natural gas and heat) and the development of a decentralised energy system, a novel retail pricing scheme in the multi-energy market is demanded. Therefore, the problem of designing a customised multi-energy pricing scheme for energy retailers is investigated in this paper. In particular, the proposed pricing scheme is formulated as a bilevel optimisation problem. At the upper level, the energy retailer (leader) aims to maximise its profit. Microgrids (followers) equipped with energy converters, storage, renewable energy sources (RES) and demand response (DR) programs are located at the lower level and minimise their operational costs. Three hybrid algorithms combining metaheuristic algorithms (i.e., particle swarm optimisation (PSO), genetic algorithm (GA) and simulated annealing (SA)) with the mixed-integer linear program (MILP) are developed to solve the proposed bilevel problem. Numerical results verify the feasibility and effectiveness of the proposed model and solution algorithms. We find that GA outperforms other solution algorithms to obtain a higher retailer’s profit through comparison. In addition, the proposed customised pricing scheme could benefit the retailer’s profitability and net profit margin compared to the widely adopted uniform pricing scheme due to the reduction in the overall energy purchasing costs in the wholesale markets. Lastly, the negative correlations between the rated capacity and power of the energy storage and both retailer’s profit and the microgrid’s operational cost are illustrated.

1. Introduction

1.1. Background

Emerging smart grid technologies in the energy system have introduced new opportunities and challenges to both energy suppliers and customers [1]. Local market participants, such as microgrids and local energy communities, have been accelerating the pace of developing distributed energy resources (DERs), which has resulted in the increasing trend in developing integrated local energy systems, including electricity, natural gas and heat energy, and the expanding differences among the microgrids [2]. In this regard, the traditional retail pricing strategy of energy retailers, which offers uniform energy tariffs to customers regardless of their differences, cannot fully unlock the potential benefits of DERs and achieve the potential profit [3]. Therefore, energy retailers would need to consider the interdependence among different energy types from the demand side to make robust and reliable retail pricing decisions. Furthermore, energy retailers also need to take the differences among local customers into consideration to offer customised retail prices to each customer. This calls for a novel customised multi-energy pricing scheme capable of capturing the multi-energy interdependence and characteristics of differentiated customers to be developed for the retail energy markets.

1.2. Literature Review

Retail energy pricing is an important research problem and has been extensively studied in the literature. Ref. [4] systematically investigates and summarises the existence of retail pricing schemes, which demonstrates that the real-time pricing (RTP) strategy can well utilise the demand-side management flexibility over the static pricing strategy, such as the time-of-use (TOU) scheme. Ref. [5] presents a dynamic, real-time energy pricing mechanism to accurately distribute power for the electric vehicles (EVs) charging process fairly when the microgrids are congested. A retail RTP scheme in the presence of hydrogen storage systems and EVs, compared with TOU and fixed pricing schemes, is proposed in Ref. [6]. The bi-objective problem is formulated, in which the average profit needs to be maximised, while the profit deviation should be minimised. The Pareto optimal solution is obtained by the epsilon constraint method and fuzzy satisfying approach. The numerical results show the privilege of the RTP scheme regarding the obtained profit of the retailer. Ref. [7] develops a conditional value at risk (CVaR)-based retail electricity pricing scheme to reduce the impact of risk caused by the uncertainties from RES generation and estimated wholesale electricity prices. An energy management and pricing method for the community energy retailer incorporating smart building consumers is investigated in Ref. [8]. The numerical results, which are solved by the bilevel chance-constrained programming approach, show that the proposed approach can benefit both retailers and customers. Lastly, Ref. [9] proposes a bilevel game-theoretic model for multiple strategic retailers’ decision-making problems, which include the retail prices in the retail market, bid prices in the day-ahead wholesale market, and the bid/offer prices in the local power exchange market. The problem is formulated as an equilibrium problem with the equilibrium constraints (EPEC) problem, which is solved by the diagonalisation algorithm.
The majority of the existing literature focuses on developing a retail pricing strategy in the electricity market, whereas only few studies analyse the retail pricing problem in a multi-energy context. In addition, since the development of a multi-energy pricing scheme consists of energy suppliers (e.g., retailers) and customers (e.g., microgrids and aggregators), a bilevel optimisation model, which can well present the intrinsic hierarchical structure of the energy system, has been widely adopted in the literature. For instance, Ref. [10] proposes a bilevel optimal retail pricing scheme for the retailer and multi-energy buildings to perform the price-based DR programs. A bilevel stochastic RTP model in the framework of the Markov decision process is formulated for the multi-energy system in Ref. [11]. A novel distributed online multi-agent reinforcement learning algorithm is developed to solve the proposed model. Ref. [12] proposes a bilevel multi-energy trading model between the multi-energy service provider and consumer by setting the optimal energy pricing scheme and energy economic dispatch at the upper level. Optimal consuming patterns of different energies are obtained for the multi-energy consumer in the lower-level problem. Ref. [13] develops an integrated energy service provider (IESP) as a retailer to effectively set energy prices and energy management in the multi-energy market. The impact of DR and wholesale prices’ uncertainties is considered in the proposed two-stage stochastic hierarchical framework. The day-ahead energy pricing and management method considering multi-energy DR programs for IESP in regional integrated energy systems is addressed in Ref. [14]. The bilevel Stackelberg game optimisation model is established and shows that the pricing scheme benefits both the energy supplier (i.e., IESP) and consumer. The pricing behaviour of multi-energy players who can trade electricity, natural gas and heat energy to maximise their profits and reduce their operational risk is studied in Ref. [15]. The bilevel approach is applied to model the decision-making conflict of the multi-energy players with other energy players participating in the multi-energy system.
The bilevel optimisation model is typically solved by analytical mathematical methods, such as the Karush–Kuhn–Tucker (KKT)-based reformulations in the literature [10,12,13,14,15]. However, the premise of applying those methods may include the convexity of the lower-level problem. For the bilevel model, whose lower-level problem is proved as non-convex, such as including integer variables, traditional mathematical approaches cannot solve it effectively. Therefore, many metaheuristic algorithms, such as PSO, GA and SA, are introduced in the literature to overcome the non-convexity of the lower-level problem [16]. For instance, Ref. [17] develops a hierarchical market framework to apply real-time retail pricing between an energy supplier and multi-energy microgrids, where a hybrid solution method combining PSO and the branch and bound algorithm is proposed. In Ref. [18], a dynamic pricing profile is developed for utilising distributed energy storage and overcoming the intermittency from renewable generation. A novel non-cooperative Stackelberg game is proposed to formulate the pricing problem, in which the upper-level problem is solved by the PSO algorithm, and linear programming is applied at the lower level. In addition, Ref. [19] presents a bilevel price decision model for a load-serving entity to manage multiple multi-energy microgrids with DR. The microgrids’ operation problems are formulated at the lower level and solved by a MILP program. A GA algorithm is applied to find the optimal price decisions for the load-serving entity at the upper level. A real-time pricing strategy is proposed in Ref. [20] to effectively adjust the power balance between the supply and demand and manage the microgrid’s internal energy dispatch. The pricing strategy is formulated as a bilevel programming model, where the supplier’s price decision making at the upper level is solved by the GA algorithm. Ref. [21] develops a SA-based price control algorithm to solve the non-convex real-time pricing problem, which can reduce the peak-to-average load ratio and retailer’s cost through DR management in smart grid systems. Ref. [22] proposes a bilevel Stackelberg game to model hierarchical interactions between one profit-seeking energy retailer and multiple cost-minimising energy customers. A GA algorithm is developed to solve the bilevel model. Lastly, Ref. [23] proposes a bilevel model, where data-driven appliance-level customer behaviour learning models are developed at the lower level. The resulting hybrid optimisation–machine learning bilevel model is solved by GA.
The retail pricing schemes mentioned in the above literature are classified into the uniform pricing scheme, where the decision maker optimises the pricing decisions without considering the different characteristics among underlying energy customers, such as the demand-side load profile and the specifications of the equipped DERs, such as energy converters and storage. Therefore, the elasticity on the demand-side management of each energy customer cannot be fully utilised under the uniform pricing scheme. To conquer the deficiency of the widely used uniform pricing scheme, a novel customised energy pricing scheme should be developed that takes the unique characteristics of each customer into consideration. It is designed to motivate the potential flexibility of demand-side management to benefit market participants, such as energy retailers. However, only few studies address the customised retail energy pricing problem in the literature. For instance, Ref. [24] develops a bilevel model for optimal differential pricing considering different customer groups characterised by different price sensitivities. Ref. [25] proposes a customised TOU electricity pricing scheme for different residential users depending on their load-consumption profiles, which is established based on the bilevel optimisation framework. The problem of customising TOU electricity retail prices based on load profile analysis by applying a clustering algorithm is addressed in Ref. [26]. Similarly, a realistic multiple dynamic pricing scheme for the segmented customers based on the different identification of load patterns is proposed in Ref. [3], which demonstrates the effectiveness of the clustering-based approach. Furthermore, the electricity retailer could achieve better profit gain under the proposed multiple pricing scheme. Ref. [27] presents a personalised RTP scheme using a bilevel model to improve the management of different electricity consumption, including both traditional and renewable energies. Ref. [28] proposes a bilateral energy-trading structure to coordinate the hierarchical personalised electricity pricing model between the energy trading agent and energy prosumers.
The above reviewed literature is compared and summarised in Table 1. Although the above studies provide valuable insights regarding the customised retail pricing scheme, they are limited to electricity markets. Therefore, to the best of our knowledge, there is no existing research studying the customised multi-energy pricing problem. To fill the research gap following the above analysis, in this paper, we propose a novel customised multi-energy pricing scheme for an energy retailer that manages multiple microgrids in the multi-energy market.

1.3. Contributions

The main contributions of this paper are summarised as follows:
  • A bilevel optimisation model is developed to formulate the novel customised pricing scheme for an energy retailer that manages multiple microgrids in the multi-energy market. In particular, a retailer’s profit maximisation problem is considered at the upper level. The energy management for each microgrid is detailed, and the operational cost minimisation is formulated at the lower level.
  • The detailed energy management model for each microgrid equipped with energy converters (i.e., combined heat and power (CHP) and heat pump), electrical and thermal storage, RES (i.e., solar and wind) and DR programs (i.e., load curtailment and shifting) is formulated as a MILP program at the lower level. Specifically, load curtailment refers to the reduction in energy consumption, while in the load-shifting program, the electricity demand can be rescheduled and shifted to other scheduling hours.
  • Three hybrid metaheuristic algorithms (i.e., PSO, GA and SA) combined with the conventional MILP program are developed to solve the proposed bilevel problem. The hybrid solution algorithms conquer the non-convexity of the lower level problems, which are proved difficult to solve with traditional mathematical methods, such as KKT-based solution methods. In numerical analyses, we test the performance of the three algorithms. The comparison between the customised and uniform pricing schemes is illustrated in detail. In addition, the effect of the rated capacity and power of electrical and thermal storage on the energy retailer’s pricing decisions, profit, and microgrids’ operational costs is thoroughly investigated.

1.4. Paper Organisation

The remainder of this paper is organised as follows. In Section 2, the proposed bilevel model is discussed in detail. Section 3 describes the three hybrid metaheuristic algorithms combined with the MILP program. The numerical results are presented in Section 4. Finally, the conclusion is drawn in Section 5.

2. Model Formulation

This section shows the formulation of the proposed bilevel optimisation model. In particular, Section 2.1 presents an overview of the bilevel MILP model. The customised multi-energy pricing problem is described in Section 2.2. Lastly, the lower and upper level model formulations are discussed in Section 2.3 and Section 2.4, respectively.

2.1. Bilevel MILP Model Overview

Bilevel optimisation refers to one of the categories of optimisation that copes with the problem with a hierarchical structure in nature, which includes two decision makers (i.e., leader and follower) located at the upper and lower levels, respectively. The bilevel model is formulated by an optimisation problem (lower level) embedded into another problem (upper level). The problem originates from the game theory in economics and was introduced by Heinrich Freiherr von Stackelberg in 1934 [29]. The decision variables of a bilevel model can be continuous and discrete. Since formulating the customised multi-energy pricing problem involves integer variables in the lower-level problem, in this section, an overview of the bilevel MILP model is introduced as follows.
The general form of a bilevel MILP model with a single leader and multiple independent followers is shown below:
max x X F ( x , y 1 , . . . y M )
Subject to:
G ( x , y 1 , . . . y M ) 0 y i arg min y i Y i f i ( x , y i ) : g i ( x , y i ) 0 , y j Z , j J i , i M
where X R n and Y i R m i are the feasible solution sets for both upper and lower level problems. The set of followers { 1 , . . . , M } is denoted as M . n and m i indicate the number of decision variables for the leader and the follower i M . F ( x , y 1 , . . . y M ) and f i ( x , y i ) , i M represent the objective functions for the upper and lower level problems. On the other hand, the upper and lower level constraint functions are indicated as G ( x , y 1 , . . . y M ) and g i ( x , y i ) , i M , respectively. Notice that J i is the set of indices that the corresponding { y j , j J i } are integer variables.
If x X denotes the vector of the leader’s decision variables, the feasible solution and rational reaction sets of each follower i can be represented as Y i ( x ) = { y i Y i : g i ( x , y i ) 0 , y j Z , j J i } and Ω i ( x ) = y i Y i : arg min y i Y i ( x ) { f i ( x , y i ) } . Finally, the bilevel MILP feasible set, which is also called the inducible region, is presented as I R = ( x , y 1 , . . . , y M ) : G ( x , y 1 , . . . y M ) 0 , x X , y i Ω i ( x ) , i M . The optimal solution of the bilevel model is denoted as ( x * , y 1 * , . . . , y M * ) arg max { F ( x , y 1 , . . . y M ) : ( x , y 1 , . . . , y M ) I R } .

2.2. Customised Multi-Energy Pricing Problem Description

In the proposed multi-energy market, which is shown in Figure 1, multiple microgrids are managed by a single energy retailer that purchases electricity and natural gas from the upstream wholesale markets. The microgrids are allocated with CHP, heat pump, electrical and thermal storage, RES and DR programs, which operate their energy management systems. Therefore, given the ability of microgrids to generate and transfer energy, the energy retailer can also purchase the electricity from the managed microgrids and sell it back to the wholesale market to make a profit. In addition, the detailed framework of the proposed bilevel model is presented in Figure 2. Particularly, at the upper level, to maximise the profit, the energy retailer optimises the retail pricing decisions based on the proposed customised multi-energy pricing scheme within the scheduling hours T = { 1 , . . . , T } and announces them a day ahead to each microgrid i, respectively. After receiving the corresponding retail energy prices, each microgrid i reacts by minimising its operational cost and reports the volume of energy to be exchanged (buy or sell) to the retailer. As a result, each microgrid’s optimal customised retail pricing scheme and energy management are obtained. The detailed model formulations for both the lower and upper levels are shown in Section 2.3 and Section 2.4 below.

2.3. Follower-Side/Lower-Level Problem

It is assumed that the microgrids in M managed by the energy retailer operate independently at the lower level. In this section, the detailed lower-level formulations for the microgrid i M are shown as follows.

2.3.1. Lower-Level Objective Function

The lower-level objective function (1) shows the total operational costs of the microgrid i. In particular, the first group of elements presents the energy exchange between the microgrid i and the retailer. p i t and g i t denote the amount of electricity and natural gas that the microgrid i purchases from the retailer. p i e x p o r t , t represents the amount of electricity that the microgrid i exports to the retailer. π e l e , i r e t a i l , t and π g a s , i r e t a i l , t denote the retail electricity and natural gas prices that the energy retailer announces to the microgrid i. Notice that the price of electricity sold by the microgrid i back to the retailer is proportional to the retail electricity price, denoted as α i . The second and third groups of elements describe the CHP and heat pump costs, respectively, including operation and maintenance costs c i C H P , c i p u m p , start-up cost c C H P , i s t , c p u m p , i s t and shut-down cost c C H P , i s d , c p u m p , i s d . The fourth group of elements represents the electrical and thermal storage costs, which are denoted as c i E S and c i T S . The last group of elements shows the costs of the load curtailment program for all energies, which are denoted as c c u r t a i l , i e l e , t , c c u r t a i l , i g a s , t , and c c u r t a i l , i h e a t , t .
min Ξ L i f i = t T { p i t π e l e , i r e t a i l , t p i e x p o r t , t α i π e l e , i r e t a i l , t + g i t π g a s , i r e t a i l , t + [ c i C H P g i C H P , t + c C H P , i s t δ i s t , t + c C H P , i s d δ i s d , t ] + c i p u m p p i p u m p , t + c p u m p , t s t θ i s t , t + c p u m p , i s d θ i s d , t + [ c i E S ( p i c , t + p i d , t ) + c i T S ( q i c , t + q i d , t ) ] + d c u r t a i l , i e l e , t ρ e l e , i t c c u r t a i l , i e l e + d c u r t a i l , i g a s , t ρ g a s , i t c c u r t a i l , i g a s + d c u r t a i l , i h e a t , t ρ h e a t , i t c c u r t a i l , i h e a t } ( 1 )

2.3.2. CHP Operational Constraints

The CHP unit, which converts natural gas into electricity and heat, is formulated in (2a)–(2m) inspired by Ref. [30]. The energy conversion constraints of the CHP are denoted in (2a) and (2b). g i C H P , t represents the amount of natural gas consumed by the CHP. p i C H P , t and q i C H P , t denote the amount of electricity and heat generated by the CHP. The energy conversion efficiencies for different energies are denoted as η i C H P and η i e 2 h , respectively. The limitation of the CHP electricity output is shown in (2c), where δ i t denotes the CHP operational status. (2d)–(2g) represent the ramp-up and ramp-down power constraints of the CHP electricity output. The initial status of the CHP is denoted as δ i i n i t . p i C H P , i n i t represents the last amount of CHP generated electricity during the last scheduling hours.  p i R U and p i R D show the maximum amount of ramp-up and ramp-down electricity. In addition, the start-up and shut-down actions of the CHP are described in (2h)–(2l), where δ i s t , t and δ i s d , t denote the CHP start-up and shut-down statuses. Lastly, (2m) presents the binary variables that appear in the CHP operation:
p i C H P , t = η i C H P g i C H P , t , t T ( 2 a ) q i C H P , t = η i e 2 h p i C H P , t , t T ( 2 b ) p i C H P , m i n δ i t p i C H P , t p i C H P , m a x δ i t , t T ( 2 c ) p i C H P , t p i C H P , i n i t p i R U , t = 1 ( 2 d ) p i C H P , t p i C H P , t 1 p i R U , t T { 1 } ( 2 e ) p i C H P , i n i t p i C H P , t p i R D , t = 1 ( 2 f ) p i C H P , t 1 p i C H P , t p i R D , t T { 1 } ( 2 g ) δ i t δ i i n i t δ i s t , t , t = 1 ( 2 h ) δ i t δ i t 1 δ i s t , t , t T { 1 } ( 2 i ) δ i i n i t δ i t δ i s d , t , t = 1 ( 2 j ) δ i t 1 δ i t δ i s d , t , t T { 1 } ( 2 k ) δ i s t , t + δ i s d , t 1 , t T ( 2 l ) δ i t , δ i s t , t , δ i s d , t { 0 , 1 } , t T ( 2 m )

2.3.3. Heat Pump Operational Constraints

The heat pump generates heat energy by consuming electricity. Equation (3a) is the energy conversion constraint. p i p u m p , t and q i p u m p , t denote the amount of electricity consumed and the amount of heat generated by operating the heat pump. η i p u m p denotes the energy conversion efficiency. The amount of generated heat is bounded in (3b), where the heat pump operational status is presented as θ i t . The ramp-up and ramp-down constraints of the heat pump are depicted in (3c)–(3f), where q i p u m p , i n i t denotes the final amount of heat generated by the heat pump in the last scheduling hours. The maximum amount of ramp-up and ramp-down heat are represented as q i R U and q i R D , respectively. (3g)–(3k) define the heat pump start-up and shut-down actions, whose corresponding start-up and down statuses are denoted as θ i s t , t and θ i s d , t . The binary variables in this operation are shown in (3l):
q i p u m p , t = η i p u m p p i p u m p , t , t T ( 3 a ) q i p u m p , m i n θ i t q i p u m p , t q i p u m p , m a x θ i t , t T ( 3 b ) q i p u m p , t q i p u m p , i n i t q i R U , t = 1 ( 3 c ) q i p u m p , t q i p u m p , t 1 q i R U , t T { 1 } ( 3 d ) q i p u m p , i n i t q i p u m p , t q i R D , t = 1 ( 3 e ) q i p u m p , t 1 q i p u m p , t q i R D , t T { 1 } ( 3 f ) θ i t θ i i n i t θ i s t , t , t = 1 ( 3 g ) θ i t θ i t 1 θ i s t , t , t T { 1 } ( 3 h ) θ i i n i t θ i t θ i s d , t , t = 1 ( 3 i ) θ i t 1 θ i t θ i s d , t , t T { 1 } ( 3 j ) θ i s t , t + θ i s d , t 1 , t T ( 3 k ) θ i t , θ i s t , t , θ i s d , t { 0 , 1 } , t T ( 3 l )

2.3.4. Electrical Storage (ES) Operational Constraints

Constraints (4a) and (4b) describe the change of the ES energy level E i E S , t considering charging rate η i E S , c , discharging rate η i E S , d , and self-discharging rate ϵ i E S . p i c , t and p i d , t denote the amount of charged and discharged electricity. (4c) limits the energy level of the ES in each scheduling hour. In addition, for operational purposes, (4d) ensures that the energy level of the ES stays unchanged after the scheduling hours. E i E S , T and E i E S , i n i t denote the final and initial energy level of the ES. The charging and discharging power are bounded in (4e)–(4h), where γ i c , t and γ i d , t represent the charging and discharging statuses:
E i E S , t = E i E S , i n i t + η i E S , c p i c , t 1 η i E S , d p i d , t ϵ i E S , t = 1 ( 4 a ) E i E S , t = E i E S , t 1 + η i E S , c p i c , t 1 η i E S , d p i d , t ϵ i E S , t T { 1 } ( 4 b ) E i E S , m i n E i E S , t E i E S , m a x , t T ( 4 c ) E i E S , T = E i E S , i n i t ( 4 d ) γ i c , t p i c , m i n p i c , t γ i c , t p i c , m a x , t T ( 4 e ) γ i d , t p i d , m i n p i d , t γ i d , t p i d , m a x , t T ( 4 f ) γ i c , t + γ i d , t 1 , t T ( 4 g ) γ i c , t , γ i d , t { 0 , 1 } , t T ( 4 h )

2.3.5. Thermal Storage (TS) Operational Constraints

The operational constraints of TS are similar to ES. Specifically, the TS energy level is represented in (5a) and (5b), where E i T S , t , η i T S , c , η i T S , d and ϵ i T S denote the TS energy level, charging rate, discharging rate and self-discharging rate, respectively. q i c , t and q i d , t present the amount of charged and discharged heat. The TS energy level in each scheduling hour is bounded in (5c). The initial and final energy levels E i T S , T , E i T S , i n i t of the TS are imposed to be equal in (5d). Constraints (5e)–(5h) constrain the charging and discharging power of the TS, where ζ i c , t and ζ i d , t represent the TS charging and discharging statuses:
E i T S , t = E i T S , i n i t + η i T S , c q i c , t 1 η i T S , d q i d , t ϵ i T S , t = 1 ( 5 a ) E i T S , t = E i T S , t 1 + η i T S , c q i c , t 1 η i T S , d q i d , t ϵ i T S , t T { 1 } ( 5 b ) E i T S , m i n E i T S , t E i T S , m a x , t T ( 5 c ) E i T S , T = E i T S , i n i t ( 5 d ) ζ i c , t q i c , m i n q i c , t ζ i c , t q i c , m a x , t T ( 5 e ) ζ i d , t q i d , m i n q i d , t ζ i d , t q i d , m a x , t T ( 5 f ) ζ i c , t + ζ i d , t 1 , t T ( 5 g ) ζ i c , t , ζ i d , t { 0 , 1 } , t T ( 5 h )

2.3.6. DR Programs Constraints

Two types of DR programs are considered in microgrid i, which are load curtailment (LC) and load shifting (LS), which are formulated in (6a)–(6c) and (6d)–(6h), respectively. Both formulations of the DR programs are inspired by Ref. [30]. The detailed description and formulation are shown below.
Load curtailment:
It is assumed that the electricity, natural gas, and heat demand can all be curtailed during the scheduling hours, and the curtailment rates are denoted as ρ e l e , i t , ρ g a s , i t , ρ h e a t , i t , respectively. The bounding constraints for the three types of energies are presented in (6a)–(6c). Notice that the curtailable energy demand in each scheduling hour is predetermined by the energy retailer and represented as d c u r t a i l e l e , t , d c u r t a i l g a s , t and d c u r t a i l h e a t , t :
ρ e l e , i m i n ρ e l e , i t ρ e l e , i m a x , t T ( 6 a ) ρ g a s , i m i n ρ g a s , i t ρ g a s , i m a x , t T ( 6 b ) ρ h e a t , i m i n ρ h e a t , i t ρ h e a t , i m a x , t T ( 6 c )
Load shifting:
We assume there are households in A i that participate in the load-shifting program. Each household has the load-adjustable time window D a i , which is represented in (6d). μ a i t denotes the household’s operational status. The start and stop times of the load-shifting program for each household a i are denoted as T a i s t a r t and T a i s t o p . Constraint (6e) imposes that there is no shiftable load available in the scheduling hours outside of the adjustable time window. The shiftable load d a i t in each scheduling hour is flexible but bounded in (6f). Finally, (6g) makes sure the overall electricity consumption E a i is not affected by the load-shifting program:
t = T a i s t a r t T a i s t o p μ a i t = D a i , a i A i ( 6 d ) t = 1 T a i s t a r t 1 μ a i t + t = T a i s t o p + 1 T μ a i t = 0 , a i A i ( 6 e ) d a i m i n μ a i t d a i t d a i m a x μ a i t , a i A i , t T ( 6 f ) t = T a i s t a r t T a i s t o p d a i t = E a i , a i A i ( 6 g ) μ a i t { 0 , 1 } , a i A i , t T ( 6 h )

2.3.7. RES Constraints

Two renewable energies, solar and wind power, which are generated by photovoltaics (PV) and wind turbines (WT) are considered in this paper. To reduce the effect of the uncertainties of the renewable energies in nature, the bounding constraints of the forecast of PV p i P V , t and wind powers p i w i n d , t in each scheduling hour are introduced in (7a) and (7b):
p i P V , t , m i n p i P V , t p i P V , t , m a x , t T ( 7 a ) p i w i n d , t , m i n p i w i n d , t p i w i n d , t , m a x , t T ( 7 b )
In addition, inspired by Ref. [31], the spinning reserve constraint (7c) is implemented to further maintain and secure the operation of microgrids and the power system. It presents that the maximum power supply of the microgrid i must be sufficient to provide at least ( 1 + τ s p i n ) times load demand in each scheduling hour. τ s p i n denotes the spinning reserve ratio:
p i C H P , m a x δ i t + p i d , t p i c , t + p i t p i e x p o r t , t p i p u m p , t + p i P V , t + p i w i n d , t ( 1 + τ s p i n ) d i e l e , t + a i A i d a i t + d c u r t a i l , i e l e , t ( 1 ρ e l e , i t ) , t T ( 7 c )

2.3.8. Microgrid Electricity Exchange Constraints

The electricity imported to and exported from the microgrid i are constrained in (8a) and (8b), where the importing and exporting statuses are denoted as ψ i t and ψ i e x p o r t , t , respectively. Additionally, (8c) imposes that electricity import and export cannot happen simultaneously:
ψ i t p i m i n , t p i t ψ i t p i m a x , t , t T ( 8 a ) ψ i e x p o r t , t p e x p o r t , i m i n , t p i e x p o r t , t ψ i e x p o r t , t p e x p o r t , i m a x , t , t T ( 8 b ) ψ i t + ψ i e x p o r t , t 1 , t T ( 8 c ) ψ i t , ψ i e x p o r t , t { 0 , 1 } , t T ( 8 d )

2.3.9. Energy Balance Constraints

The demand and supply balance constraint for each type of energy in the multi-energy system must be satisfied at every scheduling hour. Constraints (9a)–(9c) represent the energy balance constraints of electricity, natural gas, and heat, respectively. d i e l e , t , d i g a s , t , and  d i h e a t , t denote the critical/base demand for each type of energy:
p i d , t + p i t + p i C H P , t + p i P V , t + p i w i n d , t = d i e l e , t + p i e x p o r t , t + p i p u m p , t + p i c , t + a i A i d a i t + d c u r t a i l , i e l e , t ( 1 ρ e l e , i t ) , t T ( 9 a ) g i t = d i g a s , t + g i C H P , t + d c u r t a i l , i g a s , t ( 1 ρ g a s , i t ) , t T ( 9 b ) q i d , t + q i C H P , t + q i p u m p , t = d i h e a t , t + q i c , t + d c u r t a i l , i h e a t , t ( 1 ρ h e a t , i t ) , t T ( 9 c )
The decision variables of the lower-level problem for the microgrid i are Ξ L i = { p i t , g i t , p i C H P , t , p i e x p o r t , t , p i p u m p , t , g i C H P , t , q i C H P , t , q i p u m p , t , δ i t , δ i s t , t , δ i s d , t , θ i t , θ i s t , t , θ i s d , t , ψ i t , ψ i e x p o r t , t , E i E S , t , p i c , t , p i d , t , γ i c , t , γ i d , t , E i T S , t , q i c , t , q i d , t , ζ i c , t , ζ i d , t , ρ e l e , i t , ρ g a s , i t , ρ h e a t , i t , μ a i t , d a i t , p i P V , t , p i w i n d , t } . Notice that the lower-level problem of each microgrid forms a MILP problem, which can be solved efficiently by off-the-shelf commercial solvers, such as CPLEX and GUROBI.

2.4. Leader-Side/Upper-Level Problem

We assume that the energy retailer manages multiple multi-energy microgrids by adopting the proposed customised multi-energy pricing scheme. The profit maximisation problem of the retailer is formulated at the upper level and shown as follows:
max Ξ U F = t T { i M π e l e , i r e t a i l , t p i t α i π e l e , i r e t a i l , t p i e x p o r t , t π e l e t i M p i t p i e x p o r t , t + i M π g a s , i r e t a i l , t π g a s t g i t } ( 10 a )
subject to
p t o t a l m i n i M p i t p i e x p o r t , t p t o t a l m a x , t T ( 10 b ) g t o t a l m i n i M g i t g t o t a l m a x , t T ( 10 c ) π e l e , i r e t a i l , m i n π e l e , i r e t a i l , t π e l e , i r e t a i l , m a x , i M , t T ( 10 d ) π g a s , i r e t a i l , m i n π g a s , i r e t a i l , t π g a s , i r e t a i l , m a x , i M , t T ( 10 e ) t T π e l e , i r e t a i l , t T = A V G e l e , i M ( 10 f ) t T π g a s , i r e t a i l , t T = A V G g a s , i M ( 10 g )
The decision variables of the upper-level problem are Ξ U = { π e l e , i r e t a i l , t , π g a s , i r e t a i l , t } , which denote the retail electricity and natural gas prices for each microgrid i M at each scheduling hour. The objective function (10a) depicts the overall profit of the retailer. π e l e t and π g a s t denote the wholesale electricity and natural gas prices. In particular, the first group of elements in (10a) represents the revenue obtained from all microgrids by exchanging electricity. The electricity purchasing cost from, or the selling revenue to, the wholesale electricity market is described in the second group of elements. The last group of elements denotes the profit of selling natural gas to the microgrids. Constraints (10b) and (10c) limit the amount of electricity and natural gas exchange between the energy retailer and wholesale markets. The retail electricity and natural gas prices customised for each microgrid are bounded in (10d) and (10e). Constraints (10f) and (10g), which are inspired by Ref. [3], impose the average retail electricity and natural gas prices within the scheduling hours to be equal to the predetermined constants A V G e l e and A V G g a s . Notice that the two equality constraints ensure a sufficient number of low price scheduling hours. Without these constraints, in principle, the retailer could always choose the maximum retail prices to maximise its profit. As a result, the constraints provide a fair retail price image among microgrids, which are also crucial for the retailer’s market share in the long term [32].

3. Solution Methods

The proposed bilevel model includes many binary decision variables in the lower-level problems, which make it extremely hard to solve by conventional analytical methods, such as KKT reformulation-related methods. To overcome the non-convexity of the model, we propose three categories of metaheuristic algorithms that simulate the behaviours of the energy retailer at the upper level to find an optimal solution efficiently, which are as follows: swarm-based, PSO; evolution-based, GA; and physics-based, SA. Therefore, the three metaheuristic algorithms combined with the lower-level MILP solver form different hybrid solution algorithms, which are illustrated in detail below.

3.1. PSO-Based Algorithm

The PSO algorithm is a swarm-based metaheuristic method that simulates the social behaviour of the movement of organisms in a bird flock or fish school [33]. Namely, when birds search randomly for food, for instance, all birds in the flock are able to share their knowledge and discovery to help the entire flock find the best location for hunting. Figure 3 shows the flowchart of the proposed PSO-based algorithm. Essentially, each particle contains two properties: position and velocity. During each iteration, the global best position of all particles and the best previously visited position of each particle are found by evaluating the fitness function of each particle. Each particle’s position and velocity are updated via the equations as follows:
v n y + 1 = w v n y + c 1 r 1 y ( x n p , y x n y ) + c 2 r 2 y ( x g , y x n y ) ( 11 a ) x n y + 1 = x n y + v n y + 1 ( 11 b )
where the superscript y indicates the number of iterations, w denotes the inertia weight, c 1 and c 2 represent cognitive constant and social constant, respectively, and r 1 and r 2 are uniformly distributed random numbers in [ 0 , 1 ] . Notice that if any element in the updated particle position is out of the boundary set by (10d) and (10e), the nearest boundary is assigned to the element [34].
The detailed process of the PSO-based decision-making algorithm is shown in Algorithm 1. In particular, the maximum iteration, total number of particles N P S O and each particle’s position x and velocity v need to be initialised. Notice that each particle’s position denotes the energy retailer’s customised pricing decision for the next 24 h. Steps 3–7 show the interaction between the energy retailer and microgrids and are interpreted as follows. First, the energy retailer announces the customised electricity and natural gas prices for each microgrid for the next 24 h in step 4. Then, each microgrid solves its energy-management problem based on the received energy prices from the retailer and obtains the optimal solution, which is returned back to the energy retailer in step 5. In step 6, after receiving the optimal energy management solutions from all microgrids, the energy retailer solves its profit maximisation problem and evaluates the current pricing decisions using the fitness function based on the penalisation method proposed by [35,36]. Notice that the penalised fitness function formulation can not only be used for the PSO-based algorithm but also be applied to GA- and SA-based algorithms since the constraint-handling technique can be generalised in metaheuristic algorithms. When the predefined termination condition is not satisfied, the global best position of all particles x g , y and the personal best previously visited position of each particle x n p , y are recorded in steps 11 and 12. Each particle’s position and velocity are then updated by applying (11a) and (11b) in step 13. The algorithm iterates until the termination condition is reached and outputs the optimal solutions for the energy retailer and each microgrid.
Algorithm 1 PSO-based algorithm.
1:
Initialisation: Total number of particles N P S O . Maximum iteration. Each particle’s position x and velocity v.
2:
Each particle’s position denotes the strategy of the leader (i.e., energy retailer).
3:
for n P S O = 1 to N P S O  do
4:
   The energy retailer announces customised electricity and natural gas prices for each microgrid for the next 24 h.
5:
   After receiving the prices, each microgrid n P S O reacts to the leader’s strategy by solving the energy management problem and obtaining the optimal solutions, which are returned back to the energy retailer.
6:
   The energy retailer solves the profit maximisation problem and evaluates it using the fitness function after receiving the optimal solutions from all microgrids.
7:
end for
8:
if The termination condition is satisfied then
9:
   The algorithm terminates and returns the outputs.
10:
else
11:
   Record the global best position of all particles as x g , y .
12:
   Record the best previously visited position of the particle n P S O as x n P S O p , y .
13:
   Update each particle’s velocity and position by using (11a) and (11b)
14:
end if
15:
Repeat steps 3–14 until the termination condition is reached.

3.2. GA-Based Algorithm

GA algorithm is an evolution-based computational method inspired by genetics and natural selection [37]. The flowchart of the GA-based algorithm is shown in Figure 4. In particular, after evaluating the population of the current generation, the elite chromosome with the best fitness value is inherited by the next generation. Furthermore, the selection process, such as the roulette wheel, tournament and random selection, is applied to choose other chromosomes for the next generation. The chromosomes of the successive generation are finally generated by crossover and mutation processes [22]. Algorithm 2 explains the process of the solution algorithm. Firstly, the maximum iteration and population of chromosomes N G A are initialised. Similar to the PSO-based algorithm, each chromosome indicates the energy retailer’s pricing decisions, and steps 3–7 show the retailer and microgrids’ interactions. Then, the next generation of chromosomes is created by applying selection, crossover and mutation in step 11. Specifically, the stochastic uniform selection method is used to choose the next generation of chromosomes. The scattered crossover function is applied by creating a random binary vector and selecting the genes from the first parent chromosome when the entry is 1 and from the second parent chromosome when the entry is 0. Lastly, the Gaussian mutation is utilised to explore the search space, which adds a random number taken from the Gaussian distribution with a mean 0 to each gene of the chromosome. The algorithm is stopped when repeating steps 3–12 until the termination condition is satisfied.
Algorithm 2 GA-based algorithm.
1:
Initialisation: Maximum iteration. Population of N G A chromosomes.
2:
Each chromosome indicates the strategy of the leader (i.e., energy retailer).
3:
for n G A = 1 to N G A  do
4:
   The energy retailer announces customised electricity and natural gas prices for each microgrid for the next 24 h.
5:
   After receiving the prices, each microgrid n G A reacts to the leader’s strategy by solving the energy management problem and obtaining the optimal solutions, which are returned back to the energy retailer.
6:
   The energy retailer solves the profit maximisation problem and evaluates it using the fitness function after receiving the optimal solutions from all microgrids.
7:
end for
8:
if The termination condition is satisfied then
9:
   The algorithm terminates and returns the outputs.
10:
else
11:
   The next generation of chromosomes is produced by selection, crossover and mutation.
12:
end if
13:
Repeat steps 3–12 until the termination condition is reached.

3.3. SA-Based Algorithm

Simulated annealing is a physics-based probabilistic approach that emulates the standard annealing process used in metallurgy to improve the properties of solids. Essentially, after the solid is heated up by a significantly high temperature, the atoms gain the energy to explore their stable states. The optimal state of each atom can be then found following the annealing process. As a result, the solid is recrystallised and improves its ductility. Similarly, the simulated annealing algorithm is applied to find the optimal solution by cooling the heated atoms in the search space. Figure 5 shows the flowchart of the SA-based algorithm. In particular, it uses the Metropolis algorithm to generate the next trial atoms by randomly perturbing the current ones. If the fitness value of the trial atom is greater than the current fitness value, the trial atom replaces the current atom in the next iteration. Otherwise, the trial atom can still be accepted by the acceptance criterion, which is based on the Boltzmann distribution shown in (12a) [38]:
P r n S A y = exp ( Δ n S A / T y ) ( 12 a )
where Δ n S A represents the difference of fitness values between the trial atom and current atom n S A . The temperature in the current iteration is denoted as T y . Notice that when the temperature is significantly high, the SA algorithm can accept the worse solution, which is particularly beneficial in search space exploration. As the temperature drops in every iteration, the acceptance criterion P r n S A y also decreases, which leads to the lower possibility of accepting the worse solution. The SA algorithm can be considered to be the hill climbing algorithm when the temperature is significantly low (e.g., 1), which takes advantage of the efficient local search method.
Algorithm 3 shows the proposed SA-based algorithm to solve the bilevel model. The maximum iteration, total number of atoms, and initial and final temperature are initialised in step 1. Steps 2–7 are similar to Algorithms 1 and 2, which present the interactions between the retailer and microgrids. In step 8, the energy retailer proposes a trial energy prices decision for each current price strategy and collects the evaluation by repeating steps 5 and 6. If the fitness value from the trial prices is higher than the current ones, the retailer replaces the current prices with the trial prices in the next iteration. Otherwise, the retailer decides the accept or refuse the trial prices based on the acceptance criterion (12a). This decision process is illustrated in steps 9–12. The temperature decreases in every iteration in step 13. The algorithm repeats steps 8–16 until the termination condition is fulfilled.
Algorithm 3 SA-based algorithm.
1:
Initialisation: Maximum iteration. Population of atoms N S A . Initial and final temperature.
2:
Each atom indicates the strategy of the leader (i.e., energy retailer).
3:
for n S A = 1 to N S A  do
4:
   The energy retailer announces customised electricity and natural gas prices for each microgrid for the next 24 h.
5:
   After receiving the prices, each microgrid n S A reacts to the leader’s strategy by solving the energy management problem and obtaining the optimal solutions, which are returned back to the energy retailer.
6:
   The energy retailer solves the profit maximisation problem and evaluates it using the fitness function after receiving the optimal solutions from all microgrids.
7:
end for
8:
For each current energy prices strategy, the energy retailer generates trial energy prices and repeats steps 5 and 6.
9:
The energy retailer decides to accept the trial energy prices against the current ones by comparing the fitness values and acceptance criterion (12a).
10:
if Trial energy prices are accepted then
11:
   The current energy prices are replaced by the trial prices in the next iteration.
12:
end if
13:
Decrease the temperature parameter.
14:
if The termination condition is satisfied then
15:
   The algorithm terminates and returns the outputs.
16:
else
17:
   Repeat steps 8–16 until the termination condition is reached.
18:
end if

4. Numerical Results

The section discusses the results of numerical analyses to illustrate the feasibility and effectiveness of the proposed bilevel model and the solution algorithms. In particular, Section 4.1 describes the setup for the experiments. The three aforementioned metaheuristic algorithms for solving the proposed bilevel model are compared and analysed in Section 4.2. Moreover, the performance results of the proposed customised and the uniform multi-energy pricing schemes are investigated in Section 4.3. Lastly, Section 4.4 presents the effect of the rated capacity and power of the ES and TS on the retailer’s profit and the microgrids’ operations.

4.1. Experimental Setup

In this section, we consider three different microgrids (i.e., microgrid 1, microgrid 2 and microgrid 3) that are managed by the energy retailer. Each microgrid’s base demand and the configurations of its facilities (i.e., the capacity and rated power of ES and TS) are differentiated from others. The base electricity, natural gas, and heat demand for each microgrid come from the PJM dataset [39], United Kingdom Department of Education Gas dataset [40], and Open Power System Data [41], respectively, which are shown in Table A1. Each microgrid’s ES and TS parameter setups are shown in Table 2 and Table 3. Besides the ES and TS parameter setup, other facilities, such as CHP, heat pump, and load-shifting programs, share the same parameters among microgrids, shown in Table A2, Table A3 and Table A5. The minimum power of RES is zero, while the maximum power for each scheduling hour is shown in Table A4, which originated from [42,43]. The wholesale electricity and natural gas prices come from [44], which are presented in Table A6. In addition, the curtailable load and costs of electricity, natural gas and heat are 300 MWh, 100 kcf and 350 MBtu, and $70/MWh, $20/kcf and $60/MBtu, respectively. The minimum and maximum curtailment rates are 0 and 0.4. For each microgrid, the minimum and maximum electricity purchased from and exported to the energy retailer are 0 MWh and 5000 MWh, respectively. For the energy retailer, the minimum and maximum retail electricity prices are $60/MWh and $110/MWh, and $15/kcf and $60/kcf for the natural gas prices. The electricity price that each microgrid sells back to the energy retailer is set to be 90% of the current retail price. The average retail electricity and natural gas prices are predetermined as $90/MWh and $40/kcf.
All three hybrid algorithms are written in MATLAB R2022b and run on Windows 11 Pro 64-bit with 12 cores CPU @ 3.6 GHz and 32 GB of RAM. The coupled MILP problem is solved by Gurobi Optimiser (version 10.0.0) using the branch and bound algorithm. Each iteration for all three hybrid algorithms consists of upper-level operations and 600 (200 individuals × 3 microgrids) lower-level MILP problems, which takes about 60 s to complete.
For the hybrid solution algorithms, we consider 100 iterations for a single run, which includes a population of 200 individuals (price signals). In particular, for the PSO-based algorithm, the inertia weight is 1.1. The cognitive and social constants are both 1.49. For the GA-based algorithm, the best 10 elite chromosomes are survived to the next generation. In the SA-based algorithm, the initial and final temperatures are 100 and 1 degrees. Notice that all parameters are set after a mass of experiments, considering the balance between the quality of results and computation burden.

4.2. Solution Algorithms Comparison

The principal focus of this section is the numerical comparison among the aforementioned hybrid solution methods, i.e., PSO, GA and SA coupled with MILP algorithms. In this experiment, the three hybrid algorithms run 25 times independently for both proposed customised and uniform pricing models. The detailed statistical analysis of the results of the energy retailer’s profit is shown in Table 4. For the customised pricing scheme, the GA-based algorithm presents outstanding performance along with others, obtaining higher minimum, maximum, median and average values of the retailer’s profit. Furthermore, the standard deviation and interquartile range (IQR) that measures the spread of the middle 50% of the data are the lowest using the GA-based algorithm, which indicate less data dispersion. On the other hand, for the uniform pricing scheme, although the standard deviation of SA-based results is the lowest among others, the GA algorithm still reveals significantly high values in all minimum, maximum, median and average statistical measurements. In summary, the GA-based algorithm is verified to provide the best performance for both customised and uniform pricing models, considering the value and stability of the results it can achieve. Therefore, the GA-based hybrid algorithm is applied to solve customised and uniform pricing models in the following experiments.

4.3. Customised and Uniform Multi-Energy Pricing Schemes

This section presents the difference between the performance of customised and uniform pricing schemes. Notice that the results come from the GA-based algorithm, which runs 25 times independently in the previous section. The cost and revenue of the retailer, net profit margin and each microgrid’s cost are calculated based on the run, which generates the median value of the retailer’s profit. The two pricing schemes are compared in Table 5. It reveals that the energy retailer can make more profit under the customised pricing scheme measured by both the average (+0.90%) and median (+2.08%) profit value. This is because the customised retail prices are tailored to each microgrid with different characteristics and load patterns, which makes the retailer’s pricing decisions more flexible. In addition, Table 6 shows the microgrids’ energy management results under the two pricing schemes. Specifically, except for the operational cost, all other values in Table 6 are the sum of the particular result over the 24 scheduling hours. Notice that the amount of the microgrids’ purchased energy is identical to the amount of energy the retailer bids from the wholesale markets. It turns out that the retailer purchases 7.93% less electricity and buys 3.84% more natural gas under the customised pricing scheme because natural gas is cheaper than electricity. Since the retailer costs less to purchase energy from the wholesale markets and gains the ability to customise the pricing strategy for each microgrid, the retailer’s profit is increased compared to that under the uniform pricing scheme. Moreover, because the customised pricing scheme obtains higher profit with relatively less revenue, the retailer’s net profit margin, which measures the amount of profit the retailer obtains per dollar of revenue gained, is 1.01% larger compared to the uniform pricing scheme. As a result, the proposed customised pricing scheme is superior to the uniform pricing scheme and beneficial for the retailer to acquire more profit and a higher net profit margin.
Each microgrid’s energy demand under the customised pricing scheme is less than or equal to the demand under the uniform pricing scheme. This can show the effectiveness of the load curtailment program. Moreover, the CHP is heavily used as a cheaper alternative to generate electricity under the customised pricing scheme. On the contrary, the heat pump is less implemented since more heat demand is satisfied by the CHP. Additionally, because the rated capacity and power of the ES and TS in microgrid 3 are significantly larger than those in microgrid 2, the microgrid’s ES and TS charging and discharging power is remarkably greater than those of microgrid 2 under both pricing schemes.

4.4. Effect of ES and TS Rated Capacity and Power

One of the objectives in this section is to identify the effect of rated capacity and power of the ES and TS on the profit of the energy retailer. We consider three different scenarios to illustrate these effects. The identical base energy load demand (i.e., the base energy demand in microgrid 1) is applied for all three microgrids. In the first scenario (Scenario 1), each microgrid has differentiated ES and TS configurations (shown in Table 2 and Table 3). Notice that microgrid 1 does not equip either ES or TS. The rated capacity and power of ES and TS for microgrid 2 are 500 MWh and 200 MW/h, 600 MBtu and 200 MBtu/h. For microgrid 3, the rated capacity and power of ES and TS are 1000 MWh and 300 MW/h, and 1300 MBtu and 430 MBtu/h. In the second scenario (Scenario 2), none of the three microgrids are equipped with ES and TS. On the other hand, all three microgrids in the third scenario (Scenario 3) own the same configurations of ES and TS, which are the same as those of microgrid 3 in Scenario 1. Additionally, we analyse the retailer’s profit and microgrids’ operational costs over 15 independent runs for each scenario to obtain reliable results. The average and median values of the retailer’s profit with each scenario are listed in Table 7. Scenario 1 represents a realistic context in which all three microgrids are equipped with different ES and TS configuration setups. On the other hand, Scenarios 2 and 3 can be considered as two extreme cases with the least and the greatest resource of ES and TS. It turns out that the retailer can make the highest profit in Scenario 2 since the underlying microgrids lack the ability to manage their energy by ES and TS. Therefore, the retailer can take advantage of this demand response deficiency. In contrast, microgrids in Scenario 3 own the highest rated capacity and power of ES and TS, which provide the most capability to manage their energy. As a result, it leads to the retailer making the least profit over the three scenarios.
To analyse the ES and TS energy management and the effect of their rated capacity and power on the operational cost of microgrids, we select the median value of the proposed bilevel problem solution in Scenario 1. Figure 6, Figure 7 and Figure 8 display the operational results of load demand, CHP, heat pump, ES, TS, DR, renewable energies, and electricity exchange for each microgrid categorised by types of energy (i.e., electricity, natural gas and heat). The positive value of each energy indicates the energy supply for the load demand, and the negative value states the demand for each energy. In particular, the ES and TS operational results for microgrids 2 and 3 are shown in Table 8 and Table 9. Microgrid 2 charges the ES with rated power in hours 2, 4, 6, 12, 13, 21 and 22 when the retail electricity prices are below the predetermined average price of $90/MWh. This can manage the energy usage for further use and reduce the potential cost. In contrast, ES is discharged with rated power in hours 1, 3, 5, 7, 17, 19, 20, and 23 when retail prices are above average to substitute the relatively expensive electricity source. On the other hand, since CHP and the heat pump are the primary heat source, the TS charging and discharging decisions depend on both retail electricity and natural gas prices. Analogous decisions are made by the microgrid 3.
In addition, Table 8 and Table 9 indicate that increasing the rated capacity and power from microgrids 2 to 3 boosts ES and TS usage. Specifically, the total ES charging and discharging power in microgrid 2 are 1432.14 MW/h and 1292.46 MW/h, which are less than 1800.00 MW/h and 1624.45 MW/h in microgrid 3. A similar pattern happens to TS energy management (i.e., 1050.57 MBtu/h and 948.05 MBtu/h compared to 1264.09 MBtu/h and 1140.75 MBtu/h). Moreover, Table 10 shows the operational cost of three different microgrids. With ES and TS, microgrids 2 and 3 can reduce operational costs by 2.02% and 4.14% compared to microgrid 1, respectively. Furthermore, following the rise of ES and TS usage from microgrid 2 to 3, the operational costs of microgrids decrease notably. This is because microgrids with higher rated capacity and power of ES and TS are more capable of managing energy and reducing the potential cost.

5. Conclusions

In this study, a customised multi-energy pricing scheme is proposed for an energy retailer that manages multiple microgrids equipped with energy converters, storage, RES and DR programs. The proposed pricing problem is formulated as a bilevel optimisation model. The energy retailer is the leader at the upper level to maximise profit. Each multi-energy microgrid acting as a follower minimises the operational cost at the lower level. In addition, three hybrid metaheuristic algorithms (i.e., PSO, GA and SA) coordinated with the MILP program are developed to solve the model efficiently. Through numerical analyses, the GA-based hybrid solution algorithm is proved to have the best performance against others. The customised pricing scheme presents superiority compared to the uniform pricing scheme. In addition, since increasing the rated capacity and power of the ES and TS can improve the microgrids’ energy management capability, the retailer’s profit and microgrids’ operational costs reduce accordingly.
For future work, we would like to develop a machine learning or data-driven model at the lower level to present the interaction between the upper-level energy retailer’s price signals and the lower-level microgrids’ energy management decisions. The method will benefit real-world applications due to the existence of imperfect information of lower-level agents, such as microgrids and aggregators (that is, their operation models may not be known by retailers). In addition, we will consider developing an approximation and numerical approach for solving the bilevel model with the binary variables in the lower-level problem. The comparison between the approach and the aforementioned hybrid metaheuristic algorithms will also be studied. Furthermore, since environmental factors, such as carbon cost/budget, are increasingly implemented by different organisations (e.g. microgrids or local energy communities) as required by retailers and governments, it could affect retailers’ pricing decisions. Therefore, the objective functions and constraints of the bilevel model will consider such environmental factors in our future work. Lastly, we will investigate our modelling alternatives, such as cooperative game theory and bargaining mechanism, to model the interactions between the retailer and customers/microgrids.

Author Contributions

Conceptualization, F.M.; Methodology, Q.H. and F.M.; Software, Q.H.; Validation, Q.H.; Investigation, J.L.; Data curation, Q.H.; Writing—original draft, Q.H.; Writing—review & editing, F.M. and J.L.; Supervision, F.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

Abbreviations and Indices
RESRenewable energy sources
DRDemand response
PSOParticle swarm optimisation
GAGenetic algorithm
SASimulated annealing
MILPMixed-integer linear program
DERsDistributed energy resources
RTPReal-time pricing
TOUTime of use
EVsElectric vehicles
CVaRConditional value at risk
EPECEquilibrium problem with equilibrium constraints
IESPIntegrated energy service provider
KKTKarush–Kuhn–Tucker
CHPCombined heat and power
ES, TSElectrical storage, thermal storage
LC, LSLoad curtailment, load shifting
PV, WTPhotovoltaic, wind turbine
iIndex of microgrids
aIndex of households participating in load-shifting program
tIndex of time periods
Sets
M Set of microgrids
T Set of scheduling hours
A Set of households participating in load-shifting program
Parameters
α i Proportion that the electricity price sold by the microgrid i back to the retailer against the retail price.
c i C H P , c i p u m p Operation and maintenance costs for CHP and heat pump in microgrid i.
c C H P , i s t , c C H P , i s d , c p u m p , i s t , c p u m p , i s d Start-up and shut-down costs of CHP and heat pump in microgrid i.
c i E S , c i T S Electrical and thermal storage costs.
c c u r t a i l , i e l e , t , c c u r t a i l , i g a s , t , c c u r t a i l , i h e a t , t Load curtailment cost of electricity, natural gas and heat in microgrid i.
η i C H P , η i e 2 h Natural gas to electricity and electricity to heat conversion efficiency of the CHP in microgrid i.
p i C H P , m i n , p i C H P , m a x Minimum and maximum electricity volume generated by the CHP in microgrid i.
p i C H P , i n i t , δ i i n i t Initial electricity volume and status of the CHP in microgrid i.
p i R U , p i R D Ramp-up and ramp-down limits of the CHP in microgrid i.
η i p u m p Electricity to heat conversion efficiency of the Heat pump in microgrid i.
q i p u m p , m i n , q i p u m p , m a x Minimum and maximum heat volume generated by the heat pump in microgrid i.
q i p u m p , i n i t , θ i i n i t Initial heat volume and status of the heat pump in microgrid i.
q i R U , q i R D Ramp-up and ramp-down limits of the heat pump in microgrid i.
E i E S , i n i t Initial energy level of ES in microgrid i.
η i E S , c , η i E S , d , ϵ i E S ES charging, discharging and self-discharging rate in microgrid i.
E i E S , m i n , E i E S , m a x Minimum and maximum of the ES energy level in microgrid i.
p i c , m i n , p i c , m a c , p d , m i n , p i d , m a x Minimum and maximum of the ES charging and discharging volume in microgrid i.
E i T S , i n i t Initial energy level of TS in microgrid i.
η i T S , c , η i T S , d , ϵ i T S TS charging, discharging and self-discharging rate in microgrid i.
E i T S , m i n , E i T S , m a x Minimum and maximum of the TS energy level in microgrid i.
q i c , m i n , q i c , m a c , q d , m i n , q i d , m a x Minimum and maximum of the TS charging and discharging volume in microgrid i.
ρ e l e , i m i n , ρ e l e , i m a x Minimum and maximum electricity curtailment rate in microgrid i.
ρ g a s , i m i n , ρ g a s , i m a x Minimum and maximum natural gas curtailment rate in microgrid i.
ρ h e a t , i m i n , ρ h e a t , i m a x Minimum and maximum heat curtailment rate in microgrid i.
D a i Shiftable load adjustable time window of the household a in microgrid i.
T a i s t a r t , T a i s t o p Start and stop time of the load-shifting program of the household a in microgrid i.
d a i m i n , d a i m a x Minimum and maximum of the shiftable load of the household a in microgrid i.
E a i Total electricity consumption of the household a in microgrid i during the load shifting program.
p i P V , t , m i n , p i P V , t , m a x Minimum and maximum of the PV-generated electricity volume in microgrid i at time t.
p i w i n d , t , m i n , p i w i n d , t , m a x Minimum and maximum of the wind turbine-generated electricity volume in microgrid i at time t.
τ s p i n Spinning reserve ratio.
p i m i n , t , p i m a x , t Minimum and maximum of electricity volume that the microgrid i purchased from the retailer at time t.
p e x p o r t , i m i n , t , p e x p o r t , i m a x , t Minimum and maximum of electricity volume that the microgrid i sold to the retailer at time t.
p t o t a l m i n , p t o t a l m a x , g t o t a l m i n , g t o t a l m a x Total electricity and natural gas volume that the retailer purchased from the wholesale energy markets.
π e l e , i r e t a i l , m i n , π e l e , i r e t a i l , m a x Minimum and maximum of retail electricity price for microgrid i.
π g a s , i r e t a i l , m i n , π g a s , i r e t a i l , m a x Minimum and maximum of retail natural gas price for microgrid i.
A V G e l e , A V G g a s Average retail electricity and natural gas price over the scheduling hours.
Variables
p i t , g i t Electricity and natural gas volume that the microgrid i purchased from the retailer at time t.
p i e x p o r t , t Electricity volume that the microgrid i exports to the retailer at time t.
π e l e , i r e t a i l , t , π g a s , i r e t a i l , t Retail electricity and natural gas price for the microgrid i at time t.
p i C H P , t , q i C H P , t                              Electricity and heat volume generated by the CHP in microgrid i at time t.
g i C H P , t Natural gas volume that consumed by the CHP in microgrid i at time t.
δ i t , δ i s t , t , δ i s d , t CHP operational, start-up and shut-down status in microgrid i at time t.
p i p u m p , t , q i p u m p , t Electricity consumed and heat generated by the heat pump in microgrid i at time t.
θ i t , θ i s t , t , θ i s d , t Heat pump operational, start-up and shut-down status in microgrid i at time t.
E i E S , t ES energy level in microgrid i at time t.
p i c , t , p i d , t ES charging and discharging volume in microgrid i at time t.
γ i c , t , γ i d , t ES charging and discharging status in microgrid i at time t.
E i E S , T The final energy level of the ES in microgrid i.
E i T S , t TS energy level in microgrid i at time t.
q i c , t , q i d , t TS charging and discharging volume in microgrid i at time t.
ζ i c , t , ζ i d , t TS charging and discharging status in microgrid i at time t.
E i T S , T The final energy level of the TS in microgrid i.
ρ e l e , i t , ρ g a s , i t , ρ h e a t , i t                         Electricity, natural gas and heat curtailment rate in microgrid i at time t.
μ a i t Operational status of the household a in microgrid i at time t.
d a i t Shiftable load of the household a in microgrid i at time t.
p i P V , t , p i w i n d , t Electricity generated by PV and wind turbine in microgrid i at time t.
ψ i t , ψ i e x p o r t , t Electricity importing and exporting status in microgrid i at time t.

Appendix A. Input Data

Table A1. Base energy demand for microgrid 1–3.
Table A1. Base energy demand for microgrid 1–3.
Time (h)Microgrid 1Microgrid 2Microgrid 3
Electricity (MWh)Natural Gas (kcf)Heat (MBtu)Electricity (MWh)Natural Gas (kcf)Heat (MBtu)Electricity (MWh)Natural Gas (kcf)Heat (MBtu)
1842.92387.74519.30504.00210.00554.40622.31311.16715.66
2828.44381.08531.32499.20208.00549.12596.93298.46686.46
3820.95377.64578.56504.00210.00554.40580.13290.06667.14
4831.32382.41698.73499.20208.00549.12580.06290.03667.07
5861.44396.26972.46508.80212.00559.68597.68298.84687.33
6924.58425.311176.48518.40216.00570.24629.41314.71723.82
7939.25432.061137.13528.00220.00580.80677.44338.72779.05
8981.48451.481091.99696.00290.00765.60725.28362.64834.07
9956.98440.211032.92835.20348.00918.72770.57385.29886.16
10937.68431.33979.94936.00390.001029.60825.62412.81949.46
11935.63430.39936.56998.40416.001098.24879.69439.851011.64
12919.00422.74911.101008.00420.001108.80928.89464.451068.23
13916.53421.60900.551003.20418.001103.52968.60484.301113.89
14934.69429.96910.40998.40416.001098.24998.55499.281148.33
15961.06442.09929.051008.00420.001108.801018.46509.231171.23
161002.37461.09968.731017.60424.001119.361034.82517.411190.04
171075.71494.831004.191070.40446.001177.441038.35519.171194.10
181090.57501.661017.831027.20428.001129.921016.55508.271169.03
191074.07494.071016.88619.20258.00681.12978.60489.301125.39
201046.70481.48985.27614.40256.00675.84943.57471.791085.11
211011.72465.39887.76590.40246.00649.44900.10450.051035.12
22968.94445.71686.22489.60204.00538.56831.58415.79956.32
23885.73407.44541.79470.40196.00517.44762.76381.38877.18
24871.34400.82578.48508.80212.00559.68704.32352.16809.97
Table A2. CHP parameters.
Table A2. CHP parameters.
ParameterValue
Gas-to-power conversion rate0.3
Power-to-heat conversion rate1
Minimum power output (MW/h)40
Maximum power output (MW/h)1200
Ramp-up rate (MW/h)600
Ramp-down rate (MW/h)600
Operation & maintenance cost ($/kcf)15
Start-up & shut-down cost ($)3.48
Table A3. Heat pump parameters.
Table A3. Heat pump parameters.
ParameterValue
Power-to-heat conversion rate0.9
Minimum heat output (MBtu/h)20
Maximum heat output (MBtu/h)1200
Ramp-up rate (MBtu/h)600
Ramp-down rate (MBtu/h)600
Operation & maintenance cost ($/MW)2
Start-up & shut-down cost ($)3
Table A4. Maximum power of RES.
Table A4. Maximum power of RES.
Time (h)PV Power (MW/h)Wind Power (MW/h)
10.000.00
20.000.00
30.000.00
40.000.00
50.000.00
66.430.00
735.500.00
867.445.98
980.5041.53
10114.0577.96
11127.20135.86
1263.41165.05
1347.7494.61
1448.03145.59
1539.4271.58
1634.4488.22
1713.9645.99
181.9241.53
190.0018.38
200.0013.05
210.002.55
220.001.55
230.000.56
240.000.00
Table A5. Load-shifting program parameters.
Table A5. Load-shifting program parameters.
Shiftable LoadTotal Energy (MWh)Min. Power (MW/h)Max. Power (MW/h)Time Window (h)Duration (h)
Task 1250251502-185
Task 21105502-208
Task 318020805-226
Task 415010603-2112
Task 5200151008-2210
Tasks 1–5 can be assigned to many appliances, such as dishwashers, electric vehicles and water heaters.
Table A6. Wholesale electricity and natural gas prices.
Table A6. Wholesale electricity and natural gas prices.
Time (h)Electricity Price ($/MWh)Natural Gas Price ($/kcf)
167.0916.93
266.8916.60
367.6415.75
468.6416.85
569.5420.54
670.1621.30
771.3422.15
871.0422.60
971.4123.77
1071.6123.73
1171.2323.93
1271.1723.75
1370.8820.25
1471.1020.25
1571.5220.48
1672.2724.50
1772.8224.65
1873.1525.00
1972.5624.60
2071.1924.43
2170.4220.53
2270.1617.98
2369.3617.88
2466.9217.18

References

  1. Liu, P.; Ding, T.; Zou, Z.; Yang, Y. Integrated demand response for a load serving entity in multi-energy market considering network constraints. Appl. Energy 2019, 250, 512–529. [Google Scholar] [CrossRef]
  2. Mancarella, P. MES (multi-energy systems): An overview of concepts and evaluation models. Energy 2014, 65, 1–17. [Google Scholar] [CrossRef]
  3. Meng, F.; Ma, Q.; Liu, Z.; Zeng, X.J. Multiple dynamic pricing for demand response with adaptive clustering-based customer segmentation in smart grids. Appl. Energy 2023, 333, 120626. [Google Scholar] [CrossRef]
  4. Yang, J.; Zhao, J.; Luo, F.; Wen, F.; Dong, Z.Y. Decision-making for electricity retailers: A brief survey. IEEE Trans. Smart Grid 2017, 9, 4140–4153. [Google Scholar] [CrossRef]
  5. Aljohani, T.M.; Ebrahim, A.F.; Mohammed, O.A. Dynamic real-time pricing mechanism for electric vehicles charging considering optimal microgrids energy management system. IEEE Trans. Ind. Appl. 2021, 57, 5372–5381. [Google Scholar] [CrossRef]
  6. Nojavan, S.; Zare, K. Optimal energy pricing for consumers by electricity retailer. Int. J. Electr. Power Energy Syst. 2018, 102, 401–412. [Google Scholar] [CrossRef]
  7. Ghasemi, A.; Monfared, H.J.; Loni, A.; Marzband, M. CVaR-based retail electricity pricing in day-ahead scheduling of microgrids. Energy 2021, 227, 120529. [Google Scholar] [CrossRef]
  8. Su, S.; Li, Z.; Jin, X.; Yamashita, K.; Xia, M.; Chen, Q. Bi-level energy management and pricing for community energy retailer incorporating smart buildings based on chance-constrained programming. Int. J. Electr. Power Energy Syst. 2022, 138, 107894. [Google Scholar] [CrossRef]
  9. Hong, Q.; Meng, F.; Liu, J.; Bo, R. A bilevel game-theoretic decision-making framework for strategic retailers in both local and wholesale electricity markets. Appl. Energy 2023, 330, 120311. [Google Scholar] [CrossRef]
  10. Wei, C.; Wu, Q.; Xu, J.; Wang, Y.; Sun, Y. Bi-level retail pricing scheme considering price-based demand response of multi-energy buildings. Int. J. Electr. Power Energy Syst. 2022, 139, 108007. [Google Scholar] [CrossRef]
  11. Zhang, L.; Gao, Y.; Zhu, H.; Tao, L. Bi-level stochastic real-time pricing model in multi-energy generation system: A reinforcement learning approach. Energy 2022, 239, 121926. [Google Scholar] [CrossRef]
  12. Zeng, F.; Bie, Z.; Liu, S.; Yan, C.; Li, G. Trading model combining electricity, heating, and cooling under multi-energy demand response. J. Mod. Power Syst. Clean Energy 2019, 8, 133–141. [Google Scholar] [CrossRef]
  13. Wang, H.; Wang, C.; Sun, W.; Khan, M.Q. Energy Pricing and Management for the Integrated Energy Service Provider: A Stochastic Stackelberg Game Approach. Energies 2022, 15, 7326. [Google Scholar] [CrossRef]
  14. Zhu, X.; Sun, Y.; Yang, J.; Dou, Z.; Li, G.; Xu, C.; Wen, Y. Day-ahead energy pricing and management method for regional integrated energy systems considering multi-energy demand responses. Energy 2022, 251, 123914. [Google Scholar] [CrossRef]
  15. Yazdani-Damavandi, M.; Neyestani, N.; Shafie-khah, M.; Contreras, J.; Catalao, J.P. Strategic behavior of multi-energy players in electricity markets as aggregators of demand side resources using a bi-level approach. IEEE Trans. Power Syst. 2017, 33, 397–411. [Google Scholar] [CrossRef]
  16. Sinha, A.; Malo, P.; Deb, K. A review on bilevel optimization: From classical to evolutionary approaches and applications. IEEE Trans. Evol. Comput. 2017, 22, 276–295. [Google Scholar] [CrossRef]
  17. Yuan, G.; Gao, Y.; Ye, B.; Huang, R. Real-time pricing for smart grid with multi-energy microgrids and uncertain loads: A bilevel programming method. Int. J. Electr. Power Energy Syst. 2020, 123, 106206. [Google Scholar] [CrossRef]
  18. Sheha, M.; Mohammadi, K.; Powell, K. Solving the duck curve in a smart grid environment using a non-cooperative game theory and dynamic pricing profiles. Energy Convers. Manag. 2020, 220, 113102. [Google Scholar] [CrossRef]
  19. Li, B.; Roche, R.; Paire, D.; Miraoui, A. A price decision approach for multiple multi-energy-supply microgrids considering demand response. Energy 2019, 167, 117–135. [Google Scholar] [CrossRef]
  20. Yuan, G.; Gao, Y.; Ye, B.; Liu, Z. A bilevel programming approach for real-time pricing strategy of smart grid considering multi-microgrids connection. Int. J. Energy Res. 2021, 45, 10572–10589. [Google Scholar] [CrossRef]
  21. Qian, L.P.; Zhang, Y.J.A.; Huang, J.; Wu, Y. Demand response management via real-time electricity price control in smart grids. IEEE J. Sel. Areas Commun. 2013, 31, 1268–1280. [Google Scholar] [CrossRef]
  22. Meng, F.L.; Zeng, X.J. A Stackelberg game-theoretic approach to optimal real-time pricing for the smart grid. Soft Comput. 2013, 17, 2365–2380. [Google Scholar] [CrossRef]
  23. Meng, F.L.; Zeng, X.J. A profit maximization approach to demand response management with customers behavior learning in smart grid. IEEE Trans. Smart Grid 2015, 7, 1516–1529. [Google Scholar] [CrossRef]
  24. Meng, F.; Kazemtabrizi, B.; Zeng, X.J.; Dent, C. An optimal differential pricing in smart grid based on customer segmentation. In Proceedings of the 2017 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe), IEEE, Torino, Italy, 26–29 September 2017; pp. 1–6. [Google Scholar]
  25. Yang, J.; Zhao, J.; Wen, F.; Dong, Z.Y. A framework of customizing electricity retail prices. IEEE Trans. Power Syst. 2017, 33, 2415–2428. [Google Scholar] [CrossRef]
  26. Yang, J.; Zhao, J.; Wen, F.; Dong, Z. A model of customizing electricity retail prices based on load profile clustering analysis. IEEE Trans. Smart Grid 2018, 10, 3374–3386. [Google Scholar] [CrossRef]
  27. Dai, Y.; Sun, X.; Qi, Y.; Leng, M. A real-time, personalized consumption-based pricing scheme for the consumptions of traditional and renewable energies. Renew. Energy 2021, 180, 452–466. [Google Scholar] [CrossRef]
  28. Huang, T.; Sun, Y.; Jiao, M.; Liu, Z.; Hao, J. Bilateral energy-trading model with hierarchical personalized pricing in a prosumer community. Int. J. Electr. Power Energy Syst. 2022, 141, 108179. [Google Scholar] [CrossRef]
  29. Dempe, S.; Zemkoho, A. Bilevel optimization. In Springer Optimization and Its Applications; Springer: Berlin/Heidelberg, Germany, 2020; Volume 161. [Google Scholar]
  30. Zhang, Y.; Meng, F.; Wang, R.; Kazemtabrizi, B.; Shi, J. Uncertainty-resistant stochastic MPC approach for optimal operation of CHP microgrid. Energy 2019, 179, 1265–1278. [Google Scholar] [CrossRef]
  31. Zhang, Y.; Meng, F.; Wang, R. A comprehensive MPC based energy management framework for isolated microgrids. In Proceedings of the 2017 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe), IEEE, Torino, Italy, 26–29 September 2017; pp. 1–6. [Google Scholar]
  32. Zugno, M.; Morales, J.M.; Pinson, P.; Madsen, H. A bilevel model for electricity retailers’ participation in a demand response market environment. Energy Econ. 2013, 36, 182–197. [Google Scholar] [CrossRef]
  33. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the Proceedings of the ICNN’95-International Conference on Neural Networks, IEEE, Perth, WA, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  34. Zhang, G.; Zhang, G.; Gao, Y.; Lu, J. Competitive strategic bidding optimization in electricity markets using bilevel programming and swarm technique. IEEE Trans. Ind. Electron. 2010, 58, 2138–2146. [Google Scholar] [CrossRef]
  35. Parsopoulos, K.E.; Vrahatis, M.N. Particle swarm optimization method for constrained optimization problems. Intell. Technol.—Theory Appl. New Trends Intell. Technol. 2002, 76, 214–220. [Google Scholar]
  36. Innocente, M.S.; Sienz, J. Constraint-handling techniques for particle swarm optimization algorithms. arXiv 2021, arXiv:2101.10933. [Google Scholar]
  37. Whitley, D. A genetic algorithm tutorial. Stat. Comput. 1994, 4, 65–85. [Google Scholar] [CrossRef]
  38. Van Laarhoven, P.J.; Aarts, E.H. Simulated annealing. In Simulated Annealing: Theory and Applications; Springer: Berlin/Heidelberg, Germany, 1987; pp. 7–15. [Google Scholar]
  39. PJM Data Directory. Available online: https://dataminer2.pjm.com/list (accessed on 10 November 2022).
  40. Department for Education Gas and Electricity Half Hourly Data. Available online: https://www.data.gov.uk/dataset/fee711fd-b405-4939-8945-5f9189839ad0/department-for-education-gas-and-electricity-half-hourly-data (accessed on 10 November 2022).
  41. Open Power System Data: When2Heat Heating Profiles. Available online: https://data.open-power-system-data.org/when2heat/2019-08-06 (accessed on 10 November 2022).
  42. Photovoltaic Geographical Information System. Available online: https://re.jrc.ec.europa.eu/pvg_tools/en/ (accessed on 12 November 2022).
  43. Smart Meters in London. Available online: https://www.kaggle.com/datasets/jeanmidev/smart-meters-in-london?select=weather_hourly_darksky.csv (accessed on 12 November 2022).
  44. Qi, S.; Wang, X.; Li, X.; Qian, T.; Zhang, Q. Enhancing integrated energy distribution system resilience through a hierarchical management strategy in district multi-energy systems. Sustainability 2019, 11, 4048. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Structure of the multi-energy market.
Figure 1. Structure of the multi-energy market.
Energies 16 02080 g001
Figure 2. Framework diagram of the proposed bilevel model.
Figure 2. Framework diagram of the proposed bilevel model.
Energies 16 02080 g002
Figure 3. Flowchart of the PSO-based algorithm.
Figure 3. Flowchart of the PSO-based algorithm.
Energies 16 02080 g003
Figure 4. Flowchart of the GA-based algorithm.
Figure 4. Flowchart of the GA-based algorithm.
Energies 16 02080 g004
Figure 5. Flowchart of the SA-based algorithm.
Figure 5. Flowchart of the SA-based algorithm.
Energies 16 02080 g005
Figure 6. Operational results of microgrid 1.
Figure 6. Operational results of microgrid 1.
Energies 16 02080 g006
Figure 7. Operational results of microgrid 2.
Figure 7. Operational results of microgrid 2.
Energies 16 02080 g007
Figure 8. Operational results of microgrid 3.
Figure 8. Operational results of microgrid 3.
Energies 16 02080 g008
Table 1. Literature comparison. ✓: Yes; ✗: No; –: Not applicable.
Table 1. Literature comparison. ✓: Yes; ✗: No; –: Not applicable.
LiteratureUniform PricingCustomised PricingElectricity MarketMulti-Energy MarketBilevel ModelKKT-Based ApproachMetaheuristic-Based Approach
[5,6,7]
[8,9]
[10,12,13,14,15]
[11]
[17,18,19]
[20,21,22,23]
[24]
[25]
[26,27,28]
[3]
Table 2. ES parameters. – : Not applicable.
Table 2. ES parameters. – : Not applicable.
ParameterMicrogrid 1Microgrid 2Microgrid 3
Charging rate0.950.95
Discharging rate0.950.95
Self-discharging rate (MWh)0.0020.002
Initial energy level (MWh)250500
Minimum energy level (MWh)50100
Rated Capacity (MWh)5001000
Minimum charging/discharging power (MW/h)2030
Rated charging/discharging power (MW/h)200300
Operation & maintenance cost ($/MWh)3.53.5
Table 3. TS parameters. – : Not applicable.
Table 3. TS parameters. – : Not applicable.
ParameterMicrogrid 1Microgrid 2Microgrid 3
Charging rate0.950.95
Discharging rate0.950.95
Self-discharging rate (MBtu)0.0040.004
Initial energy level (MBtu)300650
Minimum energy level (MBtu)60130
Rated Capacity (MBtu)6001300
Minimum charging/discharging power (MBtu/h)2043
Rated charging/discharging power (MBtu/h)200430
Operation & maintenance cost ($/MBtu)3.53.5
Table 4. Statistical results of three hybrid solution algorithms.
Table 4. Statistical results of three hybrid solution algorithms.
SchemeAlgorithmMinimum ($)Maximum ($)Median ($)Average ($)Standard DeviationIQR
CustomisedPSO1,747,893.233,237,259.442,637,117.202,661,933.25305,700.17304,077.64
GA2,793,836.043,621,174.983,226,859.383,235,457.87188,685.73262,036.86
SA2,157,779.583,253,958.042,652,633.362,794,698.37313,398.40534,933.18
UniformPSO2,229,066.833,454,961.222,868,594.242,873,363.22335,318.00477,855.56
GA2,785,634.973,852,188.643,160,983.133,206,485.96252,908.66274,699.89
SA2,555,064.323,268,070.402,862,418.322,890,620.58199,545.25323,634.31
Table 5. Results of retailer under customised and uniform pricing schemes.
Table 5. Results of retailer under customised and uniform pricing schemes.
Pricing SchemeAverage Profit of Retailer ($)Median Profit of Retailer ($)Cost of Retailer ($)Revenue of Retailer ($)Net Profit Margin
Customised3,235,457.873,226,859.388,745,212.3011,972,071.6826.95%
Uniform3,206,485.963,160,983.138,811,088.5512,187,869.4625.94%
Table 6. Microgrids energy management results under customised and uniform pricing schemes. – : Not applicable.
Table 6. Microgrids energy management results under customised and uniform pricing schemes. – : Not applicable.
CustomisedUniform
Microgrid 1Microgrid 2Microgrid 3Microgrid 1Microgrid 2Microgrid 3
Operational cost ($)5,443,053.704,657,522.955,157,586.895,394,078.294,589,881.265,166,624.95
Purchased electricity (MWh)24,118.7823,275.5720,984.3028,006.4622,121.8224136.56
Purchased natural gas (kcf)61,866.3449,612.8765,119.0256,340.0553,270.5660460.13
Electricity demand (MWh)27,949.1023,022.8025,180.2628,189.1023,072.7225180.26
Natural gas demand (kcf)11,844.798712.0011,365.1311,964.798832.0011,365.13
Heat demand (MBtu)26,293.8124,378.0827,594.9126,453.6424,529.0027,591.80
CHP-generated electricity (MWh)15,006.4712,270.2616,126.1713,312.5813,331.5714728.50
Heat pump-generated heat (MBtu)11,287.3412,191.0411,673.6913,141.0611,308.4212988.86
ES charging power (MW/h)1215.501682.921600.002294.51
ES discharging power (MW/h)1096.941518.791443.952070.75
TS charging power (MBtu/h)852.642101.071137.421286.82
TS discharging power (MBtu/h)769.421896.131026.431161.26
Table 7. Profit of retailer with different scenarios.
Table 7. Profit of retailer with different scenarios.
Scenario 1Scenario 2Scenario 3
Average of profit ($)3,434,862.903,667,999.433,247,324.34
Median of profit ($)3,433,100.163,656,147.993,248,191.95
Table 8. ES and TS results for microgrid 2. – : Not applicable.
Table 8. ES and TS results for microgrid 2. – : Not applicable.
Time (h)Retail Electricity Price ($/MWh)ES Energy Level (MWh)ES Charging Power (MW/h)ES Discharging Power (MW/h)Retail Natural Gas Price ($/kcf)TS Energy Level (MBtu)TS Charging Power (MBtu/h)TS Discharging Power (MBtu/h)
1100.0150.000.00190.0041.30163.890.00129.30
273.72240.00200.000.0033.06220.0159.080.00
3106.9376.020.00155.7833.51410.00200.000.00
468.81266.02200.000.0020.26600.00200.000.00
5105.1555.490.00200.0044.33600.000.000.00
665.89245.49200.000.0041.39514.830.0080.91
799.23120.010.00119.2031.70471.080.0041.56
891.80120.010.000.0042.80408.900.0059.07
980.04120.010.000.0055.36408.890.000.00
1085.11120.010.000.0044.86363.230.0043.38
1189.07120.000.000.0027.63363.220.000.00
1266.12310.00200.000.0040.06387.4125.460.00
1374.45500.00200.000.0028.80577.33199.930.00
14106.84500.000.000.0021.27600.0023.870.00
1598.33500.000.000.0038.25600.000.000.00
1698.75499.990.000.0034.21599.990.000.00
17104.40357.630.00135.2447.71438.230.00153.67
1894.22357.630.000.0039.77340.750.0092.61
19109.85254.050.0098.4026.59246.440.0089.58
20103.0150.000.00193.8551.12185.410.0057.97
2166.43240.00200.000.0053.62320.54142.240.00
2286.17270.5332.140.0054.54320.530.000.00
23109.3160.000.00200.0056.92110.000.00200.00
2476.35250.00200.000.0050.99300.00200.000.00
Total:1432.141292.461050.57948.05
Table 9. ES and TS results for microgrid 3. – : Not applicable.
Table 9. ES and TS results for microgrid 3. – : Not applicable.
Time (h)Retail Electricity Price ($/MWh)ES Energy Level (MWh)ES Charging Power (MW/h)ES Discharging Power (MW/h)Retail Natural Gas Price ($/kcf)TS Energy Level (MBtu)TS Charging Power (MBtu/h)TS Discharging Power (MBtu/h)
172.75785.00300.000.0045.98556.000.0089.30
2105.28469.210.00300.0049.69449.340.00101.32
3102.46245.640.00212.3950.22449.340.000.00
4105.44245.630.000.0035.79677.53240.200.00
5109.89245.630.000.0031.66677.520.000.00
6102.56245.630.000.0029.20467.250.00199.75
7102.04100.000.00138.3454.17130.010.00320.38
883.42100.000.000.0027.65130.010.000.00
962.57385.00300.000.0042.99130.000.000.00
1067.83670.00300.000.0054.99130.000.000.00
11106.24354.200.00300.0033.50171.2143.380.00
1294.18354.200.000.0018.17291.18126.290.00
1364.51639.20300.000.0057.00421.18136.840.00
14106.82639.200.000.0031.65541.81126.990.00
1589.62639.200.000.0029.78582.6643.000.00
1681.47639.190.000.0055.27582.660.000.00
1761.14924.19300.000.0049.24582.650.000.00
1889.72924.190.000.0025.13582.650.000.00
19105.77608.400.00300.0053.40130.010.00430.00
2062.25893.40300.000.0044.58130.010.000.00
21100.28577.610.00300.0042.99130.000.000.00
2294.81577.600.000.0040.82130.000.000.00
2396.9500.000.0073.7235.15309.00188.420.00
2492.04500.000.000.0020.99650.00358.950.00
Total:1800.001624.451264.091140.75
Table 10. Operational costs of microgrids.
Table 10. Operational costs of microgrids.
Microgrid 1Microgrid 2Microgrid 3
Operational cost ($)5,431,648.015,323,884.545,215,699.40
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hong, Q.; Meng, F.; Liu, J. Customised Multi-Energy Pricing: Model and Solutions. Energies 2023, 16, 2080. https://doi.org/10.3390/en16042080

AMA Style

Hong Q, Meng F, Liu J. Customised Multi-Energy Pricing: Model and Solutions. Energies. 2023; 16(4):2080. https://doi.org/10.3390/en16042080

Chicago/Turabian Style

Hong, Qiuyi, Fanlin Meng, and Jian Liu. 2023. "Customised Multi-Energy Pricing: Model and Solutions" Energies 16, no. 4: 2080. https://doi.org/10.3390/en16042080

APA Style

Hong, Q., Meng, F., & Liu, J. (2023). Customised Multi-Energy Pricing: Model and Solutions. Energies, 16(4), 2080. https://doi.org/10.3390/en16042080

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