Abstract
With the continuous development of information technology, data centers (DCs) consume significant and ever-growing amounts of electrical energy. Renewable energy sources (RESs) can act as clean solutions to meet this requirement without polluting the environment. Each DC serves numerous users for their data service demands, which are regarded as flexible loads. In this paper, the willingness to pay and time sensitivities of DC users are firstly explored, and the user-side demand response is then devised to improve the overall benefits of DC operation. Then, a Stackelberg game between a DC and its users is proposed. The upper-level model aims to maximize the profit of the DC, in which the time-varying pricing of data services is optimized, and the lower-level model addresses user
’s optimal decisions for using data services while balancing their time and cost requirements. The original bi-level optimization problem is then transformed into a single-level problem using the Karush-Kuhn-Tucker optimality conditions and strong duality theory, which enables the problem to be solved efficiently. Finally, case studies are conducted to demonstrate the feasibility and effectiveness of the proposed method, as well as the effects of the time-varying data service price mechanism on the RES accommodation.
WITH the rapid technological development of renewable energy power generation, economic and efficient means of consuming renewable energy sources (RESs) have become the focuses of both academy and industry [
With recent advances in information technology and the development of the Internet, major technology companies such as Google, Microsoft, and Facebook have built their own data centers (DCs) to provide various cloud storage and computing services [
Existing research works on DCs and their DR practices have mainly focused on the internal management and load distribution strategies of DCs [
In general, existing research works on DC participation in DR have mainly focused on optimization within the DC and collaborative scheduling among several DCs. However, relatively few have been conducted on the DR potential of users subordinated to DCs. In addition, existing research works on the user side have usually focused on the optimal scheduling for data service demands of delay-tolerant users (e.g., batch workload) while ignoring the DR potential for delay-sensitive users (e.g., interactive workload). Moreover, compared with the practice of electricity retailers in setting prices [
1) We propose a model describing a user’s willingness to pay (WTP) and establish a time sensitivity, by which a time-varying data service pricing mechanism considering users’ loss is then proposed. The data service price is set to reflect the changes in the electricity price in the grid and the purchase price of RES, thus encouraging price-sensitive users to optimize the plans to obtain data services within their adjustable time period.
2) We construct a Stackelberg game between a DC and users. At the upper and lower levels, the goals are to maximize the profit of the DC and to minimize the users’ data service cost, respectively. After the nonlinear terms and 0/1 variables in the proposed model are processed, the bi-level optimization problem is transformed into a single-level one using Karush-Kuhn-Tucker (KKT) optimality conditions and strong duality theory.
3) The effects of the price mechanism, which plays a vital role in both the reduction of DC energy cost and the increase in the consumption of RES generation, are fully analyzed. A sensitivity analysis is conducted to show the effects of the proposed mechanism with different quantities of price levels.
The remainder of this paper is organized as follows. The modeling of DC and users’ DR are presented in Section II. The optimal pricing strategy and solution procedure are described in Section III. Section IV presents case studies and simulation results. And finally, conclusions are drawn in Section V.
The DC operation process and its DR-enabled users are presented in

Fig. 1 DC operation process and its DR users.
The energy consumption of a DC generally consists of servers, communication and storage, air conditioning, and other components. In general, servers are flexible in shifting loads to accommodate price signals from the energy layer. The power usage efficiency (PUE) is used to estimate the energy consumption of a DC [
(1) |
where is the energy consumption of the DC at time t; and are the peak power and idle power of a server, respectively; is the average server utilization, is the total incoming workload at time t, is the number of active servers at time t, is the service rate of a server; and is the PUE of the DC.
(2) |
It is important for DCs to set a maximum response time and provide QoS guarantees to users, which can be indicated in the service level agreement (SLA) [
(3) |
(4) |
where is the maximum delay time that a request can tolerate; and is the maximum number of servers in the DC.
The dispatch center of the DC is responsible for scheduling the servers to capitalize on the flexibility of the DC in terms of workload shifting while satisfying the reliability requirement. As a result, a server cannot be switched on or off too frequently [
(5) |
(6) |
(7) |
(8) |
(9) |
where is a binary variable that describes the start/stop status of server n at time t during T time periods; takes the values of -1, 0, and 1 to describe the change in the status of server n at time t; is the shortest interval before a server can be stopped or started; is the sum of the statuses of server n for a duration of starting from time ; and M is a sufficiently large positive number.
When server n is started at time t, i.e., , this server cannot be shut down within the duration of , as imposed by (8). Similarly, when server n is shut down at time t, i.e., , the server cannot be started within the duration of , as imposed by (9).
All DC users have different WTPs for the service and different time sensitivities for task delays. These two characteristics are critical to the success of a DR program. As shown in Figs.

Fig. 2 Users’ WTP distribution.

Fig. 3 Users’ delay tolerance distribution.
Note that the two distributions shown in Figs.
It should be mentioned that interactive workloads for DC users are considered. In other words, the DC must respond within a short time period after a data service demand is lodged. This situation is more realistic. For this type of users, the DC cannot use the time delay strategy for scheduling as proposed in many existing research works. Instead, a time-varying price mechanism is more suitable for this type of service, which will be discussed in detail in Section III.
Let us assume that the DC announces the data service price (e.g., hourly) for the next day. Here, is determined by the optimization discussed in Section III. It is also assumed that the WTP of user j is , with an initial data service time at . The following pricing rule is applied to the users based on their DR intentions.
Let the price offered to user j be denoted by . If user j is not willing to participate in the DR program, the time of the user’s data service task will not be changed, and the fee will be charged at the price corresponding to the original time, i.e.,
(10) |
(11) |
These users are time-sensitive. However, for those participating in the DR program, their data service may be changed from to sometime earlier or later with the time change capped by . The service rate is the minimum price during a possible period, i.e.,
(12) |
Regardless of the time sensitivity, the WTP of these users is affected by the price of data services. Therefore, they can be called price-sensitive users.
Any user whose WTP is lower than all service rates during the possible period, i.e.,
, is considered to be lost.
As indicated previously, some users may leave without using the data service if their WTP is too low. Therefore, given the distributions of user WTP and delay tolerance as shown in Figs.
(13) |
(14) |
where is the number of user demands; is the number of users who do not participate in the DR program; is the number of time-insensitive users transferred to other time periods from time t; is the number of time-insensitive users transferred from other time periods to time t; is the number of lost users; and is the total number of users during T time periods.

Fig. 4 Scheme of proposed optimal pricing problem of DC modeled as a Stackelberg game.
In the subsequent solving process, the upper-level problem is transformed into a mixed-integer linear programming (MILP) problem, and the lower-level problem is transformed into an integer linear programming (ILP) problem. Thus, it can be simply proven that an equilibrium point exists in the proposed Stackelberg game using the method described in [
In this subsection, the DC optimization problem is formulated. Given the energy prices and user’s DR characteristics, the DC sets data service prices with the goal of maximizing profits to optimize the demand for data services during each time period.
The objective of the DC is to maximize its profit, which consists of two components, as described by:
(15) |
where is the objective function of the DC; is the time interval; is the electricity price at time t; is the power of electricity that the DC purchases from the grid at time t; is the price of the RES; is the amount of RES power consumed by the DC at time t; is the price of the green certificate (GC); is the required consumption of RES generation over a period of time; and is the actual consumption of RES generation during a time period.
In this paper, it is assumed that the DC, as a large local energy consumer, is given priority in purchasing electricity from a renewable generation company (RGC). In addition, the DC purchases electricity from the grid only when the power supply of the RGC is insufficient. Furthermore, the DC is committed to collecting a certain number of generation companies (GCs) and must purchase additional GCs when the accommodation of RES generation is insufficient.
(16) |
(17) |
(18) |
(19) |
where is the maximum power output of the RES at time t.
The constraints on server scheduling within the DC are given in (2)-(9), including the calculation of DC energy consumption, SLA, and operating constraints of the server.
The data service price mechanism is constructed using the DC through the following constraints. Equations (
(20) |
(21) |
(22) |
(23) |
(24) |
where is a binary variable to designate the specific level i at time t from the step function; and are the maximum and minimum data service prices, respectively; and is the minimum difference between adjacent price levels.
In this subsection, the DR model of DC users is established to respond to the time-varying pricing scheme of the DC.
The objective is to minimize users’ total cost of the data service with the given data service price.
(25) |
where is the objective function of the users; and is the data service demand of each user (it is assumed that various users have the same load demand of the data service).
The constraints on user DR in the DC are given in (10)-(14), which mainly include the user’s WTP, delay tolerance, and the condition of lost users.
To convert the bi-level optimization model into a single-level one, the lower-level problem, which includes (10)-(14) and (25), is rewritten into (26)-(31) to eliminate the non-continuous 0/1 variables in the model.
(26) |
where is the total number of price-sensitive users that can be rescheduled; is the user preference of price-sensitive user j at time t; is the data service demand of price-sensitive user j at time t; is the maximum preference of the user; is the data service demand of user j that is lost by the DC; and is the total demand of price-insensitive users at time t, which is the basic workload.
The relevant constraints are expressed as:
(27) |
(28) |
(29) |
(30) |
(31) |
where is the status variable indicating whether user j is within the adjustable time range at time t; and is an intermediate variable of price-sensitive user j at time t.
Equations (
Note that is designed to help users make choices when the price is the same during several time periods, and is used to ensure that users choose to accept the price of data services at time t instead of user losses.
After the lower-level problem is converted to a continuous optimization one, its KKT optimality conditions can then be obtained to transform the original bi-level problem into a single-level one. However, it is difficult to solve the single-level problem because of the nonlinearity in (15), where and are both decision variables. As shown in (32) and (33), the product terms can be replaced by linear components based on the KKT optimality conditions obtained in the lower-level problem using the strong duality theory [
(32) |
(33) |
where is the dual variable of (29); and and are the dual variables of (30) and (31), respectively.
Thus, the objective function of the single-level problem can be rewritten as:
(34) |
The GUROBI solver in MATLAB is employed to solve the MILP problem, similar to the method employed in [
1) Upper-level problem: , , , , , , , , , , and .
2) Lower-level problem: , , , and .
To validate the effectiveness of the proposed approach, a case study is employed that includes a DC and its users in the USA. An hourly interval is employed in the day-ahead optimization, and it is assumed that data service demand arrives hourly. The DC processes 0.9 million requests every minute during peak periods, as assumed in [

Fig. 5 Predicted electricity price in day-ahead market.

Fig. 6 Predicted values of PV output.

Fig. 7 Normalized original workload of DC.
Symbol | Parameter | Value |
---|---|---|
Peak power of a server (W) | 750 | |
Idle power of a server (W) | 400 | |
Service rate of a server | 4 | |
PUE of DC | 1.75 | |
The maximum delay time (s) | 0.35 | |
The maximum number of servers | 20000 | |
The shortest interval between start and stop of servers (hour) | 2 | |
Number of data service price levels | 3 | |
Fixed data service price ($) | ||
The maximum data service price ($) | ||
The minimum data service price ($) | ||
The minimum difference between adjacent price levels ($) |
Symbol | Parameter | Value |
---|---|---|
The maximum of WTP of user j ($) |
N(7.5, | |
The maximum of time adjustment of user j (hour) |
N(1.5, | |
Data service demand of each user | 1 | |
Percentage of price-sensitive users (%) | 53.0 | |
Percentage of price-insensitive users (%) | 47.0 | |
Percentage of time-sensitive users among price-sensitive users (%) | 25.3 | |
Percentage of time-insensitive users among price-sensitive users (%) | 74.7 |
Symbol | Parameter | Value |
---|---|---|
Price of RES ($/MWh) | 40 | |
Price of a GC ($) | 20 | |
Required consumption of RES generation (MWh/day) | 150 |
It should be noted that the DC does not require all data of users, but mainly collects two key sets of user data, including the user data service period and WTP. The method of data collection can include user questionnaires or a limited collection of historical data after obtaining users’ authorization. In addition, the DC is obliged to keep the collected data confidential and to prevent leakage. In the process of data analysis, data desensitization is required, i.e., some sensitive information is deformed through desensitization rules to achieve the reliable protection of sensitive and private data.
The following four scenarios are considered for comparison.
1) Scenario 1: the DC provides a fixed price for data services without RES accommodation.
2) Scenario 2: the DC provides a fixed price for data services while giving priority to RES accommodation.
3) Scenario 3: the DC provides a time-varying price for data services without RES accommodation.
4) Scenario 4: the DC provides a time-varying price for data services while giving priority to RES accommodation.
The time-varying data service price and energy consumption optimization results of the DC are shown in Figs.

Fig. 8 RTP and data service prices in Scenarios 1 and 3.

Fig. 9 RTP and workload in Scenarios 1 and 3.

Fig. 10 Equivalent energy price curve.

Fig. 11 Comparisons of RES accommodation in Scenarios 2 and 4.

Fig. 12 Optimization results for time-varying data service price with different numbers of price levels.
Scenario | Total revenue ($/day) | Total cost ($/day) | Profit ($/day) | Electricity purchase cost from the grid ($/day) | RES cost ($/day) | GC cost ($/day) | RES accommodation ratio (%) | User loss (%) |
---|---|---|---|---|---|---|---|---|
1 | 56751.8 | 26793.1 | 29958.7 | 26793.1 | 0 | |||
2 | 56751.8 | 19436.7 | 37315.1 | 13985.8 | 4901.8 | 549.1 | 75.2 | 0 |
3 | 56585.0 | 23788.1 | 32796.9 | 23788.1 | 8.88 | |||
4 | 57171.2 | 18963.5 | 38207.7 | 13263.1 | 5400.8 | 299.6 | 82.8 | 5.13 |
Number of price levels | Total revenue ($/day) | Electricity purchase cost from grid ($/day) | RES accommodation ratio (%) | User loss (%) |
---|---|---|---|---|
1 | 56752 | 13986 | 75.2 | 0 |
2 | 55531 | 12315 | 80.1 | 7.63 |
3 | 57171 | 13263 | 82.8 | 5.13 |
4 | 56687 | 12619 | 84.1 | 7.62 |
5 | 56391 | 12510 | 85.1 | 8.88 |
Comparisons between Scenarios 1 and 3 are shown in Figs.
As shown in
It can be concluded from the optimization results that the proposed time-varying data service price can effectively transfer the signals of variable energy prices to the users by setting a reasonable data service price. In addition, the optimized data service price can enable price-sensitive users to change their data service time and realize the DR potential of the users effectively.
Figures
In Scenarios 2 and 4, the DC considers the purchase of RES and electricity from the grid when the RES falls short.
Therefore, the optimized data service price in Scenario 4 is similar in part to the equivalent energy price shown in
With the expansion of the data service price range in the future, the proportion of price-sensitive users will continue to rise, which is currently at only 53.0%. This will further enhance the DC capability for RES recommendation.
The revenue, cost details, and other economics of DC operation as reflected in Scenarios 1-4 are analyzed and presented in
A comparison of Scenarios 1 and 3 reveals that the proposed time-varying data service price mechanism has a relatively small effect on the total revenue. However, it has significantly reduced the energy costs by as much as 11.2%, thus increasing the DC’s profit. The main reason for the change in profit is that the DC always achieves a balance between increasing the price of data services and avoiding user losses. The reduction in total cost is due to the fact that more price-sensitive users choose to use data services during the low-price period of RTP after optimization.
Regarding the scenarios with RES, as can be observed from the results of Scenarios 2 and 4, the costs of purchasing electricity from the grid and GC are drastically reduced by 5.2% and 45.4%, respectively, which contribute to a reduction in the total cost and an increase in RES accommodation.
A sensitivity analysis for the number of price levels is presented in this subsection, which greatly affects the ability of a DC to schedule users. The maximum number of data service price levels is set to be 5, as more price levels will result in difficulties in DC decision-making and increase the risk derived from the forecasting errors of DR. The optimization results are presented in
As shown in
When the optimization results in
It should be noted that in our case studies, the total revenue and electricity purchase cost from the grid decrease simultaneously when the number of price levels increases from 1 to 2. This can be explained as follows. When the data service price involves only two price levels, the DC has to use a higher price to drive users’ demands to the peak period of RES output where the lower data service prices are set. This leads to 7.63% user loss and 4.9% more RES accommodation ratio. In addition, as shown in
In this paper, a time-varying pricing scheme for a DC data service considering DR and RES accommodation is presented. Under the proposed price mechanism, the user price and time sensitivities can be analyzed and used to design a DR program, which help the DC schedule its workload more flexibly in managing its energy costs. A Stackelberg game between the DC and the users is also developed in this paper, where the upper- and lower-level problems aim to maximize the profit of the DC and to minimize the user data service cost, respectively. The bi-level optimization problem is transformed into a single-level MILP problem using KKT optimality conditions and the strong duality theory to solve the problem more efficiently. Case studies are conducted in four scenarios in a daily time range. Simulation results show that the proposed time-varying data service price mechanism plays a vital role in the economics of DC operation and in RES accommodation. DCs should set price levels for appropriate quantities to balance the economic and environmental benefits as well as user losses more effectively.
In fact, this paper shows that the users’ WTP and time sensitivity cannot be decoupled completely, which means that a user’s adjustable time range may also change with the prices. Future works will focus on the coupling relationship between user WTP and time sensitivity to ensure that the price mechanism is more reasonable and effective. In addition, the uncertainty of the RES output and DR will be analyzed.
REFERENCES
H. Niu, L. Yang, J. Zhao et al., “Flexible-regulation resources planning for distribution networks with a high penetration of renewable energy,” IET Generation, Transmission & Distribution, vol. 12, no. 18, pp. 4099-4107, Dec. 2018. [Baidu Scholar]
S. He, H. Gao, H. Tian et al., “A two-stage robust optimal allocation model of distributed generation considering capacity curve and real-time price based demand response,” Journal of Modern Power Systems and Clean Eenrgy, vol. 9. no. 1, pp. 114-127, Jan. 2021. [Baidu Scholar]
Y. Shen, Y. Li, Q. Zhang et al., “Consumer psychology based optimal portfolio design for demand response aggregators,” Journal of Modern Power Systems and Clean Eenrgy, vol. 9. no. 2, pp. 431-439, Jan. 2021. [Baidu Scholar]
L. Ni, W. Liu, F. Wen et al., “Optimal operation of electricity, natural gas and heat systems considering integrated demand responses and diversified storage devices,” Journal of Modern Power Systems and Clean Energy, vol. 6, no. 3, pp. 423-437, May 2018. [Baidu Scholar]
Y. Chen, X. Feng, Z. Li et al., “Multi-stage coordinated operation of a multi-energy microgrid with residential demand response under diverse uncertainties,” Energy Conversion and Economics, vol. 1, no. 1, pp. 20-33, Oct. 2020. [Baidu Scholar]
L. Ni, F. Wen, W. Liu et al., “Congestion management with demand response considering uncertainties of distributed generation outputs and market prices,” Journal of Modern Power Systems and Clean Energy, vol. 5, no. 1, pp. 66-78, Jan. 2017. [Baidu Scholar]
J. Liu, L. Zéphyr, and C. L. Anderson. “Optimal operation of microgrids with load-differentiated demand response and renewable resources,” Journal of Energy Engineering, vol. 146, no. 4, p. 04020027, May 2020. [Baidu Scholar]
A. Asadinejad and K. Tomsovic, “Optimal use of incentive and price based demand response to reduce costs and price volatility,” Electric Power Systems Research, vol. 144, no. 2, pp. 215-223, Mar. 2017. [Baidu Scholar]
H. Wang, J. Huang, X. Lin et al., “Proactive demand response for data centers: a win-win solution,” IEEE Transactions on Smart Grid, vol. 7, no. 3, pp. 1584-1596, May 2016. [Baidu Scholar]
CIE. (2019, May). Green data center white paper. [Online]. Available: http://www.ictlce.com/?p=584 [Baidu Scholar]
CCID Academy for Industry and Information Technology. (2020, Jun.). Research report on the development of China’s “new infrastructure”. [Online]. Available: https://www.ccidgroup.com/info/1096/21459.htm [Baidu Scholar]
Q. Sun, C. Wu, Z. Li et al., “Colocation demand response: joint online mechanisms for individual utility and social welfare maximization,” IEEE Journal on Selected Areas in Communications, vol. 34, no. 12, pp. 3978-3992, Dec. 2016. [Baidu Scholar]
A. Beloglazov and R. Buyya. “Energy efficient allocation of virtual machines in cloud data centers,” in Proceedings of 2010 10th IEEE/ACM International Conference on Cluster, Cloud and Grid Computing, Melbourne, Australia , May 2010, pp. 577-578. [Baidu Scholar]
R. K. Sharma, C. E. Bash, C. D. Patel et al., “Balance of power: dynamic thermal management for Internet data centers,” IEEE Internet Computing, vol. 9, no. 1, pp. 42-49, Jan.-Feb. 2005. [Baidu Scholar]
Z. Xiao, W. Song, and Q. Chen, “Dynamic resource allocation using virtual machines for cloud computing environment,” IEEE Transactions on Parallel and Distributed Systems, vol. 24, no. 6, pp. 1107-1117, Jun. 2013. [Baidu Scholar]
J. Li, Z. Bao, and Z. Li. “Modeling demand response capability by internet data centers processing batch computing jobs,” IEEE Transactions on Smart Grid, vol. 6, no. 2, pp. 737-747, Mar. 2015. [Baidu Scholar]
N. H. Tran, D. H. Tran, S. Ren et al., “How geo-distributed data centers do demand response: a game-theoretic approach,” IEEE Transactions on Smart Grid, vol. 7, no. 2, pp. 937-947, Mar. 2016. [Baidu Scholar]
Z. Chen, L. Wu, and Z. Li, “Electric demand response management for distributed large-scale internet data centers,” IEEE Transactions on Smart Grid, vol. 5, no. 2, pp. 651-661, Mar. 2014. [Baidu Scholar]
D. Paul, W. Zhong, and S. K. Bose, “Demand response in data centers through energy-efficient scheduling and simple incentivization,” IEEE Systems Journal, vol. 11, no. 2, pp. 613-624, Jun. 2017. [Baidu Scholar]
N. Liu, Z. Dong, and R. Rojas-Cessa, “Task scheduling and server provisioning for energy-efficient cloud-computing data centers,” in Proceedings of 2013 IEEE 33rd International Conference on Distributed Computing Systems Workshops, Philadelphia, USA, Jul. 2013, pp. 226-231. [Baidu Scholar]
W. Wei, F. Liu, and S. Mei, “Energy pricing and dispatch for smart grid retailers under demand response and market price uncertainty,” IEEE Transactions on Smart Grid, vol. 6, no. 3, pp. 1364-1374, May 2015. [Baidu Scholar]
Y. Guo, Y. Fang, and P. P. Khargonekar, “Optimal workload and energy storage management for cloud data centers,” in Proceedings of 2013 IEEE Military Communications Conference, San Diego, USA, Nov. 2013, pp. 1850-1855. [Baidu Scholar]
Z. Liu, M. Lin, A. Wierman et al., “Greening geographical load balancing,” in Proceedings of IEEE/ACM Transactions on Networking, San Jose, USA, Jun. 2011, pp. 233-244. [Baidu Scholar]
N. Liu, M. Cheng, X. Yu et al., “Energy-sharing provider for PV prosumer clusters: a hybrid approach using stochastic programming and Stackelberg game,” IEEE Transactions on Industrial Electronics, vol. 65, no. 8, pp. 6740-6750, Aug. 2018. [Baidu Scholar]
M. Yazdani-Damavandi, N. Neyestani, M. Shafie-Khah et al., “Strategic behavior of multi-energy players in electricity markets as aggregators of demand side resources using a bi-level approach,” IEEE Transactions on Power Systems, vol. 33, no. 1, pp. 397-411, Jan. 2018. [Baidu Scholar]
Q. Deng, C. Feng, F. Wen et al., “Evaluation of accommodation capability for electric vehicles of a distribution system considering coordinated charging strategies,” Energies, vol. 23, no. 16, p. 3056, Aug. 2017. [Baidu Scholar]
H. Xu and B. Li, “Reducing electricity demand charge for data centers with partial execution,” in Proceedings of the 5th International Conference on Future Energy Systems, New York, USA, Jun. 2014, pp. 51-61. [Baidu Scholar]
Z. Sun, F. Kong, L. Xue et al., “Intelligent joint spatio-temporal management of electric vehicle charging and data center power consumption,” in Proceedings of International Green Computing Conference, Dallas, USA, Nov. 2014, pp. 1-8. [Baidu Scholar]
M. Ghamkhari and H. Mohsenian-Rad, “Energy and performance management of green data centers: a profit maximization approach,” IEEE Transactions on Smart Grid, vol. 4, no. 2, pp. 1017-1025, Jun. 2013. [Baidu Scholar]