Next Article in Journal
Dual-Core PLC for Cooperating Projects with Software Implementation
Previous Article in Journal
Preparation of Biobased Printed Circuit Board Prototypes Using Poly(furfuryl alcohol) Resin
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Cost Optimization Method Based on Adam Algorithm for Integrated Demand Response

School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, Shanghai 200240, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(23), 4731; https://doi.org/10.3390/electronics12234731
Submission received: 25 October 2023 / Revised: 13 November 2023 / Accepted: 20 November 2023 / Published: 22 November 2023

Abstract

:
Demand response has gradually evolved into integrated demand response (IDR) as energy integration technology develops in integrated energy systems (IESs). The IES has a large amount of data interaction and an increasing concern for users’ privacy protection. Based on the combined cooling, heating, and power model, our study established an IDR management model considering demand-side energy coupling, focusing on cost optimization. In terms of privacy protection in the IDR management process, an optimization method based on the Adam algorithm was proposed. Only nonsensitive data, such as gradients, were transmitted during the processing of the Adam-based method by relying on a centralized iterative computing architecture similar to federated learning. Thus, privacy protection was achieved. The final simulation results proved that the proposed IDR management model had a cost reduction of more than 9% compared with a traditional power demand response. Further simulations based on this model showed that the efficiency and accuracy of the proposed Adam-based method are better than those of other distributed computing algorithms.

1. Introduction

Renewable energy and ever-changing energy demands have brought increasingly complex problems to power system dispatching; moreover, operation uncertainties have been increasing, making use of advanced tools and ideas crucial to ensuring the operation’s reliability [1]. Given the generation of massive user data and the diversification of user energy demands in multienergy systems, novel collaborative interaction models should be designed to achieve some traditional goals, such as peak clipping and valley filling or renewable energy consumption.
Demand response technology is generally applied in a single energy carrier system. However, most power users do not want to suffer power fluctuations, power interruptions, or delayed power consumption. Therefore, a single energy carrier system cannot fully utilize demand-side resources to implement demand response plans. IESs can achieve the coordination of multiple heterogeneous energy systems. Therefore, most users in IESs are multienergy consumers with complex load characteristics; this scenario brings new challenges to demand-side management [2]. The control of coupling energy is indispensable in establishing an IES. Thus, the energy dispatch process involves complex and changeable energy sources and cash flows from multiple parties. Therefore, we planned to use a widely researched energy hub [3,4] to model the CCHP model used in this study and summarize the energy interaction characteristics. This model can reflect the relationship between the input and output of an IES.
As a popular demand-side management measure, the IDR can fully tap the potential of multienergy consumers on the demand side to participate in demand response [5,6]. Heat and power cogeneration and integration technologies of multienergy carriers have developed in recent years, thereby promoting the evolution from the demand response of single smart grids to the IDR in IESs [5]. Similar to electricity demands, user energy demands are adjustable if stimulated appropriately under an IDR. A reasonable IDR mechanism has become important to encourage multienergy subject interaction, realize integrated energy management, and optimize resource allocation. In this study, an IDR management model based on CCHP technology was established. This modeling method was based on the performance of coupled energy in demand response to explore the impact of energy coupling on response costs.
The IDR based on IESs is a general form of peak clipping and valley filling, which are accompanied by a sharp increase in the amount of interaction information and the increasing importance attached to user privacy [7]. The need to protect privacy, such as energy usage behavior and energy usage habits, is important for energy users [8,9]. For instance, if users’ energy usage habits are maliciously exploited, it may lead to a reduction in power supply reliability or even a network-wide blackout. More importantly, failure to protect relevant privacy will lead to malicious quotations and unfair bidding by some other users. Therefore, a new privacy protection method specific to the cost optimization of IDR was investigated in the present study. In existing studies on IDR optimization problems, a virtual power plant scheduling framework considering demand response was proposed in Ref. [10] to develop IDR-related technologies in IESs. This framework enables heat and power cogeneration to participate in the IDR operation. In Ref. [11], a two-stage coordinated operation method was proposed to coordinate CCHP and flexible electric heating loads based on price-based demand responses. In Ref. [12], a two-layer coordinated power and gas network model was established. In these studies, the researchers believe that CCHP must cooperate with flexible loads to achieve optimization. Moreover, the possibility of CCHP reaching the IDR scheduling goal alone was not considered. Considering this situation, some scholars studied the application of CCHP in demand response and drew valuable conclusions [13,14,15,16]. In these studies, the demand response operation and economic optimization among different energy systems were well explored. However, transmitting the complete information of users is always adopted in the optimization process. For IDR, stakeholders are often in multilateral energy markets with incomplete information because of the different energy unit types. Thus, research on the application of privacy protection in IDR must be prioritized.
Among the existing methods for protecting the stakeholders’ privacy, the Bayesian game [17,18] and the ADMM [19,20] have been widely used. The Bayesian game is often used in the bidding field of the supply and demand sides of the power market under incomplete information [21]. Ref. [22] used Bayesian theory to optimize the energy consumption problems in demand response management. Ref. [21] applied Bayesian theory in a noncooperative game with incomplete information among IDR players for optimal bidding strategies. The Bayesian game can reach the Bayesian–Nash equilibrium point without spreading private information. However, participants in the Bayesian game must know other participants in advance to increase the decision-making time. Moreover, the joint probability distribution in the uncertain decision-making environment is difficult to determine. The ADMM algorithm has been widely used in consistency optimization under a fully distributed architecture. Ref. [23] used ADMM to protect end users’ privacy, and a two-stage robust microgrid-side energy management problem was solved. Ref. [24] investigated the joint coordination of demand response and AC optimal power flow to save costs under an ADMM-based method. Before the solution is reached, each demand response participant must construct the augmented Lagrangian function in advance. Moreover, many boundary conditions for the interaction between different participants exist, resulting in an increase in the extra calculation and frequent failure to converge to the optimal solution effectively. Therefore, a new computing architecture that does not need complex initialization in advance should be explored to realize flexible, reliable, and efficient IDR cost optimization on the basis of privacy protection.
The Adam algorithm is an efficient stochastic optimization algorithm that requires only a first-order gradient and has few memory requirements [25]. It combines the advantages of AdaGrad [26] and RMSProp [27]. Thus, it is suitable for sparse gradients, nonlinearities, and nonstationary scenes. The Adam algorithm has been successfully used in previous research [28,29]. In the studies listed above, the Adam algorithm ensured that the complete original data during the training process were not transmitted because of their gradient dependence. However, research on applying the Adam algorithm to cost optimization in IESs to achieve privacy protection is lacking. Inspired by this research gap, we intend to propose an IDR management method based on the Adam algorithm to achieve IDR cost optimization while considering privacy protection. Given that the Adam algorithm has few memory requirements, the Adam-based method proposed in this study can alleviate communication pressure to improve computing efficiency. This result was proved in the case study.
The main contributions of this study are summarized as follows:
  • An IES internal coupling model based on CCHP technology is established. This model can clarify the relationship between the input and output of an IES. An IDR optimization model based on this coupling model is also established to explore the cost advantages of energy coupling in IDR management.
  • Based on the proposed IDR optimization model, an optimization method that does not transmit energy users’ private information is proposed. This method is based on the Adam algorithm and can optimize costs generated by the IDR management of energy users under incomplete information markets.
  • Compared with other distributed optimization algorithms, the computing framework based on the Adam algorithm proposed in this study can improve the efficiency and accuracy of the IDR optimization process.
The whole paper is organized as follows: In Section 2, a user-side multienergy demand model of an IES was established, and the IDR model was planned by controlling the CCHP energy distribution ratio and users’ energy use behaviors based on CCHP coupling and user-side multienergy complementary energy use behaviors. In Section 3, a new optimization algorithm based on Adam was established. This new algorithm integrated the Adam algorithm and IDR model to achieve optimal IDR policy planning without information privacy leakage. In Section 4, three simulation scenarios were set up to demonstrate the effectiveness and superiority of the IDR model and the optimization algorithm proposed in this study. Section 5 summarizes the study.

2. Distribution-Side IDR Model

2.1. CCHP Internal Coupling Relationship Modeling

Using the combination of a regional power system, a thermal system, and a cooling system based on CCHP, the IES investigated in this study provides consumers with electricity, heating, and refrigeration. This IES involves new energy-generating sets, natural gas companies, coupling equipment, and multienergy loads. The most significant difference between the IES and a traditional regional power system is that various energy resources have an interactive relationship between production and consumption.
Energy-generating sets can be divided into three categories: pure power-generating sets, pure heating sets, and heat and power cogenerating sets. The heat and power cogenerating sets usually refer to CCHP, in which power generation and heating are coupled according to the operation mode. In general, pure heating sets are gas furnaces, and pure power-generating sets are power supplies connected to transformers. In general, the coupling relationship at the supply side of the IES can be described using an EH model, in which a microgas turbine and a gas furnace are contained with their energy conversion relationship, as seen in (1).
[ P out e P out h ] = [ η T ω 1 η MT e 0 ( 1 ω 1 ) η F + ω 1 η MT h ] [ P in e P in g ] ,
where ω 1 is the ratio of the gas consumed by the microgas turbine; ( 1 ω 1 ) denotes the ratio of gas consumed by the gas furnace; P out e and P out h are the electric power and heating power outputs of EH, respectively; P in e and P in g are the electric power and natural gas power inputs of EH, respectively; η T and η F are the transformer efficiency and the gas furnace’s heating efficiency, respectively; and η MT e and η MT h represent the electrical efficiency and heating efficiency of the microgas turbine, respectively. Furthermore, an EH model, including an absorption chiller, is considered. If the system’s refrigeration demand can be satisfied by the adsorption chiller, the extended EH model can be modified into (2).
[ P out   e P out h P out   q ] = [ η T ω 1 η MT e 0 ( 1 ω 2 ) [ ( 1 ω 1 ) η F + ω 1 η MT h ] 0 ω 2 σ hq [ ( 1 ω 1 ) η F + ω 1 η MT h ] ] [ P in e P in g ] ,
where ω 2 is the heat recovery ratio of the adsorption chiller, σ hq represents the refrigeration efficiency, and P out   q is the cold output power of EH. Equation (2) expresses the double-port model of CCHP and displays the transfer relation between energy input and output; the energy output of CCHP can be controlled by controlling the energy distribution ratio { ω 1 , ω 2 } . The IES described by (2) is shown in Figure A1 in the Appendix A. In this study, each regional large load was presumably managed by an LSO. This LSO was responsible for the strategic implementation of IDR. It could also determine the dispatching plan and coordinate the interaction between energy users and CCHP.

2.2. IDR Design of IES

Given that some loads consume more than one kind of energy (e.g., electric power and heating power), the energy use behavior of these loads leads to an increase in various energy demands. On the contrary, a substitutive effect also exists between different kinds of energy. For example, the microgas turbine can directly replace electric boilers to supply heat when generating cheap heating power to reduce electrical loads. Therefore, the demand for another kind of energy changes when the demand for one kind of energy changes.
The above analysis indicates that an IDR mechanism based on general demand response can be designed. The designed IDR mechanism can reduce the power load directly or indirectly as follows: (1) The direct way of stimulating consumers to reduce part of the load by providing incentives is widely used. (2) In the indirect way, the mutual substitutive relationship between electricity demand and cold and heating demand is considered, and the system manager encourages the increase in cold and heating demand through multienergy coupling to reduce the electrical loads.
In the market mechanism, the LSO acquires auxiliary services like reserves through bidding. The LSO is controlled by the upper-layer ISO, which takes charge of the market clearing strategy of this IES. The specific process of IDR is as follows:
  • The LSO carries out day-ahead load forecasting and reports it to the ISO for bidding to enter the power market.
  • The LSO obtains the load reduction index from the market clearing results of the ISO.
  • The LSO determines the dispatching plan by solving the IDR optimization model, informs consumers of the results, and controls the operation of CCHP;
  • Consumers adjust their energy demand at the specified time. CCHP adjusts its energy production accordingly to balance the load, and the net load of the IES is reduced as planned.
Under this process, the information of the LSO and users is uploaded in the form of original data on the network, which have the potential to be attacked. Centralized clearing also causes communication network congestion when the amount of information is large. In Section 3, an FL algorithm is introduced based on this process to solve the network security and congestion problems. The load forecasting technology was not involved in the calculation of this study to highlight the key points. The daily load reduction under each time scale is initialized constantly.

2.3. IDR Management Model Based on Demand-Side Coupling

An LSO aims to minimize the sum of incentive, heating, and refrigeration costs (hereinafter collectively referred to as the operating cost). The demand-side IDR optimization model can be described as follows by taking 1 h as the time step size:
min C sum Δ L i , t ee , Δ L i , t h , Δ L i , t q , ω 1 , ω 2 = i = 1 n t = 1 T [ C i , t IL + ρ h Δ L i , t h + ρ q Δ L i , t q ] ,
where n is the number of LSOs, i labels a specific LSO, T is the total duration, t is the number of hours, and C i , t IL is the incentive cost; ρ h and ρ q represent the power–heat and power–cold cost coupling coefficients, which are generally negative and represent the unit cost of nonelectrical energy power; Δ L i , t h and Δ L i , t q are the variations in the heating and cooling loads generated by an IDR. The total cost of the IES depends on the total operating cost of all the LSOs. Thus, this optimization problem is actually the optimization of the sum of the costs of all the LSOs. Since Δ L i , t ee , Δ L i , t h , Δ L i , t q , ω 1 , ω 2 reflect the LSOs’ energy response characteristics and energy consumption characteristics, these decision variables are the private data to be protected in this study.
α i and β i are set as the user-side incentive cost coefficients, and Δ L i , t ee is the electrical load reduction due to electric excitation. The incentive cost can be expressed by the following equation:
C i , t IL = α i Δ L i , t ee 2 + β i Δ L i , t ee .
In addition, the variations in heating power, cooling power, and electric power are expressed as follows:
Δ L i , t h = Δ L i , t he + Δ L i , t hq , Δ L i , t q = Δ L i , t qe + Δ L i , t qh , Δ L i , t e = Δ L i , t ee + Δ L i , t eq + Δ L i , t eh ,
where Δ L i , t he and Δ L i , t hq represent the reduction in heating power due to the electrical power changing and the cooling power changing; Δ L i , t qe ,   Δ L i , t qh represent the reduction in the cooling power due to the electrical power changing and the heating power changing; Δ L i , t eq , Δ L i , t eh represent the reduction in the electrical power due to the cooling power changing and the heating power changing. These variables have the following relationships:
Δ L i , t he = μ he Δ L i , t e ,   Δ L i , t hq = μ hq Δ L i , t q , Δ L i , t qe = μ qe Δ L i , t e ,   Δ L i , t qh = μ qh Δ L i , t h , Δ L i , t eh = μ eh Δ L i , t h ,   Δ L i , t eq = μ eq Δ L i , t q ,
where μ * 0 ( * { e , h , q } ) is the product of the energy conversion efficiency and coupling coefficient, μ qh μ hq = 1 and t { 1 , 2 , , T } . Equation (2) shows that the cooling power involved in this study is completely converted from thermal energy; thus, μ qe = μ eq = 0 . In the case of coupling, any kind of energy can be represented by other energy sources, and (5) can be further changed to (7).
Δ L i , t h = μ he Δ L i , t e + μ hq Δ L i , t q , Δ L i , t q = μ qe Δ L i , t e + μ qh Δ L i , t h = μ qh Δ L i , t h , Δ L i , t e = Δ L i , t ee + μ eh Δ L i , t h .
Heating loads are constantly affected by controlling cooling loads. Furthermore, the number of electric, heating, and cooling loads in the IES is set to n e , n h , and n q , respectively; P out , t e , P out , t h , and P out , t q are the electric, heating, and cooling output power of CCHP, respectively; P in e and P in g represent the input power of electricity and natural gas of CCHP, respectively. Then, the constraints of the IDR optimization model are designed as follows by combining Equations (1), (2) and (7):
s . t . { Δ L i , t e = Δ L i , t ee + μ eh Δ L i , t h Δ L i , t q = μ qh Δ L i , t h Δ L i , t h = μ he Δ L i , t e + μ hq Δ L i , t q Δ L i , min ee Δ L i , t ee Δ L i , max ee Δ L i , min h Δ L i , t h Δ L i , max h Δ L i , min q Δ L i , t q Δ L i , max q P i n , min g Δ P i n , t g P i n , max g P i n , min e Δ P i n , t e P i n , max e P out , t e = i = 1 n e ( Δ L i , t e ) P out , t h = i = 1 n h ( Δ L i , t h ) P out , t q = i = 1 n q ( Δ L i , t q ) [ P out   e P out h P out   q ] = [ η T ω 1 η MT e 0 ( 1 ω 2 ) [ ( 1 ω 1 ) η F + ω 1 η MT g ] 0 ω 2 σ hq [ ( 1 ω 1 ) η F + ω 1 η MT g ] ] [ P in e P in g ] .
The above inequality constraints limit the maximum and minimum values of the cooling, heating, and power loads and the maximum and minimum values of the purchased energy power. The equality constraints describe the load coupling balance constraints, energy supply and demand balance constraints, and CCHP dual-port power balance constraints.

3. IDR Management Based on Adam

3.1. Overview of the Adam Algorithm

This section takes the application of the Adam algorithm to FL as an example to introduce the Adam algorithm.
FL can save the training data locally in client devices while performing global training. The client devices participating in the training update the local model according to their original data and then send it to the central parameter server (CPS) to update the global model. The CPS cannot control or modify the original data of the client. Moreover, it is not responsible for maintaining and protecting the original data of the client. After receiving the data, the CPS aggregates the encrypted data and then returns the result to each client. Each client updates its local model. This process is consistent with the pursuit of data security and easing the pressure on information channels in this study.
A typical FL operation mechanism between the client and CPS can be summarized as shown in Figure 1.
The Adam algorithm, with good convergence characteristics and computational efficiency, has often been used to solve FL problems. Compared with the steepest descent method, the Adam algorithm increases the first-order momentum and the second-order momentum. Thus, the model can reflect spatial–temporal characteristics and effectively suppress oscillations in the convergence process. In the FL training process, the CPS usually initializes a global model and sends it to all low-level users. Each user uses a local data set to train the model. After training, the trained model is uploaded to the CPS. After the model is integrated and processed by the CPS, it is issued again. The iteration is repeated several times until convergence. In the Adam-based FL training process, the parameter vector, first-order momentum vector, second-order momentum vector, two hyperparameters, and step size must be initialized in advance. Then, the loop iteratively updates each part (the number of iterations, gradient, first-order momentum vector, second-order momentum vector, and parameter vector) until the parameter converges. Moreover, Adam aims to find a set of parameters that minimize the mean squared error. Adam does not require a fixed target; it uses sparse gradients and naturally performs some form of step size annealing [30].

3.2. A New Cost Optimization Method Based on Adam

In this section, a new nonlinear optimization algorithm based on Adam was proposed to optimize the operation cost of IDR. This algorithm was based on the nonlinear programming problem. The gradient descent method used in the Adam algorithm was applied to the optimal solution of IDR management from a cost perspective. This Adam-based method is a new nonlinear optimization algorithm with good privacy protection characteristics. In the IES designed in this study, the CPS was responsible for parameter aggregation and was located at the ISO. It also took charge of collecting the parameter sets of the LSO.
The training process of FL with Adam is displayed in Algorithm 1 as an example.
In Algorithm 1, n is the iteration round of the FL algorithm; α 1 = 0.9 and α 2 = 0.99 are the hyperparameters that determine the gradient descent training speed of the Adam algorithm; Weighti is the importance weight of each user client i; η is the learning rate; ( ) is the activation function form of f ( ) ; and m i n 1 is the gradient change of the Adam algorithm at the (n − 1)-th iteration of client i, which follows the iteration rule shown in (9).
m i n = η ( α 1 m i n 1 + ( 1 α 1 ) ( ϑ i n ) ) α 2 ( τ = 1 n ( ϑ i τ ) 2 ) + ( 1 α 2 ) ( ϑ i n ) 2
The upper part of the fraction in (9) indicates that the learning rate is multiplied by the Adam gradient, which consists of the gradient of the previous iteration and the current gradient. The lower part of the fraction is the root of Adam’s secondary momentum, comprising the sum of historical Adam’s secondary momentum and current Adam’s secondary momentum.
Algorithm 1 Training process of FL with Adam
Server executes:
 Initialize ϑ 0
ϑ k 0 ϑ 0
for each round n = 0,1,2,… do
for each client i do
      ϑ i n ϑ n
      ϑ i n + 1 Client Update ( ϑ i n )
  for end
   ϑ n + 1 i = 1 u W e i g h t i T o t a l W e i g h t ϑ i n + 1
for end
Server execution end
Clientkexecutes:
 Client Update ( ϑ i n ) :
ϑ i n + 1 ϑ i n η ( α 1 m i n 1 + ( 1 α 1 ) ( ϑ i n ) ) α 2 ( τ = 1 n ( ϑ i τ ) 2 ) + ( 1 α 2 ) ( ϑ i n ) 2
return  ϑ i n + 1 to server
Client k execution end
For the IDR nonlinear programming problem mentioned in this section, the pseudocode of the new cost optimization method based on Adam is shown in Algorithm 2. This method combines the Adam algorithm with the IDR nonlinear programming problem by considering privacy protection and showing good convergence performance. Its main difference from the traditional FL algorithm mentioned in Algorithm 1 is that the proposed optimization method does not need to define the training data set in advance. Moreover, the convergence of the algorithm is guaranteed by the convergence of the nonlinear programming problem and the convergence of the gradient descent method used in the Adam algorithm.
In Algorithm 2, x k 0 = [ E k e , 0 , E k c , 0 , E k h , 0 ] T is the initial value of the demand-side decision variable, ε denotes the convergence precision, x k i is the decision variable of user k in the i-th iteration, and g ( x k i ) = W LA , k | x k i represents the demand-side objective function. Similar to Algorithm 1, Algorithm 2 indicates that only the gradient data are transmitted in the communication line, whereas the other data of practical significance are not. Thus, privacy protection is realized. Then, Algorithm 1 is further compared with Algorithm 2.
Algorithm 2 New cost optimization method based on the Adam algorithm
Server executes:
 Initialize x k 0 = [ E k e , 0 , E k c , 0 , E k h , 0 ] T and m 0 = 0
  for each round i = 0,1,2,… do
for each client k do
   m k i m i
   ( x k i + 1 , m k i + 1 ) Client Update ( x k i , m k i )
   for end
    m i + 1 k = 1 K W e i g h t k T o t a l W e i g h t m k i + 1
   if  m i + 1 m i < ε
    Loop end
   if end
  for end
Server execution end
Client k executes:
 Client Update ( x k i , m k i ) :
     m k i = ( α 1 m k i 1 + ( 1 α 1 ) g ( x k i ) ) α 2 ( τ = 1 i g ( x k i ) 2 ) + ( 1 α 2 ) g ( x k i ) 2
     x k i + 1 x k i η m k i
  return  m k i to server
Client k execution end
(a) In terms of the calculation principle, the gradient descent method is adopted for Algorithms 1 and 2. However, Algorithm 1 optimizes the weight of the loss function, whereas Algorithm 2 directly faces nonlinear programming problems and optimizes decision variables. In addition, Algorithm 1 averages the weights on the server side, whereas Algorithm 2 averages the gradients on the server side, thereby ensuring that in Algorithm 2, every user has the same model at the beginning of each iteration and that the results can reflect the localization characteristics of different clients in subsequent iterations.
(b) For the computing structure, Algorithm 1 is implemented based on the machine learning ability of the client. Thus, the landing process based on Algorithm 1 becomes relatively tedious, and the required function fails within a short amount of time. The client only needs simple numerical computing power to implement Algorithm 1. Moreover, the landing process based on Algorithm 2 is relatively simple. Therefore, the Adam-based optimization method proposed in this study is a privacy protection solution with favorable extensibility.

4. Example Analysis

The running environment is an Intel Core i7-10870H CPU 2.21 GHz processor with 32 GB of RAM. In this study, the IES of a region in Qingdao, China, in winter was used to prove the effectiveness of the proposed method. This region has one CCHP and eight large-scale flexible load bodies (or load buses). The CCHP system is managed by an ISO. Each large-scale flexible load body is managed by an LSO, and eight LSOs are controlled by this ISO in a centralized way.
The following three scenarios were set in this study:
(1)
Scenario I: μ he = 0 was set by emphasizing the investigation of the supporting effect of nonelectrical resources on the IDR of electrical resources. The new optimization method based on Adam was used for this calculation example.
(2)
Scenario II: μ he 0 was set by emphasizing the investigation of the influence of demand-side coupling on the supply of nonelectrical resources (with heating power supply as an example). The new optimization method based on Adam was also applied to this scenario.
(3)
Scenario III: Under Scenario II, the performances of the proposed Adam-based method in this study, the D-PPDS method mentioned in Ref. [31], and the ADMM algorithm used in Ref. [32] were compared to prove the good convergence and high efficiency of the proposed method.

4.1. Scenario I

A schematic diagram of the energy supply network of the IES studied in this calculation example is shown in Figure A1 in Appendix A. The maximum limit, L i , max ee , of the power load reduction for each LSO is 15 MW. The maximum limits, L i , max h and L i , max q , of both the heating power and cooling power load reduction are 10 MW, and the minimum limit of the electric, cooling, and heating load reduction is 0. The electric power response value Δ L i , t e of all LSOs is set in Table A1. The consumer incentive parameters are also listed in Table A1 in Appendix A. For all buses, μ eq = 3 and μ eh = 1 . The first-order momentum parameter is α 1 = 0.9 , and the second-order momentum parameter is α 2 = 0.99 .
In addition, the research emphasis of the example is on the substitutive effect of the nonelectrical energy in the IDR of electrical energy. Thus, the influence of the change in the heating load on the change in the electrical load can be neglected. Hence, μ he = 0 is set in Equation (6). Then, Equation (7) can be further rewritten as Equation (10).
Δ L i , t h = μ he Δ L i , t e + μ hq Δ L i , t q = μ hq Δ L i , t q , Δ L i , t q = μ qe Δ L i , t e + μ qh Δ L i , t h = μ qh Δ L i , t h , Δ L i , t e = Δ L i , t ee + μ eh Δ L i , t h + μ eq Δ L i , t q .
Figure 2 shows the calculation convergence process under an Adam-based method of the LSO operating cost on eight load buses in the same period, and Figure 3 exhibits the calculation convergence process of ω 1 and ω 2 in this period. Given the different initial parameters of the different LSOs, the convergence results and convergence speed of the different LSO costs are slightly different. However, the final results can converge completely after 60 iterations (iteration time is 0.15 s).
In this calculation, the gas ratio consumed by the microgas turbine, ω 1 , and the heat recovery ratio of the absorption chiller, ω 2 , converged to 0.56 and 0.50, respectively. This result means that the IDR can achieve cost optimization when the gas is evenly distributed to microgas turbine and gas boiler and half of the thermal power output is used for cooling. Table 1 shows that under the coupling of cooling, heating, and electricity, the electric load response is shared by the electrical loads and heating loads. Given that the cooling efficiency of the absorption chiller is approximately 0.18, the change in the cooling loads significantly impacts the heating loads. Thus, although an increase in cooling load cannot directly affect the electrical loads, it can support the electrical demand response by acting on the heating loads.
The Adam-based method proposed in this study was used to calculate the demand response cost without considering the coupling. Table 2 shows that the value of the objective function that considers the coupling (approximately USD 4385.12) is significantly lower than that without considering the coupling (approximately USD 5351.73) on the demand side. The total cost reduction of 18% shows that the multienergy coupling on the demand side significantly reduces the cost of the demand response. This finding also reflects the feasibility of the calculation method proposed in this study.

4.2. Scenario II

The example simulation was carried out on a certain day (24 h) to verify the effectiveness of the optimization model proposed in this study within a long time scale when μ he 0 . In this scenario, the total load demand curve of electricity, heating, and cooling on that day is shown in Figure A2 in Appendix A. The energy demand shown in Figure A2 was randomly assigned to eight LSOs, and the simulation was repeated 100 times. The subsequent conclusions are the average of the sum of these experimental results. In addition, the external electricity price is shown in Table A2 in Appendix A.
The influence of multienergy coupling on the total load reduction can be analyzed by solving the optimization model. Figure 4 shows that compared with the heat supply in the case without considering the coupling, the heat supply in the case considering coupling significantly decreases. The analysis shows that one part of the electric power is converted into heat, and traditional thermal equipment such as boilers can meet users’ heating power demand in the case of a low power output. Thus, the IDR based on a multienergy coupling proposed in this study can achieve low-carbon goals and provide a possibility for accessing clean energy to some extent.
The cooling, heating, and power loads reduced by the IDR in 1 day are shown in Figure 5. The cost curve of this method was compared with the cost curve of using the power demand response in the absence of a cooling–heating coupling. During the daytime (8:00–16:00), many cooling, heating, and power load values must be reduced, and the corresponding two cost curves have high values. However, problems, such as network congestion and energy waste, were avoided because of the multienergy coupling. Thus, the curve that considers coupling is lower than the curve that does not consider coupling. The coupling model established in this study was advantageous in terms of the demand response cost (the total cost was reduced by 9%).

4.3. Scenario III

The performance of the proposed method was compared with that of the D-PPDS [31] and ADMM algorithms [32] under the same simulation model in the following example to demonstrate the efficiency and feasibility of the Adam-based method proposed in this study.
ADMM, D-PPDS, and the Adam-based method all use the gradient descent method (or dual ascent method) to obtain a global solution, and they all need many iterations. The difference is that ADMM and D-PPDS rely on topology and healthy distributed communication networks, and the data transmitted between units are multiple auxiliary variables that change with iterations. However, the Adam-based method uses centralized communication, and the data transmitted between units and servers contain gradient information. The curves shown in Figure 6 are the C sum values of the three algorithms under the same model (Scenario II). Although the curves corresponding to the different methods are almost the same, the Adam-based method has a lower response cost and smoother curves than D-PPDS at times because of its historical characteristics and second-order momentum characteristics. Thus, the unnecessary switching actions and the unit start–stop in the dispatching plan can be avoided.
Table 3 shows the iteration time, convergence times, and accuracy (convergence error) of the three algorithms under different scales of models. The eight-bus model is the model proposed in Figure A3 in Appendix A, and the 33-bus model uses the topology structure of the standard IEEE-33-bus model, where each bus is an LSO load bus. The initialization method for the energy demand values of these LSOs is the same as that in Scenario II. Under the same model (eight-bus model), the performance of the Adam-based method is close to that of the D-PPDS algorithm, and it takes a long time to converge to the exact solution because ADMM cannot deal with the global inequality constraints with incomplete information. Given the centralized computing characteristics of the Adam-based method, the CPS needs data acquisition and parameter integration. Thus, the calculation time of the Adam-based method for a single iteration is longer than that of D-PPDS.
The comparison of the computing performance of the Adam-based method in the eight-bus model with that in the IEEE-33-bus model indicates that the single iteration time and the iteration times are almost unaffected by the system scale because each bus in the Adam-based method can grasp the global gradient information at any time and perform the convergence task together. However, the D-PPDS and ADMM algorithms need numerous iterations in large-scale systems to guarantee convergence. Compared with the eight-bus model, the IEEE-33-bus model has large-scale data, which effectively ensures the accuracy of the Adam-based method. Therefore, the Adam-based method proposed in this study can realize privacy protection and has good feasibility and high computational efficiency when solving IDR problems.

5. Discussion

The Adam algorithm is widely used in machine learning and has shown good training performance and convergence efficiency. The protection principle of Adam is to achieve global optimization by transmitting gradient information from sensitive data. This principle not only saves communication costs but also achieves good privacy protection. However, with the advancement in attack technology [33,34], selfish energy users (such as LSOs) are still unwilling to take risks to contribute their own private data without good economic incentives [35]. Therefore, subsequent research should quantify the privacy costs of energy users and study the economic incentive mechanism based on Adam to fully protect the privacy benefits of energy users.
In addition to the research on IDR, the future research on Adam can also be extended to the application of Adam in Digital Twin modeling, load forecasting, and fault recognition of electric power systems, thereby laying a good foundation for realizing global energy interconnection.

6. Conclusions

In this study, the advanced application of the Adam algorithm in distribution networks with multiple energy carriers was preliminarily explored. Based on the beneficial impact of multienergy coupling on the IDR cost in IESs, the Adam-based method proposed in this study was verified in IDR management. It shows better computing performance and computing effects than other mature distributed algorithms considering privacy preservation, such as ADMM. In addition, the Adam-based method only transmits gradient information. Thus, compared with other data protection methods, the Adam-based method can complete all the work with very minor data interactions. This feature also manifests the unlimited potential of the Adam algorithm in intelligent power distribution. Moreover, the first-order momentum and the second-order momentum used by the Adam algorithm can prevent the occurrence of unreasonable data, thereby accelerating the convergence speed and improving the convergence accuracy of IDR management. The Adam-based method is not sensitive to the system scale. Thus, it has a huge advantage when the demand-side coupling deepens and the scale and information complexity of the IES increase.

Author Contributions

Conceptualization, H.C.; investigation, H.C.; writing H.C.; editing, H.C.; methodology, Q.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Key R&D Program of China under Grant 2021YFB2401203.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviation

IESIntegrated energy system
CCHPCombined cooling, heating, and power
IDRIntegrated demand response
ADMMalternating direction method of multipliers
AdamAdaptive moment estimation
ISOIndependent system operator
LSOLocal system operator
FLFederated learning
D-PPDSdistributed perturbation primal–dual subgradient

Appendix A

Figure A1. Power distribution-side multienergy system.
Figure A1. Power distribution-side multienergy system.
Electronics 12 04731 g0a1
Figure A2. Total multienergy demand of LSOs in 1 day.
Figure A2. Total multienergy demand of LSOs in 1 day.
Electronics 12 04731 g0a2
Figure A3. Eight-bus model studied in Scenario III.
Figure A3. Eight-bus model studied in Scenario III.
Electronics 12 04731 g0a3
Table A1. Incentive parameters and power load response values of eight buses at a certain moment.
Table A1. Incentive parameters and power load response values of eight buses at a certain moment.
LSO Index i Δ L i e (MW) α (USD2/MW) β
18.520.9690
28.061.0088
38.010.9192
47.131.190
57.410.9294
66.310.9896
77.140.9792
87.671.198
Table A2. Electricity prices at different periods of the day.
Table A2. Electricity prices at different periods of the day.
Period (h)0–88–14, 17–19, 22–2414–17, 19–22
Electricity prices (USD/MWh)647179

References

  1. Zhou, S.Y.; Cai, G.W.; Yang, D.Y.; Wang, L.X. Ambient data-driven on-line evaluation method of power system small signal stability. Autom. Electr. Power Syst. 2022, 46, 94–100. [Google Scholar]
  2. Reihani, E.; Motalleb, M.; Thornton, M.; Ghorbani, R. A novel approach using flexible scheduling and aggregation to optimize demand response in the developing interactive grid market architecture. Appl. Energy 2016, 183, 445–455. [Google Scholar] [CrossRef]
  3. Mansour-Saatloo, A.; Agabalaye-Rahvar, M.; Mirzaei, M.A.; Mohammadi-Ivatloo, B.; Abapour, M.; Zare, K. Robust scheduling of hydrogen based smart micro energy hub with integrated demand response. J. Clean. Prod. 2020, 267, 122041. [Google Scholar] [CrossRef]
  4. He, L.; Lu, Z.; Geng, L.; Zhang, J.; Li, X.; Guo, X. Environmental economic dispatch of integrated regional energy system considering integrated demand response. Int. J. Electr. Power Energy Syst. 2020, 116, 105525. [Google Scholar] [CrossRef]
  5. Wang, J.; Zhong, H.; Ma, Z.; Xia, Q.; Kang, C. Review and prospect of integrated demand response in the multi-energy system. Appl. Energy 2017, 202, 772–782. [Google Scholar] [CrossRef]
  6. Chen, S.; Chen, Q.; Xu, Y. Strategic bidding and compensation mechanism for a load aggregator with direct thermostat control capabilities. IEEE Trans. Smart Grid 2016, 9, 2327–2336. [Google Scholar] [CrossRef]
  7. Peng, D.; Pei, W.; Xiao, H.; Yang, Y.; Tang, C. Data-driven Consumer Demand Response Behavior Modelization and Application. Power Syst. Technol. 2021, 45, 2577–2586. [Google Scholar]
  8. Kement, C.E.; Gultekin, H.; Tavli, B. A holistic analysis of privacy-aware smart grid demand response. IEEE Trans. Ind. Electron. 2020, 68, 7631–7641. [Google Scholar] [CrossRef]
  9. Gong, Y.; Cai, Y.; Guo, Y.; Fang, Y. A privacy-preserving scheme for incentive-based demand response in the smart grid. IEEE Trans. Smart Grid 2015, 7, 1304–1313. [Google Scholar] [CrossRef]
  10. Liang, Z.; Alsafasfeh, Q.; Jin, T.; Pourbabak, H.; Su, W. Risk-constrained optimal energy management for virtual power plants considering correlated demand response. IEEE Trans. Smart Grid 2017, 10, 1577–1587. [Google Scholar] [CrossRef]
  11. Zhang, C.; Xu, Y.; Li, Z.; Dong, Z.Y. Robustly coordinated operation of a multi-energy microgrid with flexible electric and thermal loads. IEEE Trans. Smart Grid 2018, 10, 2765–2775. [Google Scholar] [CrossRef]
  12. Wang, Z.; Lei, B.; Yang, L. Multi-objective double-step optimal dispatching of regional integrated energy system considering combined electric and heat demand response. Proc. CSU-EPSA 2021, 33, 120–127. [Google Scholar]
  13. Chen, L.; Tang, H.; Wu, J.; Li, C.; Wang, Y. A robust optimization framework for energy management of CCHP users with integrated demand response in electricity market. Int. J. Electr. Power Energy Syst. 2022, 141, 108181. [Google Scholar] [CrossRef]
  14. Saberi-Beglar, K.; Zare, K.; Seyedi, H.; Marzband, M.; Nojavan, S. Risk-embedded scheduling of a CCHP integrated with electric vehicle parking lot in a residential energy hub considering flexible thermal and electrical loads. Appl. Energy 2023, 329, 120265. [Google Scholar] [CrossRef]
  15. Yuan, Y.; Bai, Z.; Liu, Q.; Hu, W.; Zheng, B. Potential of applying the thermochemical recuperation in combined cooling, heating and power generation: Route of enhancing the operation flexibility. Appl. Energy 2021, 301, 117470. [Google Scholar] [CrossRef]
  16. Saberi, K.; Pashaei-Didani, H.; Nourollahi, R.; Zare, K.; Nojavan, S. Optimal performance of CCHP based microgrid considering environmental issue in the presence of real time demand response. Sustain. Cities Soc. 2019, 45, 596–606. [Google Scholar] [CrossRef]
  17. Duong, N.D.; Madhukumar, A.S.; Niyato, D. Stackelberg Bayesian game for power allocation in two-tier networks. IEEE Trans. Veh. Technol. 2015, 65, 2341–2354. [Google Scholar] [CrossRef]
  18. Xia, S.; Lin, F.; Chen, Z.; Tang, C.; Ma, Y.; Yu, X. A Bayesian game based vehicle-to-vehicle electricity trading scheme for blockchain-enabled internet of vehicles. IEEE Trans. Veh. Technol. 2020, 69, 6856–6868. [Google Scholar] [CrossRef]
  19. Rajaei, A.; Fattaheian-Dehkordi, S.; Fotuhi-Firuzabad, M.; Moeini-Aghtaie, M. Decentralized transactive energy management of multi-microgrid distribution systems based on ADMM. Int. J. Electr. Power Energy Syst. 2021, 132, 107126. [Google Scholar] [CrossRef]
  20. Yang, L.; Luo, J.; Xu, Y.; Zhang, Z.; Dong, Z. A distributed dual consensus ADMM based on partition for DC-DOPF with carbon emission trading. IEEE Trans. Ind. Inform. 2019, 16, 1858–1872. [Google Scholar] [CrossRef]
  21. Abapour, S.; Mohammadi-Ivatloo, B.; Hagh, M.T. A Bayesian game theoretic based bidding strategy for demand response aggregators in electricity markets. Sustain. Cities Soc. 2020, 54, 101787. [Google Scholar] [CrossRef]
  22. Liu, X.; Tang, D.; Dai, Z. A bayesian game approach for demand response management considering incomplete information. J. Mod. Power Syst. Clean Energy 2021, 10, 492–501. [Google Scholar] [CrossRef]
  23. Yuan, Z.P.; Li, P.; Li, Z.L.; Xia, J. Data-driven risk-adjusted robust energy management for microgrids integrating demand response aggregator and renewable energies. IEEE Trans. Smart Grid 2022, 14, 365–377. [Google Scholar] [CrossRef]
  24. Shi, Y.; Tuan, H.D.; Savkin, A.V.; Lin, C.-T.; Zhu, J.G.; Poor, H.V. Distributed model predictive control for joint coordination of demand response and optimal power flow with renewables in smart grid. Appl. Energy 2021, 290, 116701. [Google Scholar] [CrossRef]
  25. Chang, Z.; Zhang, Y.; Chen, W. Electricity price prediction based on hybrid model of adam optimized LSTM neural network and wavelet transform. Energy 2019, 187, 115804. [Google Scholar] [CrossRef]
  26. Duchi, J.; Hazan, E.; Singer, Y. Adaptive subgradient methods for online learning and stochastic optimization. J. Mach. Learn. Res. 2011, 12, 2121–2159. [Google Scholar]
  27. Tieleman, T.; Hinton, G. Lecture 6.5-rmsprop, coursera: Neural networks for machine learning. In Technical Report; University of Toronto: Toronto, ON, Canada, 2012; p. 6. [Google Scholar]
  28. Peng, Y.; Rios, A.; Kavuluru, R.; Lu, Z. Chemical-protein relation extraction with ensembles of SVM, CNN, and RNN models. arXiv 2018, arXiv:1802.01255. [Google Scholar]
  29. Chen, X.; Liu, S.; Sun, R.; Hong, M. On the convergence of a class of adam-type algorithms for non-convex optimization. arXiv 2018, arXiv:1808.02941. [Google Scholar]
  30. Jais, I.K.M.; Ismail, A.R.; Nisa, S.Q. Adam optimization algorithm for wide and deep neural network. Knowl. Eng. Data Sci. 2019, 2, 41–46. [Google Scholar] [CrossRef]
  31. Hao, R.; Lu, T.; Ai, Q.; He, H. Data-oriented distributed demand response optimization with global inequality constraints based on multi-agent system. Int. J. Electr. Power Energy Syst. 2021, 133, 107025. [Google Scholar] [CrossRef]
  32. Vesterlund, M.; Toffolo, A.; Dahl, J. Simulation and analysis of a meshed district heating network. Energy Convers. Manag. 2016, 122, 63–73. [Google Scholar] [CrossRef]
  33. Chen, C.; Lyu, L.; Yu, H.; Chen, G. Practical attribute reconstruction attack against federated learning. IEEE Trans. Big Data 2022, 14, 1–12. [Google Scholar] [CrossRef]
  34. Hu, H.; Salcic, Z.; Sun, L.; Dobbie, G.; Yu, P.S.; Zhang, X. Membership inference attacks on machine learning: A survey. ACM Comput. Surv. (CSUR) 2022, 54, 235. [Google Scholar] [CrossRef]
  35. Kairouz, P.; McMahan, H.B.; Avent, B.; Bellet, A.; Bennis, M.; Bhagoji, A.N.; Bonawitz, K.; Charles, Z.; Cormode, G.; Cummings, R.; et al. Advances and open problems in federated learning. Found. Trends® Mach. Learn. 2021, 14, 1–210. [Google Scholar] [CrossRef]
Figure 1. Operation mechanism of a typical FL operation mechanism.
Figure 1. Operation mechanism of a typical FL operation mechanism.
Electronics 12 04731 g001
Figure 2. Display of the cost convergence of each LSO.
Figure 2. Display of the cost convergence of each LSO.
Electronics 12 04731 g002
Figure 3. Display of the value convergence of ω 1 and ω 2 at each LSO.
Figure 3. Display of the value convergence of ω 1 and ω 2 at each LSO.
Electronics 12 04731 g003
Figure 4. Comparison of the heat supply under different coupling conditions.
Figure 4. Comparison of the heat supply under different coupling conditions.
Electronics 12 04731 g004
Figure 5. Comparison of multienergy load reduction and response cost under different demand response mechanisms.
Figure 5. Comparison of multienergy load reduction and response cost under different demand response mechanisms.
Electronics 12 04731 g005
Figure 6. Comparison of IDR cost under different methods.
Figure 6. Comparison of IDR cost under different methods.
Electronics 12 04731 g006
Table 1. Cooling, heating, and power load reduction values of eight buses at a certain moment.
Table 1. Cooling, heating, and power load reduction values of eight buses at a certain moment.
LSO Index i Δ L i , t ee (MW) Δ L i , t h (MW) Δ L i , t q (MW)
16.73−1.79−0.35
27.90−0.15−0.03
35.52−2.48−0.49
46.40−0.72−0.14
54.96−2.45−0.49
63.41−2.89−0.57
75.38−1.75−0.35
82.52−5.15−1.03
Table 2. Comparison of objective function values with and without demand-side coupling.
Table 2. Comparison of objective function values with and without demand-side coupling.
With Coupling (USD)Without Coupling (USD)Improvement (%)
Total cost: 4385.125351.7318%
Table 3. Comparison of computing performance between D-PPDS and Adam-based method under different system models.
Table 3. Comparison of computing performance between D-PPDS and Adam-based method under different system models.
MethodSingle Iteration Time (ms)Convergence
Iterations
Total Time
Spent (ms)
Convergence
Error (%)
D-PPDS
(8 buses)
4.83522510.65
ADMM
(8 buses)
6.27794950.93
Adam-based
(8 buses)
5.93462730.34–0.61
D-PPDS
(33 buses)
4.99763790.91
ADMM
(33 buses)
6.441016501.18
Adam-based
(33 buses)
5.94482850.23–0.55
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

Cheng, H.; Ai, Q. A Cost Optimization Method Based on Adam Algorithm for Integrated Demand Response. Electronics 2023, 12, 4731. https://doi.org/10.3390/electronics12234731

AMA Style

Cheng H, Ai Q. A Cost Optimization Method Based on Adam Algorithm for Integrated Demand Response. Electronics. 2023; 12(23):4731. https://doi.org/10.3390/electronics12234731

Chicago/Turabian Style

Cheng, Haoyuan, and Qian Ai. 2023. "A Cost Optimization Method Based on Adam Algorithm for Integrated Demand Response" Electronics 12, no. 23: 4731. https://doi.org/10.3390/electronics12234731

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