13
1268 IEEE JOURNAL ON SELECTEDAREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013 Demand Response Management via Real-Time Electricity Price Control in Smart Grids Li Ping Qian, Member, IEEE, Ying Jun (Angela) Zhang, Senior Member, IEEE, Jianwei Huang, Senior Member, IEEE, and Yuan Wu, Member, IEEE Abstract—This paper proposes a real-time pricing scheme that reduces the peak-to-average load ratio through demand response management in smart grid systems. The proposed scheme solves a two-stage optimization problem. On one hand, each user reacts to prices announced by the retailer and maximizes its payoff, which is the difference between its quality-of-usage and the payment to the retailer. On the other hand, the retailer designs the real-time prices in response to the forecasted user reactions to maximize its prot. In particular, each user computes its optimal energy consumption either in closed forms or through an efcient iterative algorithm as a function of the prices. At the retailer side, we develop a Simulated-Annealing-based Price Control (SAPC) algorithm to solve the non-convex price optimization problem. In terms of practical implementation, the users and the retailer interact with each other via a limited number of message exchanges to nd the optimal prices. By doing so, the retailer can overcome the uncertainty of users’ responses, and users can determine their energy usage based on the actual prices to be used. Our simulation results show that the proposed real- time pricing scheme can effectively shave the energy usage peaks, reduce the retailer’s cost, and improve the payoffs of the users. Index Terms—Real-time pricing, Demand response manage- ment, Payoff maximization, Prot maximization, Non-convex optimization. I. I NTRODUCTION I N TODAY’S electric power grid, we often observe substan- tial hourly variation in the wholesale electricity price, and the spikes usually happen during peak hours due to the high generation cost. However, almost all end users nowadays are Manuscript received September 15, 2012; revised March 1, 2013. Part of work was done while L. P. Qian was at The Chinese University of Hong Kong. L. P. Qian was supported in part by the National Natural Science Foundation of China (Project number: 61101132). Y. J. Zhang was supported in part by the National Natural Science Foundation of China (Project number: 61201262), and the General Research Fund Grant (Project number 419509) established under the University Grant Council of Hong Kong. J. Huang was supported in part by the General Research Funds (Project Number CUHK 412710 and CUHK 412511) established under the University Grant Committee of the Hong Kong Special Administrative Region, China. Y. Wu was supported in part by the Qianjiang Talent Project (Project number: QJD1202011) and the Hong Kong Research Grants Council’s General Research Fund (Project number: 619312). L. P. Qian is with College of Computer Science and Technology, Zhejiang University of Technology, Hangzhou 310023, China (e-mail: [email protected]). She is also with The State Key Laboratory of Integrated Services Networks, Xidian University, Xian 710162, China. Y. J. Zhang and J. Huang are with Department of Information Engineering, The Chinese University of Hong Kong, Shatin, New Territories, Hong Kong (e-mail:{yjzhang, jwhuang}@ie.cuhk.edu.hk). Y. Wu is with College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China (e-mail: [email protected]). He was with Department of Electronic and Computer Engineering, Hong Kong University of Technology under the supervision of Prof. Danny H. K. Tsang. Digital Object Identier 10.1109/JSAC.2013.130710. charged some at-rate retail electricity price [1], [2], which does not reect the actual wholesale price. With the at-rate pricing, users often consume much more electricity during peak hours, such as the time between late afternoon and bed time for residential users. This leads to a large uctuation of electricity consumption between off-peak hours and peak hours. The high peak-hour demand not only induces high cost to the retailers due to the high wholesale prices in those hours, but also has a negative impact on the reliability of the power grid. Ideally, the retailer would like to have the electricity consumption evenly spread across different hours of the day through a proper demand response management. For the demand response management, researchers have introduced real-time pricing schemes that reduce the peak- to-average load ratio through encouraging users to shift their usage to off-peak hours [1]–[7]. A real-time price charges each users based on not only “how much” electricity is consumed but also “when” it is consumed. A properly designed real-time pricing scheme may result in a “triple-win” solution: attened load demand curves enhances the robustness and lowers the generation cost for the power grid; a lower generation cost leads to a lower wholesale price, which in turn increases the retailers’ prot; users may reduce their electricity expenditures by responding to the time-varying price. The existing research in the real-time pricing can be divided into three main threads. The rst thread is concerned with how users respond to the real-time price, hopefully in an automated manner, to achieve their desired level of comfort with lower electricity bill payment (e.g., [2], [8], [9]). These work, however, does not mention how the real-time prices should be set. The second thread of work is concerned with setting the real-time price at the retailer side (e.g., [10]), without taking into account users’ potential responses to the forecasted price. For example, the retailer may adjust the real- time retail electricity price through linking it closely to the wholesale electricity price in [10]. The last thread of work is concerned with setting the real-time retail electricity price based on the maximization of the aggregate surplus of users and retailers subject to the supply-demand matching (e.g., [11]–[15]). However, the price obtained in this way may not do good to the retailer’s prot. In principle, the retailer should be able to design real-time prices that maximizes its own prot by taking into account the users’ potential responses to the prices (e.g., responses that maximize users’ own payoff). Ideally, the real-time pricing scheme should be able to achieve a “triple- win” solution that benets the grid, the retailer, and the end users. 0733-8716/13/$31.00 c 2013 IEEE

Demand Response Management via Real-Time Electricity Price Control in Smart Grids

  • Upload
    yuan

  • View
    217

  • Download
    3

Embed Size (px)

Citation preview

Page 1: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1268 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

Demand Response Management via Real-TimeElectricity Price Control in Smart Grids

Li Ping Qian, Member, IEEE, Ying Jun (Angela) Zhang, Senior Member, IEEE,Jianwei Huang, Senior Member, IEEE, and Yuan Wu, Member, IEEE

Abstract—This paper proposes a real-time pricing scheme thatreduces the peak-to-average load ratio through demand responsemanagement in smart grid systems. The proposed scheme solves atwo-stage optimization problem. On one hand, each user reactsto prices announced by the retailer and maximizes its payoff,which is the difference between its quality-of-usage and thepayment to the retailer. On the other hand, the retailer designsthe real-time prices in response to the forecasted user reactions tomaximize its profit. In particular, each user computes its optimalenergy consumption either in closed forms or through an efficientiterative algorithm as a function of the prices. At the retailerside, we develop a Simulated-Annealing-based Price Control(SAPC) algorithm to solve the non-convex price optimizationproblem. In terms of practical implementation, the users andthe retailer interact with each other via a limited number ofmessage exchanges to find the optimal prices. By doing so, theretailer can overcome the uncertainty of users’ responses, andusers can determine their energy usage based on the actual pricesto be used. Our simulation results show that the proposed real-time pricing scheme can effectively shave the energy usage peaks,reduce the retailer’s cost, and improve the payoffs of the users.

Index Terms—Real-time pricing, Demand response manage-ment, Payoff maximization, Profit maximization, Non-convexoptimization.

I. INTRODUCTION

IN TODAY’S electric power grid, we often observe substan-tial hourly variation in the wholesale electricity price, andthe spikes usually happen during peak hours due to the highgeneration cost. However, almost all end users nowadays are

Manuscript received September 15, 2012; revised March 1, 2013. Part ofwork was done while L. P. Qian was at The Chinese University of Hong Kong.L. P. Qian was supported in part by the National Natural Science Foundationof China (Project number: 61101132). Y. J. Zhang was supported in part by theNational Natural Science Foundation of China (Project number: 61201262),and the General Research Fund Grant (Project number 419509) establishedunder the University Grant Council of Hong Kong. J. Huang was supportedin part by the General Research Funds (Project Number CUHK 412710 andCUHK 412511) established under the University Grant Committee of theHong Kong Special Administrative Region, China. Y. Wu was supportedin part by the Qianjiang Talent Project (Project number: QJD1202011) andthe Hong Kong Research Grants Council’s General Research Fund (Projectnumber: 619312).L. P. Qian is with College of Computer Science and Technology,

Zhejiang University of Technology, Hangzhou 310023, China (e-mail:[email protected]). She is also with The State Key Laboratory of IntegratedServices Networks, Xidian University, Xian 710162, China.Y. J. Zhang and J. Huang are with Department of Information Engineering,

The Chinese University of Hong Kong, Shatin, New Territories, Hong Kong(e-mail:{yjzhang, jwhuang}@ie.cuhk.edu.hk).Y. Wu is with College of Information Engineering, Zhejiang University

of Technology, Hangzhou 310023, China (e-mail: [email protected]). Hewas with Department of Electronic and Computer Engineering, Hong KongUniversity of Technology under the supervision of Prof. Danny H. K. Tsang.Digital Object Identifier 10.1109/JSAC.2013.130710.

charged some flat-rate retail electricity price [1], [2], whichdoes not reflect the actual wholesale price. With the flat-ratepricing, users often consume much more electricity duringpeak hours, such as the time between late afternoon and bedtime for residential users. This leads to a large fluctuationof electricity consumption between off-peak hours and peakhours. The high peak-hour demand not only induces high costto the retailers due to the high wholesale prices in those hours,but also has a negative impact on the reliability of the powergrid. Ideally, the retailer would like to have the electricityconsumption evenly spread across different hours of the daythrough a proper demand response management.For the demand response management, researchers have

introduced real-time pricing schemes that reduce the peak-to-average load ratio through encouraging users to shift theirusage to off-peak hours [1]–[7]. A real-time price charges eachusers based on not only “how much” electricity is consumedbut also “when” it is consumed. A properly designed real-timepricing scheme may result in a “triple-win” solution: flattenedload demand curves enhances the robustness and lowers thegeneration cost for the power grid; a lower generation costleads to a lower wholesale price, which in turn increases theretailers’ profit; users may reduce their electricity expendituresby responding to the time-varying price.The existing research in the real-time pricing can be divided

into three main threads. The first thread is concerned withhow users respond to the real-time price, hopefully in anautomated manner, to achieve their desired level of comfortwith lower electricity bill payment (e.g., [2], [8], [9]). Thesework, however, does not mention how the real-time pricesshould be set. The second thread of work is concerned withsetting the real-time price at the retailer side (e.g., [10]),without taking into account users’ potential responses to theforecasted price. For example, the retailer may adjust the real-time retail electricity price through linking it closely to thewholesale electricity price in [10]. The last thread of workis concerned with setting the real-time retail electricity pricebased on the maximization of the aggregate surplus of usersand retailers subject to the supply-demand matching (e.g.,[11]–[15]). However, the price obtained in this way may not dogood to the retailer’s profit. In principle, the retailer should beable to design real-time prices that maximizes its own profit bytaking into account the users’ potential responses to the prices(e.g., responses that maximize users’ own payoff). Ideally, thereal-time pricing scheme should be able to achieve a “triple-win” solution that benefits the grid, the retailer, and the endusers.

0733-8716/13/$31.00 c© 2013 IEEE

Page 2: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

QIAN et al.: DEMAND RESPONSE MANAGEMENT VIA REAL-TIME ELECTRICITY PRICE CONTROL IN SMART GRIDS 1269

Generator

Generator

Power Line

LAN

Use

r

Use

r

Use

r

Power Line

Use

r

Use

r

Use

rLAN

Use

r

Use

r

Use

r

Use

r

Use

r

Use

r

Power Line

LAN

Power Line

LAN

Retailer

Fig. 1. A simplified illustration of the retail electricity market.

In this paper, we endeavor to design such a real-timepricing scheme to reduce the peak-to-average load ratio, andto maximize each user’s payoff and the retailer’s profit inthe meantime. The key hurdle that prevented previous workfrom doing so lies in the asymmetry of information. Forexample, when the prices are announced before the energyscheduling horizon (i.e., ex-ante price), the retailer has to facethe uncertainty of user response and reimburse the wholesalecost based on the actual electricity consumption by the users.On the other hand, if the prices are fixed after the energy isbeing consumed (i.e., ex-post price), the users have to bearthe uncertainty, as they only adjust their demand according toa prediction of the actual price.As mentioned in [16], smart grid is an electricity delivery

system enhanced with communication facilities and informa-tion technologies. Roughly speaking, smart grid is a systemintegrating the traditional power grids and the communicationnetworks (e.g., Local Area Network (LAN)). Suppose thateach user is equipped with a smart meter that is capable ofhaving two way communications with the retailer through acommunication network. Based on it, we introduce a novelex-ante real-time pricing scheme for the future smart grid,where prices are determined at the beginning of each energyscheduling horizon. The contributions of this paper can besummarized as follows:

• We formulate the real-time pricing scheme as a two-stage optimization problem. On one hand, each userreacts to the price and maximizes its payoff, which is thedifference between the quality-of-usage and the payment.On the other hand, the retailer designs the real-time pricein response to the forecasted user reactions to maximizeits profit.

• The proposed algorithm allows each user to optimallyschedule its energy consumption in closed forms orthrough an efficient iterative algorithm. Furthermore, theusers and the retailer interact with each other througha limited number of message exchanges to find theoptimal price1, which facilitates the elimination of costuncertainty at the retailer side.

• We propose a real-time pricing algorithm based on theidea of simulated annealing to reduce the peak-to-averageload ratio in smart grid systems. For the practical im-

1In this paper, we assume that the users and the retailer declare theirinformation truthfully. We will consider the incentive issue in a future work.

Energy Scheduler

Real-time prices

User s needs

Power Line

LANRetailer

Smart meter

Applicanes

hp

Total energy consumption

Fig. 2. The operation of smart meter and the price setting of retailer in ourdesign, where ph represents the price for the hth time slot in every schedulinghorizon.

plementation of the algorithm, we further study how toset the length of interaction period so that the retailer isguaranteed to obtain the optimal price through commu-nications with users.

The rest of this paper is organized as follows. Section IIintroduces the system model and the problem formulations.In Section III, we provide the closed-form expression of theelectricity consumption scheduling with elaborate mathemat-ical analysis, and propose an efficient iterative algorithm forelectricity consumption scheduling. The simulated annealingbased algorithm used to adjust the real-time retail electricityprices at the retailer side is proposed in Section IV. In SectionV, we evaluate the performance of the proposed algorithmthrough several simulations. The paper is concluded in SectionVI.

II. SYSTEM MODEL AND PROBLEM FORMULATION

We consider a microgrid (as shown in Fig. 1 [9]) with twotypes of participants: end users (i.e., customers), and a retailerfrom which end users purchase electricity. In this paper, weconsider time-varying prices, with the hope to reduce peak-to-average load demand ratio, increase the retailer’s profit, andmaximize the users’ utilities with minimum payment. In thefollowing, we present the problems considered by users andretailer, respectively.

A. Residential End Users

We assume that each user is equipped with a smart meter asshown in Fig. 2. The retailer sets the real-time retail electricityprices and informs to users via LAN. At the user side, theenergy scheduler in the smart meter optimally computes anddistributes energy consumption according to the prices for theupcoming scheduling horizon H = {1, ..., H}.Let U = {1, 2, · · · , U} denote the set of residential users.

Assume that each user u has three types of appliances, denotedby Au, Bu and Cu. The first category Au includes backgroundappliances, which consumes a fixed amount of energy perunit time during a fixed period of time. The backgroundappliances are inelastic, in the sense that there is no flexibilityto adjust the energy consumption across time. Examplesof such appliances include lighting, refrigerator and electrickettle. The second category Bu includes elastic appliances,

Page 3: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1270 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

which have higher quality-of-usage (satisfaction) for moreenergy consumed per unit time (with a maximum consumptionupper bound). The evaluation of quality-of-usage can be time-dependent for elastic appliances, as users may obtain a highersatisfaction to consume certain amount of energy during acertain time than in other time durations. Examples of suchappliances include air conditioner, electric fan and iron. Thelast category Cu includes semi-inelastic appliances, whichconsume a fixed total energy within a preferred time period.This category is semi-inelastic in the sense that there isflexibility to choose when to consume the energy within thepreferred time period, but no flexibility to adjust the totalenergy consumption. Examples include washer/dryer, dish-washer, plug-in hybrid electric vehicle (PHEV) and electricgeyser.For each appliance au, we express its energy consumption

over the scheduling horizon H by a scheduling vector eau asfollows:

eau = (eau,1, · · · , eau,H). (1)

Let ph denote the price for the hth time slot in the schedulinghorizon. A time slot can be, for example, one hour, and thescheduling horizon can be one day, i.e., H = 24 hours.At the beginning of every upcoming scheduling horizon, theretailer announces all prices ph’s for the upcoming schedulinghorizon, and each user u computes its optimal eau accordingly.In what follows, we will introduce the energy consumptionconstraints of the three categories of appliances.As a background appliance, each au ∈ Au works in a

working period Hau ∈ H, during which it consumes rauenergy per time slot. This is mathematically described as

eau,h =

{rau,h, h ∈ Hau ,

0, otherwise.(2)

We note that the time slots in Hau are allowed to be inter-mittent. There is no flexibility to redistribute the load due tothis type of appliances in response to the price. However, suchappliances are ubiquitous in power systems and contribute alarge percentage of the peak during high-demand hours. Itis thus important to properly schedule categories Bu and Cuappliances to avoid further overloading the peaks.For each appliance au ∈ Bu, user u obtains different levels

of satisfaction for the same amount of energy consumed indifferent time slots. Suppose that the satisfaction is measuredby a time-dependent quality-of-usage function Uau,h(eau,h),which depends on who, when, and how much energy isconsumed. For example, Uau,h(eau,h) may be equal to zeroduring undesirable operation hours. It is reasonable to assumethat Uau,h(eau,h) is a non-decreasing concave function ofeau,h at any time slot h ∈ H. Besides, for each applianceau ∈ Bu, the energy consumption per time slot is subject to

0 ≤ eau,h ≤ rmaxau , ∀h ∈ H, (3)

where rmaxau is the maximum energy that can be consumed in

the time slot when appliance au is working.As a semi-inelastic appliance, each au ∈ Cu works in a

working period H′au ⊆ H, during which it consumes Eau

energy in total. This is written as

∑h∈H′

au

eau,h = Eau (4)

for each appliance au ∈ Cu. Noticeably, the period H′au

is consecutive with the beginning αau ∈ H and the endβau ∈ H. Thus, H′

au can be rewritten as H′au = {αau , αau +

1, · · · , βau}. In practice, the choice of αau and βau dependson the habit (or preference) of user u. Besides, the energyconsumption per time slot is subject to the following constraintdue to this type of appliance, i.e.,

0 ≤ eau,h ≤ rmaxau , ∀h ∈ H′

au . (5)

Furthermore, we have eau,h = 0 for any h /∈ H′au as no

operation (and hence energy consumption) is needed outsidethe working period H′

au . For this type of appliance, there isflexibility to distribute the total load during the working periodin response to the price.

For three categories of appliances, there is usually a limiton the total allowable energy consumption for each user u ateach time slot. This limit, denoted by Cmaxu , can be set by theretailer to impose the following set of constraints on energyscheduling:

∑au∈Au,Bu,Cu

eau,h ≤ Cmaxu , ∀h ∈ H. (6)

In practice, such constraints are used to protect the totalenergy consumption from exceeding the grid capacity. Tosummarize, all valid energy consumption scheduling vectorscan be determined by constraints (2)-(6).

Noticeably, each user u has two contradicting goals, giventhat all its demands (i.e., constraints (2)-(6)) are met. The firstis to maximize its overall satisfaction, given by

∑h∈H

∑au∈Bu

Uau,h(eau,h). (7)

The second goal is to minimize its electricity bill payment,obtained as

∑h∈H

ph

( ∑au∈Au,Bu,Cu

eau,h

). (8)

To balance the two objectives, each user formulates the energy

Page 4: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

QIAN et al.: DEMAND RESPONSE MANAGEMENT VIA REAL-TIME ELECTRICITY PRICE CONTROL IN SMART GRIDS 1271

scheduling problem as maximizing its payoff, i.e.,

P1: maximize∑h∈H

∑au∈Bu

Uau,h(eau,h)

−∑h∈H

ph

(Eu,h +

∑au∈Bu,Cu

eau,h

)(9.1)

subject to 0 ≤ eau,h ≤ rmaxau , ∀au ∈ Bu, ∀h ∈ H,

(9.2)

0 ≤ eau,h ≤ rmaxau , ∀au ∈ Cu, ∀h ∈ H′

au ,(9.3)

eau,h = 0, ∀au ∈ Cu, ∀h /∈ H′au , (9.4)∑

h∈H′au

eau,h = Eau , ∀au ∈ Cu, (9.5)

∑au∈Bu,Cu

eau,h ≤ Cmaxu − Eu,h, ∀h ∈ H,

(9.6)

variables eau , ∀au ∈ Bu, Cu,where Eu,h is the total energy consumed by backgroundappliances at time slot h, satisfying

Eu,h =∑

au:h∈Hau

rau,h. (10)

Note that through solving Problem 1, each user can indepen-dently determine its optimal energy usage based on the pricesforecasted by the retailer.

B. Retailer

When we solve Problem P1, the optimal total energyconsumption from all users in each time slot depends on theprice vector p = [p1, · · · , pH ]. For notational convenience,let Su,h(p) denote the corresponding optimal total energyconsumption of user u at time slot h. As shown in thenext section, given the price, each user can easily calculateSu,h(p)’s from Problem P1.Note that the retailer has one goal to maximize its profit,

which is the difference between revenue and cost with whichit buys energy from the generators. In particular, the revenueis given by ∑

h

(∑u∈U

Su,h(p)

)ph, (11)

and the cost is denoted as an increasing convex function ofthe load demand at each time slot, i.e.,

∑h∈H

a

(∑u∈U

Su,h(p)

)2

+ b

(∑u∈U

Su,h(p)

)3

, (12)

where a and b are positive factors [22]. Mathematically, thegoal of the retailer is therefore written as

P2: maximize L(p) =∑h∈H

(∑u∈U

Su,h(p)

)ph

− w

⎛⎝∑h∈H

a

(∑u∈U

Su,h(p)

)2

+ b

(∑u∈U

Su,h(p)

)3⎞⎠

subject to pl ≤ ph ≤ pu, ∀h ∈ H,variables p,

(13)

where pl and pu denote the lower-bound price and the upper-bound price due to regulation, respectively, and the coefficientw reflects the weight of cost in the net profit.Noticeably, the optimal solution of Problem P2 depends

on the form of the total electricity consumption (i.e.,∑u∈U

Su,h(p)). The detailed solution to Problem P2 will be

discussed in Section IV.

III. IMPLEMENTATION OF ELECTRICITY CONSUMPTIONSCHEDULING

In this section, we first derive Su,h(p)’s at the user side.Each user can then inform the retailer of Su,h(p)’s via thecommunication channels. With this information, the retailercan then efficiently calculate the demand response from eachuser for any price vector p, thus removing the uncertainty ofuser response.Due to the concavity of Uau,h(eau,h), Problem P1 is a

convex optimization problem, and the optimal solution canbe obtained by the primal-dual arguments [17]. That is, wecan solve Problem P1 through maximizing its Lagrangianand minimizing the corresponding dual function. Let ηu =(ηu,1, · · · , ηu,H ) denote the Lagrange multiplier vector cor-responding to the constraint (9.6). We define the LagrangianL({eau}au ,ηu) associated with Problem P1, i.e.,

L({eau}au ,ηu)=∑h∈H

∑au∈Bu

Uau,h(eau,h)−∑h∈H

ph

( ∑au∈Bu,Cu

eau,h

)

+∑h∈H

ηu,h

(Cmaxu − Eu,h −

∑au∈Bu,Cu

eau,h

).

(14)Mathematically, the optimizations of the Lagrangian and thedual problem are expressed as

g(ηu) =maximize L({eau}au ,ηu)subject to 0 ≤ eau,h ≤ rmax

au , ∀h ∈ H, ∀au ∈ Bu,∑h∈H′

au

eau,h = Eau , ∀au ∈ Cu,

0 ≤ eau,h ≤ rmaxau , ∀au ∈ Cu, ∀h ∈ H′

au ,

eau,h = 0, ∀au ∈ Cu, ∀h /∈ H′au ,

variables eau , ∀au ∈ Bu, Cu.(15)

and

Dual Problem: minimize g(ηu)

subject to ηu,h ≥ 0, ∀h ∈ H,variables ηu,

(16)

respectively.Let U ′

au,h(eau,h) denote

∂Uau,h(eau,h)∂eau,h

and U ′−1au,h

(·) denotethe inverse function of U ′

au,h(·). Let Hu be the set of time

slots in which there might be semi-elastic appliances for useru. It is clear that Hu =

⋃au∈Cu

H′au . Likewise, let the optimal

solution to (15) be eau,h(ph, ηu,h) for all au ∈ Bu andeau,h(p, (ηu,h, ∀h ∈ Hu)) for all au ∈ Cu in each h ∈ H,respectively. According to the theory of convex optimization

Page 5: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1272 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

and linear optimization [17], we have the following result asshown in Lemma 12.

Lemma 1. The optimal solution to (15) satisfies3

eau,h(ph, ηu,h)

=

[U ′−1au,h

(ph + ηu,h)

]rmaxau

0

, ∀au ∈ Bu, ∀h ∈ H, (17)

and for all au ∈ Cu and hi ∈ Heau,hi(p, (ηu,h, ∀h ∈ Hu))

=

⎧⎪⎪⎪⎪⎨⎪⎪⎪⎪⎩

rmaxau , if i ∈ {1, 2, · · · , � Eau

rmaxau

�} and hi ∈ H′au

Eau − rmaxau × � Eau

rmaxau

�, elseif i = � Eau

rmaxau

�+ 1

and hi ∈ H′au

0, otherwise,(18)

where hi follows that phi + ηu,hi ≤ phi+1 + ηu,hi+1 .

The proof of Lemma 1 is deferred to Appendix A.After obtaining the optimal solution to problem (15), we

want to minimize the dual problem (16). In particular, problem(16) can be decomposed into (19) and (20).From problem (19), we have Lemma 2 as shown in the

following.

Lemma 2. If

∑au∈Bu

[U ′−1au,h

(ph)

]rmaxau

0

≤ Cmaxu − Eu,h, h /∈ Hu (21)

2For simplicity, we assume that the smart grid can tolerate that ev-ery category Cu appliance consumes rmax

auat the same time slot, i.e.,∑

au∈Cu

rmaxau

≤ Cmaxu −Eu,h,∀h.

3Notation [x]ba means max{min{x, b}, a}, and notation �x� returns thelargest integer not greater than x.

the optimal solution to (19) is zero, and the optimal energyconsumption of each appliance au at time slot h /∈ Hu satisfies

e∗au,h(ph) =[U ′−1au,h

(ph)

]rmaxau

0

, ∀au ∈ Bu, h /∈ Hu. (22)

Otherwise, the unique optimal solution to (19) is a function ofph, denoted by η∗u,h(ph), and the optimal energy consumptionof each appliance au at time slot h /∈ Hu satisfies

e∗au,h(ph) =[U ′−1au,h

(ph+η∗u,h(ph))

]rmaxau

0

, ∀au ∈ Bu, h /∈ Hu.

(23)Moreover, the total optimal energy consumption at time sloth /∈ Hu is equal to Cmax

u . That is,∑au∈Bu

e∗au,h(ph) = Cmaxu − Eu,h, h /∈ Hu. (24)

The proof of Lemma 2 is deferred to Appendix B.Denote by Su,h(p) the total energy consumed by user u in

each time slot h. By Lemma 2, we have (25).

Su,h(p) =∑au∈Bu

e∗au,h(ph) + Eu,h

= min

{Cmaxu , Eu,h +

∑au∈Bu

[U ′−1au,h

(ph)

]rmaxau

0

}, ∀h /∈ Hu.

(25)

Remark 1. The total energy consumption follows (25) as longas there is no energy consumption of semi-elastic appliancesin time slot h.

Next, we focus on calculating the total energy consumptionin time slot h when there may exist semi-elastic appliances,i.e., Problem (20). A close look at Problem (20) revealsthat to solve Problem (20), we first need to sort the timeslots in Hu as the order {h1, · · · , hi, · · · , hL} such that

minimize∑h/∈Hu

∑au∈Bu

Uau,h(eau,h)−∑h/∈Hu

(ph + ηu,h)

( ∑au∈Bu

eau,h

)+∑h/∈Hu

ηu,h

(Cmaxu − Eu,h

)

subject to eau,h =

[U ′−1au,h

(ph + ηu,h)

]rmaxau

0

, ∀h /∈ Hu, ∀au ∈ Bu,

ηu,h ≥ 0, ∀h /∈ Hu,

variables ηu,h, ∀h /∈ Hu.

(19)

minimize∑hi∈Hu

∑au∈Bu

Uau,hi(eau,hi)−∑hi∈Hu

(phi + ηu,hi)

( ∑au∈Bu,Cu

eau,hi

)+∑hi∈Hu

ηu,hi

(Cmaxu − Eu,hi

)

subject to eau,hi =

[U ′−1au,hi

(phi + ηu,hi)

]rmaxau

0

, ∀hi ∈ Hu, ∀au ∈ Bu,

∀au ∈ Cu, eau,hi =

⎧⎪⎪⎨⎪⎪⎩rmaxau if i ∈ {1, 2, · · · , � Eau

rmaxau

�} and hi ∈ H′au

Eau − rmaxau × � Eau

rmaxau

�, elseif i = � Eau

rmaxau

�+ 1 and hi ∈ H′au

0, otherwise,

ηu,hi ≥ 0, ∀hi ∈ Hu,

variables ηu,hi , ∀hi ∈ Hu.

(20)

Page 6: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

QIAN et al.: DEMAND RESPONSE MANAGEMENT VIA REAL-TIME ELECTRICITY PRICE CONTROL IN SMART GRIDS 1273

η(k)u,h =

[η(k−1)u,h − ψ

(k)u,h

(Cmaxu − Eu,h −

∑au∈Bu

eau,h(ph + η(k−1)u,h )−

∑au∈Cu

eau,h(p, (η(k−1)u,h , ∀h ∈ Hu))

)]+, ∀h ∈ Hu. (26)

Algorithm 1 Implementation of Electricity ConsumptionScheduling for given p in Hu

1: Initialization; Randomly choose η(0)u,h > 0, ∀h ∈ Hu. Letk = 1.

2: repeat3: Calculate eau,h(ph + η

(k−1)u,h )’s and

eau,h(p, (η(k−1)u,h , ∀h ∈ Hu))’s by Lemma 1.

4: Update the multiplier variables η(k)u,h’s according to (26).5: k = k + 1.

6: until∑

h∈Hu

( ∑au∈Bu

(eau,h(ph + η(k−1)u,h ) − eau,h(ph +

η(k−2)u,h ))2 +

∑au∈Cu

(eau,h(p, (η(k−1)u,h , ∀h ∈ Hu)) −

eau,h(p, (η(k−2)u,h , ∀h ∈ Hu)))

2

)≤ ε.

phi + ηu,hi ≤ phi+1 + ηu,hi+1 for all hi ∈ Hu, whereL = |Hu|. Then, the energy consumption of each semi-elasticappliance is given according to the order of time slots. Sincethe order of time slots depends on the summation of ηu,h andph for all h ∈ Hu, the energy consumption has no closed-form expression for the semi-elastic appliances. Therefore,it is difficult to obtain the optimal solution η∗u,h(p)’s from(20). Alternatively, for a given p, we can adopt an iterativenumerical algorithm to obtain η∗u,h(p)’s. In particular, at eachiteration k, the energy consumption is first updated by Lemma2. Then, the multiplier variables are updated as η(k)u,h’s by

the subgradient method (i.e., (26)) [18]. Here, ψ(k)u,h’s are the

stepsizes at the kth iteration. Besides, eau,h(ph + η(k−1)u,h )’s

and eau,h(p, (η(k−1)u,h , ∀h ∈ Hu))’s are the optimal solution to

(15) at the (k − 1)th iteration.Now, we present the implementation of electricity con-

sumption in time slot h when there may exist semi-elasticappliances in Algorithm 1.

Remark 2. At each iteration of Algorithm 1, the energyconsumption and the multiplier variables are updated inclosed forms. Therefore, the complexity of Algorithm 1 isO(|Bu|H + |Cu|H +H) at each iteration.

Note that the optimal solution to Problem P1 is a functionof p, and thus we denote it as e∗au(p)’s. The followingtheorem shows that when the stepsizes ψ(k)

u,h’s in (26) are

small, the optimal solution of (15), i.e., eau,h(ph + η(k)u,h)’s

and eau,h(p, (η(k)u,h, ∀h ∈ Hu))’s, will converge within a small

neighborhood of the optimal solution e∗au(p)’s.

Theorem 1. (a) Constant Stepsize. Assume thatψ(k)u,h = sψ

(0)u,h, where ψ

(0)u,h’s are arbitrary positive

constants. For any ε > 0, there exists some s0 > 0and a time T0, such that for any s ≤ s0, any initial

multiplier variables η(0)u,h’s and all k ≥ T0, we have(27).

(b) Adaptive Stepsize. If the stepsizes are iteration-varying and they are chosen such that ψ(k)

u,h =

s(k)ψ(0)u,h with lim

k→∞s(k) = 0 and

∞∑k=1

s(k) = +∞,then (28) is satisfied.

The detailed proof of Theorem 1 is relegated to AppendixC.With Algorithm 1, the smart meter can quickly calculate the

energy consumption of each appliance (and hence Su,h(p)) ineach time h ∈ Hu in response to the price p forecasted bythe retailer. This implies that the total energy consumption canbe obtained by the smart meter through Algorithm 1 or theclosed-form expression (25) according to the forecasted price.The following example will illustrate both situations.Example 1 (User’s response to the forecasted price p): As-

sume that user u has six appliances, including two backgroundappliances a1 and a2, two elastic appliances a3 and a4, andtwo semi-elastic appliances a5 and a6. Let the schedulinghorizon H be {1, 2, · · · , 8}. Specifically, the working periodof appliance a5 is {3, 4, 5, 6}, and the working period ofappliance a6 is {4, 5, 6, 7}. The total energy consumption ofbackground appliances is [4.0, 3.0, 3.0, 3.5, 2.5, 3.5, 3.5, 3.0]kWh in the scheduling horizon. The maximum allowableenergy consumption Cmax

u of user u is 40 kWh at eachtime slot. The maximum allowable energy consumptions ofappliances a3, a4, a5 and a6 are 20 kWh, 20 kWh, 4 kWhand 6 kWh at each time slot, respectively. The total energyconsumptions of semi-elastic appliances a5 and a6 are 10kWh and 10 kWh in the working period, respectively. Assumeappliance a3 and appliance a4 have a quality-of-usage ofUa3,h(ea3,h) = 1.5w1,h log(m1,h + ea3,h) and a quality-of-service of Ua4,h(ea4,h) = 1.5w2,h log(m2,h + ea4,h) at timeslot h, respectively. The parameters in these two functions aregiven as follows,(

w1,h

w2,h

)h∈H

=

(6 8 6 8 6 10 8 66 8 10 8 10 6 10 8

)

and(m1,h

m2,h

)h∈H

=

(1.0 3.0 1.5 3.5 3.0 3.5 0.5 3.03.0 1.0 1.5 3.0 1.5 3.5 2.0 1.0

).

Consider a given price vector p = $[1.1, 1.0, 1.2, 1.2, 1.9,1.4, 1.9, 1.0]. In this case, the amount of consumed energy iscalculated with the closed-form expression (25) in time slots{1, 2, 8}, since there is no semi-elastic appliance in these timeslots. For other time slots, the smart meter needs to calculatethe energy consumption according to Algorithm 1.Fig. 3 shows the scheduled energy consumption of each

appliance in response to the forecasted price vector p. Inthis example, Algorithm 1 takes 4 iterations to converge tothe desirable energy consumptions in time slots {3, 4, 5, 6, 7}.

Page 7: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1274 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

∑h∈Hu

( ∑au∈Bu

(eau,h(ph + η(k)u,h)− e∗au(p))

2 +∑au∈Cu

(eau,h(p, (η(k)u,h, ∀h ∈ Hu))− e∗au(p))

2

)≤ ε. (27)

limk→∞

∑h∈Hu

( ∑au∈Bu

(eau,h(ph + η(k)u,h)− e∗au(p))

2 +∑au∈Cu

(eau,h(p, (η(k)u,h, ∀h ∈ Hu))− e∗au(p))

2

)= 0. (28)

0 1 2 3 4 5 6 7 8 90

5

10

15

20

25

30

35

40

Schduling Horizon

Tot

al E

nerg

y C

onsu

mpt

ion

(kW

h)

Background appliancesAppliance a

5

Appliance a6

Appliance a3

Appliance a4

p1=$1.1

p3=$1.2

p5=$1.9

p6=$1.4

p7=$1.9

p4=$1.2

p2=$1.0

p8=$1.0

Fig. 3. The scheduled energy consumption of each appliance in response tothe forecasted price vector p.

Recall Remark 2 that the complexity of Algorithm 1 isO(|Bu|H + |Cu|H + H) at each iteration. Therefore, it isof practical meaning for the smart meter because of its lowcomputing capability. It can be further seen from Fig. 3 thatthe larger price the less energy consumption for semi-elasticappliances. This is because that the minimum payment isthe target of semi-elastic appliances. However, it might notbe satisfied for the elastic appliances, because the quality-of-service also needs to be considered except the payment.

IV. SIMULATED ANNEALING BASED ALGORITHM FOR

PRICE CONTROL

In the section above, we have obtained the solution ofelectricity consumption in response to electricity prices. Inthis section, we consider how the retailer adjusts the electricityprices according to users’ responses.

A. Simulated Annealing based Price Control (SAPC) Algo-rithm

The retailer determines the optimal price vector for a certaintime period (namely a scheduling horizon) right before thestart of the time period. For example, the price used for aday can be calculated during the last few minutes of theprevious day. Due to the non-convexity of Su,h(p)’s, convexoptimization methods cannot be used to solve the retailer side

problem P2. The proposed price control algorithm here isbased on the use of Simulated Annealing (SA) [19], and isreferred to as SAPC.

Suppose that two-way communications between the retailerand users is possible through certain types of communica-tion networks in future smart grids. The SAPC algorithmsolves Problem P2 in an iterative manner. In each iteration,the retailer broadcasts to all users a tentative price vectorp. Each user then responds with Su,h(p) for all h. If nosemi-elastic appliance is present, Su,h(p) can be analyticallycalculated through the closed-form expression (25). Otherwise,the users compute Su,h(p) using Algorithm 1. Based on theseresponses, the retailer updates the price vector based on theconcept of SA, which will be discussed shortly. The updatedprice is then broadcasted to probe the users’ responses. Whenthe price vector is finalized, the retailer sends it to all users,who will schedule energy consumption for the next schedulinghorizon accordingly.

Update of p: In each iteration of the SAPC algorithm, oneentry of p is updated while the others keep fixed. Differententries p1, p2, · · · , pH are updated in a round robin manner inconsecutive iterations. When ph is to be updated, for example,the retailer randomly picks p′h in [pl, pu] for time slot h, andthen broadcasts the updated power vector (p−h, p′h) to users.Here, p−h denotes the vector (p1, ..., ph−1, ph+1, ..., pH).Having received the responses Su,h(p−h, p′h)’s from all users,the retailer calculates the value L(p−h, p′h), where L(·) is de-fined in (13). Then, the retailer compares this value with L(p)calculated in the previous iteration. If Δ = L(p−h, p′h)−L(p)is larger than 0, then p′h is accepted as the new ph withprobability 1. Otherwise, it is accepted as the new ph witha probability exp(ΔT ), and the old ph keeps with a probability1− exp(ΔT ), where T is a control parameter (also referred toas temperature). For convergence, T decreases with each itera-tion. Intuitively, the acceptance of uphill-moving becomes lessand less likely with the decrease of T , implying convergencewhen T is sufficiently small. When ph is updated as p′h, theretailer updates the memory of L(p) as L(p−h, p′h). Afterthe SAPC algorithm is terminated, the retailer broadcasts theupdated price vector encapsulated in a packet to the smartmeters at the beginning of the following scheduling horizon.Such updated price vector is used for the electricity prices inthe following scheduling horizon.

The following propositions discusses the convergence of theSA-based algorithms.

Proposition 1 ( [20], [21]). The SAPC algorithm convergesto the global optimal solution to Problem P2, as the controlparameter T approaches to zero with T = T0

log(k) .

Page 8: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

QIAN et al.: DEMAND RESPONSE MANAGEMENT VIA REAL-TIME ELECTRICITY PRICE CONTROL IN SMART GRIDS 1275

Algorithm 2 The SAPC AlgorithmProcedure at the retailer side:1: Initialization: Set T = T0, k = 1, and p is initialized asthe price vector used in the current scheduling horizon.

2: repeat3: for all h’s in the order of {1, 2, · · · , H} do4: The retailer randomly pick p′h ∈ [pl, pu], and broad-

casts p′h and ph−1 encapsulated in a packet to thesmart meters via LAN.

5: After receiving the packet from the users includingthe energy information Su,h(p−h, p

′h)’s, the retailer

calculates L(p−h, p′h) in Problem P2 according tothe received Su,h(·)’s.

6: The retailer computes Δ = L(p−h, p′h)− L(p), andlet ph = p′h with probability 1 if Δh ≥ 0. Otherwise,let ph = p′h with probability exp(ΔT ), or ph = phwith probability (1 − exp(ΔT )).

7: When ph is updated as p′h, the retailer updates thememory of L(p) as L(p−h, p′h).

8: end for9: k = k + 1.10: T = T0

log(k) .11: until T < ε.12: The retailer broadcasts the updated price vector p encap-

sulated in a packet to the smart meters at the beginningof the following scheduling horizon.

Procedure at the user side:1: After receiving the packet from the retailer, the smartmeter updates the tentative price vector as (p−h, p′h) inits memory.

2: The smart meter calculates the response to (p−h, p′h) byeither (25) or Algorithm 1.

3: The smart meter informs the retailer of the total energyconsumption in each time slot encapsulated in a packet.

For practical implementation, a solution very close to theglobal optimal solution4 is obtained when T < ε, where ε isa very small number. The details of the SAPC algorithm isgiven in Algorithm 2.

B. Computational Complexity of SAPC

Recall the SAPC algorithm, and the number of roundsneeded for the SAPC algorithm is exp(T0

ε ). Since H iterationsare needed in one round, the total number of iterations neededfor the SAPC algorithm is equal to exp(T0

ε )H , where H isthe number of time slots in the scheduling horizon. Therefore,we have the following Lemma 3.

Lemma 3. Given the initial temperature T0 and the stoppingcriterion ε, the SAPC algorithm needs exp(T0

ε )H iterations5.

Two-way communications between the retailer and usersare needed when the price in any time slot is updated, as the

4Due to the non-convexity of Problem P2, there may exist several distinctglobal optimal solutions. The SAPC algorithm is proposed for finding onesuch solution.5In each iteration of the SAPC algorithm, all users need to independently

run Algorithm 1 once and calculate (25) (H-|Hu|) times, where |Hu| is thenumber of time slots in which there exist semi-elastic appliances for user u.

retailer needs to broadcast the updated prices to users in acontrol packet, and each user needs to inform the retailer ofits possible energy consumption in a data packet. Therefore,the time needed for one iteration consists of the transmittime of packets, the computational time in response to theupdated price at each smart meter, and the computationaltime of updating the price at the retailer side. The transmittime depends on the underlying communication technology.In practice, the transmit time of packets with 32 bytes is atthe order of 1 ∼ 103 ms per iteration over a broadband witha speed of 100 Mbps. One the other hand, the computationaltime totally depends on the processors of the retailer and smartmeters, the number of users, and the number of appliances ofeach user. Let the transmit time and the computational time beTt time units and Tc time units, respectively. Then, by Lemma3, the SAPC algorithm takes (Tt + Tc)H exp(T0

ε ) time units.This implies that the retailer needs to update the prices for thefollowing scheduling horizon (Tt + Tc)H exp(T0

ε ) time unitsbefore the end of the current scheduling horizon.

V. SIMULATION RESULTS

In this section, we conduct simulations to illustrate theeffectiveness of the proposed real-time pricing scheme.Example 2: We consider a smart grid with 100 users,

where each user u has four elastic appliances (i.e., u1, u2,u3 and u4) and two semi-elastic appliances (i.e., u5 and u6).Assume each user u has a quality-of-usage of Uui,h(eui,h) =−aui,h(eui,h + bui,h)

−1 for each elastic appliance ui at eachtime slot h. Specifically, each parameter aui,h is chosen fromthe uniform distribution on [10, 20], and each parameter bui,h

is chosen from the uniform distribution on [2, 5]. The timescheduling horizon is H = {1, 2, · · · , 12}. The maximumallowable energy consumption of each user follows the uni-form distribution on [10, 15] kWh at each time slot. Themaximum allowable energy consumptions of each appliancefollows the uniform distribution on [1.0, 2.0] kWh at eachtime slot. The total energy consumption of each semi-elasticappliance follows the uniform distribution on [4, 6] kWh in theworking period. Assume that the total energy consumptionof background appliances follows the uniform distributionon [1,2] kWh at each time slot for each user. Let the timescheduling horizon be H = {1, 2, · · · , 12}. Let the workingperiod of each semi-elastic appliance be consecutive withthe beginning αui and the end βui , where αui and βui arerandomly chosen from H. Finally, let w = 1, a = 10−4, andb = 2× 10−5 in (13).We first compare the total energy consumption at each time

slot under different settings of price in Fig. 4. Here, boththe optimal flat-rate price and the optimal real-time price arecomputed by the proposed SAPC algorithm. When the pro-posed SAPC algorithm is used for computing the optimal flat-rate price, all elements in the price vector are simultaneouslyupdated to the same value at each round. From Fig. 4, we cansee that in any time slot, the increase of electricity price leadsto the reduction of total energy consumption in the time slot,regardless of the prices setting in other time slots. For example,in time slot 5, the most energy consumption happens whenp5=$0.58, while the least enegy consumption happens whenp5=$1.50. For the flat-rate scheme, this implies that when the

Page 9: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1276 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

1 2 3 4 5 6 7 8 9 10 11 120

200

400

600

800

1000

1200

1400

1500

Scheduling Horizon

Tot

al E

nerg

y C

onsu

mpt

ion

(kW

h)

Flat−rate price ph=$0.58,∀ h

Flat−rate price ph=$1.428,∀ h

Optimal flat−rate price ph=$1.45,∀ h

Optimal real−time price p∗

p∗=$(1.41, 1.28, 1.50, 1.45, 1.50, 1.50, 1.50, 1.50, 1.38, 1.35, 1.28, 1.26)

Fig. 4. The total energy consumption under different settings of price.

retailer increases the price in each time slot, all load demandsare reduced in the scheduling horizon accordingly, which canbe also found in Fig. 4 from the two flat-rate schemes. Thereduction of load demand further leads to the reduction of peakdemand. Furthermore, Fig. 4 shows that compared to the twoflat-rate pricing schemes, the real-time pricing scheme flattensthe load demand curve and reduces the peak-to-average loadratio. In particular, the real-time pricing scheme reduces thepeak-to-average load ratio by about 20% compared to the flat-rate pricing schemes.

We then compare the revenue, the cost, and the profitunder different settings of price in Table I. Specifically, theseperformances are evaluated at the retailer side. It can be seenfrom Table I that (i) to make ensure the same total paymentfrom users (i.e.,$5923.6), the cost under the flat-rate pricing(i.e., $6930.7) is much higher due to the increase of peakdemand (as shown in Fig.4); (ii) to make the same cost, theretailer has to set the flat rate to be high enough to compensatethe peak cost; (iii) under the flat-rate pricing scheme, theretailer achieves the maximum profit with the price of $1.45,which is lower than that achieved by our real-time pricingscheme.

Example 3: In this example, we conduct an experimentto observe the total time needed for obtaining the optimalprice vector if the two-way communication in the SAPCalgorithm is done through general-purpose networks, such asInternet. Our experiment emulates the retailers and users bycomputers that are connected to the public network throughsub-networks from different service providers. The retailercomputer is located in The Chinese University of HongKong, and the user computers are scattered throughout theHong Kong city. We consider an experiment situation withN user computers, where N is from 100 to 1000. Eachuser has six elastic appliances, four semi-elastic appliances,and several background appliances. Assume the retailer sideprocedure and the user side procedure in the SAPC algorithm

TABLE IUSERS’ AND RETAILER’S BEHAVIORS UNDER DIFFERENT PRICE SETTING

Flat-rate pricing

Price setting Total Payment/Revenue Cost Profit

ph = $0.58, ∀h $5923.6 $6930.7 $-1007.1

ph = $1.428, ∀h $5787 $1191.2 $4595.8

Optimal flat price

ph = $1.45, ∀h $5698.1 $1097.5 $4600.6

Real-time pricing (Achieved by SAPC)

Optimal price Total Payment/Revenue Cost Profit

p∗ =

$(1.41, 1.28, 1.50,

1.45, 1.50, 1.50, $5923.6 $1191.2 $4732.4

1.50 1.50, 1.38,

1.35, 1.28, 1.26)* The total payment is the sum of all users’ payment, equal to the retailer’srevenue. The cost and the profit are evaluated by the retailer.

are implemented with MATLAB6. The scheduling horizon isH = {1, 2, · · · , 24} hours. The initial price vector is randomlypicked.Fig. 5 shows the total time needed to the optimal price

vector. It can be seen that both the total time and the timefor two-way communications do not change much when thenumber of users increases. For example, it only takes in total580 seconds for the retailer to communicate with the users forthe purpose of probing Su,h(p)’s, even when the number ofusers is 1000. The total time needed goes up to 600 seconds,i.e., 10 minutes, when the MATLAB computational time isalso included. Note that the computational time in real-systemdeployment can be much shorter with, say, special-purposeFPGAs. This result is very encouraging, as it implies that theretailer only needs a few minutes before midnight to determinethe optimal price vector for the next day (24 hours). Moreimportantly, the result implies that the algorithm is ratherscalable with the number of users, as the time cost does notincrease much when the user number becomes large.

VI. CONCLUSIONS

In this paper, we proposed an optimal real-time pricingscheme for the reduction of peak-to-average load ratio insmart grid. The proposed scheme solves a two-stage opti-mization problem, as which the real-time pricing scheme isformulated. At the users’ side, we can obtain the optimalenergy consumption that maximizes the quality-of-usage withminimum electricity payment either in closed forms or throughan efficient iterative algorithm. As the retailer side, we useda Simulated-Annealing-based Price Control (SAPC) algorithmto obtain the optimal real-time price that maximizes the profit.In terms of practical implementation, users and the retailerinteract with each other through a limited number of messageexchanges over a communication network to reach the optimalprices. Simulation results showed that our proposed algorithmcan lead to performance improvement for both the retailer andusers.

6In this paper, MATLAB with version R2010b is used on a HP Compaqdx7300 desktop with 3.6GHz processors and 1Gb of RAM.

Page 10: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

QIAN et al.: DEMAND RESPONSE MANAGEMENT VIA REAL-TIME ELECTRICITY PRICE CONTROL IN SMART GRIDS 1277

100 200 300 400 500 600 700 800 900 10000

100

200

300

400

500

600

700

Number of Users

Tim

e (S

econ

ds)

The time for two−way communicationsTotal time needed to the optimal price vector

Fig. 5. Total time needed for obtaining the price vector VS number of users

APPENDIX APROOF OF LEMMA 1

Due to the decoupling of energy consumption among the Bucategory appliances and the Cu category appliances, problem(15) is decomposed into

maximize∑h∈H

∑au∈Bu

Uau,h(eau,h)

−∑h∈H

(ph + ηu,h)

( ∑au∈Bu

eau,h

)

subject to 0 ≤ eau,h ≤ rmaxau , ∀h ∈ H, ∀au ∈ Bu,

variables eau , au ∈ Bu,

(29)

and

minimize∑h∈Hu

(ph + ηu,h)

( ∑au∈Cu

eau,h

)

subject to∑

h∈H′au

eau,h = Eau , ∀au ∈ Cu,

0 ≤ eau,h ≤ rmaxau , ∀au ∈ Cu, ∀h ∈ H′

au ,

eau,h = 0, ∀au ∈ Cu, ∀h /∈ H′au ,

variables eau , au ∈ Cu.

(30)

Due to the concave nature of Ueau(·), the optimal solution of

problem (29) can be obtained when the first derivative of theobjective function over eau’s is set to zero. In particular, suchoptimal solution satisfies (17). Based on the assumption of∑au∈Cu

rmaxau ≤ Cmax

u − Eu,h for all h, the optimal solution

of the linear optimization problem (30) can be obtainedby partitioning more energy to the working time slot withsmaller price. In particular, such optimal solution satisfies (18).Therefore, Lemma 1 follows. �

APPENDIX BPROOF OF LEMMA 2

Due to the convex nature of the dual problem, we obtainthe optimal solution η∗u,h(ph)’s by the Karush-Kuhn-Tucker

(KKT) sufficient and necessary conditions of (19). Let υh isthe multiplier variable regarding the constraint of ηu,h ≥ 0.In particular, the KKT of (19) follows

∑au∈Bu

(U ′au,h

([U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

)

− (ph + η∗u,h(ph)))∂[U ′−1

au,h(ph + ηu,h)

]rmaxau

0

∂ηu,h

∣∣∣∣ηu,h=η∗u,h(ph)

+ (Cmaxu − Eu,h −

∑au∈Bu

[U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

) = υh

υhη∗u,h(ph) = 0

υh ≥ 0, ∀h /∈ Hu.(31)

Due to the concavity of Uau,h(·), we have

U ′au,h

([U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

)= (ph + η∗u,h(ph)), if 0 ≤ U ′−1

au,h(ph + η∗u,h(ph)) ≤ rmax

au ,(32)

and

[U ′−1au,h

(ph + ηu,h)

]rmaxau

0

∂ηu,h

= 0, if U ′−1au,h

(ph + ηu,h) > rmaxau or U ′−1

au,h(ph + ηu,h) < 0.

(33)From (32) and (33), we get

∑au∈Bu

(U ′au,h

([U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

)−

(ph + η∗u,h(ph)))∂[U ′−1

au,h(ph + ηu,h)

]rmaxau

0

∂ηu,h

∣∣∣∣ηu,h=η∗u,h

(ph)

= 0.(34)

Thus, (31) becomes

Cmaxu − Eu,h −

∑au∈Bu

[U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

− υh

= 0

υhη∗u,h(ph) = 0

υh ≥ 0, ∀h ∈ H.(35)

The concavity of Uau,h(·) implies that U ′−1au,h

(ph + η∗u,h(ph))decreases with η∗u,h(ph), and thus[

U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

≤[U ′−1au,h

(ph)

]rmaxau

0

,

∀η∗u,h(ph) > 0.

(36)

This implies that if (21) is satisfied, then

∑au∈Bu

[U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

< Cmaxu − Eu,h,

∀η∗u,h(ph) > 0.

(37)

Page 11: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1278 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

It follows that if η∗u,h(ph) is positive, then the first equationof (35) is satisfied only when υh is positive. Obviously, itcontradicts with the second equation of (35). Therefore, if(21) is satisfied, then η∗u,h(ph) = 0, and hence (22).Next, we prove the latter part of Lemma 2. Since U ′−1

au,h(ph+

η∗u,h(ph)) decreases with the increase of η∗u,h(ph), there must

exist a positive η∗u,h(ph) such that7

∑au∈Bu

[U ′−1au,h

(ph + η∗u,h(ph))]rmax

au

0

= Cmaxu − Eu,h (38)

when ∑au∈Bu

[U ′−1au,h

(ph)

]rmaxau

0

> Cmaxu − Eu,h. (39)

Therefore, we have (23) and (24). �

APPENDIX CPROOF OF THEOREM 1

Theorem 1 is a consequence of Theorems 2.1, 2.2 and2.3 in [23]. In the following, we first prove part (a). Letη∗u = (η∗u,h, ∀h ∈ Hu) be the optimal solution to (20). Fornotational convenience, let ηu denote the concatenation ofvariables ηu,h’s for all h ∈ Hu, and let e

(k)au,h

and e(k)au,h denote

eau,h(ph + η(k)u,h) and eau,h(p, (η

(k)u,h, ∀h ∈ Hu)), respectively.

Define

||ηu||ψ =∑h∈Hu

(ηu,h)2

ψ(0)u,h

. (40)

Together with ψ(k)u,h = sψ

(0)u,h, by (26), we have (41).

||η(k+1)u − η∗

u||ψ ≤ ||η(k)u − η∗

u||ψ − 2s∑h∈Hu

(η(k)u,h − η∗u,h)J

+∑h∈H

s2ψ(0)u,hJ

2,

(41)where J = Cmax

u − Eu,h − ∑au∈Bu

e(k)au,h

− ∑au∈Cu

e(k)au,h

. For

simplicity, let

f∗(η∗u)

=∑h∈Hu

∑au∈Bu

Uau,h(e∗au,h(p))

−∑h∈Hu

ph

( ∑au∈Bu,Cu

e∗au,h(p))

+∑h∈Hu

η∗u,h

(Cmaxu − Eu,h −

∑au∈Bu,Cu

e∗au,h(p)),

(42)

f (k)(η(k)u )

=∑h∈Hu

∑au∈Bu

Uau,h(e(k)au,h

)

−∑h∈Hu

ph

( ∑au∈Bu

e(k)au,h

+∑cu∈Cu

e(k)au,h

)+∑h∈Hu

η(k)u,hJ,

(43)

7Due to the monotonicity of U ′−1au,h(ph + η∗u,h(ph)), we can obtain

η∗u,h(ph) satisfying (38) through the bisection searching.

and

f (k)(η∗u)

=∑h∈Hu

∑au∈Bu

Uau,h(e(k)au,h

)

−∑h∈Hu

ph

( ∑au∈Bu

e(k)au,h

+∑cu∈Cu

e(k)au,h

)+∑h∈Hu

η∗u,hJ.

(44)Due to the strict convexity of Problem P1, we have

f∗(η∗u) ≥ f (k)(η∗

u). (45)

Thus, it follows from (45) that

f∗(η∗u)− f (k)(η(k)

u ) ≥ f (k)(η∗u)− f (k)(η(k)

u )

=∑h∈Hu

(η∗u,h − η(k)u,h)J

(46)

Substituting (46) into (41), we get

||η(k+1)u − η∗

u||ψ ≤ ||η(k)u − η∗

u||kψ+ 2s(f∗(η∗

u)− f (k)(η(k)u ))

+∑h∈Hu

s2ψ(0)u,hJ

2.(47)

Given λ > 0, let

Φ(λ) =

{η(0)u |f (0)(η(0)

u ) ≤ f∗(η∗u) + λ

}(48)

Based on variables eau,h’s, we can find an M <∞ that is nosmaller than the optimal value of (49),

maximize∑h∈Hu

s2ψ(0)u,h(C

maxu − Eu,h −

∑au∈Bu,Cu

eau,h)2

subject to 0 ≤ eau,h ≤ rmaxau , ∀h ∈ H, ∀au ∈ Bu,∑

h∈H′au

eau,h = Eau , ∀au ∈ Cu,

0 ≤ eau,h ≤ rmaxau , ∀au ∈ Cu, ∀h ∈ H′

au ,

variables eau,h, ∀h ∈ Hu, ∀au ∈ Bu, Cu.(49)

Therefore, if we pick

s ≤ λ/M, (50)

then as long as η(k)u /∈ Φ(λ), we have

||η(k+1)u − η∗

u||ψ ≤ ||η(k)u − η∗

u||ψ − sλ (51)

Thus, η(k)u will enter the set Φ(λ) eventually. Once η

(k)u ∈

Φ(λ), if we picks ≤ λ/

√M, (52)

then we have√||η(k+1)

u − η∗u||ψ

≤√||η(k)

u − η∗u||ψ +

√||η(k+1)

u − η(k)u ||ψ

≤√||η(k)

u − η∗u||ψ + λ

(53)

Therefore, ifs ≤ min{λ/M, λ/

√M}, (54)

Page 12: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

QIAN et al.: DEMAND RESPONSE MANAGEMENT VIA REAL-TIME ELECTRICITY PRICE CONTROL IN SMART GRIDS 1279

then there exists a number T0 such that√||η(k)

u − η∗u||ψ ≤ ξ(λ) = max

ηu∈Φ(λ)

√||ηu − η∗

u||ψ , ∀k ≥ T0.

(55)It is clear that, as λ → 0, ξ(λ) → 0. Therefore, for anyε > 0, we can pick λ (and hence s) sufficiently small suchthat ξ(λ) < ε, i.e., there exists time T0 such that√

||η(k)u − η∗

u||ψ ≤ ε, ∀k ≥ T0. (56)

Finally, since the mapping from η(k)u to (eau,h(ph + η

(k)u,h)’s,

eau,h(p, (η(k)u,h, ∀h ∈ Hu))’s) is continuous, we can pick λ

(and hence s) sufficiently small such that (27) is satisfied.The proof of part (b) is similar to part (a), and thus omitted

here. Interested readers are referred to Theorem 3 in [23].Consequently, the proof of Theorem 1 is finished. �

REFERENCES

[1] H. Allcott, Real time pricing and electricity markets, Working Paper,Harvard Univ., Feb. 2009.

[2] H. Mohsenian-Rad and A. Leon-Garcia, “Optimal residential load con-trol with price prediction in real-time electricity pricing enviroments,”IEEE Trans. Smart Grid, vol. 1, no. 2, pp. 120-133, Sep. 2010.

[3] S. Borenstein, “The long-run efficiency of real-time electricity pricing,”The Energy Journal, vol. 26, no. 3, pp. 93C116, 2005.

[4] F. Wolak, “Residential customer response to real-time pricing: theanaheim critical-peak pricing experiment,” Stanford University, Tech.Rep., 2006. [Online]. Available: http://www.stanford.edu/wolak.

[5] B. Alexander, “Smart meters, real time pricing, and demand responseprograms: implications for low income electric customers,” Oak RidgeNatl. Lab., Tech. Rep., Feb. 2007.

[6] A. Faruqui and L. Wood, “Quantifying the benefits of dynamic pricingin the mass market,” Edison Electric Institute, Tech. Rep., 2008.

[7] J. Hausmann, M. Kinnucan, and D. McFaddden, “A two-level electricitydemand model: evaluation of the connecticut time-of-day pricing test,”J. Econometrics, vol. 10, no. 3, pp. 263C289, 1979.

[8] H. Mohsenian-Rad, W.S. Wong, J. Jatskevich, R. Schober, and A.Leon-Garcia, “Autonomous demand dide management based on game-theoretic energy consumption scheduling for the future Smart Grid,”IEEE Trans. Smart Grid, vol. 1, no. 3, pp. 320-331, Dec.2010.

[9] H. Mohsenian-Rad and A. Leon-Garcia, “Optimal residential load con-trol with price prediction in real-time electricity pricing environments,”IEEE Trans. Smart Grid, vol. 1, no. 2, pp. 120-133, Sep. 2010.

[10] S. Borenstein, M. Jaske, and A. Rosenfeld, “Dynamic pricing, advancedmetering, and demand response in electricity markets,” UC Berkeley:Center for the Study of Energy Markets.

[11] N. Li, L. Chen, and S. H. Low, “Optimal demand response based onutility maximization in power networks,” Proc. IEEE power engineeringsociety general meeting, pp. 1-8, Jul. 2011.

[12] L. Chen, W. Li, S. H. Low, and K. Wang, “Two Market Models forDemand Response in Power Networks,” Proc. IEEE SmartGridComm,pp. 397-402, Oct. 2010.

[13] I. C. Paschalidis, B. Li, and M. C. Caramanis, “Demand-Side Man-agement for Regulation Service Provisioning Through Internal Pricing,”IEEE Trans. Power Systems, vol. 27, no. 3, pp. 1531-1539, Aug. 2012.

[14] M. Roozbehani, M. Dahleh, and S. Mitter “On the stability of wholesaleelectricity Markets under Real-Time Pricing,” Proc. IEEE Conferenceon Decision and Control, pp. 1911-1918, Dec. 2010.

[15] P. Samadi, H. Mohsenian-Rad, R. Schober, W.S. Wong, and J. Jatske-vich, “Optimal real-time pricing algorithm based on utility maximizationfor smart grid,” Proc of IEEE SmartGridComm, pp. 415-420, Oct. 2010.

[16] U.S. Department of Energy, The smart grid: an introduction, 2009.[17] D. Bertsekas, Nonlinear programming, 2nd ed. Belmont, MA: Athena

Scientific, 1999.[18] S. Boyd and L. Vandenberghe, Convex optimization, Cambridge, U.K.:

Cambridge Univ. Press, 2004.[19] S. Kirkpatrick, C. D. Gelatt, and J. M. P. Vecchi, “Optimization by

simulated annealing,” Science, vol. 220, no. 4598, pp. 671-680, 1983.[20] S. Geman and D. Geman, “Stochastic relaxation, gibbs distributions, and

the bayesian restoration of images, IEEE Trans. Pattern Anal. Mach.Intell., vol. 6, no. 6, pp. 721-741, 1984.

[21] B. Hajek, “Cooling schedules for optimal annealing,” Math. Oper. Res.,vol. 13, no. 2, pp. 311-329, 1988.

[22] D. P. Kothari and I. J. Nagrath, “Modern power system analysis,”McGraw-Hill Science/Engineering/Math, 2006.

[23] N. Z. Shor, Minimization methods for non-Differentiable functions,Berlin: Springer-Verlag, 1985.

Li Ping Qian (S’08-M’10) received her BEng de-gree with Honors in Information Engineering fromZhejiang University, Zhejiang, China, in 2004, andthe PhD degree in Information Engineering fromthe Chinese University of Hong Hong, Hong Kong,in 2010. She is currently an Associate Professor inthe College of Computer Science and Technology atZhejiang University of Technology, Zhejiang, China.During 2010-2011, she was a Postdoctoral ResearchAssistant in the Department of Information Engi-neering at the Chinese University of Hong Kong.

She was also a visiting student at Princeton University from June to August2009.Her research interests lie in the areas of wireless communication and

networking, including stochastic control and optimization, adaptive resourceallocation for wireless ad hoc networks and multicarrier systems. She is aco-recipient of 2011 IEEE Marconi Prize Paper Award in Wireless Com-munications (the Annual Best Paper Award of IEEE Transactions on Wire-less Communications) and 2012 Outstanding Research Award for ZhejiangProvincial Universities in China, and a finalist to Hong Kong Young ScientistAward in 2011. She received CNOOC grants for 2008-2009 from the ChineseUniversity of Hong Kong.

Ying Jun (Angela) Zhang (S’00-M’05-SM’11)received her PhD degree in Electrical and ElectronicEngineering from the Hong Kong University ofScience and Technology, Hong Kong in 2004. Shereceived a B.Eng in Electronic Engineering fromFudan University, Shanghai, China in 2000.Since 2005, she has been with Department of

Information Engineering, The Chinese University ofHong Kong, where she is currently an AssociateProfessor. She was with Wireless Communicationsand Network Science Laboratory at Massachusetts

Institute of Technology (MIT) during the summers of 2007 and 2009. Hercurrent research topics include resource allocation, convex and non-convexoptimization for wireless systems, stochastic optimization, cognitive networks,MIMO systems, etc..Prof. Zhang is on the Editorial Boards of IEEE Transactions on Commu-

nications and Wiley Security and Communications Networks Journal. Shewas an Editor of IEEE Transactions on Wireless Communications and aGuest Editor of a Feature Topic in IEEE Communications Magazine. Shehas served as a TPC Vice-Chair of Wireless Communications Track of IEEECCNC 2013, TPC Co-Chair of Wireless Communications Symposium ofIEEE GLOBECOM 2012, Publication Chair of IEEE TTM 2011, TPC Co-Chair of Communication Theory Symposium of IEEE ICC 2009, TrackChair of ICCCN 2007, and Publicity Chair of IEEE MASS 2007. Shewa a Co-Chair of IEEE ComSoc Multimedia Communications TechnicalCommittee, an IEEE Technical Activity Board GOLD Representative, 2008IEEE GOLD Technical Conference Program Leader, IEEE CommunicationSociety GOLD Coordinator, and a Member of IEEE Communication SocietyMember Relations Council (MRC).Prof. Zhang received The Young Researcher Award from The Chinese

University of Hong Kong in 2011. She is a co-recipient of 2011 IEEE MarconiPrize Paper Award on Wireless Communications, the Annual Best PaperAward of IEEE Transactions on Wireless Communications. As the only winnerfrom Engineering Science, she has won the Hong Kong Young Scientist Award2006, conferred by the Hong Kong Institution of Science.

Page 13: Demand Response Management via Real-Time Electricity Price Control in Smart Grids

1280 IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS, VOL. 31, NO. 7, JULY 2013

Jianwei Huang (S’01-M’06-S’11) is an AssistantProfessor in the Department of Information Engi-neering at the Chinese University of Hong Kong.He received Ph.D. in Electrical and Computer En-gineering from Northwestern University (Evanston,IL, USA) in 2005. Dr. Huang currently leadsthe Network Communications and Economics Lab(ncel.ie.cuhk.edu.hk), with the main research focuson optimization, economics, and game theoreticalanalysis of networks. He is the recipient of the IEEESmartGridComm Best Paper Award in 2012, the

IEEE Marconi Prize Paper Award in Wireless Communications in 2011, theInternational Conference on Wireless Internet Best Paper Award 2011, theIEEE GLOBECOM Best Paper Award in 2010, Asia-Pacific Conference onCommunications Best Paper Award in 2009, and the IEEE ComSoc Asia-Pacific Outstanding Young Researcher Award in 2009.Dr. Huang is the Editor of IEEE Journal on Selected Areas in

Communications-Cognitive Radio Series, Editor of IEEE Transactions onWireless Communication in the area of Wireless Networks and Systems,Guest Editor of IEEE Journal on Selected Areas in Communications specialissue on “Economics of Communication Networks and Systems, Lead GuestEditor of IEEE Journal of Selected Areas in Communications special issueon “Game Theory in Communication Systems, and Lead Guest Editorof IEEE Communications Magazine Feature Topic on “CommunicationsNetwork Economics. Dr. Huang is the Chair of IEEE ComSoc MultimediaCommunications Technical Committee, and a Steering Committee Memberof IEEE Transactions on Multimedia and IEEE ICME. He has served asTPC Co-Chair of IEEE GLOBECOM Selected Aresa of CommunicationsSymposium (Game Theory for Communications Track) 2013, IEEE WiOpt

(International Symposium on Modeling and Optimization in Mobile, Ad Hoc,and Wireless Networks) 2012, IEEE GlOBECOM Wireless CommunicationsSymposium 2010, IWCMC (the International Wireless Communications andMobile Computing) Mobile Computing Symposium 2010, and GameNets (theInternational Conference on Game Theory for Networks) 2009.

Yuan Wu (S’08-M’10) received the B.E. and M.E.degrees from Zhejiang University, Hangzhou, China,in 2004 and 2006, respectively, and the Ph.D. degreein electronic and computer engineering from theHong Kong University of Science and Technology,Kowloon, Hong Kong, in 2010. From August 2009to January 2010, he was a Visiting Student andResearch Collaborator with Princeton University,Princeton, NJ. During 2010-2011, he was a Post-doctoral Research Associate with the Hong KongUniversity of Science and Technology. He is cur-

rently an Associate Professor with the College of Information Engineering,Zhejiang University of Technology. He wins the Outstanding Research Awardfor Zhejiang Provincial Universities of China in 2012. His research interestsfocus on resource allocation for wireless networks, cognitive radio networks,game theory, and pricing strategy with their applications in communicationnetworks.