# Dynamic Combined Optimal Scheduling of Electric Energy and Natural Gas Energy Consumption in Data Center

Authors: Xuehui Liu; Guisheng Hou; Lei Yang
Journal: Discrete Dynamics in Nature and Society
 (2022)

---

## Abstract

Energy consumption is the key factor leading to high operating costs in data center. In this paper, considering the data center service level under the premise of using electricity and gas as energy supply of energy supply and energy consumption from two angles, the data center energy scheduling model is built. The lower model is calculation scheduling model for the data center, and the upper model is data center energy supply scheduling model. Then the particle swarm algorithm is used to simulate the schedule. The results show that using natural gas as supplementary energy supply can effectively reduce the overall energy consumption of data center in considering the service delay level of data center.


---

## Body

## 1. Introduction

The data center is the core foundation of applications such as cloud computing, blockchain, and Internet of Things (IoT). Due to its special nature of running 24 hours a day, its energy consumption is much higher than that of general commercial buildings. The problem of energy consumption has become an important factor hindering the development of data centers. The energy consumption of the data center includes the cooling system energy consumption, the servers and storage equipment energy consumption, the network equipment energy consumption, the power supply system energy consumption, and the lighting energy consumption mainly, the energy consumption of the cooling system accounts for about 50% of all the energy consumption. The energy sources of the cooling system of the data center mainly include electricity, natural gas, and solar energy. How to combine the service requirements of the data center to optimize the cooling system energy consumption dynamically can reduce the data centre’s energy consumption effectively.The cooling method of the data center is divided into two methods: air cooling and liquid cooling. The air cooling system of the data center uses air circulation and air conditioning technology to remove the heat generated by the data center. Zhang et al. expanded and developed the distributed airflow control model of the data center energy consumption model and applied to the distributed airflow control of the raised floor ventilation system and the vertical placed server, and it could reduce the cooling energy consumption of the traditional ventilation system significantly [1]. Yang et al. applied the free cooling mode to the data center air conditioning system to reduce the energy consumption [2], Ham et al. proposed a server model that could simulate the cooling energy consumption of the data center to determine the temperature difference between the server heat production, and it was proposed that when the supply air temperature of the computer room air handler is higher than 19°C, and the cooling energy consumption increases due to the increase of fan energy consumption [3].Combining cooling system energy consumption with data center services, configuration is the focus of current research. Zhou et al. considered the energy consumption of processing unit, memory, disks, and the network interface cards in the data center comprehensively, as well as the characteristics of the application, and the prediction accuracy of the model is over 95% [4]. Nehra and Nagaraju built models of different resources or hardware used in data centers to analyze their energy consumption to develop sustainable data centers [5]. Pop et al. mapped particle locations onto data center configurations and used a fitness function that took the server hardware resources and the data center cooling system energy consumption as the evaluation criteria [6]. Mursleen and Kothyari proposed a new energy-saving algorithm to build data center asset allocation technology effectively, obtained the balance between the energy consumption and performance of the data center, and reduced energy consumption without affecting the performance of the data center [7]. Xu et al. utilized finite Markov decision processes (MDP) to optimize the use of renewable energy in data centers by dynamically shutting down nonenforced microservices and executed on workloads according to user preferences and brown energy consumption [8]. Cho and Jinkyun proposed a data center energy flow and baseline method based on IT loading, systematically proposed the formulation of the data center energy structure, and found that equipment energy efficiency was the key to energy saving [9, 10]. Conterato et al. defined the flow path according to the traffic bandwidth requirements and adjusted the operation status of the data center network equipment according to the flow path to reduce the network equipment consumption [11]. Considering both physical machines (PM) and virtual machines (VM), Chou et al. proposed a dynamic energy resource allocation mechanism for data centers based on the particle swarm algorithm to solve the problem of the air conditioner energy efficiency ratio [12]. Based on the multiresource energy-saving allocation model and the particle swarm optimization method, Xiong and Xu proposed the fitness function of the particle swarm algorithm as the total European Distance to determine the optimal point between data center resource manipulation and energy consumption [13]. Luo et al. proposed a multiobjective particle swarm optimization algorithm, which took the physical resource manipulation and link loss rate as the optimization goal, and took the tenant’s business reliability and the quality of service as constraint condition to reduce the waste of physical resources and link resources, thereby reduced the data center energy consumption [14]. In order to solve the problem that traditional data center energy consumption modeling methods were limited to dealing with the randomness, burstiness and interdependence of energy systems, Wang et al. proposed and implemented an agent-based approach of power consumption in data centers, it shown that operate the cooling load according to the practical load of the servers dynamically could save 13% of the total energy consumption [15].In data center energy scheduling research, Fernández-Cerero et al. evaluated the natural DEA and constant return to scale (CRS) of data center energy consumption and performance metrics to determine optimal energy sources policies and scheduling strategies for high and low data center demand as well as medium and large data centers [16]. Santiago and Sergio constructed a multitarget data center energy consumption scheduling method for traditional energy and green energy data sources by scheduling the status of servers, cooling equipment, and data center workload simultaneously [17]. Renewable energy sources such as solar energy and wind energy have been considered for data center, and two improvements to small and medium-sized data center based on opportunistic scheduling and reliance on energy storage devices had been considered [18]. It was believed that the low server utilization rate caused by the resource scheduling mechanism with the completion time as the priority and the excessive cooling supply caused by the data center cooling system based on the peak strategy were the main reasons for the increase in the data center energy consumption, and artificial intelligence could be used to construct an energy consumption control scheduling framework aiming at reducing energy consumption [19]. Kumar proposed to use the dynamic voltage frequency scheduling (DVFS) scheme to assign task to virtual machines and extended data center energy efficient network aware scheduling through point-to-point load balancers to reduce network energy consumption [20].Through literature review, it can be found that the combination of energy consumption level and service capability is the entry point of current research, and particle swarm optimization is an effective method for energy consumption scheduling in data centers. Considering that the data center’s service level is guaranteed, the data center energy consumption is analyzed from the two levels of system operation cost and data load power consumption hierarchically. Therefore, this paper proposes a dual-objective scheduling model of data center energy consumption considering the supply of natural gas and electricity. The particle swarm optimization algorithm is used to solve the model and the simulation is carried out. The results show that use of electricity as main energy which is supplemented by natural gas energy that can reduce the data center overall energy consumption effectively on the premise of ensuring the service level of the data center.


## 2. Data Center Energy Hub Equipment Model

### 2.1. Gas Turbine

The relationship between the input gas power and the output electric power of the gas turbine is shown in formula (1)(1)PGT=λGGT.In the formula,GGT and PGT are the input gas power and output electric power of the gas turbine, and λ is the energy conversion efficiency [21].


### 2.2. Absorption Refrigeration Unit

The lithium bromide absorption refrigeration unit is driven by the waste heat generated by the gas turbine, and the mathematical model is(2)CGC=η⋅QGT⋅ξ.CGC is the refrigerating capacity of lithium bromide absorption refrigerator; η is the waste heat recovery rate, which is related to room temperature, and its value is 0.55 at room temperature; ξ is the cooling coefficient of the unit; QGT is the waste heat generated by the gas turbine, and its value can be expressed as(3)QGT=PGT1−λ−λ1λλ1 is the heat dissipation loss coefficient of the gas turbine, and a fixed value of λ1=0.03 is often taken [22]. The electric refrigerator drives the compressor to work and cools by consuming electric energy, and its mathematical model is(4)CEC=γPEC.CEC is the electric refrigerator output cooling power; PEC is the electric refrigerator input electric power; and γ is the energy conversion efficiency [22].


## 2.1. Gas Turbine

The relationship between the input gas power and the output electric power of the gas turbine is shown in formula (1)(1)PGT=λGGT.In the formula,GGT and PGT are the input gas power and output electric power of the gas turbine, and λ is the energy conversion efficiency [21].


## 2.2. Absorption Refrigeration Unit

The lithium bromide absorption refrigeration unit is driven by the waste heat generated by the gas turbine, and the mathematical model is(2)CGC=η⋅QGT⋅ξ.CGC is the refrigerating capacity of lithium bromide absorption refrigerator; η is the waste heat recovery rate, which is related to room temperature, and its value is 0.55 at room temperature; ξ is the cooling coefficient of the unit; QGT is the waste heat generated by the gas turbine, and its value can be expressed as(3)QGT=PGT1−λ−λ1λλ1 is the heat dissipation loss coefficient of the gas turbine, and a fixed value of λ1=0.03 is often taken [22]. The electric refrigerator drives the compressor to work and cools by consuming electric energy, and its mathematical model is(4)CEC=γPEC.CEC is the electric refrigerator output cooling power; PEC is the electric refrigerator input electric power; and γ is the energy conversion efficiency [22].


## 3. Data Center Power Consumption Model

The power consumption of a data center is linearly related to the number of active servers in it, as shown in formula (5)(5)ei,t=kmi,t+β∀i∈I,t∈T.In this formula,T is the set of time nodes; I is the set of data centers; ei,t is the power consumption of data center i at time t; k and β are parameters representing the relationship between data center power consumption and active servers, respectively; mi,t is the number of active servers in data center i at time t [23], and it satisfies the following formula(6)mi,t=0,1,…,Mi.Mi is the total number of servers in the data center.The server is a device that processes data load. The time delay of data processing is related to the average service rate and number of servers. The model can be expressed as(7)0<1μ−Li,t/mi,t≤D.μ is the average service rate of active servers; Li,t is the total data load allocated to data center i at time t; and D is the settable upper limit of the time delay of data center processing data load.After sorting out the above formula, the power consumption model of the data center is(8)ei,t=kmi,t+β,mi,t≥Li,tμ−1/D,0≤mi,t≤Mi,mi,t∈N∗.Although the number of active serversmi,t is a positive integer that varies in units, compared with the total number of servers with a very large value, mi,t can be regarded as a continuous variable in the simulation analysis. Combining terms 1 and 2 of formula (8), we can get(9)μ−1/Dkei,t−β≥Li,t.Combining items 1 and 3 of formula (8), we can get(10)β≤ei,t≤kMi,t+β.So the formula (9) and (10) are the power consumption model of the data center.


## 4. Dual-Objective Economic Dispatch Model for Data Center

### 4.1. Upper-Layer Scheduling Model

#### 4.1.1. Objective Function

The objective function of the upper model in the data center energy hub optimization scheduling model is to minimize the system operation cost including the energy purchase cost and the unit operation and maintenance cost. The objective function is(11)minC=cte⋅PtL+ctg⋅GtL+εtGT⋅PtGT+εtGC⋅CtGC+εtEC⋅CtEC.PtL and GtL are the electric power and natural gas power purchased, respectively; cte and ctg are the unit power price of purchased electricity and natural gas; PtGT, CtGC, and CtEC are the electric power output by the gas turbine, the cooling power output by the absorption chiller, and the cooling power output by the electric chiller; εtGT, εtGC, and εtEC are the gas turbine, operation, and maintenance costs of absorption chillers and electric chillers.


#### 4.1.2. Constraints

(1)
System operating power balance constraints(12)PtL+PtGT+PtW+PtPV+PtES=QtE+PtEC,CtGC+CtEC+CtCS=QtC.In the formula,QtE and QtC are the electrical load and cooling load demand, and the electrical load includes the basic electrical load and data load.(2)
Unit output constraints(13)Pt,minGT≤PtGT≤Pt,maxGT,Ct,minGC≤CtGC≤Ct,maxGC,Ct,minEC≤CtEC≤Ct,maxEC,Pi,t,min≤Pi,t≤Pi,t,max.In the formula,Pt,maxGT and Pt,minGT are the upper and lower output limits of the gas turbine; Ct,maxGC and Ct,minGC are the upper and lower output limits of the absorption chiller; Ct,maxEC and Ct,minEC are the upper and lower output limits of the electric chiller; and Pi,t,max and Pi,t,min are the upper and lower limits of the generator output of subdata center i.


### 4.2. Lower-Level Scheduling Model

#### 4.2.1. Objective Function

The objective function of the lower model is that the data center allocates the data load with the smallest total power consumption and the smallest total delay time of data processing(14)minD=ω1⋅∑i∈Iei,t+ω2⋅∑i∈ILi,tμ−Li,t/mi,t.In the formula,ω1 and ω2 are the weight coefficients of the two targets.


#### 4.2.2. Constraints

The constraints of the lower model include the number of servers in the data center and the delay constraints. For specific formulas, it can refer to formula (8)–(10).


### 4.3. Solution Method

According to the characteristics of the model, the particle swarm optimization algorithm is used to solve the dual-objective scheduling model. Like most swarm intelligence optimization algorithms, this algorithm usually initializes a set of solutions (particles) in a random way and then updates these solutions through iterations continuously. The entire population is adjusted to a better fitness value as a whole, and finally, it is expected that the optimal solution to the problem can be found within a limited number of iteration steps.


#### 4.3.1. Data Center Energy Scheduling Process

In this paper, the algorithm is run on the MATLAB-YALMIP platform to solve the dual-objective model. Combined with the previous model construction, the data center energy scheduling process is described as following.Step 1.
The user puts forward data service requirements to the data center, including data processing volume, response time, data transmission speed, and maximum delay time.Step 2.
According to user requirements, the data center calculates a demand configuration scheme according to the data center virtual machine occupation, virtual machine distribution, data center energy consumption cost, and data center maintenance cost.Step 3.
Based on the user’s type and service demand preference, data center provides the user with a corresponding service plan, including response time, transmission speed, delay time, and service fee.Step 4.
Calculate the schedulable virtual machine resources and cooling energy consumption resources in this period according to the service demand parameters of each user, and input the energy scheduling model of the data center.Step 5.
The upper model aims to minimize the operating cost of the data center system and formulate a load scheduling plan for the lower model.Step 6.
The lower-layer model aims to minimize the total power consumption of the data load and minimize the total delay time of data processing. Considering the user’s data service requirements and the load distribution of the virtual machine in the data center, formulate the performance of this layer’s consumption requirements and upload to the upper model.Step 7.
After the upper-layer model receives the virtual machine scheduling strategy formulated by the lower-layer model, it ensures that the energy consumption strategy required by the lower-layer service and the upper-layer energy consumption scheduling plan have the smallest deviation. After several iterations, the data center energy supply scheduling plan is output when the result meets the requirements.


#### 4.3.2. Scheduling Model Pseudo Code

(1)
Algorithm input: number of particlesM1, M2, N1, N2, maximum number of iterations T, inertia weight ω1, acceleration factor C1, C2(2)
Algorithm output: global optimal positionGt, Ht, DGt, CHt(3)
Xi=ei,Li,mi, randomly generate initialization position Xi0, speed Vi0, Yi=PtL,GtL,PtGT,CtGT,CtET, randomly generate initialization position Yi0, speed Ui0, set the particle best position Pibest=Xi0, Oibest=Yi0(4)
n=0(5)
whilen<T(6)
fori=1 to M1 do(7)
forj=1 to M2 do(8)
CalculateVi,n+1j according to Vi,n+1j=wVi,nj+c1ri,njPi,nj−Xi,nj+c2Ri,njGnj−Xi,nj(9)
if−Vmaxj<Vi,n+1j<Vmaxj(10)
CalculateXi,n+1j=Xi,nj+Vi,n+1j(11)
end for(12)
CalculateDXi(13)
ifDPi,n<DXi,n+1(14)
Pi,n+1=Pi,n(15)
else(16)
Pi,n+1=Xi,n+1(17)
Calculate the data center energy consumption byei(18)
fork=1 to N1 do(19)
forl=1 to N2 doCalculateUi,n+1j according to Ui,n+1j=wUi,nj+c1ri,njQi,nj−Yi,nj+c2Ri,njHnj−Yi,nj(20)
if−Umaxj<Ui,n+1j<Umaxj(21)
CalculateYi,n+1j=Yi,nj+Ui,n+1j(22)
end for(23)
CalculateCYi(24)
ifCQi,n<CYi,n+1(25)
Qi,n+1=Qi,n(26)
else(27)
Qi,n+1=Yi,n+1(28)
end for(29)
end for(30)
Find the best fromQi,n+1 as Hn+1, calculate CHt(31)
n=n+1(32)
end while


## 4.1. Upper-Layer Scheduling Model

### 4.1.1. Objective Function

The objective function of the upper model in the data center energy hub optimization scheduling model is to minimize the system operation cost including the energy purchase cost and the unit operation and maintenance cost. The objective function is(11)minC=cte⋅PtL+ctg⋅GtL+εtGT⋅PtGT+εtGC⋅CtGC+εtEC⋅CtEC.PtL and GtL are the electric power and natural gas power purchased, respectively; cte and ctg are the unit power price of purchased electricity and natural gas; PtGT, CtGC, and CtEC are the electric power output by the gas turbine, the cooling power output by the absorption chiller, and the cooling power output by the electric chiller; εtGT, εtGC, and εtEC are the gas turbine, operation, and maintenance costs of absorption chillers and electric chillers.


### 4.1.2. Constraints

(1)
System operating power balance constraints(12)PtL+PtGT+PtW+PtPV+PtES=QtE+PtEC,CtGC+CtEC+CtCS=QtC.In the formula,QtE and QtC are the electrical load and cooling load demand, and the electrical load includes the basic electrical load and data load.(2)
Unit output constraints(13)Pt,minGT≤PtGT≤Pt,maxGT,Ct,minGC≤CtGC≤Ct,maxGC,Ct,minEC≤CtEC≤Ct,maxEC,Pi,t,min≤Pi,t≤Pi,t,max.In the formula,Pt,maxGT and Pt,minGT are the upper and lower output limits of the gas turbine; Ct,maxGC and Ct,minGC are the upper and lower output limits of the absorption chiller; Ct,maxEC and Ct,minEC are the upper and lower output limits of the electric chiller; and Pi,t,max and Pi,t,min are the upper and lower limits of the generator output of subdata center i.


## 4.1.1. Objective Function

The objective function of the upper model in the data center energy hub optimization scheduling model is to minimize the system operation cost including the energy purchase cost and the unit operation and maintenance cost. The objective function is(11)minC=cte⋅PtL+ctg⋅GtL+εtGT⋅PtGT+εtGC⋅CtGC+εtEC⋅CtEC.PtL and GtL are the electric power and natural gas power purchased, respectively; cte and ctg are the unit power price of purchased electricity and natural gas; PtGT, CtGC, and CtEC are the electric power output by the gas turbine, the cooling power output by the absorption chiller, and the cooling power output by the electric chiller; εtGT, εtGC, and εtEC are the gas turbine, operation, and maintenance costs of absorption chillers and electric chillers.


## 4.1.2. Constraints

(1)
System operating power balance constraints(12)PtL+PtGT+PtW+PtPV+PtES=QtE+PtEC,CtGC+CtEC+CtCS=QtC.In the formula,QtE and QtC are the electrical load and cooling load demand, and the electrical load includes the basic electrical load and data load.(2)
Unit output constraints(13)Pt,minGT≤PtGT≤Pt,maxGT,Ct,minGC≤CtGC≤Ct,maxGC,Ct,minEC≤CtEC≤Ct,maxEC,Pi,t,min≤Pi,t≤Pi,t,max.In the formula,Pt,maxGT and Pt,minGT are the upper and lower output limits of the gas turbine; Ct,maxGC and Ct,minGC are the upper and lower output limits of the absorption chiller; Ct,maxEC and Ct,minEC are the upper and lower output limits of the electric chiller; and Pi,t,max and Pi,t,min are the upper and lower limits of the generator output of subdata center i.


## 4.2. Lower-Level Scheduling Model

### 4.2.1. Objective Function

The objective function of the lower model is that the data center allocates the data load with the smallest total power consumption and the smallest total delay time of data processing(14)minD=ω1⋅∑i∈Iei,t+ω2⋅∑i∈ILi,tμ−Li,t/mi,t.In the formula,ω1 and ω2 are the weight coefficients of the two targets.


### 4.2.2. Constraints

The constraints of the lower model include the number of servers in the data center and the delay constraints. For specific formulas, it can refer to formula (8)–(10).


## 4.2.1. Objective Function

The objective function of the lower model is that the data center allocates the data load with the smallest total power consumption and the smallest total delay time of data processing(14)minD=ω1⋅∑i∈Iei,t+ω2⋅∑i∈ILi,tμ−Li,t/mi,t.In the formula,ω1 and ω2 are the weight coefficients of the two targets.


## 4.2.2. Constraints

The constraints of the lower model include the number of servers in the data center and the delay constraints. For specific formulas, it can refer to formula (8)–(10).


## 4.3. Solution Method

According to the characteristics of the model, the particle swarm optimization algorithm is used to solve the dual-objective scheduling model. Like most swarm intelligence optimization algorithms, this algorithm usually initializes a set of solutions (particles) in a random way and then updates these solutions through iterations continuously. The entire population is adjusted to a better fitness value as a whole, and finally, it is expected that the optimal solution to the problem can be found within a limited number of iteration steps.


### 4.3.1. Data Center Energy Scheduling Process

In this paper, the algorithm is run on the MATLAB-YALMIP platform to solve the dual-objective model. Combined with the previous model construction, the data center energy scheduling process is described as following.Step 1.
The user puts forward data service requirements to the data center, including data processing volume, response time, data transmission speed, and maximum delay time.Step 2.
According to user requirements, the data center calculates a demand configuration scheme according to the data center virtual machine occupation, virtual machine distribution, data center energy consumption cost, and data center maintenance cost.Step 3.
Based on the user’s type and service demand preference, data center provides the user with a corresponding service plan, including response time, transmission speed, delay time, and service fee.Step 4.
Calculate the schedulable virtual machine resources and cooling energy consumption resources in this period according to the service demand parameters of each user, and input the energy scheduling model of the data center.Step 5.
The upper model aims to minimize the operating cost of the data center system and formulate a load scheduling plan for the lower model.Step 6.
The lower-layer model aims to minimize the total power consumption of the data load and minimize the total delay time of data processing. Considering the user’s data service requirements and the load distribution of the virtual machine in the data center, formulate the performance of this layer’s consumption requirements and upload to the upper model.Step 7.
After the upper-layer model receives the virtual machine scheduling strategy formulated by the lower-layer model, it ensures that the energy consumption strategy required by the lower-layer service and the upper-layer energy consumption scheduling plan have the smallest deviation. After several iterations, the data center energy supply scheduling plan is output when the result meets the requirements.


### 4.3.2. Scheduling Model Pseudo Code

(1)
Algorithm input: number of particlesM1, M2, N1, N2, maximum number of iterations T, inertia weight ω1, acceleration factor C1, C2(2)
Algorithm output: global optimal positionGt, Ht, DGt, CHt(3)
Xi=ei,Li,mi, randomly generate initialization position Xi0, speed Vi0, Yi=PtL,GtL,PtGT,CtGT,CtET, randomly generate initialization position Yi0, speed Ui0, set the particle best position Pibest=Xi0, Oibest=Yi0(4)
n=0(5)
whilen<T(6)
fori=1 to M1 do(7)
forj=1 to M2 do(8)
CalculateVi,n+1j according to Vi,n+1j=wVi,nj+c1ri,njPi,nj−Xi,nj+c2Ri,njGnj−Xi,nj(9)
if−Vmaxj<Vi,n+1j<Vmaxj(10)
CalculateXi,n+1j=Xi,nj+Vi,n+1j(11)
end for(12)
CalculateDXi(13)
ifDPi,n<DXi,n+1(14)
Pi,n+1=Pi,n(15)
else(16)
Pi,n+1=Xi,n+1(17)
Calculate the data center energy consumption byei(18)
fork=1 to N1 do(19)
forl=1 to N2 doCalculateUi,n+1j according to Ui,n+1j=wUi,nj+c1ri,njQi,nj−Yi,nj+c2Ri,njHnj−Yi,nj(20)
if−Umaxj<Ui,n+1j<Umaxj(21)
CalculateYi,n+1j=Yi,nj+Ui,n+1j(22)
end for(23)
CalculateCYi(24)
ifCQi,n<CYi,n+1(25)
Qi,n+1=Qi,n(26)
else(27)
Qi,n+1=Yi,n+1(28)
end for(29)
end for(30)
Find the best fromQi,n+1 as Hn+1, calculate CHt(31)
n=n+1(32)
end while


## 4.3.1. Data Center Energy Scheduling Process

In this paper, the algorithm is run on the MATLAB-YALMIP platform to solve the dual-objective model. Combined with the previous model construction, the data center energy scheduling process is described as following.Step 1.
The user puts forward data service requirements to the data center, including data processing volume, response time, data transmission speed, and maximum delay time.Step 2.
According to user requirements, the data center calculates a demand configuration scheme according to the data center virtual machine occupation, virtual machine distribution, data center energy consumption cost, and data center maintenance cost.Step 3.
Based on the user’s type and service demand preference, data center provides the user with a corresponding service plan, including response time, transmission speed, delay time, and service fee.Step 4.
Calculate the schedulable virtual machine resources and cooling energy consumption resources in this period according to the service demand parameters of each user, and input the energy scheduling model of the data center.Step 5.
The upper model aims to minimize the operating cost of the data center system and formulate a load scheduling plan for the lower model.Step 6.
The lower-layer model aims to minimize the total power consumption of the data load and minimize the total delay time of data processing. Considering the user’s data service requirements and the load distribution of the virtual machine in the data center, formulate the performance of this layer’s consumption requirements and upload to the upper model.Step 7.
After the upper-layer model receives the virtual machine scheduling strategy formulated by the lower-layer model, it ensures that the energy consumption strategy required by the lower-layer service and the upper-layer energy consumption scheduling plan have the smallest deviation. After several iterations, the data center energy supply scheduling plan is output when the result meets the requirements.


## 4.3.2. Scheduling Model Pseudo Code

(1)
Algorithm input: number of particlesM1, M2, N1, N2, maximum number of iterations T, inertia weight ω1, acceleration factor C1, C2(2)
Algorithm output: global optimal positionGt, Ht, DGt, CHt(3)
Xi=ei,Li,mi, randomly generate initialization position Xi0, speed Vi0, Yi=PtL,GtL,PtGT,CtGT,CtET, randomly generate initialization position Yi0, speed Ui0, set the particle best position Pibest=Xi0, Oibest=Yi0(4)
n=0(5)
whilen<T(6)
fori=1 to M1 do(7)
forj=1 to M2 do(8)
CalculateVi,n+1j according to Vi,n+1j=wVi,nj+c1ri,njPi,nj−Xi,nj+c2Ri,njGnj−Xi,nj(9)
if−Vmaxj<Vi,n+1j<Vmaxj(10)
CalculateXi,n+1j=Xi,nj+Vi,n+1j(11)
end for(12)
CalculateDXi(13)
ifDPi,n<DXi,n+1(14)
Pi,n+1=Pi,n(15)
else(16)
Pi,n+1=Xi,n+1(17)
Calculate the data center energy consumption byei(18)
fork=1 to N1 do(19)
forl=1 to N2 doCalculateUi,n+1j according to Ui,n+1j=wUi,nj+c1ri,njQi,nj−Yi,nj+c2Ri,njHnj−Yi,nj(20)
if−Umaxj<Ui,n+1j<Umaxj(21)
CalculateYi,n+1j=Yi,nj+Ui,n+1j(22)
end for(23)
CalculateCYi(24)
ifCQi,n<CYi,n+1(25)
Qi,n+1=Qi,n(26)
else(27)
Qi,n+1=Yi,n+1(28)
end for(29)
end for(30)
Find the best fromQi,n+1 as Hn+1, calculate CHt(31)
n=n+1(32)
end while


## 5. Example Simulation

### 5.1. Example Parameters

In order to verify the validity of the model proposed, an energy hub of a data center is selected as a simulation example. The scheduling period is 24 hours a day, and the components included in the example are those described in the model. The basic electrical load (the electrical load consumed by the servers in the three service centers is not included) and the cooling load are shown in Table1.Table 1
Basic electrical load and cooling load.
TimeBasic electric load (kW)Cooling load (kW)0341.2512001325.7811922451.6911773341.9611654349.6811765485.4411896509.3812507418.0613108293.3614099471.67156710402.64165211506.57167912356.64167713495.21167914423.12166515373.89165216319.42157417300.15152118415.21137919527.52130020524.12129721493.13129622326.46126323489.51260Among them, the data load of the data center is a random value between 60000 and 100000, and the power load consumed by the server varies according to the data load allocated by the service center. The data load lower-limit value of 60000 and the data load upper-limit value of 100000 are adjustable values, and the upper-limit value and lower-limit value of each moment can be different. The operating parameters of the equipment are shown in Table2.Table 2
Equipment operating parameters.
EquipmentEfficiencyCost (RMB/kW)Output range (kW)Gas turbine0.40.041[0, 1700]Lithium bromide absorption chiller0.950.035[0, 1300]Electric refrigerator30.050[0, 500]The energy purchase price is shown in Table3.Table 3
Energy purchase prices.
CategoryPeriodPrice (Yuan/kWh)ElectricityPeak hours09 : 00–20 : 001.112Normal period05 : 00–09 : 000.667Valley period00 : 00–05 : 000.322Natural gasPeak hours08 : 00–24 : 000.428Valley period00 : 00–08 : 000.162The relevant parameters of the data center are shown in Table4:Table 4
Data centers′ parameters.
ParameterData center oneData center twoData center threeData load capacity (unit)[0, 45000][0, 45000][0, 45000]Β (kW)100150200Mi (unit)150015001500K (kW/unit)0.30.30.3μ (unit/s)303030Db (ms)200150100In the example analysis, the 24-hour simulated data load values randomly generated are shown in Table5.Table 5
Simulated data load.
TimeData load (unit)07807517822226583137530447503256355666446277739489166497493310820361171943128713613723791479288158631116920581794185188137919689482069188217218722881542371250


### 5.2. Example Simulation

(1) After the example simulation, the data load distribution of each data center and the number of servers used are shown in Table6.Table 6
Data center load and server allocation.
Time (h)Data center oneData center twoData center three027380/109527733/118922962/1148133516/134126747/114617959/898228347/113426843/115110641/533327788/111226065/112021451/1076426750/107027713/118820569/1028527562/110226134/11209860/493627809/111328094/12058559/513732410/129626653/114218331/917831870/127533218/142526576/1330927891/111625986/111421056/10531033195/135626359/113522482/11241127348/109428961/124115634/10091231200/124830628/131325307/12651328830/115327198/116616352/8181426699/106827324/117125265/12631535298/141228185/120822829/11411634315/137331979/137125764/12881734073/144334792/149125320/13021829011/116026270/112626098/13051927992/112027396/117413560/10982030765/123127493/117810930/5472125997/104026649/114219542/9772234234/137030647/131323273/11642326615/106526292/112718343/917The data before and after “/” in the table are the data load amount allocated by each data center and the number of servers used.Figures1–3 show values of purchased electricity, gas power, output of various energy conversion equipment, and energy storage devices.Figure 1
Situation of purchase electric power and gas power.Figure 2
Output of each energy conversion equipment.Figure 3
Output of electricity storage and cooling storage equipment.After calculation, the total cost of the data center energy hub system operation is 37,618.22 yuan, compared with using electricity alone, the overall energy consumption decreased by 10.2%.


## 5.1. Example Parameters

In order to verify the validity of the model proposed, an energy hub of a data center is selected as a simulation example. The scheduling period is 24 hours a day, and the components included in the example are those described in the model. The basic electrical load (the electrical load consumed by the servers in the three service centers is not included) and the cooling load are shown in Table1.Table 1
Basic electrical load and cooling load.
TimeBasic electric load (kW)Cooling load (kW)0341.2512001325.7811922451.6911773341.9611654349.6811765485.4411896509.3812507418.0613108293.3614099471.67156710402.64165211506.57167912356.64167713495.21167914423.12166515373.89165216319.42157417300.15152118415.21137919527.52130020524.12129721493.13129622326.46126323489.51260Among them, the data load of the data center is a random value between 60000 and 100000, and the power load consumed by the server varies according to the data load allocated by the service center. The data load lower-limit value of 60000 and the data load upper-limit value of 100000 are adjustable values, and the upper-limit value and lower-limit value of each moment can be different. The operating parameters of the equipment are shown in Table2.Table 2
Equipment operating parameters.
EquipmentEfficiencyCost (RMB/kW)Output range (kW)Gas turbine0.40.041[0, 1700]Lithium bromide absorption chiller0.950.035[0, 1300]Electric refrigerator30.050[0, 500]The energy purchase price is shown in Table3.Table 3
Energy purchase prices.
CategoryPeriodPrice (Yuan/kWh)ElectricityPeak hours09 : 00–20 : 001.112Normal period05 : 00–09 : 000.667Valley period00 : 00–05 : 000.322Natural gasPeak hours08 : 00–24 : 000.428Valley period00 : 00–08 : 000.162The relevant parameters of the data center are shown in Table4:Table 4
Data centers′ parameters.
ParameterData center oneData center twoData center threeData load capacity (unit)[0, 45000][0, 45000][0, 45000]Β (kW)100150200Mi (unit)150015001500K (kW/unit)0.30.30.3μ (unit/s)303030Db (ms)200150100In the example analysis, the 24-hour simulated data load values randomly generated are shown in Table5.Table 5
Simulated data load.
TimeData load (unit)07807517822226583137530447503256355666446277739489166497493310820361171943128713613723791479288158631116920581794185188137919689482069188217218722881542371250


## 5.2. Example Simulation

(1) After the example simulation, the data load distribution of each data center and the number of servers used are shown in Table6.Table 6
Data center load and server allocation.
Time (h)Data center oneData center twoData center three027380/109527733/118922962/1148133516/134126747/114617959/898228347/113426843/115110641/533327788/111226065/112021451/1076426750/107027713/118820569/1028527562/110226134/11209860/493627809/111328094/12058559/513732410/129626653/114218331/917831870/127533218/142526576/1330927891/111625986/111421056/10531033195/135626359/113522482/11241127348/109428961/124115634/10091231200/124830628/131325307/12651328830/115327198/116616352/8181426699/106827324/117125265/12631535298/141228185/120822829/11411634315/137331979/137125764/12881734073/144334792/149125320/13021829011/116026270/112626098/13051927992/112027396/117413560/10982030765/123127493/117810930/5472125997/104026649/114219542/9772234234/137030647/131323273/11642326615/106526292/112718343/917The data before and after “/” in the table are the data load amount allocated by each data center and the number of servers used.Figures1–3 show values of purchased electricity, gas power, output of various energy conversion equipment, and energy storage devices.Figure 1
Situation of purchase electric power and gas power.Figure 2
Output of each energy conversion equipment.Figure 3
Output of electricity storage and cooling storage equipment.After calculation, the total cost of the data center energy hub system operation is 37,618.22 yuan, compared with using electricity alone, the overall energy consumption decreased by 10.2%.


## 6. Conclusion

As the scale and complexity of data center increases, their resource consumption is also increasing, and energy consumption optimization of data centers is an important and challenging research topic. In the process of data center operation, it is first necessary to ensure that the service delay speed of the data center is within an acceptable range to ensure the response speed and service level, and at the same time, it is necessary to minimize its operating cost and environmental impact. Existing researches are mostly analyzed from the perspective of energy consumption, and less consideration is given to the perspective of energy supply under the condition of ensuring the service level of the data center. A dual-objective data center energy consumption scheduling method considering electric energy and natural gas energy is proposed. Under the constraints of system operating power balance, unit output, server number, and delay, a dual-objective model is constructed. The objective function of the upper model is to minimize the system operating cost, and the objective function of the lower model is to allocate the total data load to each data center. Minimal power consumption and minimal overall latency for data processing. The particle swarm optimization algorithm is used to solve the dual-objective scheduling model, the corresponding flow chart and pseudocode are given, and simulation is carried out with MATLAB. The results show that under a certain service level, using electricity as the main component and natural gas as a supplement can reduce the overall energy consumption of the data center compared to simply using electricity.The research on energy management of data center focuses more on the utilization and scheduling of the same kind of energy, but less on the energy efficiency under the consideration of task allocation, energy price, and efficiency output. The main contribution of this paper is to build a data center energy scheduling model, and considered usage of variety of different types of energy and mechanical efficiency of data center energy consumption problems at the same time, and it can provide a tentative exploration for follow-up study. The future research can focus on the energy consumption of data center under the condition of heterogeneous task, service requirements such as level of response and energy price fluctuation.



---

*Source: 3917170-2022-07-07.xml*