14
1 Smoothed Least-Laxity-First Algorithm for EV Charging Niangjun Chen, Member, IEEE, Christian Kurniawan, Yorie Nakahira, Member, IEEE, Lijun Chen, Member, IEEE, Steven H. Low, Fellow, IEEE Abstract—Adaptive charging can charge electric vehicles (EVs) at scale cost effectively, despite the uncertainty in EV arrivals. We formulate adaptive EV charging as a feasibility problem that meets all EVs’ energy demands before their deadlines while satisfying constraints in charging rate and total charging power. We propose an online algorithm, smoothed least-laxity- first (sLLF), that decides the current charging rates without the knowledge of future arrivals and demands. We characterize the performance of the sLLF algorithm analytically and numerically. Numerical experiments with real-world data show that it has a significantly higher rate of feasible EV charging than several other existing EV charging algorithms. Resource augmentation framework is employed to assess the feasibility condition of the algorithm. The assessment shows that the sLLF algorithm achieves perfect feasibility with only a 0.07 increase in resources. Index Terms—power generation scheduling, scheduling, road vehicle power systems, resource management, battery chargers I. I NTRODUCTION T HE electrification of transportation provides an impor- tant opportunity for energy efficiency and sustainability. There were over seven million of pure and hybrid electric vehicles (EVs) worldwide as of 2019 [1], and EV prolifer- ation is expected to accelerate for many years to come. EV charging at scale, however, presents a tremendous challenge as uncontrolled EV charging may strain the power grid and cause voltage instability. One way to mitigate the impact and stabilize the power grid as well as to manage uncertainty in the energy supply from renewable energy resources such as wind power and solar energy is by exploiting the flexibility in charging time and rate. To exploit and optimize this flexibility, many EV charging algorithms have been proposed. There is a very large literature on EV charging algorithms and they can be categorized as either offline or online. The offline algorithms require complete information on all EVs to decide the charging rates, e.g., [2]–[7]. Yet, information on future EV arrivals may not be available or expensive to N. Chen is with the Department of Information Systems Technology and Design, Singapore University of Technology and Design, Singapore 487372. N. Chen has join appointment with the Institute for High Performance Com- puting, Agency for Science, Technology, and Research, Singapore 138632. (e-mail: niangjun [email protected], [email protected]) C. Kurniawan and Y. Nakahira are with the Department of Electrical and Computer Engineering, Carnegie Mellon University, PA 15213, USA. (e-mail: [email protected], [email protected]) L. Chen is with the Department of Computer Science, University of Colorado Boulder, CO, 80309 USA. (e-mail: [email protected]) S. H. Low is with the Department of Computing and Mathematical Sciences, California Institute of Technology, CA, 91125 USA. (e-mail: [email protected]) obtain, which motivates the development of online algorithms, e.g., [3], [8]–[15]. However, an online algorithm, which uses only information from EVs present at the charging station to decide their charging rates, may not produce a solution that satisfies all the constraints even when all EVs’ demands can be satisfied. Thus, the efficacy of these online algorithms still depends on the accurate prediction of EV arrivals and energy demands that is difficult to obtain. The optimum charging rate is obtained by solving either a convex optimization (e.g., [16]–[18]) or a linear programming problem (e.g., [15]). To reduce the computational complexity and memory usage, sorting or bisection based methods (e.g.,earliest-deadline-first, least-laxity-first [19], and Whittle’s index policy [10], [20]) are often employed. Nevertheless, the lack of information on future EV arrivals remains the major challenge for solving the problem. Moreover, these algorithms require temporal coordination across time among a large number of EVs which is hard. In view of these limitations, we investigated low-complexity EV charging that does not require prediction of EV ar- rivals/demands or temporal coordination. We first formulated the charging rate allocation as a feasibility problem to satisfy the energy demands of all EVs before their departure under constraints of individual maximum charging rate of every EV and the total available power supply. We then proposed an online algorithm, the smoothed least-laxity-first (sLLF), based on the classic least-laxity-first (LLF) with an improved success rate in achieving feasibility, that decides on the current charging rates based only on the information up to the current time. Without information on future EV arrivals, the sLLF algorithm makes the best possible decision by maximizing the minimum resulting laxity for the next time among the EVs currently in the system. Here, laxity can be seen as the feasibility margin for EV charging and is defined as the EV’s remaining time at the charging station decreased by the time needed to be fully charged at the maximum charging rate. By considering only the EVs up to the current time, an (offline) feasible instance may be (online) infeasible under sLLF. Additionally, unlike the classic LLF algorithm, the sLLF algorithm avoids unnecessary oscillations in the charging rates. Cost related to the installation, replacement, and develop- ment of both the infrastructure of a charging station including power generation and the battery of an EV is also a factor to be considered in a charging algorithm [21]. Generally, the algo- rithm needs to adhere to the limitation of the resources while still producing a feasible solution [22]. Thus, the feasibility condition of an algorithm can be assessed by characterizing arXiv:2102.08610v1 [eess.SY] 17 Feb 2021

Smoothed Least-Laxity-First Algorithm for EV Charging

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Smoothed Least-Laxity-First Algorithm for EV Charging

1

Smoothed Least-Laxity-First Algorithm for EVCharging

Niangjun Chen, Member, IEEE, Christian Kurniawan, Yorie Nakahira, Member, IEEE,Lijun Chen, Member, IEEE, Steven H. Low, Fellow, IEEE

Abstract—Adaptive charging can charge electric vehicles (EVs)at scale cost effectively, despite the uncertainty in EV arrivals.We formulate adaptive EV charging as a feasibility problemthat meets all EVs’ energy demands before their deadlineswhile satisfying constraints in charging rate and total chargingpower. We propose an online algorithm, smoothed least-laxity-first (sLLF), that decides the current charging rates without theknowledge of future arrivals and demands. We characterize theperformance of the sLLF algorithm analytically and numerically.Numerical experiments with real-world data show that it has asignificantly higher rate of feasible EV charging than severalother existing EV charging algorithms. Resource augmentationframework is employed to assess the feasibility condition ofthe algorithm. The assessment shows that the sLLF algorithmachieves perfect feasibility with only a 0.07 increase in resources.

Index Terms—power generation scheduling, scheduling, roadvehicle power systems, resource management, battery chargers

I. INTRODUCTION

THE electrification of transportation provides an impor-tant opportunity for energy efficiency and sustainability.

There were over seven million of pure and hybrid electricvehicles (EVs) worldwide as of 2019 [1], and EV prolifer-ation is expected to accelerate for many years to come. EVcharging at scale, however, presents a tremendous challengeas uncontrolled EV charging may strain the power grid andcause voltage instability. One way to mitigate the impact andstabilize the power grid as well as to manage uncertainty inthe energy supply from renewable energy resources such aswind power and solar energy is by exploiting the flexibility incharging time and rate. To exploit and optimize this flexibility,many EV charging algorithms have been proposed.

There is a very large literature on EV charging algorithmsand they can be categorized as either offline or online. Theoffline algorithms require complete information on all EVsto decide the charging rates, e.g., [2]–[7]. Yet, informationon future EV arrivals may not be available or expensive to

N. Chen is with the Department of Information Systems Technology andDesign, Singapore University of Technology and Design, Singapore 487372.N. Chen has join appointment with the Institute for High Performance Com-puting, Agency for Science, Technology, and Research, Singapore 138632.(e-mail: niangjun [email protected], [email protected])

C. Kurniawan and Y. Nakahira are with the Department of Electrical andComputer Engineering, Carnegie Mellon University, PA 15213, USA. (e-mail:[email protected], [email protected])

L. Chen is with the Department of Computer Science, University ofColorado Boulder, CO, 80309 USA. (e-mail: [email protected])

S. H. Low is with the Department of Computing and MathematicalSciences, California Institute of Technology, CA, 91125 USA. (e-mail:[email protected])

obtain, which motivates the development of online algorithms,e.g., [3], [8]–[15]. However, an online algorithm, which usesonly information from EVs present at the charging station todecide their charging rates, may not produce a solution thatsatisfies all the constraints even when all EVs’ demands canbe satisfied. Thus, the efficacy of these online algorithms stilldepends on the accurate prediction of EV arrivals and energydemands that is difficult to obtain. The optimum chargingrate is obtained by solving either a convex optimization(e.g., [16]–[18]) or a linear programming problem (e.g., [15]).To reduce the computational complexity and memory usage,sorting or bisection based methods (e.g.,earliest-deadline-first,least-laxity-first [19], and Whittle’s index policy [10], [20])are often employed. Nevertheless, the lack of information onfuture EV arrivals remains the major challenge for solvingthe problem. Moreover, these algorithms require temporalcoordination across time among a large number of EVs whichis hard.

In view of these limitations, we investigated low-complexityEV charging that does not require prediction of EV ar-rivals/demands or temporal coordination. We first formulatedthe charging rate allocation as a feasibility problem to satisfythe energy demands of all EVs before their departureunder constraints of individual maximum charging rateof every EV and the total available power supply. We thenproposed an online algorithm, the smoothed least-laxity-first(sLLF), based on the classic least-laxity-first (LLF) with animproved success rate in achieving feasibility, that decideson the current charging rates based only on the informationup to the current time. Without information on future EVarrivals, the sLLF algorithm makes the best possible decisionby maximizing the minimum resulting laxity for the next timeamong the EVs currently in the system. Here, laxity can beseen as the feasibility margin for EV charging and is defined asthe EV’s remaining time at the charging station decreased bythe time needed to be fully charged at the maximum chargingrate. By considering only the EVs up to the current time,an (offline) feasible instance may be (online) infeasible undersLLF. Additionally, unlike the classic LLF algorithm, the sLLFalgorithm avoids unnecessary oscillations in the charging rates.

Cost related to the installation, replacement, and develop-ment of both the infrastructure of a charging station includingpower generation and the battery of an EV is also a factor to beconsidered in a charging algorithm [21]. Generally, the algo-rithm needs to adhere to the limitation of the resources whilestill producing a feasible solution [22]. Thus, the feasibilitycondition of an algorithm can be assessed by characterizing

arX

iv:2

102.

0861

0v1

[ee

ss.S

Y]

17

Feb

2021

Page 2: Smoothed Least-Laxity-First Algorithm for EV Charging

2

the minimum amount of additional resources (i.e.,total powersupply and charging rates) that will allow the algorithm toproduce a feasible solution, assuming all EVs’ demands canbe satisfied. In this study, the feasibility condition of thesLLF algorithm is analyzed using the resource augmentationframework [23]–[26]. Resource augmentation is a prominentanalysis framework for analyzing the performance of onlinealgorithms for multiprocessor scheduling [27]–[29]. We applythis framework to the EV charging problem that can be viewedas a deadline scheduling problem by considering chargersas processors and EVs with certain energy demand as jobs.Contrary to the traditional application of the framework, inour setting the power limit is time-varying, the maximum ratesare heterogeneous, and the power limit may not necessarily bean integer multiplication of the maximum rate. Our work isthe first to extend resource augmentation into the cases forheterogeneous processors with a time-varying number.

We further carried out numerical experiments using real-world datasets and showed that sLLF has a significantly higherrate of generating feasible EV charging schedules than severalother common EV charging algorithms. This is expected, asthe sLLF algorithm tries to leave the largest feasibility margin,so it can best accommodate arbitrary future EV arrivals. Thedatasets we employed are collected from Google’s facilitiesin Mountain View (Google mtv) and Sunnyvale (Google svl)as well as the adaptive charging network (ACN) testbedwe deployed at California Institute of Technology (Caltech),called CAGarage. At Caltech ACN, each EV arrives at acharger with energy demand and departure time. The chargingfacility also has a time-varying total power supply. The ACNperforms real-time sensing, communication, and control usingthe profiles of each EV (including energy demand, departuretime, and maximum charging rate) to decide the charging rateof each EV. See [30], [31] for more details on the Caltechinfrastructure and [32] on the charging data.

The rest of the paper is organized as follows: Section IIintroduces the system model and proposes the sLLF algorithm;the performance of the sLLF algorithm is analyzed via the pro-cedure describes in Section III; then the result and discussionof the performance analysis are presented in Section IV.

II. MODEL AND ALGORITHM

A. System Model

In this study, we consider a system with one charging stationthat serves a set of EVs, indexed by i∈V= {1, 2, 3, · · ·}. Weuse a discrete-time model where time is divided into slots ofequal sampling intervals, indexed by t ∈ T= {0, 1, 2, · · · ,T}.EV i arrives at the charging station with an energy demand ei attime ai, and departs from the station at time di

1. During its stayat the station, the EV is charged at a rate (or power) of ri(t)≥0, ai ≤ t < di. For convenience, since the rate is adjusted ata discrete-time which make the value of the charging rate of

1Each EV leave at its departure time regardless of its charging conditions.This assumption is applicable for most slow chargers including ACN [30].Under this assumption, we do need to explicitly model the number of stations,as the speed of charging does not affect the availability of chargers forincoming EVs.

vehicle i at a given time is equal to the energy transmittedto the vehicle, we extend the definition of ri(t) to the entiretemporal domain such that the notation ri(t) can be interpretedas both the charging rate of and the energy transmitted into thevehicle i at time t. We also denote the set of the remaining EVsin the charging station at time t as Vt = {i ∈ At : ai ≤ t < di}and the remaining energy demand of EV i at time t as ei(t).The notations are summarized in Table I.

Constraints of the system need to be defined to satisfy thecharger and power supply limitation along with the vehicle’senergy demand. To account for the limitations in the chargeror battery of an EV, each EV i can only be charged up to apeak rate, ri: {

0≤ ri(t)≤ ri, t ∈ [ai,di), i ∈ V

ri(t) = 0, t /∈ [ai,di), i ∈ V

wherermin ≤ ri ≤ rmax, i ∈ V

(1)

To account for the limitations in the power grid or station,the charging station has a (possibly time-varying) power limit,P(t), such that2

∑i∈V

ri(t)≤ P(t), t ∈ T

where 0≤ Pmin ≤ P(t)≤ Pmax

(2)

Finally, every EV’s energy demands need to be satisfied3

∑t∈T

ri(t) = ei, i ∈ V (3)

The charging problem instance is then defined as a quintupleI= {ai,di,ei, ri;P(t)}i∈V,t∈T . The primary goal of EV charg-ing is to satisfy every EV’s energy demands under the abovepower supply and peak charging rate constraints (Eqs. (1)–(3)).

Definition 1 (feasible instance). An EV charging probleminstance I is offline feasible if there exist charging ratesr = {ri(t) : i ∈ V, t ∈ T} that satisfy Eqs. (1)–(3).

Because Eqs. (1)–(3) are affine, verifying the feasibility of anEV charging instance is a linear programming (LP) problemfor which many efficient algorithms exist.

B. Online Scheduling

In practice, information of the energy demand and departuretime of an EV is only available after its arrival4. Consequently,the charging station need to employ an online algorithm todetermine the current charging rate of EV i at time t, ri(t),given information only up to the current time by mapping itinto

2All EVs at the charging station can be simultaneously charged as long asthe constraints Eqs. (1) and (2) are satisfied.

3The actual constraint in ACN is ∑t∈T δ ri(t) = ei, i ∈ V, where δ is thesojourn time in unit of hours of sampling time intervals, ei has unit of kWh,ri(t) has unit of kW [30]. Since ri(t) can always be rescaled according to δ ,we set δ = 1 without loss of generality.

4In ACN, information of the energy demand and departure time is gatheredfrom user inputs upon arrival.

Page 3: Smoothed Least-Laxity-First Algorithm for EV Charging

3

TABLE I: notations

notation descriptionV set of EVs in the systemVt set of EVs remain in the charging station at

time tT set of the system’s discrete-timeai arrival time of EV idi departure time of EV iei energy demand of EV i ∈ V

ei(t) remaining energy demand of EV i at time t ∈T

ri(t) charging rate of or energy transmitted into EVi at time t

P(t) power limit of the charging station at time tI EV charging problem instance

It = {ai,di,ei(τ), ri;P(τ)}i∈Vt ,τ≤t

where ei(τ) = ei−τ−1

∑j=0

ri( j)(4)

Definition 2 (online algorithm). An online algorithm is asequence of functions, A = {At}, where each function, At :It → r(t), maps the information up to the current time, It , tothe current charging rates, r(t) = {ri(t)}i∈Vt .

Definition 3 (feasibility of an algorithm). An (online) algo-rithm, A, is (online) feasible on instance I if it gives chargingrates that satisfy constraints defined in Eqs. (1)–(3).

For an online algorithm to be feasible, it must be onlinefeasible for all offline feasible instances. However, In general,there does not exist an online algorithm that is feasible on alloffline feasible instances. In this paper, we investigate the casesin which online feasibility can be guaranteed with additionalassumptions.

C. Smoothed Least-Laxity-First Algorithm

In this section, we introduce our proposed online algorithm,the smoothed Least-Laxity-First (sLLF), which is an improve-ment from the classic least-laxity-first (LLF) algorithm [33].We can see laxity as a measure for the flexibility (or urgency)in the charging process of an EV.

Definition 4 (laxity). The laxity of an EV i ∈ V at time t ∈ T

is defined as the remaining time of the vehicle in the chargingstation minus the minimum remaining time needed to be fullycharged5 i.e.,:

`i(t) =

{[di− t]+− ei(t)

ri, t ≥ ai

+∞, t < ai

where [·]+ denotes as the projection onto the set R+ of non-negative real numbers.

Notice that for t < di,

5For convenience, laxity is defined on the whole temporal domain T.

`i(t +1) = [di− (t +1)]+− ei(t +1)ri

= `i(t)−1− ri(t)ri

From Definition 3, we can understand that for an algorithmto be feasible, it needs to satisfy Eqs. (1)–(3). Eq. (1) can berewrite as 0 ≤ ri(t)

ri≤ 1 which suggests that laxity of EV i is

monotonically decreasing at ai ≤ t < di. Then, Eq. (3) impliesthat, for t ≥ di, ei(t) = 0, i∈V which means that for all t ≥ di

`i(t) = [di− t)]+− ei(t)ri

= 0

Therefore, these feasibility condition implies the followingproposition:

Proposition 1. The algorithm A is feasible on an instance I ifand only if A gives charging rates that result in non-negativelaxity for all EVs, i.e.,:

`i(t)≥ 0, ∀i ∈ V, t ∈ T

Proposition 1 suggests that the smallest laxity among allEVs can serve as a measure of the distance from infea-sibility. A naive approach—referred to as the least laxityfirst (LLF) algorithm [33]—is to charge EVs starting fromthose with the least laxity. However, the LLF algorithm maycompromise the feasibility of certain offline feasible instances(see Section IV). The LLF algorithm also cause excessivepreemption and oscillations in the charging rate6, which mayreduce the lifetime of certain batteries (e.g.,Li-ion) [14]. Toeliminate these drawbacks, we propose an alternative approachby maximizing the minimum laxity among all EVs with thecharging rate at time T , r(T ) = {ri(T ) : ∀i ∈ V}, as thedesign variable in order to maximize the feasibility margin,maxr(T ) mini∈V `i(T ).

However, because the solution to the above maximizationproblem may not be unique, we considered the followingproblem to produce a unique solution:

r(T ) = argmaxr(T )

∑i∈V

ri f (`i(T ))

such that (1), (2), and (3)(5)

where f is twice continuously differentiable, strictly concave,and monotonically increasing. Here, if an instance I is offlinefeasible, then there exists certain charging rates that achieve`i(T ) = 0,∀i ∈ V, which yields ∑i∈V f (`i(T )) = ∑i∈V f (0).Since the laxity is monotonically decreasing at any t ∈ T, suchcharging rates also satisfy Proposition 1 which implies thatEq. (5) is feasible on instance I, i.e.,:

6For example, consider a system of two EVs, where `1(0) = 1.25, `2(0) =0.75 and r1 = r2 = P(t) = 1, t ∈ T. EV 1 and EV 2 will be charged accordingto (r1(0),r2(0)) = (0,1), (`1(1), `2(1)) = (0.25,0.75); (r1(1),r2(1)) = (1,0),and so on. In this example, both EV switches in-between charging and notcharging.

Page 4: Smoothed Least-Laxity-First Algorithm for EV Charging

4

Corollary 1. Eq. (5) is feasible for any offline feasibleinstance.

To obtain the solution of Eq. (5) without information ofincoming EVs, we approximate (5) with the following onlinealgorithm: at each time t ∈ T, given `i(t), i ∈ V, compute7

maxr(t)

∑i∈V

ri f (`i(t +1))

such that (1) and (2)ri(t)≤ ei(t), i ∈ Vt

(6)

Eq. (6) also maximizes the minimum laxity at time t + 1,mini∈Vt `i(t + 1), and thus maximizes the feasibility marginat time t8.

To solve Eq. (6), we first need to look at the Karush-Kuhn-Tucker (KKT) conditions of the problem:

ri(t)≥ 0 i ∈ Vt (7)ri(t)≤min(ei(t), ri) i ∈ Vt (8)

∑i∈Vt

ri(t)≤ P(t) i ∈ Vt (9)

f ′(`i(t +1))+ λi−λ i + v = 0 i ∈ Vt (10)

λ i ≥ 0, λi ≥ 0 i ∈ Vt (11)

λ iri(t) = 0, λi{ri(t)−min(ei(t), ri)}= 0 i ∈ Vt (12)

where λ i, λi, and v are the dual variables for constraints (7),(8), and (9) respectively. Consider three mutually exclusivecases:• ri(t) = 0 that leads to λi = 0 and

ri(t)ri

= f ′−1(−v)− `i(t)+1−λ i

≤ f ′−1(−v)− `i(t)+1(13)

• ri(t) ∈ {0,min(ei(t), ri)} which implies λi = λ i = 0; ob-tained from (12) (complementary slackness). Substitutingλi = λ i = 0 into (10), we obtain

ri(t)ri

= f ′−1(−v)− `i(t)+1 (14)

• ri(t) = min(ei(t), ri) that leads to λ i = 0 and

ri(t)ri

= f ′−1(−v)− `i(t)+1+ λi

≥ f ′−1(−v)− `i(t)+1(15)

Here, the inverse of f ′ exists because f ′ is strictly concave,strictly increasing, and twice continuously differentiable.

To simplify the notation, define an variable L(t)= f ′−1(−v).Then the following can be obtained:

Proposition 2. With f strictly concave, strictly increasing, andtwice continuously differentiable, a solution to the optimizationproblem (6) can be obtained by combining (13), (14), and (15):

7For more complex form of power limits, in Eqs. (5) and (6), the powerconstraints in Eq. (2) can be replaced by Ar(t) ≤e.w. P(t), for element-wiseinequality and positive matrix A. Corollary 1 also holds for Ar(t)≤e.w. P(t).

8The solution of Eq. (6) is also unique.

r∗i (t) = [ri(L(t)− `i(t)+1)]min(ri,ei(t))0 , i ∈ Vt (16)

where [x]ba denotes the projection of the scalar x on interval[a,b] and r∗i (t) is the resulted ri(t). The solution is thenattained at the boundary

∑i∈Vt

r∗i (t) = ∑i∈Vt

[ri(L(t)− `i(t)+1)]min(ri,ei(t))0

= min

(P(t), ∑

i∈Vt

min(ri,ei(t))

) (17)

For EV i ∈ Vt with ri ≤ ei(t), we obtain charging rate fromEq. (16) that makes `i(t+1) = [L(t)]`i(t)

`i(t)−1. Hence, L(t) can beconsidered as a threshold of `i(t +1). Since r∗i (t) in Eq. (16)is an increasing function of L(t), a binary search can beemployed to find the threshold L(t) in Eq. (17). Given L(t), thecharging rates r∗i (t), i ∈ Vt is then determined using Eq. (16).This procedure is a scalable algorithm that we formally statein Algorithm 1, and name it as the smoothed least-laxity-first(sLLF) algorithm.

Algorithm 1 smoothed least-laxity-first (sLLF)

for t ∈ T doupdate set of EVs, Vt , and laxity, `i(t) for i ∈ Vtobtain L(t) that solves Eq. (17) using bisectioncharge according to rates r∗i (t) in Eq. (16)

end for

We found that the computational complexity of this sLLFalgorithm at each time t is O(|Vt |+ log(1/δ )), where δ is thelevel of tolerable error. We need O(|Vt |) operations to updatethe laxity of vehicles, and O(log(1/δ ) operations for binarysearch for L(t). We also note that the sLLF algorithm possessesthe following properties that will be useful for analyzing thefeasibility condition:

1) PersistenceLemma 1. Under the sLLF algorithm, if there exist twoEVs i, j ∈ V such that

`i(t)≤ ` j(t),

`i(t +1)> ` j(t +1)(18)

then either one of the following holds:

{t ≥ di & ri(t) = 0,t < di & t < d j & e j(t +1) = 0 & ri(t) 6= 0

(19)

Proof:Definition 4 satisfies the following relation:

`i(t)−1≤ `i(t +1), i ∈ V

≤ `i(t)(20)

• In the case ri(t) = 0:

`i(t +1) =

{`i(t)−1, t < di

`i(t), t ≥ di(21)

Page 5: Smoothed Least-Laxity-First Algorithm for EV Charging

5

Suppose that t < di, combining the first condition in(18) and (20) gives

`i(t +1) = `i(t)−1≤ ` j(t)−1≤ ` j(t +1)

thus

`i(t +1)≤ ` j(t +1)

which contradicts the second condition in (18).Therefore, t ≥ di and it follows the first case in (19).

• In the case ri(t) 6= 0, it implies t < di then:– if t < d j, (18) jointly implies

r j(t)r j(t)

<ri(t)ri(t)

(22)

Under the sLLF algorithm, (22) happens onlywhen e j(t) = r j(t), which leads to e j(t +1) = 0.

– if t ≥ d j, then

` j(t +1) = ` j(t)

≥ `i(t)

≥ `i(t +1)

thus

`i(t +1)≤ ` j(t +1)

which contradicts the second condition in (18).Therefore, it follows the second case in (19).

2) FairnessFrom Lemma 1, the solution of the optimization prob-lem (6) does not depend of the specific choice ofthe value function f as long as f is concave, strictlyincreasing, and has a derivative whose inverse func-tion is well-defined. Without loss of generality, weconsider f (x) = log(x). Since non-negative weightedsum and composition with an affine mapping preserveconcavity, C(r(t)) = ∑i∈Vt ri f (li(t)− 1 + ri(t)/ri) is aconcave function of r(t)= [r1(t),r2(t), · · · ,r|Vt |(t)]

T . Letr(t) 6= r(t) be any rates that satisfy constraints in Eqs. (1)and (2), where ˆi(t), i ∈ Vi be the resultant laxity,then, from the first-order-condition of concave functions,C(r(t))−C(r(t))+(r(t)− r(t))T ∇C(r(t))≥ 0. Since r(t)is the optimal solution, then

0≤C(r(t))−C(r(t))

≤ (r(t)− r(t))T∇C(r(t))

≤ ∑i∈Vt

ri`i(t)− ˆi(t)`i(t +1)

where the derivative above is taken over r(t) for f (`i(t+1)) = log(`i(t + 1)). On the other hand, if ˆi(t + 1) >`i(t+1) for some EV i∈Vt , then ri(t)< ri(t)≤ ri. This

can only happen when `i(t+1)≥ L(t) or `i(t+1)> L(t).As EV i in ri(t) receives more energy than that in ri(t),there exists an EV j that receives less energy in r j(t).Any EV j that receives non-zero energy satisfies

ˆj(t +1)≤ L(t +1) = `i(t +1)ˆj(t +1)< ` j(t +1)

These can be summarize as the following corollaryCorollary 2. Given the past charging rate rt−1, thesLLF algorithm finds a current charging rate r(t) that isboth proportionally fair and max-min fair to one-step-ahead laxity. In other words, let `i(t+1) be the one-step-ahead laxity under the sLLF algorithm and ˆi(t +1) beanother laxity produced by a charging rate satisfyingthe constraints in Eq. (6), the following two conditionshold:• weighted proportional fairness:

∑i∈Vt

riˆi(t +1)− `i(t +1)

`i(t +1)≤ 0 (23)

• max-min fairness: if ˆi(t + 1) > `i(t + 1) for someEV i ∈Vt , then there exits EV j ∈Vt such that

ˆj(t +1)≤ `i(t +1)ˆj(t +1)< ` j(t +1)

(24)

III. PERFORMANCE ANALYSIS

To evaluate our proposed sLLF algorithm, we will compareits performance with several common scheduling algorithms.We will also assess its feasibility condition utilizing theresource augmentation framework. In this section, we presentthe theoretical background of the resource augmentations (Sec-tion III-A) as well as the experimental setup (Section III-B) toevaluate the sLLF algorithm and compare it to several commonscheduling algorithms.

A. Resource Augmentation Framework

There are two extreme cases in which online algorithmscan be feasible for any offline feasible instances: ri → ∞

∀i ∈ V and P(t) → ∞. In the first case, ri → ∞ ∀i ∈ V ≡P(t) ≤ mini∈Vt ri ∀t ∈ T, the charging problem is identical tothe single processor preemptive scheduling problem wherethe processing capacity is time-variant. Here, the earliest-deadline-first (EDF) algorithm is feasible for any offline fea-sible instances [34]. In the second case, P(t)→ ∞ ≡ P(t) ≥∑i∈Vt ri(t) ∀t ∈T, the sLLF algorithm is feasible for any offlinefeasible instances. Beyond these two extreme cases, no onlinealgorithm can be feasible on all offline feasible instances [3].The difficulty in finding feasible online algorithms motivatesus to perform a quantitative measurement in evaluating thelikelihood of an algorithm become feasible.

From the two cases mentioned above, we can observe thatif more resources (e.g., P(t) and ri) are allowed, an otherwiseinfeasible problem may become online feasible under an

Page 6: Smoothed Least-Laxity-First Algorithm for EV Charging

6

online algorithm. Based on this, we performed a resourceaugmentation study to characterize the minimum amount ofadditional resources that will allow an algorithm to producea feasible solution. Specifically, we analyzed the performanceof the sLLF algorithm by adding more (minimum) resourcesto augment either power supply (power augmentation) or bothpower supply and peak charging rate (power+rate augmenta-tion). The former augmentation allows more EVs to be chargedsimultaneously, while the latter allows faster charging. Thesetwo augmentation approaches are qualitatively different andprovide complementary insights into the behavior of the sLLFalgorithm.

Resource augmentation has been studied for processorscheduling in [23], [24], [27]–[29]. The difference is in our set-ting is that the power limit is time-varying, the maximum ratesare heterogeneous, and the power limit may not necessarilybe integer multiplication of the maximum rate. Consequently,value of augmentation also depends on the interplay betweenPmin, Pmax, rmin, and rmax, which complicates the analysis. Asmentioned, in this study we considered power and power+rateaugmentations. The framework for each of this augmentationwill be discussed below:

1) Power Augmentation: In this augmentation, we allowedonline algorithm to utilize ε more power such that

Ponline(t) = (1+ ε)P(t)

but

ronlinei = ri

We will call this augmentation as ε-power augmentation,where

Definition 5. [ε-power augmented instance] Given an EVcharging instance I = {ai,di,ei, ri;P(t)}i∈V,t∈T , the instanceunder ε-power augmentation is defined as

{ai,di,ei, ri;(1+ ε)P(t)}i∈V,t∈T

Definition 6 (ε-power feasibility). An online algorithm A isε-power feasible if A is feasible on the ε-power augmentedinstances Ip(ε) generated from any offline feasible instanceI.9

Unfortunately, there is no online algorithm that ε-powerfeasible for any finite ε > 0 [24]10. However, under a mildassumption, the ε-power feasibility condition can be obtainedfor a finite ε . Assume that the energy demand of each EVis bounded by X and that the inter-arrival time betweenconsecutive arrivals is greater than N, i.e.,:

9Alternatively, the (minimum) value of ε can also be interpreted as theconstraints on instances that are online feasible. That is, given the orig-inal resource P(t), ri(t), the algorithm is online feasible for any instancesI= {ai,di,ei, ri;P(t)/(1+ε)}i∈V,t∈T that is offline feasible given the reducedresource P(t)/(1+ε), ri(t). Large ε restricts possible instances, thus less likelyto be online infeasible.

10It is shown in [24] that the LLF algorithm is not ε-power feasible forany ε > 0 for uniform processors and time-invariant number of processors.Since their setting is a special case of our setting, the same results extend toour setting.

ei ≤ X , i ∈ V

|ai−a j|> N, i, j ∈ V(25)

where, the value of N can be controlled by choosing appro-priate sojourn time for a sampling intervals (the shorter thesojourn time, the smaller the value of N) and the value of Xcan be obtain from maximum battery capacity for commonEVs. Then, it can be proven (see Appendix A) that we cancharacterize the relation between N and the sufficient amountof resource augmentation ε as follows:

Theorem 1. If both conditions in (25) hold, then the sLLFalgorithm is ε-power feasible with

ε =Pmax

Pmin

(logϕ

( √5X

NPmax+

12

)+2

)−1

where ϕ =1+√

(5)2 ≈ 1.61803 is the golden ratio.

Now, if the inter-arrival time is equal to N and the powerdemand is equal to X , then the incoming energy demand perunit time is X

N . Since the total power supply is Pmax per unittime, N should be at least X

Pmaxfor offline feasibility which

is a mild assumption. With this, we then can apply a specialcondition to Theorem 1:

Corollary 3. For constant power limit P(t) = P, t ∈ T, andN ≥ X

Pmax, then

ε ≤ PP

logϕ

√5X(

XPmax

)Pmax

+12

+2

−1

= logϕ

(√5+

12

)+1≈ 3.091639884

thus

ε . 3.091639884

Therefore, the sLLF algorithm is approximately 3-power fea-sible.

2) Power+Rate Augmentation: In this case, online algo-rithm is allowed to utilize ε more power and higher maximumcharging rate such that

Ponline(t) = (1+ ε)P(t)

and

ronlinei = (1+ ε)ri

We will call this augmentation as ε-power+rate augmentation,where

Definition 7. [ε-power+rate augmented instance] Given anEV charging instance I= {ai,di,ei, ri;P(t)}i∈V,t∈T , we definethe ε-power+rate augmented instance as

{ai,di,ei,(1+ ε)ri;(1+ ε)P(t)}i∈V,t∈T

Page 7: Smoothed Least-Laxity-First Algorithm for EV Charging

7

Definition 8 (ε-power+rate feasibility). An online algorithm A

is ε-power+rate feasible if A is feasible on the ε-power+rateaugmented instances Ipr(ε) generated from any offline feasibleinstance I.

However, unlike the case of power augmentation, the sLLFalgorithm is ε-power+rate feasible for a finite value of ε > 0without any assumptions of the arrival patterns (see Ap-pendix B).

Theorem 2. The sLLF algorithm is ε-power+rate feasiblewith

ε = maxi∈V

(max

τ1,τ2∈[ai,di]

P(τ1)

P(τ2)− max

τ∈[ai,di]

ri

P(τ)

)B. Experimental Setup

We employed trace-based simulation on real EV datasetsfrom the ACN deployment (CAGarage) as well as Google’sfacilities in Mountain View (Google mtv) and Sunnyvale(Google svl) to evaluate the performance of our proposedalgorithm. The datasets contain a total of 52,362 chargingsessions over more than 4,000 charging days in 2016 at104 locations (Table II provides a summary of the data),an instance consists of one charging day. We compute theminimum power capacity in which each instance is feasible byusing an offline LP, i.e., we minimize P(t) subject to Eqs. (1)–(3), which corresponds to the minimum power supply for theinstance to be offline feasible. We used this minimum powersupply to generate an offline instance and tested if the instanceis feasible under an online algorithm.

datasets instancesEV sojourntime (min) laxity (min)

CAGarage 92321

(11, 720)231

(0.1, 660)

Google mtv 3793149

(10, 720)35

(0.001, 694)

Google svl 246152

(11, 720)38

(0.02, 676)

TABLE II: Statistics of the EV charging instances that showthe average of the sojourn times and laxity in minutes unit;the minimum and maximum values are indicated inside thebrackets.

We compared the performance of the sLLF algorithmagainst several common heuristic online scheduling algo-rithms: earliest-deadline-first (EDF) [34], [35], least-laxity-first (LLF) [33], equal/fair share (ES) [36], remaining en-ergy proportional (REP) [], and an online linear program(OLP) [15]. The implementation of these algorithms for thecurrent problem can be summarized as follows:• In the EDF algorithm, all EVs in Vt are sorted by their

deadlines (di) in increasing order. The available power ata given time, P(t), is assigned to EVs in this order up tomin(ri,ei(t)).

• In the LLF algorithm, all EVs in Vt are sorted by theirlaxity, `i(t), in increasing order. The available power at a

given time, P(t), is assigned to EVs in this order up tomin(ri,ei(t)).

• In the ES algorithm, the available power supply at a giventime, P(t), is divided to all connected EVs such that eachof them receives the minimum between their fair shareand maximum charging rate. The procedure is repeateduntil either all P(t) has been distributed or there is nomore EV can be charged further.

• In the REP algorithm, the available power supply at agiven time, P(t), is divided to EVs in proportion totheir remaining energy demand, ei(t). Here, each EVreceives the minimum between their proportional shareand maximum charging rate. The procedure is repeateduntil either all P(t) has been distributed or there is nomore EV can be charged further.

• In the OLP algorithm, the charging rate of EV i ∈ V ata given time, ri(t), is provided according to the solutionof the following LP:

ri(t) = argminri(t)

∑i∈Vt

T

∑τ=t

τri(τ)

subject toT

∑τ=t

ri(τ) = ei(t), ∀i ∈Ut

∑i∈Uτ

ri(τ)≤ P(τ), ∀τ = t, . . . ,T

0≤ ri(t)≤ ri(26)

Here, the objective function encourages the chargingstation to charge EVs as early as possible, while theconstraints ensure the online LP finds a feasible schedulefor all the currently active EVs assuming no futurearrivals.

The performance comparison of the proposed sLLF algorithmagainst the above algorithms can be seen in Section IV below.

IV. PERFORMANCE EVALUATION AND COMPARISON

In this section, we will evaluate the performance of the sLLFalgorithm and compare it against other algorithms listed inSection III-B. We will first evaluate the success rate of the on-line algorithms without resource augmentation (Section IV-A)before further analyze their performance with 1) power aug-mentation and 2) power+rate augmentation (Section IV-B). Forthis purpose, we define the success rate of an algorithm as theratio of online feasible instances under the algorithm to allexisting instances.

A. Without Resource Augmentation

Comparing the success rate of the sLLF algorithm againstdifferent algorithms, summarised in Section III-B, we foundthat our proposed algorithm achieves a more uniform highsuccess across different datasets (see Fig. 1). From Fig. 1we can also see that the EDF, ES, and REP algorithmsperform much worse in terms of finding feasible schedulesas expected because these algorithms do not consider thedeadline, maximum charging rate, and remaining energy of

Page 8: Smoothed Least-Laxity-First Algorithm for EV Charging

8

Fig. 1: Bar chart showing the success rate of the utilizedalgorithms in finding a feasible online schedule from differentdatasets without resource augmentation. The displayed valuesare rounded to three significant figures.

each EV simultaneously which are necessary to find thefeasibility. We can also see that, despite its similarity, the LLFalgorithm achieve lower success rate than the sLLF algorithmthat suggests the importance of maximizing minimum laxity toeliminate the infeasibility of certain offline feasible instancesin the LLF algorithm (see Section II-C).

Moreover, although the OLP algorithm achieves a highersuccess rate in finding a feasible online schedule fromGoogle mtv dataset, it requires solving LP problem at ev-ery time-step. With the currently available LP solver, thecomputational complexity for solving LP problem of size nwill be greater than O(n2) [37]. Thus, at every given time tthe OLP algorithm has computational complexity higher thanO(|Vt |2) which is computationally more expensive than thesLLF algorithm that has complexity of O(|Vt |+ log(1/δ )).

(a) (b)

Fig. 2: Plots of success rate in finding a feasible onlineschedule without resource augmentation versus (a) the max-imum ratio between EV sojourn times and (b) the minimumnormalized laxity.

Furthermore, we observed that the minimum normalizedlaxity and the maximum ratio between EV sojourn times havehigh correlations with the success rate of the algorithms (seeFig. 2). Here, the maximum ratio between EV sojourn timesis defined as the maximum ratio between the longest andshortest EV sojourn times in the instances while the minimumnormalized laxity of an EV is defined as the laxity divided

by the EV sojourn times, `i(ai)/(di− ai). To study this, wecategorized the dataset we have into different sets of data andthe success rate of the algorithms based on these differentdata categories can be found in Fig. 2. Fig. 2a shows that asthe maximum ratio between EV sojourn times increases, allalgorithms considered have decreased success rates. This indi-cates that a large degree of variation in the sojourn time maydecrease the performance of online scheduling algorithms.From the Fig. 2a we can also see that the sLLF algorithm isleast sensitive to the changing of the maximum ratio betweenEV sojourn times while still maintaining a high success rate.This shows the benefit of the sLLF algorithm against a largevariation of EVs’ sojourn time that common in real-worldapplications.

Meanwhile, Fig. 2b shows that higher minimum normalizedlaxity improves the algorithms’ success rate which impliesthat shorter sojourn time is more desirable to improve theperformance of the scheduling algorithms. The result shownin Fig. 2b also indicates that larger laxity gives a greateradvantage in the scheduling system which is expected as aless urgent environment is easier to maintain. As we cansee in Fig. 2b, the sLLF algorithm has one of the highestsuccess rates for all minimum normalized laxity even when theminimum normalized laxity is small. This shows the benefit ofthe sLLF algorithm in a high urgency scheduling environmentsuch as in some public charging stations. Additionally, a largerlaxity can also be associated with higher resources which leadsto the benefit of higher power supply and/or peak charging rateas will be discussed further in Section IV-B.

B. With Resource Augmentation

(a) power augmentation (b) power+rate augmentation

Fig. 3: Plots of success rate in finding a feasible onlineschedule with (a) power supply augmentation and (b) powersupply along with peak charging rate augmentation.

We analyzed the performance of the online algorithms withresource augmentation in a) power supply and b) both powersupply along with peak charging rate to gain further insightinto the algorithms’ behavior (see Fig. 3). As expected, thesuccess rate of all algorithms increase with more availableresources that suggest the benefit of higher power supplyand/or peak charging rate in the scheduling system. We can seefrom Fig. 3 that sLLF and OLP algorithms have the highestsuccess rate among other algorithms under the various levelof resource augmentation. Although the performance of the

Page 9: Smoothed Least-Laxity-First Algorithm for EV Charging

9

sLLF algorithm in the event without resource augmentation islower than the OLP algorithm, it can achieve a 0.95 successrate with only a 0.02 increase in resources.

augmentation ε

REP ES EDF LLF OLP sLLFpower supply 4.61 3.65 1.39 0.07 0.28 0.07power supplyand peakcharging rate

4.61 3.24 0.54 0.05 0.28 0.05

TABLE III: Minimum resource augmentation to achieve aperfect success rate in finding a feasible online schedule forall instances.

Inspecting further, we listed in Table III the minimumresource augmentation required for each algorithm to achieve100% feasibility for all instances. From the table, we can seethat, together with the LLF algorithm, our sLLF algorithm hasthe smallest ε among the algorithms considered. The proposedalgorithm can achieve perfect feasibility using only 0.07 poweraugmentation which is significantly smaller than the predictedvalue in Corollary 3. Thus, our proposed algorithm has thepotential in reducing the infrastructure cost for EV chargingfacility which will also be beneficial in an application wherethe resources are limited.

(a) LLF (b) sLLF

Fig. 4: Charging rate from two vehicles at each time step ofa hypothetical case that exaggerate the oscillation behaviourin the LLF algorithm obtained using (a) the LLF and (b) thesLLF algorithms.

Additionally, although the LLF and sLLF algorithms haveequal ε feasibility, the sLLF algorithm, as implies byLemma 1, does not exhibit undesirable oscillations behaviorsuch can be found in the LLF algorithm (Footnote 6). Toinspect this property, we simulated a hypothetical case thatexaggerate the oscillation behavior in the LLF algorithm.In the simulation we introduced two vehicles with equalmaximum charging rates that arrive and will depart at the sametime where there isn’t other vehicle present at the chargingstation. The charging rate at each time step of this simulationobtained using the LLF and sLLF algorithms can be seenin Figs. 4a and 4b respectively. The result in Fig. 4, agreeswith Lemma 1, shows that the sLLF algorithm eliminates theoscillation behavior that can reduce the lifetime of certainbatteries.

V. CONCLUSION

In this work, we formulated EV charging as a feasibilityproblem that meets all EVs’ energy demands before departureunder the individual charging rate of each EV and the totalpower resource constraints. We then proposed an online algo-rithm, the sLLF algorithm, that decides on the current chargingrates based on only the information up to the current time.We characterized and analyzed the performance of the sLLFalgorithm analytically and numerically utilizing the resourceaugmentation framework, where we demonstrated the firstapplication of the framework for heterogeneous processorswith a time-varying number.

Our numerical experiments with real-world datasets showedthat our algorithm has a significantly higher rate of gener-ating feasible EV charging than several other common EVcharging algorithms. We showed that our sLLF algorithm isable to maintain a high success rate and less sensitive to alarge variety of EVs’ sojourn time that common in a real-world application. The algorithm also shows its benefit in ahigh urgency scheduling environment such as in some publiccharging stations. By finding feasible EV charging schedulesusing only a small augmentation that is also significantlyless than the theoretical upper bound, our proposed algorithm(sLLF) can significantly reduce the infrastructural cost forEV charging facilities. Among the algorithms that achieve thehighest success rate (i.e.,the sLLF, LLF, and OLP algorithms),our sLLF algorithm does not exhibit undesirable oscillationssuch found in the LLF algorithm and computationally cheaperthan the OLP algorithm.

APPENDIX

To provide proofs to the Theorems 1 and 2 we presentedin our resource augmentation framework (Section III-A), wefirst, in addition to the notations in Table I, introduce some ad-ditional notation that will be used in this section, summarizedin Table IV. Here, At = {i ∈ V : ai ≤ t} denotes the set of EVsthat have arrived by time t; Dt = {i ∈ At : di ≤ t or ei(t) = 0}denotes the set of EVs that have either departed or finishedcharging by time t; and Ut = {i ∈ Vt : ei(t) > 0} denotes theset of EVs with unfulfilled energy demand at the beginning oftime slot t. In addition, A[t1,t2] = {i ∈ V : ai ∈ [t1, t2]} denotesthe set of EVs that arrive during time interval [t1, t2], t1, t2 ∈ T.We define ε as the fraction of additional resources to beaugmented such that if we augment the power supply (P)then the total power becomes (1+ε)P, similarly, for the peakcharging rate (r) augmentation the total rate becomes (1+ε)r.With this, we also define notations for the total energy supplyto EVs in set S⊆V during the interval [t1, t2], ∑i∈S ∑

t2τ=t1 ri(τ),

under instance I as Ψ[t1:t2](S;I). Additionally, the notation forthis total energy under an (feasible) offline algorithm and anonline algorithm with ε resource augmentation be denoted asΨ∗[t1:t2]

(S;I) and Ψε

[t1:t2](S;I) respectively11.

11In general, we use superscript ∗ to indicate variables under an (feasible)offline algorithm with original power limit P(t) and maximum charging ratesri, where we use superscript ε to indicate variables under the augmentedresources.

Page 10: Smoothed Least-Laxity-First Algorithm for EV Charging

10

TABLE IV: additional notations

notation descriptionAt set of EVs have arrived by time t

A[t1,t2] set of EVs arrive during time interval [t1, t2]Dt set of EVs have either departed or finished

by time tUt set of EVs that are still charging at time tε fraction increase in resources

Ψ[t1:t2](S;I) total energy supplied to the set of EVs S

during the interval [t1, t2] under instance I

Ψ∗[t1:t2](S;I) Ψ[t1:t2](S;I) under an offline algorithm

Ψε

[t1:t2](S;I) Ψ[t1:t2](S;I) under an online algorithm with

ε resources augmentation

Next, we look into the infeasibility condition of the sLLF al-gorithm. For a charging instance, I= {ai,di,ei, ri;P(t)}i∈V,t∈T ,that is not online feasible under the sLLF algorithm, thereare times when some EVs has negative laxity; we denote theearliest among such times as t−. Let F= {i∈ At− : `i(t−)< 0}be the set of EVs arriving at the changing station by time t−that have negative laxity, S1 = {i ∈ At− : `i(t−)≥ 0 & di ≤ t−}be the set of EVs with non-negative laxity that depart by timet−, and S2 = {i∈ At− : `i(t−)≥ 0 & di > t−} be the set of EVswith non-negative laxity that remain at the charging stationat time t−. Here, F, S1, and S2 are mutually exclusive suchAt− = F∪S1∪S2. Then:

Lemma 2. When the sLLF algorithm is used on instance I,for any EV i ∈ S2 and j ∈ F, their laxity satisfy

`i(t)> ` j(t), t ∈ [max(ai,a j), t−] (27)

Proof:By the construction of S2, relation (27) holds at time t = t−.By Lemma 1, a necessary condition for the inequality in (27)to flip at some time t +1≤ t− is for the second case of (19)to hold for EV i. However, this condition cannot hold for anyEV in F or S1. For EVs in F, condition e j(t + 1) = 0 in thesecond case of (19) cannot happen because negative laxity atsome time implies the energy demand will not be fulfilled. ForEVs in S1, (27) holds only after e j(t +1) = 0 when they haveenergy demand fulfilled at time t +1. Consequently, condition(27) holds for all t ∈ [max(ai,a j), t−].

Here, the sLLF algorithm prioritizes EVs with smaller laxityso the presence of EVs with strictly greater laxity will notimpact the charging of the EVs with smaller laxity. DefiningV=F∪S1 as the set that does not contain the EVs in S2, withthe instances of this set denote as I= {ai,di,ei, ri;P(t)}i∈V,t∈T ,then the following can be obtained as a consequence ofLemma 2:

Corollary 4. Regardless of the actual instance being I or I,the EVs in F are charged in exactly the same way under thesLLF algorithm by time t−.

The above condition for the sLLF algorithm being infeasibleon some online feasible instances also holds for ε resource

augmentation (both power and power+rate augmentation).Now, consider comparing the sLLF algorithm with ε re-

source augmentation (either power or power+rate augmen-tation) and an offline algorithm. Let I be an EV charginginstance that are offline feasible and the sets F, S1, and S2are defined under the sLLF algorithm. Since the EVs in S1are fully charged by time t− under both the sLLF algorithmwith resource augmentation and the offline algorithm, we canhave

Ψε

[0:t−](S1;I) = Ψ∗[0:t−](S1;I) (28)

To be feasible, it is necessary for an algorithm to maintain`i(t)≥ 0, ∀t ∈ T. Thus, for an EV i ∈ F, the offline algorithmmust maintain `i(t−) ≥ 0. Given that laxity is monotonicallydecreasing in the remaining energy demand, ei(t), the totalenergy fulfilled during the time interval [0, t−] under the offlinealgorithm must be strictly greater than that with the sLLFalgorithm:

Ψε

[0:t−]({i};I) < Ψ∗[0:t−]({i};I), i ∈ F

⇒ Ψε

[0:t−](F;I) < Ψ∗[0:t−](F;I) (29)

for V= V\S2, together with (28), we have

Ψε

[0:t−](V;I) < Ψ∗[0:t−](V;I) (30)

Additionally Corollary 4 implies

Psiε[0:t−](i;I) = Ψε

[0:t−](i; I), i ∈ V

⇒ Ψε

[0:t−](V;I) = Ψε

[0:t−](V; I) (31)

Furthermore, because the charging instance I is offline feasiblethen its sub-instance I is also offline feasible. Similar toEqs. (29), (30) and (28), we can show that

Ψε

[0:t−](S1; I) = Ψ∗[0:t−](S1; I) (32)

Ψε

[0:t−](F; I) < Ψ∗[0:t−](F; I) (33)

Ψε

[0:t−](V; I) < Ψ∗[0:t−](V; I) (34)

A. Proof of Theorem 1

Consider the use of the sLLF algorithm on an offlinefeasible instance I = {ai,di,ei, ri;P(t)}i∈V,t∈T under ε-poweraugmented resources.

Let

n = (1+ ε)Pmin

Pmax(35)

For m ≤ n, we define the earliest time to charge at a powergreater than mPmax for the rest of the time until t− as

tm = min

{t ∈ T : ∑

j∈Vt

min(r j,e j(τ))≥ mPmax,τ ∈ [t, t−]

}(36)

Page 11: Smoothed Least-Laxity-First Algorithm for EV Charging

11

Let Tm = [tm−1, tm) and Tm = [tm, t−] and denote their lengthsby |Tm| and |Tm|. Also,

Lemma 3. For any integer i ≤ n− 1, the following tworelations hold:

Ψ∗[0:ti](ATi ; I)−Ψ

ε

[0:ti](ATi ; I) > Pmax|Ti+1| (37)

|Ti| > |Ti+1| (38)

Proof:From Eq. (36) we can have

∑j∈V(ti−1)−1

min(r j,e j(ti−1−1)) < (i−1)Pmax

This implies that the EVs that have arrived before ti−1 arecharged at a total power of at most (i− 1)Pmax at ti−1 andafter. On the other hand, from Eq. (36), the total power supplyis at least iPmax during the interval Ti+1 = [ti, ti+1]. Therefore,the total charging power to the EVs that arrive after ti−1 is atleast Pmax during Ti+1. Since offline algorithm can only use apower of at most Pmax, for the EVs that arrive after ti−1 weobtain

Ψ∗[0;ti+1]

(ATi−1; I)−Ψ

ε

[0;ti+1](ATi−1

; I)

< Ψ∗[0;ti](ATi−1

; I)−Ψε

[0;ti](ATi−1

; I)(39)

The same argument can be applied to the interval Ti+1 =[ti+1, t−]. From Eq. (36), the total charging power is at least(i + 1)Pmax during Ti+1. Therefore, during Ti+1, the totalcharging power to the EVs that arrive after ti−1 is at least2Pmax. Since offline algorithm can only use a power of atmost Pmax, the total energy supply to EVs in Ti−1 under theaugmented resources is greater than that without augmentedresources, i.e.,:

0 < Ψ∗[0;t−](ATi−1

; I)−Ψε

[0;t−](ATi−1; I)

< Ψ∗[0;ti+1]

(ATi−1; I)−Ψ

ε

[0;ti+1](ATi−1

; I)−Pmax|Ti+1|(40)

Combining Eqs. (39) and (40), we have

0 < Ψ∗[0;ti+1]

(ATi−1; I)−Ψ

ε

[0;ti+1](ATi−1

; I)

−Pmax|Ti+1|⇔ Pmax|Ti+1| < Ψ

∗[0;ti+1]

(ATi−1; I)−Ψ

ε

[0;ti+1](ATi−1

; I)

< Ψ∗[0;ti](ATi−1

; I)−Ψε

[0;ti](ATi−1

; I)

since the set ATi is identical to the subset of ATi−1that contains

only the EVs that have arrived by ti,

Pmax|Ti+1| < Ψ∗[0;ti](ATi−1

; I)−Ψε

[0;ti](ATi−1

; I)

= Ψ∗[0;ti](ATi−1

; I)−Ψε

[0;ti](ATi−1

; I)

therefore Eq. (37).

Finally, as all EVs in ATi arrives after ti−1, during Ti the offlinealgorithm can charge a total energy of at most |Ti|Pmax. Thus,

Pmax|Ti| ≥ Ψ∗[0:ti](ATi ; I)−Ψ

ε

[0:ti](ATi ; I)

where from Eq. (37)

Pmax|Ti| ≥ Ψ∗[0:ti](ATi ; I)−Ψ

ε

[0:ti](ATi ; I)

> Pmax|Ti+1|⇒ Pmax|Ti| > Pmax|Ti+1|⇔ |Ti| > |Ti+1|

therefore Eq. (38).

Proof (Theorem 1):Suppose that there exists an offline feasible instance I =

{ai,di,ei, ri;P(t)}i∈V,t∈T such that the sLLF algorithm isnot feasible with ε-power augmented resources. Then, fromthe infeasibility condition of the sLLF algorithm definedpreviously, there exists another offline feasible instance I ={ai,di,ei, ri;P(t)}i∈V,t∈T such that Eq. (34). When m = 1, weobtain ∑ j∈Vt1−1

min(r j,e j(t1− 1)) < Pmax. Let S = {i ∈ AT1 :ei(t1)> 0} ⊂ AT1 denotes the set of EVs that arrive during T1and have not yet been fully charged by t1. Because the numberof EVs is upper bounded by Pmax

rmin(from Eq. (36)) and the EVs

in AT1\S are all fully charged, then

Pmax|T2| ≤ Ψ∗[0:t−](AT1 ; I)−Ψ

ε

[0:t−](AT1 ; I)

= Ψ∗[0:t−](S; I)−Ψ

ε

[0:t−](S; I)

≤ XPmax

rmin

This leads to

|T2|<X

rmin. (41)

At time t < tm−1, we have

∑j∈Vtm−1−1

min(r j,e j(tm−1−1)) < (m−1)Pmax

which implies that there are at most (m− 1)Pmaxrmin

EVs withunfulfilled energy demand by time t f . Meanwhile, at time t ≥tm, we have

∑j∈Vtm

min(r j,e j(tm)) ≥ mPmax

which implies that there are at least m Pmaxrmax

EVs with unfulfilledenergy demand during Tm−1. Therefore, the number of EVsthat arrive during [tm−1, tm] is greater than the following:

mPmax

rmax− (m−1)Pmax

rmin≥ Pmax

rmin. (42)

Since the inter-arrival periods of EVs are at least N, the lengthof Tm−1 satisfies

Page 12: Smoothed Least-Laxity-First Algorithm for EV Charging

12

|Tm−1| ≥PmaxNrmin

. (43)

Consider the following recursion:

|T2| = |T3|+ |T3|≥ |T3|+ |T4| ≥ 2|T4|+ |T5|≥ 3|T5|+2|T6| ≥ 5|T6|+3|T7|≥ · · · ≥ fk−2|Tm−1|+ fk−3|Tm|

where fk is the Fibonacci sequence defined by f1 = 1, f2 = 1and fk = fk−1 + fk−2 for k ≥ 3. Thus,

|T2|> fm−2|Tm−1|.

Combining Eqs. (41)–(43) gives

Xrmin

> |T2| > fm−2|Tm−1| > fm−2PmaxNrmin

(44)

From m≤ n for n defined in Eq. (35), we obtain

⌊(1+ ε)

Pmin

Pmax

⌋−2 = m−2

= logϕ

(√5 fn−2 +

12

)< logϕ

( √5X

NPmax+

12

)which gives Theorem 1

B. Proof of Theorem 2

Proof (Theorem 2):Suppose that there exists an instance I =

{ai,di,ei, ri;P(t)}i∈V,t∈T such that the sLLF algorithmis not feasible with ε-power+rate augmentation. We then haveEq. (34), for another instance I = {ai,di,ei, ri;P(t)}i∈V,t∈T .Let S(V) be the set of EVs in the instance I that receivestrictly less energy under online algorithm than under offlinealgorithm by some time t at which Ψε

[0:t](V; I)< Ψ∗[0:t](V; I):

S(V) ={

i ∈ V : ∃t ∈ T s.t. Ψε

[0:t]({i}; I)< Ψ∗[0:t]({i}; I)

& Ψε

[0:t](V; I)< Ψ∗[0:t](V; I)

}In view of Eq. (34), S(V) 6= /0. Consider EV j that arrivesearliest among those in S(V). There exists a time t ∈ [a j,d j]such that

Ψε

[0:t]({ j}; I) < Ψ∗[0:t]({ j}; I), j ∈ V

⇒ Ψε

[0:t](V; I) < Ψ∗[0:t](V; I)

Notice that Ψε

[0:a j−1](V; I) < Ψ∗[0:a j−1](V; I) can only happen

when there is another EV in S(V) that arrives before EVj, which, however, contradicts the definitions of S(V) and j.Thus,

Ψε

[0:a j−1](V; I) ≥ Ψ∗[0:a j−1](V; I)

which implies

Ψε

[a j :t](V; I) < Ψ

∗[a j :t](V; I) (45)

Now, let us take a look at the energy demand fulfilled duringthe interval [a j, t] under the sLLF algorithm with ε-power+rateaugmentation. Define the over-loaded times as

To =

{t ∈ [a j, t] : ∑

i∈Vri(t) = (1+ ε)P(t)

}and under-loaded times as

Tu =

{t ∈ [a j, t] : ∑

i∈Vri(t)< (1+ ε)P(t)

}we have |To|+ |Tu| = t + 1− a j. The total energy demandfulfilled during the over-loaded period is lower bounded by|To|(1 + ε)minτ∈[a j ,d j ] P(τ), while during the under-loadedperiod is at least |Tu|(1+ε)r j. Hence, the total and individualenergy demands fulfilled during [a j, t] are lower bounded by

(1+ ε)

(|Tu|r j + |To| min

τ∈[a j ,d j ]P(τ)

)≤ Ψ

ε

[a j :t](V; I) (46)

(1+ ε)|Tu|r j ≤ Ψε

[a j :t]({ j}; I) (47)

Next, let us take a look at the energy demand fulfilled duringthe interval [a j, t + 1] by offline algorithm without resourceaugmentation. The total energy fulfilled is upper bounded by

Ψ∗[a j :t](V; I)≤ (t +1−a j) max

τ∈[a j ,d j ]P(τ) (48)

while the energy fulfilled to individual EV j is upper boundedby

Ψ∗a j :t( j)≤ (t +1−a j)r j (49)

From Eqs. (45), (47) and (49), we have

(1+ ε)|Tu|r j ≤ Ψε

[a j :t]({ j}; I)

< Ψ∗a j :t( j)

≤ (t +1−a j)r j

⇒ |Tu|(1+ ε) < (t−a j +1) (50)

while from Eqs. (45), (48) and (46), we have

(1+ ε)

(|Tu|r j + |To| min

τ∈[a j ,d j ]P(τ)

)≤ Ψ

ε

[a j :t](V; I)

< Ψ∗a j :t( j)

≤ (t +1−a j) maxτ∈[a j ,d j ]

P(τ)

Page 13: Smoothed Least-Laxity-First Algorithm for EV Charging

13

thus,

(1+ ε)

(|Tu|r j + |To| min

τ∈[a j ,d j ]P(τ)

)< (t +1−a j) max

τ∈[a j ,d j ]P(τ)

(51)Combining both Eqs. (50) and (51),

(|Tu|+ |To|)(1+ ε) minτ∈[a j ,d j ]

P(τ)

< (t−a j +1)( maxτ∈[a j ,d j ]

P(τ)+ minτ∈[a j ,d j ]

P(τ)− r j)

while |To|+ |Tu|= t +1−a j. Thus,

ε < maxτ1,τ2∈[a j ,d j ]

P(τ1)

P(τ2)−min

i∈Vmax

τ∈[ai,di]

ri

P(τ)

REFERENCES

[1] I. E. Agency, “Global EV outlook 2020,” https://www.iea.org/reports/global-ev-outlook-2020, 2020.

[2] O. Sundstrom and C. Binding, “Planning electric-drive vehicle chargingunder constrained grid conditions,” in Power System Technology (POW-ERCON), 2010 International Conference on. IEEE, 2010, pp. 1–6.

[3] A. Subramanian, M. J. Garcia, D. S. Callaway, K. Poolla, and P. Varaiya,“Real-time scheduling of distributed resources,” IEEE Transactions onSmart Grid, vol. 4, no. 4, pp. 2122–2130, 2013.

[4] P. Richardson, D. Flynn, and A. Keane, “Local versus centralizedcharging strategies for electric vehicles in low voltage distributionsystems,” IEEE Transactions on Smart Grid, vol. 3, no. 2, pp. 1020–1028, 2012.

[5] L. Gan, U. Topcu, and S. H. Low, “Optimal decentralized protocol forelectric vehicle charging,” IEEE Transactions on Power Systems, vol. 28,no. 2, pp. 940–951, 2013.

[6] Z. Ma, D. Callaway, and I. Hiskens, “Decentralized charging control forlarge populations of plug-in electric vehicles,” in 49th IEEE conferenceon decision and control (CDC). IEEE, 2010, pp. 206–212.

[7] N. Chen, C. W. Tan, and T. Q. Quek, “Electric vehicle charging in smartgrid: Optimality and valley-filling algorithms,” IEEE Journal of SelectedTopics in Signal Processing, vol. 8, no. 6, pp. 1073–1083, 2014.

[8] L. Gan, A. Wierman, U. Topcu, N. Chen, and S. H. Low, “Real-time deferrable load control: handling the uncertainties of renewablegeneration,” in Proceedings of the fourth international conference onFuture energy systems. ACM, 2013, pp. 113–124.

[9] S. Chen, Y. Ji, and L. Tong, “Large scale charging of electric vehicles,”in 2012 IEEE Power and Energy Society General Meeting. IEEE, 2012,pp. 1–9.

[10] Z. Yu, Y. Xu, and L. Tong, “Deadline scheduling as restless bandits,”arXiv preprint arXiv:1610.00399, 2016.

[11] S. Stein, E. Gerding, V. Robu, and N. R. Jennings, “A model-based online mechanism with pre-commitment and its application toelectric vehicle charging,” in Proceedings of the 11th InternationalConference on Autonomous Agents and Multiagent Systems - Volume2, ser. AAMAS ’12. Richland, SC: International Foundation forAutonomous Agents and Multiagent Systems, 2012, pp. 669–676.[Online]. Available: http://dl.acm.org/citation.cfm?id=2343776.2343792

[12] L. Sha, T. Abdelzaher, K.-E. Arzen, A. Cervin, T. Baker, A. Burns,G. Buttazzo, M. Caccamo, J. Lehoczky, and A. K. Mok, “Real timescheduling theory: A historical perspective,” Real-time systems, vol. 28,no. 2-3, pp. 101–155, 2004.

[13] R. Carvalho, L. Buzna, R. Gibbens, and F. Kelly, “Congestion control incharging of electric vehicles,” arXiv preprint arXiv:1501.06957, 2015.

[14] F. Kong, Q. Xiang, L. Kong, and X. Liu, “On-line event-driven schedul-ing for electric vehicle charging via park-and-charge,” in 2016 IEEEReal-Time Systems Symposium (RTSS)2016 IEEE. IEEE, 2016, pp.69–78.

[15] L. Guo, K. F. Erliksson, and S. H. Low, “Optimal online adaptive electricvehicle charging,” in 2017 IEEE Power Energy Society General Meeting,2017.

[16] M. Alonso, H. Amaris, J. G. Germain, and J. M. Galan, “Optimalcharging scheduling of electric vehicles in smart grids by heuristicalgorithms,” Energies, vol. 7, no. 4, pp. 2449–2475, 2014. [Online].Available: https://www.mdpi.com/1996-1073/7/4/2449

[17] T. Mao, X. Zhang, and B. Zhou, “Intelligent energy managementalgorithms for ev-charging scheduling with consideration of multipleev charging modes,” Energies, vol. 12, no. 2, 2019. [Online]. Available:https://www.mdpi.com/1996-1073/12/2/265

[18] M. Elmehdi and M. Abdelilah, “Genetic algorithm for optimalcharge scheduling of electric vehicle fleet,” in Proceedings of the2nd International Conference on Networking, Information Systems& Security, ser. NISS19. New York, NY, USA: Association forComputing Machinery, 2019. [Online]. Available: https://doi.org/10.1145/3320326.3320329

[19] J. A. Stankovic, M. Spuri, K. Ramamritham, and G. C. Buttazzo,Deadline scheduling for real-time systems: EDF and related algorithms.Springer Science & Business Media, 2012, vol. 460.

[20] P. Whittle, “Restless bandits: Activity allocation in a changing world,”Journal of applied probability, vol. 25, no. A, pp. 287–298, 1988.

[21] M. Brenna, F. Foiadelli, C. Leone, and M. Longo, “Electricvehicles charging technology review and optimal size estimation,”Journal of Electrical Engineering & Technology, vol. 15, no. 6, pp.2539–2552, Nov 2020. [Online]. Available: https://doi.org/10.1007/s42835-020-00547-x

[22] M. Amjad, A. Ahmad, M. H. Rehmani, and T. Umer, “A reviewof evs charging: From the perspective of energy optimization,optimization approaches, and charging techniques,” TransportationResearch Part D: Transport and Environment, vol. 62, pp. 386 – 417,2018. [Online]. Available: http://www.sciencedirect.com/science/article/pii/S1361920917306120

[23] B. Kalyanasundaram and K. Pruhs, “Speed is as powerful as clairvoy-ance,” Journal of the ACM (JACM), vol. 47, no. 4, pp. 617–643, 2000.

[24] Phillips, Stein, Torng, and Wein, “Optimal time-critical scheduling viaresource augmentation,” Algorithmica, vol. 32, no. 2, pp. 163–200,2002. [Online]. Available: http://dx.doi.org/10.1007/s00453-001-0068-9

[25] S. Im, J. Kulkarni, and K. Munagala, “Competitive algorithms fromcompetitive equilibria: non-clairvoyant scheduling under polyhedral con-straints,” in Proceedings of the 46th Annual ACM Symposium on Theoryof Computing. ACM, 2014, pp. 313–322.

[26] S. Im, J. Kulkarni, K. Munagala, and K. Pruhs, “Selfishmigrate: Ascalable algorithm for non-clairvoyantly scheduling heterogeneous pro-cessors,” in Foundations of Computer Science (FOCS), 2014 IEEE 55thAnnual Symposium on. IEEE, 2014, pp. 531–540.

[27] C. L. Liu and J. W. Layland, “Scheduling algorithms for multiprogram-ming in a hard-real-time environment,” Journal of the ACM (JACM),vol. 20, no. 1, pp. 46–61, 1973.

[28] M. L. Dertouzos and A. K. Mok, “Multiprocessor online schedulingof hard-real-time tasks,” IEEE Transactions on software engineering,vol. 15, no. 12, pp. 1497–1506, 1989.

[29] R. I. Davis and A. Burns, “A survey of hard real-time scheduling formultiprocessor systems,” ACM Computing Surveys (CSUR), vol. 43,no. 4, p. 35, 2011.

[30] G. Lee, T. Lee, Z. Low, S. H. Low, and C. Ortega, “Adaptive chargingnetwork for electric vehicles,” in Proceedings of the IEEE Global Con-ference on Signal and Information Processing (GlobalSIP), Washington,DC, December 2016.

[31] Z. Lee, D. Chang, C. Jin, G. S. Lee, R. Lee, T. Lee, and S. H. Low,“Large-scale adaptive electric vehicle charging,” in Proceedings of theIEEE SmartGridComm Conference, Aalborg, Denmark, October 2018.

[32] Z. Lee, T. Li, and S. H. Low, “ACN-Data: Analysis and applicationsof an open EV charging dataset,” in Proc. Tenth ACM InternationalConference on Future Energy Systems (e-Energy), Phoenix, AZ, June2019.

[33] A. K.-L. Mok, “Fundamental Design Problems of DistributedSystems for The Hard-Real-Time Environment,” Ph.D. dissertation,Massachusetts Institute of Technology, 1983. [Online]. Available:http://hdl.handle.net/1721.1/15670

[34] J. A. Stankovic, K. Ramamritham, and M. Spuri, Deadline Schedulingfor Real-Time Systems: EDF and Related Algorithms. Norwell, MA,USA: Kluwer Academic Publishers, 1998.

[35] C. L. Liu and J. W. Layland, “Scheduling algorithms formultiprogramming in a hard-real-time environment,” J. ACM,vol. 20, no. 1, p. 46–61, Jan. 1973. [Online]. Available:https://doi.org/10.1145/321738.321743

[36] J. Kay and P. Lauder, “A fair share scheduler,” Commun. ACM,vol. 31, no. 1, p. 44–55, Jan. 1988. [Online]. Available: https://doi.org/10.1145/35043.35047

Page 14: Smoothed Least-Laxity-First Algorithm for EV Charging

14

[37] S. Jiang, Z. Song, O. Weinstein, and H. Zhang, “Faster dynamic matrixinverse for faster lps,” ArXiv, vol. abs/2004.07470, 2020.