Abstract
In an integrated energy distribution system (IEDS), an energy hub has been introduced and deemed to be a suitable tool for managing and integrating multi-party energy forms. Due to different energies having diverse characteristics and being coupled with each other, it is difficult for an energy hub to implement the optimal scheduling of multiple energy sources. Therefore, an energy optimization management model is proposed based on the Stackelberg game, which considers the exergy conversion of multi-party energy sources in different operation modes. The problem is solved by the two-layer distributed optimization algorithm, in which the energy hub acts as the leader and is followed by the users. Furthermore, in order to alleviate the deception, malicious tampering, subpeption, and other secure risks in energy trading, blockchain is introduced into the energy hub and the concept of exergy coin (EC) is proposed. A credit-based blockchain framework and concurrent block building consensus process is explored to reduce the calculation cost and promote the exergy trading efficiency. Finally, the case study shows how the proposed method can effectively optimize energy scheduling and configure a more reasonable energy solution.
RECENTLY, with the increasingly serious energy crisis and environmental issues, in order to alleviate environmental pollution and improve the energy utilization efficiency, an integrated energy distribution system (IEDS) is proposed and considered as a promising solution [
Firstly, different energies have diverse characteristics, and the optimal scheduling of multiple energy sources needs to be considered simultaneously, which brings about the difficulties for energy hubs when interacting with users. In order to solve the problem of energy optimization, exergy is presented. Exergy is based on the laws of thermodynamics. It acts as a measure of the energy quality, but unlike energy, it is not conserved [
Secondly, an efficient security framework for energy trading between users and energy hubs is lacking. Considering the selfishness and rationality of users and energy hubs in the energy transaction, each participant wants to maximize their own profits. Therefore, the deception, malicious tampering, subpeption, and other security risks may exist, which bring about critical challenges for energy trading.
In order to address the above-mentioned challenges, a hybrid approach to the multi-party energy management of energy hubs is proposed, which utilizes the exergy conversion, Stackelberg game, and blockchain technology. An energy optimization management scheme considering the exergy conversion of various energy sources in different seasons is proposed. Furthermore, the exergy interactions between the energy hub and users are modeled as a two-stage Stackelberg leader-follower game, in which the energy hub acts as the leader that is followed by the users.
Blockchain is essentially a distributed ledger database, which is a series of data blocks generated via cryptography [
The main contributions of this paper are as follows:
1) A Stackelberg game model is proposed considering exergy conversion in three operation modes. In order to realize the unified and optimal dispatch of different qualities of energies in the commercial park, the exergy is presented. The exergy conversion models of electricity, cold, heat, and domestic hot water in the park are established, and all kinds of energies are unified into exergy. Therefore, all kinds of energies are involved in the Stackelberg game in the form of exergy to achieve the unified optimization management of multiple energy sources.
2) Blockchain is introduced into the energy hub and exergy coin (EC) is utilized, which is a virtual currency for the trade between the energy hub and users. A credit-based blockchain framework and concurrent block building consensus process is explored to reduce the calculation cost and time delay, and to promote exergy trading efficiency.
The blockchain system structure is shown in

Fig. 1 System structure with blockchain.
In order to meet the different energy demands of users in different seasons, there are three operation modes. Figures

Fig. 2 Centralized cooling operation mode.

Fig. 3 Centralized heating operation mode.

Fig. 4 Transition season operation mode.
In order to realize unified regulation and control via the energy hub of different types of energies including electricity, cold, heat, and domestic hot water, energies are converted into exergy. The energy level coefficient is the ratio of the exergy in energy, so according to the energy level coefficient, each energy can be converted into exergy [
Electricity is the highest grade of energy, so it can be completely converted into exergy and the energy level coefficient is equal to 1. The exergy of electricity can be defined as:
(1) |
where is the exergy of electricity; and is the energy of electricity.
The energy level coefficient of cold can be defined as and the exergy of cold is :
(2) |
(3) |
where is the temperature of the environment; is the temperature of the heat source; and is the energy of cold.
The energy level coefficient of heat can be defined as and the exergy of heat is :
(4) |
(5) |
where is the energy of heat.
In this paper, the concept of EC is proposed, which is circulated as the virtual currency in the trading process of the blockchain. In this model, EC is assumed to possess the currency value and is exchangeable with traditional currencies, which can be used for purchasing goods and services [
(8) |
where is the exchange rate between EC and CNY (i.e., CNY per unit of EC); and is the total capacity of EC in circulation.
The energy hub uses the IC engine as the prime mover for generating electricity by burning natural gas to supply user demand, while combustion produces high-temperature flue gas. The recoverable unit of waste heat can be used to recover and reuse the residual heat of high temperature flue gas and cylinder liner water. The fuel energy ratio can be defined as:
(9) |
where is the recoverable heat from the IC engine; is the low calorific value; and is the natural gas consumption.
can be further divided into the recoverable heat from the flue gas and the cylinder liner water , which account for the ratio of , respectively.
(10) |
The IC engine output can be defined as:
(11) |
where is the energy loss rate of this process.
A boiler is a pressure vessel that can provide hot water and thermal power for the user by burning natural gas, and the hot capacity generated from it can be calculated as:
(12) |
where is the natural gas consumption efficiency; is the energy conversion efficiency of a boiler; and and are the hot water capacity and the heat of the boiler, respectively. When it is in centralized heating mode, a boiler generates hot water with the proportion of 0.6 and heat with the proportion of 0.4. In the other two modes, it only provides hot water.
The lithium bromide absorption unit operated by gas and hot water is adopted in this paper. The lithium bromide unit can utilize high-temperature flue gas and cylinder liner water generated by the IC engine to produce cold, heat, or hot water.
When it is centralized heating or cooling season, the residual heat enters the plate heat exchanger with the proportion of and the lithium bromide unit with the proportion of . The cooling capacity and the calorific capacity of the lithium bromide unit are shown in (13) and (14), respectively. When it is transition season, the hot water capacity of the lithium bromide unit is shown in (15).
(13) |
(14) |
(15) |
where , , are the refrigeration coefficient, heating coefficient and hot water generation coefficient of lithium bromide unit, respectively.
An electric centrifugal chiller is adopted to operate for refrigeration. The cooling capacity of the unit is defined as:
(16) |
where is the refrigeration coefficient of the electric centrifugal chiller; and is the power consumption for cooling.
An electric heat pump is an energy converter that utilizes electricity in order to satisfy the hot water demands of users. Its hot water capacity is calculated as:
(17) |
where is the coefficient of the performance of the heat pump; and is the power consumption.
The domestic hot water is prepared by using the cylinder liner water of the IC engine, and the water needs to pass through the plate heat exchanger to obtain the domestic hot water that meets the demand of the users. The domestic hot water can be defined as:
(18) |
where is the efficiency of the plate heat exchanger; in the centralized cooling operation mode and the centralized heating operation mode, , and in the transition season operation mode, .
8) Utility of Energy Hub
1) Cost of energy hub
The cost of the energy hub includes the cost of natural gas consumption , the cost of interaction with the grid , and the maintenance cost .
(19) |
(20) |
where is the natural gas price; is the electricity purchasing price of the grid; is the electricity selling price of the grid; is the interaction electricity with the grid; is the maintenance cost of devices; and is the output of devices. In the centralized cooling operation mode, . In the centralized heating operation mode, . In the transition season operation mode, . , , , , , and are the maintenance costs of the IC engine, the lithium bromide unit, the electric centrifugal chiller, the plate heat exchanger, boiler, and heat pump, respectively.
The energy hub earns profits by selling exergy to the user, which is calculated as:
(21) |
where is the selling price of exergy which is equal to the actual purchasing power of EC. The reason is that the energy hub uses the EC to trade with the user and EC possesses currency value. So the actual purchasing power of EC and the selling price of exergy are equivalent. is the total exergy of all types of energies. In the centralized cooling operation mode, ; in the centralized heating operation mode, ; and in the transition season operation mode, .
The utility function of the energy hub is defined as:
(22) |
9) User’s Utility
1) User’s cost
The user’s cost for purchasing exergy can be expressed as:
(23) |
The user’s profit can be expressed as:
(24) |
The utility function is instead of , because when , approaches infinity.
Thus, the user’s utility can be defined as:
(25) |
10) Balances and Constraints
1) Balances
In centralized cooling operation mode, the power balance, cold balance, and domestic hot water balance can be expressed as (26), (27), and (28), respectively.
(26) |
(27) |
(28) |
In centralized heating operation mode, the power balance, heat balance, and domestic hot water balance can be expressed as (29), (30), and (31), respectively.
(29) |
(30) |
(31) |
In transition season operation mode, the power balance and domestic hot water balance can be expressed as (32) and (33), respectively.
(32) |
(33) |
In this subsection, the exergy interaction between the energy hub and users is studied by utilizing the Stackelberg game, which is an effective model for exploring the multi-level decision-making process between decision makers and responders [
The model of the Stackelberg game can be described as:
(38) |
The main components of the Stackelberg game in this paper are as follows.
1) In the Stackelberg game, there are two players. One is the energy hub , and the other is the user .
2) is the set of strategies of each user, which varies with the operation modes.
3) is the user’s utility.
4) is the strategy of the energy hub, which represents the selling price of exergy.
5) is the utility of the energy hub.
The players in the Stackelberg game could not increase their own utility by changing their own strategies [
For the energy hub and users, the set of strategies reaches an SE if and only if the following two inequalities are guaranteed:
(39) |
(40) |
where in the centralized cooling operation mode, in the centralized heating operation mode, and in the transition season operation mode.
Then the existence of the SE will be proven in this paper. If the following conditions are met at the same time, then there is an SE [
According to the formulas inferred as (19) and (22), the utilities of the energy hub and users are continuous about the variables. Thus, ① and ③ are correct. Next, the correctness of ② needs to be proven. It is known that if the function is convex, it must be quasi-convex. So if it can be proven that the utility of user is a convex function about , ② can be proven. In (22), each part including is convex about . Thus, is a convex function about . Similarly, is also a convex function about , and . Therefore, is a quasi-convex function about , i.e., ② has been proved.
Based on the above results, the existence of the SE in this paper has been proven.
In order to solve the problem and achieve SE, a two-layer distributed optimization method is applied. It can effectively reduce the calculation scale and protect the privacy of calculation participants. In addition, it can solve the problem that the variables of two objective functions mutually coupled as a model. The upper-layer algorithm is shown in

Fig. 5 Upper-layer algorithm.

Fig. 6 Lower-layer algorithm.
After the game reaches SE, the equilibrium solution will spread through the blockchain to the entire system.

Fig. 7 Steps for implementing exergy trading based on consortium blockchain.
1) Preliminaries
1) Key generation
Each user selects two secret large prime numbers and , and calculates and [
(41) |
where is the Eulers function of . Next, user selects an integer randomly, which satisfies:
(42) |
(43) |
where is the operation of calculating the greatest common divisor. Then, user calculates , which satisfies:
(44) |
The public key and private key of user are and , respectively.
In this paper, RSA is employed, an asymmetric encryption algorithm, in order to guarantee the authenticity and integrity of the transmitted information.
2) Signature and verification model
Assume is the plaintext of the message to be transmitted, is the hash digest of the message. The sender first uses its private key to encrypt , i.e.,
(45) |
Any receiver can decrypt ciphertext by utilizing the senders public key , which is known by the whole network, i.e.,
(46) |
Since the encryption is finished by utilizing the private key which is the private information of the sender, thus the ciphertext can be considered as the digital signature of the transmitted message, which can also verifiy message sources and data integrity, and the sender cannot deny the message sent [
2) System Initialization
First, each user has to generate a pair of information keys, i.e., public/private key pair , and obtain a certificate from a trusted authority to guarantee the authenticity of , which can specifically recognize the user by their registration information, which can be described as:
(47) |
where is the identity of user ; and is the timestamp of the certificate for guaranteeing its validity, only the registered user is allowed to join in the exergy blockchain. Furthermore, the authority will announce a wallet address to the user, and in order to ensure individual privacy and security, public keys such as random pseudonyms are utilized to replace the true address of the wallet. In this paper, the account of each user includes the information of wallet address , account balance , current credit value , and certificate . Similarly, the account of the energy hub includes wallet address , account balance , and key pair .
3) Exergy Blockchain Implementation Process
Step 1: generate credit-based consensus node and select leader node.
The credit value of each node can be used to show its credibility and trustworthiness [
Step 2: broadcast transactions and build local block.
After the Stackelberg game between the user and the energy hub, each user formulates a transaction of the final optimal strategies, which can be described as:
(48) |
where is its digital signature; is the request exergy; is the price of exergy which is set by the energy hub; and is the timestamp of transaction generation. Then, user broadcasts the transaction information of final optimal strategies to the whole network. Each consensus node gathers the transaction records within a certain period, then firstly verifies the validity of the transaction by checking the timestamp and the public keys of the users, followed by building the local block concurrently [
Step 3: verify block and publish new block.
Through verification and audit about the received block data, by comparing with local block , each nonleader consensus node generates a feedback message about the results and then broadcasts the feedback message to the whole exergy blockchain. Once the created block is verified and accepted by participants in the network, the current consensus process is ended, and the created block will be published and linked at the latest blockchain. Therefore, each nonleader consensus node and leader will be rewarded a credit increase and for its contribution on consensus. However, if over nodes doubt the created block or the feedback message of node , they will be punished by a credit decrease of and , respectively [
In this paper, users and an energy hub in a commercial park, Fujian Province, China, are taken as the study objects. The load data of electricity, cold, heat, and domestic hot water is collected from the commercial park. The basic parameters for calculation in this case are shown in
According to the intelligent algorithm proposed in this model, when the number of iterations is calculated to some extent, the results will converge. The iterative process of the algorithm is recorded and the convergence is judged.

Fig. 8 Iterative process of calculation accuracy of operator utilities.

Fig. 9 Iterative process of calculation accuracy of user utility.
The selling price of exergy is equal to the purchasing power of EC in this model. The reason is that the energy hub uses EC to trade with the user and EC possesses currency value. Thus, the actual purchasing power of EC and the selling price of exergy are equivalent. In the Stackelberg game model, the strategy of the energy hub is the selling price of exergy. In the centralized cooling operation mode, exergy includes electricity, cold, and domestic hot water; in the centralized heating operation mode, exergy includes electricity, heat, and domestic hot water; and in the transition season operation mode, exergy only includes electricity and domestic hot water.

Fig. 10 Selling prices of exergy and purchasing power of EC for user.

Fig. 11 Exergy demand of electricity.

Fig. 12 Exergy demand of cold.

Fig. 13 Exergy demand of heat.

Fig. 14 Exergy demand of domestic hot water.
In this subsection, the privacy and security of the proposed blockchain based exergy trading are analyzed.
First, in system initialization, each user and energy hub has to obtain a certificate from a trusted authority, and only registered participants can join in the exergy trading, which can prevent lots of malicious users. Besides, to ensure individual privacy and security, each user can regenerate information keys periodically to avert the linking attack [
This paper introduces an energy management model based on the Stackelberg game framework in a commercial park with blockchain. And EC in the transaction process between the energy hub and the user as currency medium is proposed. Three operation modes are established according to the seasons, and in three different modes, the model of exergy conversion, the utility of the user, and the utility of the energy hub are established. Then the Stackelberg game is utilized to model the interaction between the energy hub and the users, and to solve the model via a two-layer optimization algorithm. The equilibrium solution spreads through the blockchain to the entire network. A credit-based blockchain framework and concurrent block building consensus process is explored to reduce the calculation cost and time delay, and to promote the exergy trading efficiency. Case study results show that the proposed algorithm finally achieves convergence. The energy hub and the users adjust the strategies separately in order to maximize their own utilities. The selling price of exergy for the user can be obtained which can reflect the scheduling strategies of users in different operation modes. Therefore, the results have shown the accuracy and efficiency of the proposed method.
REFERENCES
C. Shao, Y. Ding, J. Wang et al., “Modeling and integration of flexible demand in heat and electricity integrated energy system,” IEEE Transactions on Sustainable Energy, vol. 9, no. 1, pp. 361-370, Jan. 2018. [百度学术]
B. Zhou, D. Xu, C. Li et al., “Optimal scheduling of biogas-solar-wind renewable portfolio for multicarrier energy supplies,” IEEE Transactions on Power Systems, vol. 33, no. 6, pp. 6229-6239, Nov. 2018. [百度学术]
L. Ma, N. Liu, J. Zhang et al., “Real-time rolling horizon energy management for the energy-hub-coordinated prosumer community from a cooperative perspective,” IEEE Transactions on Power Systems, vol. 34, no. 2, pp. 1227-1242, Mar. 2019. [百度学术]
M. H. Barmayoon, M. Fotuhi-Firuzabad, A. Rajabi-Ghahnavieh et al., “Energy storage in renewable-based residential energy hubs,” IET Generation, Transmission & Distribution, vol. 10, no. 13, pp. 3127-3134, May 2016. [百度学术]
X. Zhang, M. Shahidehpour, A. Alabdulwahab et al., “Optimal expansion planning of energy hub with multiple energy infrastructure,” IEEE Transactions on Smart Grid, vol. 6, no. 5, pp. 2302-2311, Sept. 2015. [百度学术]
N. Liu, J. Wang, and L. Wang, “Hybrid energy sharing for multiple microgrids in an integrated heat-electricity energy system,” IEEE Transactions on Sustainable Energy, vol. 10, no. 3, pp. 1139-1151, Jul. 2019. [百度学术]
M. D. Cook, G. G. Parker, R. D. Robinett et al., “Decentralized mode-adaptive guidance and control for DC microgrid,” IEEE Transactions on Power Delivery, vol. 32, no. 1, pp. 263-271, Feb. 2017. [百度学术]
M. Razmara, M. Maasoumy, M. Shahbakhti et al., “Optimal exergy control of building HVAC system,” Applied Energy, vol. 156, pp. 555-565, Oct. 2015. [百度学术]
Y. Zhou, “Research on the building heating and cooling system with exergy analysis,” Ph.D. dissertation, Hunan University, Changsha, China, 2013. [百度学术]
D. Song, L. Lin, and W. Bao, “Exergy conversion efficiency analysis of a cement production chain,” Energy Procedia, vol. 158, pp. 3814-3820, Feb. 2019. [百度学术]
E. Sciubba, “Cost analysis of energy conversion system via a noval resource-based quantifier,” Energy, vol. 28, no. 5, pp. 457-477, Apr. 2003. [百度学术]
E. Sciubba, “Extended-exergy accounting applied to energy recovery from waste: the concept of total recycling,” Energy, vol. 28, no. 13, pp. 1316-1334, Nov. 2003. [百度学术]
E. Sciubba, “Beyond thermoeconomics? The concept of extended exergy accounting and its application to the analysis and design of thermal systems,” Exergy, vol. 1, no. 2, pp. 68-84, Jul. 2001. [百度学术]
B. Chen and G. Q. Chen, “Exergy analysis for resource conversion of the Chinese Society 1993 under the material product system,” Energy, vol. 31, no. 8, pp. 1115-1150, Jul. 2006. [百度学术]
C. H. Liu, Q. Lin, and S. Wen, “Blockchain-enabled data collection and sharing for industrial IoT with deep reinforcement learning,” IEEE Transactions on Industrial Informatics, vol. 15, no. 6, pp. 3516-3526, Jun. 2019. [百度学术]
H. Jang and J. Lee, “An empirical study on modeling and prediction of Bitcoin prices with Bayesian neural networks based on blockchain information,” IEEE Access, vol. 6, pp. 5427-5437, Dec. 2018. [百度学术]
Z. Zhou, B. Wang, Y. Guo et al., “Blockchain and computational intelligence inspired incentive-compatible demand response in Internet of electric vehicles,” IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 3, no. 3, pp. 205-216, Jun. 2019. [百度学术]
N. Z. Aitzhan and D. Svetinovic, “Security and privacy in decentralized energy trading through multi-signatures, blockchain and anonymous messaging streams,” IEEE Transactions on Dependable Secure Computing, vol. 15, no. 5, pp. 840-852, Oct. 2018. [百度学术]
Z. Su, Y. Wang, Q. Xu et al., “A secure charging scheme for electric vehicles with smart communities in energy blockchain,” IEEE Internet Things Journal, vol. 6, no. 3, pp. 4601-4613, Jun. 2019. [百度学术]
L. Yu, W. Tsai, G. Li et al., “Smart-contract execution with concurrent block building,” in Proceedings of IEEE Symposium on Service-Oriened System Engineering (SOE), San Francisco, USA, Apr. 2017, pp. 160-167. [百度学术]
L. J. Zhou, N. Liu, B. Guo et al., “Optimized energy management method of multi-operation mode for energy system in commercial area,” Southern Power Systems Technology, vol. 12, no. 96, pp. 97-103, 2018. [百度学术]
S. Yang and W. Tao, Heat Transfer. Beijing, China: Higher Education Press, 2006. [百度学术]
N. Liu, M. Cheng, X. Yu et al., “Energy-sharing provider for PV prosumer custers: a hybrid approach using stochastic programming and Stackelberg game,” IEEE Transactions on Industrial Electronics, vol. 65, no. 8, pp. 6740-6750, Aug. 2018. [百度学术]
L. Ma, N. Liu, J. Zhang et al., “Energy management for joint operation of CHP and PV prosumers inside a grid-connected microgrid: a game theoretic approach,” IEEE Transactions on Industrial Information, vol. 12, no. 5, pp. 1930-1942, Oct. 2016. [百度学术]
N. Liu, L. He, X. Yu et al., “Multiparty energy management for grid-connected microgrids with heat- and electricity-coupled demand response,” IEEE Transactions on Industrial Information, vol. 14, no. 5, pp. 1887-1897, May 2018. [百度学术]
X. C. Deng and H. H. Guo, “Existence of the equilibrium solution of a two-stage leaders-followers game,” Mathematics Economics, vol. 26, no. 4, pp. 50-53, Dec. 2009. [百度学术]
N. Liu, C. Wang, M. Cheng et al., “A privacy-preserving distributed optimal scheduling for interconnected microgrids,” Energies, vol. 9, no. 12, pp. 1031, Dec. 2016. [百度学术]
Z. Ma, X. Wang, K. J. Deepak et al., “A blockchain-based trusted data management scheme in edge computing,” IEEE Transactions on Industrial Information, vol. 16, no. 3, pp. 2013-2021, Mar. 2020. [百度学术]
Y. Wang, Z. Su, and N. Zhang, “BSIS: blockchain-based secure incentive scheme for energy delivery in vehicular energy network,” IEEE Transactions on Industrial Information, vol. 15, no. 6, pp. 3620-3631, Jun. 2019. [百度学术]