Next Article in Journal
Breaking New Ground: Exploring the Promising Role of Solid-State Fermentation in Harnessing Natural Biostimulants for Sustainable Agriculture
Previous Article in Journal
Evaluation and Prediction of the Effect of Fabric Wetting on Coolness
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Cloud-Edge Computing Method for Integrated Electricity-Gas System Dispatch

Key Lab of Power Electronics for Energy Conservation and Motor Drive of Hebei Province, Yanshan University, Qinhuangdao 066004, China
*
Author to whom correspondence should be addressed.
Processes 2023, 11(8), 2299; https://doi.org/10.3390/pr11082299
Submission received: 16 July 2023 / Revised: 26 July 2023 / Accepted: 30 July 2023 / Published: 31 July 2023

Abstract

:
An integrated electric–gas system (IEGS) is the manifestation and development direction of a modern smart power system. This paper employs the cloud-edge computing method to research IEGS’s optimal dispatch to satisfy data protection requirements between power systems and natural gas systems and reduce data transmission pressure. Based on cloud-edge computing architecture, this paper constructs a cloud-edge computing method based on the Multi-agent Deep Deterministic Policy Gradient (MADDPG) algorithm to solve optimal dispatch problems. Then, this paper proposes an IEGS dispatch strategy based on cloud-edge computing, which conducts distributed computing independently at the edge of power and natural gas, and the cloud implements global dispatch based on boundary information and edge learning parameters. This method does not require the exchange of all information between the power system and natural gas system, effectively protecting data privacy. This paper takes the improved IEGS of the IEEE 9 node and Gas 8 node as an example to analyze. The equipment output of this dispatch method is within a reasonable range, and the cost is reduced by 0.21% to 1.03% compared with other methods, which verifies the effectiveness of the cloud-edge computing method in solving dispatch problems.

1. Introduction

As the contradiction between environmental protection and energy consumption intensifies, the demand for efficient development and utilization of clean energy is becoming more and more urgent. Natural gas has the outstanding advantages of safety, cleanliness, low carbon, and high calorific value, and has a good coupling effect with the power system. As a carrier of energy transportation and comprehensive utilization, IEGSs cannot be ignored [1,2,3,4].
For IEGSs, the tidal current problem, the dispatch problem, and the optimization problem have been studied extensively in previous publications. Reference [5] proposed a unified analytical approach that uses the Newton–Raphson formulation to realize the dispatch and optimization of an IEGS. In this method, the nonlinear equations representing the combined system of natural gas and electric power are obtained, linearized, and solved based on the node equilibrium of natural gas and electric power flow, respectively. Through a hierarchical Stackelberg game model, reference [6] proposed a hybrid multi-objective optimization and game theory approach to realize the coordinated operation strategy of an IEGS. The method realizes the balanced dispatch of a variety of distributed energy systems, but the calculation process is complicated and the calculation speed is slow. For the optimization problem of an IEGS with bidirectional energy flow, reference [7] reduced it to a hybrid integer nonconvex and nonlinear programming problem solved by a second-order cone programming (SOCP) method. Reference [8] used the sparse semidefinite programming (SDP) relaxation method to construct a tight and traceable SDP relaxation of the lifting variable matrix to achieve the collaboration operation. The above method realizes the day-ahead dispatch scheme of an IEGS and provides a data reference for the subsequent research. Meanwhile, considering that the coupling of an IEGS brings challenges to the system in terms of coordination and uncertainty management, reference [9] considers the storage dispatch and renewable energy uncertainty in IEGSs and designs a new second-order cone relaxation method for the non-convexity of the Weymouth equation to achieve optimal dispatch of the IEGS. Reference [10] proposed an uncertainty management framework based on physically accurate and validated models to study the importance of uncertainty in IEGSs to avoid violations of operational constraints and gas delivery to generators. The method only considers the effect of natural gas on the system, and schedules the IEGS by changing the consumption of gas turbines and natural gas storage tanks. To verify the impact on the system when a failure occurs in the operating unit of the IEGS, reference [11] proposes a new dynamic load recovery model to study the operational reliability of the IEGS by simulating failures. Reference [12] analyzed the probabilistic energy flow model of an IEGS using the cumulative volume method and investigated the effect of power-to-gas (P2G) on network security in a grid-connected wind power environment. Although this method only considers the effect of wind power, it describes the IEGS energy flow model in detail, which provides a model reference for future research. Currently, machine learning methods have been widely used, whereby scholars are trying to introduce artificial intelligence to solve power system problems. Reference [13] used deep Q networks (DQN) and deep deterministic policy gradients (DDPG) to develop autonomous voltage control (AVC) strategies. Reference [14] used the MADDPG approach to achieve multi-timescale voltage control. The method realizes the application of deep reinforcement learning in the field of AVC, and proves the superiority of machine learning in the field of power systems compared with other methods. In the research related to integrated energy systems, reference [15] used a deep reinforcement learning (DRL) approach to solve the optimal dispatch problem of an IEGS. Reference [16] proposed a real-time adaptive dynamic optimal control strategy based on deep learning to learn the optimal operation behavior of micro-energy grids to realize the operation control of electricity–thermal–gas energy grids. However, the above reference adopts a centralized calculation and centralized execution approach, and the power system and natural gas system are solved as a whole, without considering the data protection between different systems.
Previous research adopts the method of centralized computing, which requires data exchange between different energy systems. However, energy systems need to protect private data while data exchange is not always feasible for IEGSs. Meanwhile, with the increase in the amount of calculated data, the network transmission pressure increases, which sets a greater challenge for the network structure. Cloud-edge computing architectures can better coordinate multiple energy systems. The application of cloud-edge computing technology in power systems has attracted extensive attention and has great potential to help solve power system problems. Reference [17] investigates the application scenarios of cloud-edge computing based on the distributed architecture of central and edge clouds. Reference [18] constructs a physical model of power grid information for joint control based on the framework of cloud-edge collaboration technology, which achieves optimization and improvement of the traditional mathematical model of a power grid. The above references build a power system model based on cloud-edge computing architecture. Due to the superiority of cloud-edge computing architecture in privacy data protection, it provides the infrastructure to meet the requirements of power grid data protection. Reference [19] combines a multi-agent system and cloud edge collaboration architecture to establish a deep reinforcement learning model of the multi-level dynamic reconstruction of an urban distribution network, adopts the learning mode combining offline and online, and uses a multi-agent algorithm to complete the optimization. For both distribution grids and multi-microgrids, cloud-edge computing technology can realize control and prediction. Reference [20] designed a low-voltage distribution network operation and control architecture based on cloud-edge computing. Reference [21] proposed a cloud-edge collaborative forecasting model to achieve dynamic load combination forecasting for microgrids. Reference [22] proposes a cloud-edge computing method for the economic dispatch of multi-microgrid active distribution networks, which adopts multi-agent deep reinforcement learning to realize cloud-edge collaborative computing. The above references realize the dispatch of different power systems based on the cloud-edge computing method. However, the above references often set the distribution network as an edge side, and the internal distribution network is still regarded as a whole, and the data of different systems within the distribution network cannot be protected. Reference [23] proposed a cloud-edge cooperative distributed optimization dispatch strategy for an electrical IES based on the proximal Jacobian alternating direction method of multipliers, and the general optimization variable interaction iteration and parallel solution of the multi-dispatch model were established. However, in reference [23], although the cloud-edge collaborative method is adopted to deal with the IEGS dispatch problem, the independent calculation of the power system and natural gas system is not realized. At the same time, the algorithm solves complex optimization problems in real time, the decision time is long, the calculation speed is slow, the edge side still has the risk of privacy disclosure, and multiple agents have a strict calculation order, which cannot be calculated in parallel. The above research classification of power system dispatch problems is shown in Table 1.
Power systems and gas systems are separate sectors, and each needs to protect its own data. The dispatch methods mentioned above need data exchange between different systems and cannot meet the privacy data protection needs of different departments. Therefore, in order to better realize the privacy protection of different systems, this paper proposes a cloud-edge computing method for IEGS dispatch. In this dispatch strategy based on cloud-edge computing, computing platforms are deployed on the edge side of the power system and natural gas system, respectively, to complete distributed computing independently, and the cloud computing platform is responsible for receiving, distributing, and coordinating the data on the edge side. Meanwhile, a multi-agent approach that treats different systems in the IEGS as agents separately has yet to be discovered. By combining the cloud edge collaboration method and the MADDPG algorithm, the cloud edge sets up agents, respectively, to achieve cooperation and collaboration. Power systems, natural gas systems, and coupled unit systems are modeled, which are integrated into the dispatch model. Finally, the IEGS dispatch strategy based on cloud-edge computing is proposed. The contributions of this paper can be summarized in the following three aspects:
  • Protecting data privacy and reducing network transmission pressure. A cloud-edge computing approach is proposed for dealing with dispatch problems of IEGSs. In this approach, there is no need for data exchange between two systems to meet the data privacy protection needs between different systems. Meanwhile, it is not necessary to transmit all data information between the cloud and the edge to reduce the network transmission pressure.
  • The cloud-edge computing dispatch method based on MADDPG is adopted. The edge server deploys a computing platform to learn the regulation strategy and compute the intelligence based on the local information. The cloud computing platform computes reinforcement learning parameters based on synergistic information to obtain the optimal regulation strategy.
  • The approach not only meets the data privacy protection needs for IEGSs, but also controls the cost in a reasonable interval.
The rest of this paper is organized as follows. Section 2 presents the IEGS model. Section 3 describes the cloud-edge computing method. Section 4 investigates the IEGS dispatch strategy based on cloud-edge computing and provides a case study to illustrate the effectiveness of the proposed approach. The paper makes a conclusion in Section 5.

2. IEGS Model

The electric power system, the natural gas system, and the electric–gas coupling unit constitute the IEGS. The IEGS couples with a gas turbine (GT) and P2G. In the system, the P2G converts electrical energy into natural gas, and the GT outputs electrical energy by consuming natural gas. The IEGS model is shown in Figure 1.

2.1. Power System Model

In this paper, the power system model includes conventional generating units, wind power, photovoltaic (PV), and energy storage (ES) [12].
To ensure the normal operation of the power system, the power balance constraint, power limit constraint, and ramping constraint should be satisfied.
The power balance constraint is as follows:
P G , i , t + P G T , i , t + P P V , i , t + P W , i , t + P E S , i , t = P L , i , t + P P 2 G , i , t
The power limit constraints are as follows:
0 P G , i , t P G , i , m a x
P E S , i , m i n P E S , i , t P E S , i , m a x
For the ES, the state of charge is used to calculate the charging and discharging power of the ES, the ES state of charge S O C e s , i , t satisfies the following formula:
S O C e s , i , t = E e s , i , t E e s , i , m a x
S O C e s , t + 1 = S O C e s , t η s o c P E S Δ t E e s , m a x
The ramping constraint is as follows:
S O C e s d n , i S O C e s , i , t S O C e s , i , t 1 S O C e s u p , i

2.2. Natural Gas System Model

In this paper, the natural gas system includes natural gas sources and the storage capacity of the gas storage (GS), ignoring the impact of gas pipelines, pressure stations, and compressors on the system [12].
To ensure the normal operation of the natural gas system, the gas flow balance constraint, limit constraints, and ramping constraint should be satisfied.
The gas flow balance constraint is as follows:
f G , i , t + f P 2 G , i , t + f g s , o u t , i , t f G T , i , t f L , i , t f g s , i n , i , t = 0
For the GS, the storage capacity calculation formula is as follows:
S G S , i , t = S G S , i , t 1 + f g s , i n , i , t f g s , o u t , i , t
The limit constraints are as follows:
S G S , i , m i n S G S , i , t S G S , i , m a x
f G , i , m i n f G , i , t f G , i , m a x
The ramping constraint stands for as follows:
S G S d n , i S G S , i , t S G S , i , t 1 S G S u p , i

2.3. Electric–Gas Coupling Unit Model

The consumption of the GT and P2G characteristic equation is as follows [24].
H g , i , t = α g , i + β g , i P G T , i , t + γ g , i P G T , i , t 2
f G T , i , t = H g , i , t / G H V
f P 2 G , i , t = η P 2 G P P 2 G , i , t / G H V
To ensure the normal operation of the electric–gas coupling unit, the system constraints are as follows:
0 P P 2 G , i , t P P 2 G , i , m a x
0 P G T , i , t P G T , i , m a x

2.4. IEGS Model Operating Cost

The total operating cost of the IEGS consists of the operating cost of the electric power system, the natural gas system, and the electric–gas coupling unit. For the IEGS in this paper, the total operating cost is minimized to achieve power system, natural gas system, and coupling unit costs.
m i n F = F E + F N G + F P 2 G + F G T
The power system operation costs consider the ES operation losses cost and the generation cost of conventional generating units, ignoring the operation losses cost of PV and wind power.
F E = t = 1 T a i P G , i , t 2 + b i P G , i , t + c i + C E S , i P E S , i , t
The natural gas system operation costs consider the GS operation losses cost and the generation cost of c natural gas sources.
F N G = t = 1 T C G , i f G , i , t + C G S , i S G S , i , t
The electric–gas coupling unit operation costs consider the operation losses cost, ignoring the consumed electricity and natural gas cost.
F P 2 G = t = 1 T C P 2 G , i P P 2 G , i , t
F G T = t = 1 T C G T , i P G T , i , t

3. Cloud-Edge Computing Architecture

3.1. Cloud-Edge Computing Architecture for IEGS

Instead of a centralized control structure where all computing tasks are performed by a central computing platform, cloud-edge computing is to realize unified dispatch and optimization by setting edge server and cloud server and taking advantage of the synergistic advantages of cloud computing and traditional edge calculation.
The IEGS architecture based on cloud-edge computing is shown in Figure 2. The IEGS deploys servers on their respective edges. Edge servers are mainly distributed between the cloud platform and physical devices, especially near the devices to perform device protocol conversion, data collection, storage analysis, online simulation, real-time control, and other functions, and at the same time to efficiently communicate and cooperate with the cloud platform. The cloud server collects required data, performs storage analysis, and implements IEGS optimization and dispatch.
Combined with Figure 2, the IEGS dispatch process under cloud-edge computing architecture is as follows:
  • The IEGS edge computing platform collects relevant equipment data, carries out distributed training calculation and assignment of dispatching tasks, and then performs task unloading assignment to complete the upload of the response required by the cloud computing platform.
  • After global dispatch, the cloud computing platform sends dispatch instructions to each edge server, and the edge computing platform controls the device to complete dispatch.

3.2. Decomposition of the IEGS

In order to meet the privacy protection requirements, no private data are exchanged between the power system and the natural gas system, and the electric–gas coupling unit needs to be decoupled. As shown in Figure 1, the electric power system, the natural gas system, and the electric–gas coupling unit constitute the IEGS. As shown in Figure 2, the IEGS is divided into a power system and natural gas system, and the edge intelligence perform distributed computing to achieve local optimization goals. Each edge performs distributed computing to make dispatch decisions with the goal of maximizing its own response gain. We set up an IEGS dispatch model including action space, state space, and reward functions. After the separation of IEGS, the consumption characteristic equations of GT and P2G, including operating constraints and operating costs, are transferred to the natural gas system and the power system, respectively. The IEGS can only control the local units separately, and cannot control the output of coupling units. Therefore, we choose to introduce dummy variables in the IEGS to replace the output variables of coupling units and move the coupling unit into the system where its input variables reside. Since the tear is from the same variable, the input variable and output variable of the coupling unit should be equivalent: that is, the following constraints can be satisfied:
P p r e , i , t = P G T , i , t
f p r e , i , t = f P 2 G , i , t

4. Cloud-Edge Computing Method

4.1. Cloud-Edge Computing Algorithm

The MADDPG algorithm is a natural extension of the DDPG algorithm in multi-agent systems. A stochastic strategy is adopted for actors and a deterministic strategy for critics. The behavior value function and deterministic strategy are approximated by deep neural networks. The algorithm does not need to know the dynamic model of the environment and special communication requirements, and can give the optimal action by using only the local information through learning the optimal strategy.
At each time step, for each agent i , select and execute the action a i , obtain the reward r i and the new environment state s i , and store the respective experience pool D i [22].
a i = μ s i | θ μ + ξ t
To train the main network, the critic network is updated by randomly sampling a sufficient number of B multi-digit groups s i , a i , r i , s i from the experience pool D i .
Minimize Loss function:
L o s s = 1 B i r i + ϵ Q i s i , μ s i | θ μ | θ Q Q s i , a i | θ Q 2
Update the Critic network, sampling gradient update strategy network:
θ μ J θ μ = 1 B i a Q s i , a i | θ Q θ μ μ s i | θ μ   a i = μ s i
Then, the target parameters of strategy and value networks with a joint soft update:
θ μ τ θ μ + 1 τ θ μ
θ Q τ θ Q + 1 τ θ Q

4.2. IEGS Dispatch Strategy Based on Cloud-Edge Computing

The IEGS dispatch strategy based on cloud-edge computing is shown in Figure 3. Firstly, the edge computing platform carries out distributed training and set agents. After completing the local optimization calculation, coupling unit data information and reinforcement learning parameters are transmitted to the cloud. The cloud server realizes the optimization dispatch, and then sends instructions to the respective areas. It is difficult for the centralized system to collect detailed information on distributed resources because of the privacy of the owner. In this architecture, the edge agents only need to transfer a small amount of information after calculating, according to the locally collected information, to realize the cooperative solution of the problem, which avoids the transmission of a lot of private data in the dispatch process. This method provides data privacy protection for the IEGS while reducing transmission pressure.

4.3. Power System Edge Dispatch Strategy

In this paper, the power of the generator, the power of P2G, and the power of energy storage (ES) constitute the action spaces.
A E = P G , P P 2 G , P E S
We use the power system load, wind power output, and PV output as the state spaces. In addition, the action of the previous moment is selected as part of the state spaces.
S E = P L , P w , P p v , A E
To reduce the fitting difficulty and improve the accuracy and convergence stability, this paper chooses to use a linear penalty form in the edge dispatch strategy. The uniform expression form of the penalty term is as follows:
φ i = β i v v m a x f v v m a x + v m i n v f v m i n v
f x = 0 , x 0 1 , x < 0
The corresponding constant coefficients are set according to the different transgression penalties.
The reward function of the power system should include the power system operation cost, the P2G operation costs, and the operation unit out-of-bounds penalty.
F E = F E + F P 2 G + φ G + φ E S + φ P 2 G + φ Δ E S

4.4. Natural Gas System Edge Dispatch Strategy

In this paper, the action spaces include the GT power, the flow of gas source action, and GS.
A L = P G T , f G , S G S
We use the natural gas loads as the state space. Just like the power system, the action of the previous moment is selected as part of the state space.
S L = f L , A L
The reward function of the natural gas system should include the natural gas system operation cost, the GT operation costs, and the operation unit out-of-bounds penalty.
F L = F L + F G T + φ G T + φ S G S + φ f G + φ Δ S G S

4.5. Cloud Dispatch Strategy

The cloud agent obtains the boundary information and reinforcement learning parameters of the edge agents. Cloud dispatch strategy needs to meet global operation constraints and formulate global reward functions
Formulas (26) and (27) constitute global power system and natural gas system operation constraints, respectively. Since the local optimal dispatch model adopts dummy variables to calculate the tidal balance, the edge does not need to send the information of all operating unit data of the system to the cloud. The cloud dispatch strategy penalty term adopts the form of a step penalty.
For any constraint shown as:
g x i 0
Set the penalty term as:
ψ i = 0 , g x i = 0 α i , g x i > 0
Since the edge reward function takes a negative value, the global penalty term value also takes a negative value.
For the power system agent, the cloud reward function includes the power system edge reward function, and the global power system operation constraint penalty:
r E = F E + ψ E
For the natural gas system smart body, the reward function includes the natural gas edge reward function, and the global natural gas system operation constraint penalty:
r L = F L + ψ L
In this paper, the multiple intelligences are cooperative and synergistic, so the environment feeds the same global reward to each intelligence per time period.
r = r E + r L
The above IEGS dispatch strategy based on cloud-edge computing is trained by the algorithm shown in Table 2, and the flow chart of the training algorithm based on cloud-edge computing is shown in Figure 4.

4.6. Case Study

4.6.1. Parameter Setting

To test cloud-edge computing’s effectiveness for IEGS dispatch strategy, an IEGS consisting of an IEEE 9-node power system and an 8-node natural gas system is proposed, as shown in Figure 5 in this paper. The IEEE 9 node model consists of nine nodes, including three generator nodes, three load nodes, three transformer nodes, and one transmission line node. The IEEE 8-node natural gas model consists of 8 nodes, including 2 gas source nodes, 2 pressure station nodes, and 4 gas pipelines. The power system includes three generator units and the natural gas system includes two gas sources. The power system includes wind power, PV, and ES, and the P2G connects to the natural gas system with a GS. The system parameter values are shown in Table 3 [24]. The conventional generating unit parameter values are shown in Table 4 [24]. The length of the system dispatch period is 24 h, and the interval between 2 adjacent periods is 1 h.

4.6.2. Experimental Result and Analysis

The power grid system and the natural gas system constitute the edge agent, independently. G1, G2, G3, P2G, and ES constitute the power system action spaces. The power system load, wind power, and PV are the power system state spaces. In addition, the action of the previous moment is selected as part of the power system state spaces. The gas system action spaces include GT, W1, W2, and GS. We use the natural gas loads as the state space. Just like the power system, the action of the previous moment is selected as part of the state space. The cloud agent obtains the boundary information and reinforcement learning parameters of the edge agents. The cloud agent needs to meet global operation constraints and formulate global reward functions.
The network consists of the input layer, hidden layer, and output layer. The number of hidden layers in the strategy network is 3, and the number of neurons is 500, 128, and 32 in order. The value function network contains 3 hidden layers with 200, 100, and 50 neurons. The activation function of the output layer of the Actor network is set as a hyperbolic tangent function (tanh) to restrict the action output to [−1, 1] in order to prevent the gradient from disappearing and reduce the learning efficiency of the neural network. The number of iterations was set to 5000. The corresponding convergence curve is shown in Figure 6.
From Figure 6, we can see that the cloud-edge computing algorithm can achieve convergence and converge around the 2000th iteration.
To test the cloud-edge computing’s performance, the MADDPG algorithm is selected for comparison. The comparison result is shown in Figure 7.
From Figure 7, compared with MADDPG, cloud-edge computing has improved the execution time, and the reward curve fluctuates less and convergence is more stable.
The objective of this paper is to optimize the dispatch cost of an IEGS. In order to verify the optimization of cloud-edge computing methods for IEGS dispatch problems, dispatch methods based on MADDPG, DDPG, and PSO algorithms are selected for the comparison of dispatch objectives. Table 5 shows the dispatch cost of the IEGS of different algorithms.
From Table 5, we can prove that the cloud-edge computing method has feasibility for the IEGS and optimizes the IEGS dispatch cost; the cost is reduced by 0.21% to 1.03% compared with other methods.
The total power system load, wind, and PV power are shown in Figure 8A, and the total natural gas system load is shown in Figure 8B.
The IEGS dispatch results based on cloud-edge computing of the power system and natural gas system in one day are shown in Figure 9A,B, respectively.
From Figure 9, at the beginning of the period, due to the low level of electric load, the output of generating units is also at a low level, and the GTs hardly produce any power, the excess wind power produces natural gas through the P2G, and part of natural gas is directly used and the remainder is stored. In the period of 20:00–23:00, as the electric load decreases, the wind power goes up, the GT power goes down, the P2G device is restarted, and the surplus energy is stored.

4.7. Discussion

The cloud-edge method can solve the IEGS dispatch problem, which provides ideas and guidance for solving the complex power system dispatch problem. However, there are some shortcomings in this paper. In real power systems, the server deployment to meet cloud-edge computing often has high deployment requirements, such as better edge device performance and larger cloud-edge communication bandwidth. The cloud-edge computing method requires normal communication. In the interrupted mode of cloud edge communication, the cloud edge cannot transmit information and realize real-time dispatch.
In addition, the scale of the IEGS affects the results of response dispatch. As the scale continues to expand, the time delay generated by the cloud server response dispatch increases, and the different response rates and response speeds of different systems also affect the dispatch effect. Therefore, considering the economy and dynamic dispatch of multi-node complex integrated energy systems will be the focus of future research.
Meanwhile, in order to better meet the needs of actual operation, considering a capacity configuration scheme for high renewable energy penetration scenarios in reference [25] and the power system challenged by emergency mentioned in reference [26], and considering the ability of the cloud-edge computing method to adapt to uncertainty and emergency will be the next research direction.

5. Conclusions

Facing the dispatch problem of IEGSs, we propose a dispatch method based on cloud-edge computing, and design the action space, state space, and reward mechanism of agents in power systems and natural gas systems in detail. The edge computing platform completes the data collection and preliminary calculation, and the cloud computing platform realizes the collaborative calculation of the integrated system. The proposed cloud-edge computing method is used to test and analyze the results in the IEGS model, which verifies the effectiveness of the proposed method. As can be seen in Table 5 and Figure 8, we can generate reasonable IEGS dispatch policies with reasonable dispatch cost, and the cost is reduced by 0.21% to 1.03% compared with other methods. As can be seen in Figure 6, compared with MADDPG, the cloud-edge computing convergence speed is faster, the reward curve fluctuation is less, and the convergence is more stable. Moreover, compared with the overall centralized calculation method, this method not only meets the data privacy protection requirements between different systems, but also reduces the data transmission volume and avoids excessive transmission pressure caused by data communication.

Author Contributions

Conceptualization, X.L.; Methodology, X.L.; Software, Z.W.; Validation, Z.W.; Formal analysis, Z.W.; Investigation, Z.W.; Resources, X.L.; Writing—original draft, Z.W.; Writing—review & editing, X.L. and Z.W.; Visualization, Z.W.; Supervision, X.L.; Project administration, X.L.; Funding acquisition, X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially supported by the National Natural Science Foundation of China under Grant 61473246, and the Natural Science Foundation of Hebei Province under Grant E2021203004.

Data Availability Statement

Ji, Q.; Xin-Ying, W.; Qing, Z.; Dong-Xia, Z.; Tian-Jiao, P. Optimal Dispatch of Integrated Electricity-Gas System with Soft Actor-Critic Deep Reinforcement Learning. Proc. CSEE 2021, 41, 819–832. https://doi.org/10.13334/j.0258-8013.pcsee.201704. (In Chinese)

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

IEGSIntegrated electric–gas System
MADDPGMulti-agent Deep Deterministic Policy Gradient
SOCPsecond-order cone programming
SDPsparse semidefinite programming
P2Gpower-to-gas
DQNdeep Q networks
DDPGdeep deterministic policy gradients
AVCautonomous voltage control
DRLdeep reinforcement learning
GTgas turbine
PVphotovoltaic
ESenergy storage
GSgas storage
P G , i , t the active power of the conventional generating units
P G T , i , t power of GT
P E S , i , t the electric charge and discharge power of ES
P P V , i , t power of PV
P W , i , t power of wind power
P P 2 G , i , t the electric power consumed by P2G
P L , i , t active load power
P G , i , m a x the upper limit of the active power of the conventional generating units
P E S , i , m i n the lower limit of the power of the ES
P E S , i , m a x the upper limit of the power of the ES
E e s , i , t the ES capacity
E e s , i , m a x the upper limit of the ES capacity
P P 2 G , i , m a x the upper limit of power of P2G
P G T , i , m a x the upper limit of power of GT
η s o c the charging or discharging efficiency of the ES
η P 2 G the conversion efficiency of P2G
S O C e s d n , i the lower limit of ES ramping
S O C e s u p , i the upper limit of ES ramping
f G , i , t the natural gas source injection flow
f g s , o u t , i , t the GS natural gas output flow
f g s , i n , i , t the GS natural gas injection flow
f L , i , t the natural gas load
f G T , i , t the equivalent gas load of GT inflow
f P 2 G , i , t the natural gas flow generated by the P2G
S G S , i , t the storage capacity of the GS
S G S , i , m i n the lower limit of GS capacity
S G S , i , m a x the upper limit of GS capacity
S G S d n , i the lower limit of GS ramping
S G S u p , i the upper limit of GS ramping
H g , i , t the heat value of natural gas input by GT
α g , i , β g , i , γ g , i the parameters determined by the heat consumption curve of GT
F IEGS model operating cost
F E the cost of power system
F N G the cost of natural gas system
F P 2 G the operation cost of P2G
F G T the operation cost of GT
C E S , i the cost coefficient of ES
a i , b i , c i the consumption characteristic parameters of conventional generating unit
C G , i the cost coefficient of gas source
C G S , i the cost coefficient of GS
C P 2 G , i the cost coefficient of P2G
C G T , i the cost coefficient of GT
P p r e , i , t the dummy variable of power system
f p r e , i , t the dummy variable of natural gas system
B the number of training samples per turn
ϵ the discount coefficient
τ the soft update coefficient
θ μ the policy network parameter
θ Q the value network parameter
μ s i | θ μ the policy network output
Q s i , a i | θ Q the value of the value network
φ G the power crossing penalty terms of the generator
φ E S the power crossing penalty terms of ES
φ P 2 G the power crossing penalty terms of P2G
φ Δ E S the ES ramping crossing penalty term
φ f G the gas source overrun penalty term
φ S G S the GS flow overrun penalty term
φ G T the GT power overrun penalty term
φ Δ S G S the GS flow ramping overrun penalty term
ψ E the global power system operation constraint out-of-bounds penalty term
ψ L the global natural gas system operation constraint out-of-bounds penalty term

References

  1. Shahidehpour, M.; Fu, Y.; Wiedman, T. Impact of Natural Gas Infrastructure on Electric Power Systems. Proc. IEEE 2005, 93, 1042–1056. [Google Scholar] [CrossRef]
  2. Clegg, S.; Mancarella, P. Integrated Modeling and Assessment of the Operational Impact of Power-to-Gas (P2G) on Electrical and Gas Transmission Networks. IEEE Trans. Sustain. Energy 2015, 6, 1234–1244. [Google Scholar] [CrossRef]
  3. Odetayo, B.; MacCormack, J.; Rosehart, W.D.; Zareipour, H. Integrated planning of Natural Gas and electricity distribution networks with the presence of distributed natural gas fired generators. In Proceedings of the 2016 IEEE Power and Energy Society General Meeting (PESGM), Boston, MA, USA, 17–21 July 2016; pp. 1–5. [Google Scholar] [CrossRef]
  4. Xu, X.; Jia, H.; Chiang, H.-D.; Yu, D.C.; Wang, D. Dynamic Modeling and Interaction of Hybrid Natural Gas and Electricity Supply System in Microgrid. IEEE Trans. Power Syst. 2015, 30, 1212–1221. [Google Scholar] [CrossRef]
  5. Martinez-Mares, A.; Fuerte-Esquivel, C.R. A Unified Gas and Power Flow Analysis in Natural Gas and Electricity Coupled Networks. IEEE Trans. Power Syst. 2012, 27, 2156–2166. [Google Scholar] [CrossRef]
  6. Qin, Y.; Wu, L.; Zheng, J.; Li, M.; Jing, Z.; Wu, Q.H.; Zhou, X.; Wei, F. Optimal operation of integrated energy systems subject to coupled demand constraints of electricity and natural gas. CSEE J. Power Energy Syst. 2020, 6, 444–457. [Google Scholar] [CrossRef]
  7. Sun, Y.; Zhang, B.; Ge, L.; Sidorov, D.; Wang, J.; Xu, Z. Day-ahead optimization schedule for gas-electric integrated energy system based on second-order cone programming. CSEE J. Power Energy Syst. 2020, 6, 142–151. [Google Scholar] [CrossRef]
  8. Manshadi, S.D.; Khodayar, M.E. Coordinated Operation of Electricity and Natural Gas Systems: A Convex Relaxation Approach. IEEE Trans. Smart Grid 2019, 10, 3342–3354. [Google Scholar] [CrossRef]
  9. Liu, F.; Bie, Z.; Wang, X. Day-Ahead Dispatch of Integrated Electricity and Natural Gas System Considering Reserve Dispatch and Renewable Uncertainties. IEEE Trans. Sustain. Energy 2019, 10, 646–658. [Google Scholar] [CrossRef]
  10. Roald, L.A.; Sundar, K.; Zlotnik, A.; Misra, S.; Andersson, G. An Uncertainty Management Framework for Integrated Gas-Electric Energy Systems. Proc. IEEE 2020, 108, 1518–1540. [Google Scholar] [CrossRef]
  11. Liu, Y.; Su, Y.; Xiang, Y.; Liu, J.; Wang, L.; Xu, W. Operational Reliability Assessment for Gas-Electric Integrated Distribution Feeders. IEEE Trans. Smart Grid 2019, 10, 1091–1100. [Google Scholar] [CrossRef]
  12. Hu, Q.; Zeng, B.; Zhang, Y.; Hu, H.; Liu, W. Analysis of probabilistic energy flow for IEGS with P2G based on cumulant method. In Proceedings of the 2017 IEEE Conference on Energy Internet and Energy System Integration (EI2), Beijing, China, 26–28 November 2017; pp. 1–6. [Google Scholar] [CrossRef]
  13. Duan, J.; Shi, D.; Diao, R.; Li, H.; Wang, Z.; Zhang, B.; Bian, D.; Yi, Z. Deep-Reinforcement-Learning-Based Autonomous Voltage Control for Power Grid Operations. IEEE Trans. Power Syst. 2020, 35, 814–817. [Google Scholar] [CrossRef]
  14. Wang, B.; Xu, Y.; Hee, S.B.; Yan, Z. A Multi-Agent Deep Reinforcement Learning Based Multi-Timescale Voltage Control for Distribution System. In Proceedings of the 2021 IEEE 5th Conference on Energy Internet and Energy System Integration (EI2), Taiyuan, China, 22–25 October 2021; pp. 2825–2830. [Google Scholar] [CrossRef]
  15. Teng, X.; Long, H.; Yang, L. Integrated Electricity-Gas System Optimal Dispatch Based on Deep Reinforcement Learning. In Proceedings of the 2021 IEEE Sustainable Power and Energy Conference (ISPEC), Nanjing, China, 23–25 December 2021; pp. 1082–1086. [Google Scholar] [CrossRef]
  16. An, S.; Wang, H.; Yuan, X. Real-Time Optimal Operation Control of Micro Energy Grid Coupling With Electricity-Thermal-Gas Considering Prosumer Characteristics. IEEE Access 2020, 8, 216566–216579. [Google Scholar] [CrossRef]
  17. Li, L.; Ota, K.; Dong, M. Deep Learning for Smart Industry: Efficient Manufacture Inspection System with Fog Computing. IEEE Trans. Ind. Inform. 2018, 14, 4665–4673. [Google Scholar] [CrossRef] [Green Version]
  18. Yu-Yang, B.; Yan-Hao, H.; Si-Yuan, C.; Jun, Z.; Bai-Qing, L.; Fei-Yue, W. Cloud-edge Intelligence: Status Quo and Future Prospective of Edge Computing Approaches and Applications in Power System Operation and Control. Zidonghua Xuebao/Acta Autom. Sin. 2020, 46, 397–410. [Google Scholar]
  19. Jiang, S.V.; Gao, H.J.; Wang, X.H.; Liu, J.Y.; Zuo, K.Y. Deep reinforcement learning based multi-level dynamic reconfiguration for urban distribution network: A cloud-edge collaboration architecture. Glob. Energy Interconnect. 2023, 6, 1–14. [Google Scholar] [CrossRef]
  20. Zhang, Z.; Zhu, J.; Li, S.; Zhou, H.; Tang, H.; Cao, Y. Research on Low-voltage Distribution Network Operation Control Architecture based on Cloud-edge-end Collaboration. In Proceedings of the 2022 China International Conference on Electricity Distribution (CICED), Changsha, China, 7–8 September 2022; pp. 1748–1753. [Google Scholar] [CrossRef]
  21. Hou, W.; Wen, H.; Zhang, N.; Lei, W.; Lin, H. Dynamic Load Combined Prediction Framework with Collaborative Cloud-Edge for Microgrid. In IEEE Infocom, Proceedings of the 2022—IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), New York, NY, USA, 2–5 May 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1–2. [Google Scholar] [CrossRef]
  22. Li, X.; Wang, J.; Lu, Z.; Cai, Y. A cloud edge computing method for economic dispatch of active distribution network with multi-microgrids. Electr. Power Syst. Res. 2023, 214, 108806. [Google Scholar] [CrossRef]
  23. Zhu, X.; Yang, J.; Zhan, X.; Sun, Y.; Zhang, Y. Cloud-edge collaborative distributed optimal dispatching strategy for an electric-gas integrated energy system considering carbon emission reductions. Int. J. Electr. Power Energy Syst. 2022, 143, 108458. [Google Scholar] [CrossRef]
  24. Ji, Q.; Xin-Ying, W.; Qing, Z.; Dong-Xia, Z.; Tian-Jiao, P. Optimal Dispatch of Integrated Electricity-gas System with Soft Actor-critic Deep Reinforcement Learning. Proc. CSEE 2021, 41, 819–832. (In Chinese) [Google Scholar] [CrossRef]
  25. Li, P.; Jiang, L.; Zhang, C.; Wang, J.; Wang, N.; Liu, H.; Dou, Z.; Pan, Y.; Zhou, X.; Zeng, P. Coordinated planning of integrated electricity–heat–gas energy system considering renewable energy consumption. IET Gener. Transm. Distrib. 2023, 17, 3232–3244. [Google Scholar] [CrossRef]
  26. Fotopoulou, M.; Rakopoulos, D.; Petridis, S. Decision Support System for Emergencies in Microgrids. Sensors 2022, 22, 9457. [Google Scholar] [CrossRef] [PubMed]
Figure 1. IEGS Model.
Figure 1. IEGS Model.
Processes 11 02299 g001
Figure 2. Cloud-edge computing architecture for IEGS.
Figure 2. Cloud-edge computing architecture for IEGS.
Processes 11 02299 g002
Figure 3. Cloud-edge computing strategy for IEGS.
Figure 3. Cloud-edge computing strategy for IEGS.
Processes 11 02299 g003
Figure 4. Flow chart of training algorithm based on cloud-edge computing.
Figure 4. Flow chart of training algorithm based on cloud-edge computing.
Processes 11 02299 g004
Figure 5. IEEE 9-node power system and an 8-node natural gas system.
Figure 5. IEEE 9-node power system and an 8-node natural gas system.
Processes 11 02299 g005
Figure 6. Cloud-edge convergence curve.
Figure 6. Cloud-edge convergence curve.
Processes 11 02299 g006
Figure 7. Comparison of convergence curves between cloud-edge and MADDPG.
Figure 7. Comparison of convergence curves between cloud-edge and MADDPG.
Processes 11 02299 g007
Figure 8. (A) The total load of the power system with wind and PV output. (B) The total load of the natural gas system.
Figure 8. (A) The total load of the power system with wind and PV output. (B) The total load of the natural gas system.
Processes 11 02299 g008
Figure 9. (A) Dispatch results of power system. (B) Dispatch results of natural gas system.
Figure 9. (A) Dispatch results of power system. (B) Dispatch results of natural gas system.
Processes 11 02299 g009aProcesses 11 02299 g009b
Table 1. Research classification of power system dispatch problems.
Table 1. Research classification of power system dispatch problems.
StructureAlgorithmAdvantagesDisadvantages
Centralized computingGame theory [5]High precisionCalculation process is complex, long computing time.
PSO [12]Strong versatility, fewer adjustment parameters, fast convergence speedDue to the limitation of local search ability, the algorithm cannot guarantee the global optimal solution.
DDPG [13]Relatively stable, training easy convergence.The parameter change is small, and the learning process is slow.
SAC [15]More exploration, faster trainingThe training speed is slow and the training process is unstable.
Distributed computingADMM [23]High efficiency, improve computing efficiency, strong scalabilityTo solve complex optimization problems in real time, the decision time is long and the parameters are sensitive.
Table 2. Pseudo-code of cloud-edge computing algorithm based on MADDPG.
Table 2. Pseudo-code of cloud-edge computing algorithm based on MADDPG.
Cloud-Edge Computing Algorithm Based on MADDPG
for episode = 1 to M do
Initialize IEGS state s and random process ξ
for t = 1 to max-episode-length do
   for each agent i , select action a i = μ θ i ο i + ξ t w.r.t. the current policy and exploration
   Execute action a i and observe reward r i and new state s i
   Observe global reward r = r 1 + r 2
   Store s i , a i , r , s i in replay buffer D i
    s s
   for each agent i do
     Sample a random minibatch of S samples s i j , a i j , r j , s i j from D i
Set
                    y k i = r k i + ϵ Q k s k i + 1 , a i + 1 | θ k Q a i + 1 = μ k o k i + 1
     Update critic of each agent i by minimizing the loss by (25)
     Update actor of each agent i by (26)
   end for
   Update target network parameters for each agent i by (27) and (28)
end for
end for
Table 3. System parameter values.
Table 3. System parameter values.
System ParameterNumerical Value
η s o c 0.95
η P 2 G 0.6
S O C e s , u p 0.9
S O C e s , d n 0.1
E e s , m a x 50 MWh
P P 2 G , m a x 50 MW
P G T , m a x 50 MW
S s , m a x 0.5
G H V 39 MJ / m 3
α g , i 0
β g , i 5.5 m 3 / s 100   MW
γ g , i 0.16 m 3 / s 100   MW 2
Table 4. Conventional generating unit parameter values.
Table 4. Conventional generating unit parameter values.
i a i b i c i P G , i , m a x P G , i , m i n
10.02140.1485.10100 MW 60 MW
20.02041.6284.10105 MW 65 MW
30.02439.1070.90120 MW 55 MW
Table 5. Cost of dispatch cost of different algorithms.
Table 5. Cost of dispatch cost of different algorithms.
Dispatch AlgorithmsDispatch Cost
cloud-edge4.81 × 10 6 RMB
MADDPG4.86 × 10 6 RMB
DDPG4.82 × 10 6 RMB
PSO4.85 × 10 6 RMB
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

Li, X.; Wang, Z. A Cloud-Edge Computing Method for Integrated Electricity-Gas System Dispatch. Processes 2023, 11, 2299. https://doi.org/10.3390/pr11082299

AMA Style

Li X, Wang Z. A Cloud-Edge Computing Method for Integrated Electricity-Gas System Dispatch. Processes. 2023; 11(8):2299. https://doi.org/10.3390/pr11082299

Chicago/Turabian Style

Li, Xueping, and Ziyang Wang. 2023. "A Cloud-Edge Computing Method for Integrated Electricity-Gas System Dispatch" Processes 11, no. 8: 2299. https://doi.org/10.3390/pr11082299

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