## Efficiency Fairness Tradeoff in Battery Sharing

Karan N. Chadha, Ankur A. Kulkarni and Jayakrishnan Nair

Abstract -The increasing presence of decentralized renewable generation in the power grid has motivated consumers to install batteries to save excess energy for future use. The high price of energy storage calls for a shared storage system, but careful battery management is required so that the battery is operated in a manner that is fair to all and as efficiently as possible. In this paper, we study the tradeoffs between efficiency and fairness in operating a shared battery. We develop a framework based on constrained Markov decision processes to study both regimes, namely, optimizing efficiency under a hard fairness constraint and optimizing fairness under hard efficiency constraint. Our results show that there are fundamental limits to efficiency under fairness and vice-versa, and, in general, the two cannot be achieved simultaneously. We characterize these fundamental limits via absolute bounds on these quantities, and via the notion of price of fairness that we introduce in this paper.

possibility of other users 'stealing' one's content. Clearly, gatekeeping is required so that users access the battery in a manner that is fair to all, and yet the battery is operated in an efficient manner that fully exploits the investment made in installing it. We are motivated by this question of fair and efficient operation of a shared battery.

Index Terms -Smart grids, Battery management systems, Battery sharing

## I. INTRODUCTION

The falling cost of solar panels and incentives for renewable generation has created hope for massively decentralized power generation. Islanded microgrids can install wind generators, individual households, housing societies, and industries can generate their own energy via solar panels, and reduce both, their reliance on the grid and their carbon footprint. However, unpredictability and unreliability of renewable energy also necessitate battery backup to store excess energy, so that it can be utilized at times when this generation is low. With adequate battery backup, one can envision a future where there is widespread deployment of renewable generation, leading to a higher penetration of clean energy sources. A key component in realizing this dream is the cost of the battery. While solar panels have become inexpensive in the recent past, batteries prices continue to be stiff and significant.

The high cost of battery storage has motivated communities to look for sharing contracts that provide users access to a common battery, leading to sharing of the overall costs. The shared battery is expected to serve as collective storage accessible by multiple users that can be utilized to store excess generation, which users may want to withdraw at times of deficit. However, like anyone who has used a shared refrigerator at a dorm would realize, sharing of a storage space brings with it concerns about the inequity of access and the

Karan N. Chadha is an undergraduate at Department of Electrical Engineering, Indian Institute of Technology Bombay, Mumbai, India, 400076. karanchadhaiitb@gmail.com

Ankur A. Kulkarni is a faculty at Systems and Control Engineering, Indian Institute of Technology Bombay, Mumbai, India, 400076 kulkarni.ankur@iitb.ac.in

Jayakrishnan Nair is a faculty at Department of Electrical Engineering, Indian Institute of Technology Bombay, Mumbai, India, 400076 jayakrishnan.nair@ee.iitb.ac.in . The authors acknowledge support from the DST grant DST/CERI/MI/SG/2017/077.

For the success of the sharing arrangement, it should ideally allow each user to access the common battery as if it is wholly owned by the user without jeopardizing the access of other users. But if users have disparate generation characteristics, excessive charging by one user may leave another user with less opportunity to deposit his energy, diminishing equity of access. At the other extreme, it is evident that without a formal algorithm to do the gate-keeping, some users could draw far more energy than they injected, thereby cannibalizing the energy of other users.

Moreover, it seems plausible that gate-keeping may compel the battery operator to decline requests for injection even while there is room in the battery, or for withdrawal of energy even there is energy in the battery. As a consequence, maintaining fairness may come in the way of efficient battery operation. In this paper, we develop a framework to quantify the tradeoffs between efficiency and fairness in the operation of a shared battery. Our work shows that there is a precise sense in which the requirement of fairness fundamentally compromises efficiency, and in general, the two cannot be achieved simultaneously. We also quantify the tradeoff by characterizing the maximum efficiency achievable under fairness, and the maximum fairness achievable under efficiency.

We consider a setting where N users with individual stochastic net generation access a shared battery. The net generation may be positive (in which case the user wishes to inject energy) or negative (draw energy). We posit that a battery management algorithm decides the amount of energy to accept from injecting users and to provide to demanding users. We adopt a general principle of fairness that no user should draw more energy from the battery than it has injected into it. However, since energy units added by users are fungible, in the sense that they are indistinguishable from those added by other users, the above principle need not be applied sequentially. The battery management algorithm can allow users an 'overdraft', where users can for some intervals, draw more energy from the battery than they have injected thus far, so long as the energy is 'returned' at a later stage. Specifically, in our notion of fairness, we ask that for each user, the long-run time average of the energy drawn from the battery by the user be no more than the long-run time average of the energy injected. Our notion of efficiency is the loss of load rate (LLR). The LLR of user i is its long run time average of unmet demand.

We first study the problem of maximizing the efficiency subject to hard constraints on fairness and derive fundamental

limits on the minimum total LLR attainable under fairness constraints. We show that when there is at least one user that is net demanding , i.e., has negative steady-state net generation on average; the total LLR remains bounded away from zero for any battery size. Remarkably, this is true even when the total steady-state average net generation of all users is positive. In contrast, in the absence of the fairness constraint, the total LLR, in this case, would decrease exponentially with battery size. When all users are net generative (i.e., with positive steady state net generation on average), the LLR even with the fairness constraint decreases to zero exponentially with the battery size.

Given that the fairness constraint limits the efficient use of the battery, we then ask the price of fairness . This is defined as the ratio of the minimum attainable total LLR with the fairness constraint, to that attained without the fairness constraint. Our fundamental limits already show that this ratio approaches infinity for large battery size when at least one user is net demanding, but the system is net generative on the whole. However, remarkably, we show that the price of fairness can be arbitrarily large even all users are net generative.

Finally, we study the maximum fairness attainable under efficient battery use. We find numerically that efficient battery operation often compromises fairness for at least one user. Moreover, that departure from the utopian fairness persists even when one increases the battery size. This shows that the conflict between efficiency and fairness is, in a sense, fundamental and that a larger battery does not remedy it. These results provide a natural motivation for devising a market for energy wherein a user can inject its excess energy into the battery, which can then be sold to other users. The precise formulation for such a market is a point for future study.

## Literature Survey

There is recent literature on the effects of energy/battery sharing in power systems. The effects of sharing energy are studied from a (non-cooperative) game-theoretic perspective in [2]. The strategic decision is to choose the investment in individual battery storage systems. On the other hand, [3] views this problem from a coalition game perspective. Investment in a shared battery and the corresponding allocation scheme is studied in [4]. All these models assume the net generation observed by the battery to be independent and identically distributed random variables (i.i.d.) across time. This seriously limits the applicability of the system as the net generation is generally dependent across time. In contrast, we consider Markov models for net generation, which can better model the behaviour of renewable energy sources.

Markov energy generation models for scheduling of energy storage have been considered in [5], [6]. [5] models the system as a finite-horizon Markov decision process (MDP) where the decision of buying or selling electricity is made by an operator. They provide threshold based heuristic policies and quantify their suboptimality. [7] studies the problem of scheduling and operation of energy storage for wind power plants. [8] considers an infinite horizon discounted MDP based model to determine the optimal amount of battery to be bought from the grid to minimize the cost given a battery of fixed capacity. These papers focus on providing structural results of optimal policies and/or heuristic algorithms. On the other hand, we consider a model in which we minimize the expected loss of load if all demand is to be satisfied by only the renewable generation and the common battery. Our main distinction is the introduction of a notion of fairness, which, to the best of our knowledge, has not been done before in the scheduling of energy storage. Using this notion, we study the tradeoff between efficiency and fairness in the operation of shared energy storage systems.

## II. MODEL AND PRELIMINARIES

## A. Notation

In general, we denote random variables by capital letters and the value taken by a random variable is denoted by the corresponding lower case letters. GLYPH&lt;213&gt; i ∈ I Vi denotes the Cartesian product of sets Vi , i ∈ I . { u , . . . , v } is the set of integers from u to v . [ n ] denotes the set { 1 , . . . , n } .

## B. Model

Consider n users { 1 , . . . , n } equipped with stochastic net generation evolving in discrete time. The net energy generation of user i at time t be denoted by Xi ( ) t ∈ Si . A positive value of Xi ( ) t indicates a net surplus at time t (i.e., user i generated more energy than she consumed) whereas a negative value of Xi ( ) t indicates a net deficit at time t (i.e., user i demanded more energy than she generated). We assume an arbitrary positive granularity with which energy generation/demand is measured; this granularity is taken to be unity without loss of generality, so that Si ⊂ Z . Let s + i denote the maximum energy user i injects and - -s i denote the maximum energy user i demands, i.e., s + = i max s ∈ Si s and s -i = min s ∈ Si s . To avoid degenerate scenarios, we assume that s + i &gt; 0 and s -i &lt; . 0

Let X t ( ) = { X 1 ( ) t , . . . , Xn ( ) t } . We assume that X ( ) · is an irreducible discrete time Markov chain (DTMC) over a finite state space S ⊆ GLYPH&lt;213&gt; i ∈ [ n ] Si . Note that we do not assume here that the net generation processes associated with the individual users are independent. 1 We make the assumption that P [ X t ( + ) = 1 s | X t ( ) = s ] &gt; 0 for all s ∈ S . Note that this ensures aperiodicity of X ( ) · .

Let p = ( p ( ) s , s ∈ S ) denote the stationary distribution of the DTMC X ( ) · . We define the drift D i associated with user i as her steady state average net generation:

$$\Delta _ { i } = \sum _ { s \in S } s _ { i } \pi ( s ),$$

where s = ( s 1 , . . . , sn ) . User i is said to be net generative if D i &gt; 0 and net demanding if D i &lt; . 0 The system drift D is defined the sum of the user drifts, i.e., D = GLYPH&lt;229&gt; i ∈ [ n ] D i .

A common battery with capacity b max ∈ N is shared between the users. The battery occupancy at time t is a random variable

1 It is straightforward to generalize our results to the more general setting where the vector of net generations is itself a function of an abstract background Markov process. This generalization allows for an arbitrary state space desciption that might, for example, incorporate history and/or weather information.

denoted by B t ( ) . ( X t ( ) , B t ( )) is a controlled Markov process evolving over

$$\mathbf S = S \times [ b _ { \max } ]. \quad \quad \ \ ( 1 ) \quad \text{the}$$

Battery dynamics are given by

$$B ( t + 1 ) = B ( t ) + \sum _ { i \in [ n ] } A _ { i } ( t ), \text{ \quad \ \ } ( 2 )$$

where Ai ( ) t denotes the energy accepted from user i (when Ai ( ) t ≥ 0) or the energy supplied to user i (when Ai ( ) t &lt; 0). We assume that the actions Ai ( ) t , i ∈ [ n ] at each time instant t are chosen by the battery operator as a function of the state history ( X s ( ) , B s ( )) , s ≤ t .

The battery management algorithm is constrained as follows. In state ( x b , ) ∈ S , the space of allowable actions, denoted by A x b ( , ) , is given by:

$$\text{by } A ( x, b ), \text{ is given by} \colon & \quad \text{tarness} \\ A ( x, b ) = \left \{ ( a _ { 1 }, \dots, a _ { n } ) \ | \ a _ { i } \in \begin{cases} \{ 0, \dots, x _ { i } \}, & \text{if } x _ { i } \geq 0 & \text{refer } t h \\ \{ x _ { i }, \dots, 0 \}, & \text{if } x _ { i } < 0 \end{cases}, & \text{average} \\ 0 \leq b + \sum _ { i \in [ n ] } a _ { i } \leq b _ { \max } \right \} & \quad \text{the set } \cdot \\ A = \bigcup _ { ( x, b ) \in S } A ( x, b ) & \bigcap _ { ( P ) \ m } \\ \text{The above constraints restrict the amount of energy sumlied}$$

The above constraints restrict the amount of energy supplied to a user by the amount demanded and similarly restricts the amount of energy accepted from a user by her net surplus. In addition, the actions must also respect the capacity constraints of the battery, and that the battery cannot be discharged below 0.

## C. Loss of Load Rate (LLR)

Our notion of efficiency is defined by the loss of load rate. The loss of load rate (LLR) for user i , denoted by LLR i , is defined as:

$$\text{LLR} _ { i } \coloneqq \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ \mathbb { I } \{ X _ { i } ( t ) < 0 \} ( A _ { i } ( t ) - X _ { i } ( t ) ) ] \quad ( 4 ) \quad \text{The} ^ { 2 s a u a } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{\text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ } \text{ }$$

Note that LLR i ≥ 0 , since Ai ( ) t ≥ Xi ( ) t when Xi ( ) t &lt; 0 from (3). LLR i captures the long run average rate of unmet demand for user i . For a system of n users, we define the LLR of the system to be the sum of LLRs of the individual users, i.e., LLRsys = GLYPH&lt;229&gt; i ∈ [ n ] LLR . i

## III. MAXIMIZING EFFICIENCY WITH HARD CONSTRAINTS ON FAIRNESS

In this section, we study the tradeoff between efficiency and fairness by putting a hard constraint on fairness and optimizing efficiency under this constraint. The notion of fairness we consider is that for each user, the time-averaged amount of energy drawn from the battery is at most the timeaveraged amount of energy injected into the battery by that user. Efficiency is measured using the LLR. We formulate this problem as a constrained Markov decision process, and based on this formulation, derive fundamental limits on the efficiency achievable under fairness constraints.

A. Constrainted Markov decision process formulation

In this section, we impose a set of service constraints that the battery management algorithm must satisfy, in order to impart fairness in battery scheduling.

$$\text{FC} _ { i } \colon \quad \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ A _ { i } ( t ) ] \geq 0. \quad \quad ( 5 )$$

FC asks that the amount of energy we provide to each user is i at most the amount of energy the user injects into the battery. We call lim T → ¥ 1 T GLYPH&lt;229&gt; T t = 0 E [ Ai ( )] t the net contribution (C ) i of source i . We impose that the battery management algorithm satisfy FC i for all i ∈ [ n ] , collectively referred to as fairness constraints .

We consider the problem of operating the system under fairness constraints so that LLRsys is minimized. This problem is an instance of a constrained Markov decision process (we refer the reader to [9] for a survey), or CMDP with the average cost criterion. The state space is given by (1), and the set of allowable actions for each state is given by (3). The problem, for a fixed initial distribution on the state space, is summarized below:

$$\text{ applied } \begin{bmatrix} ( P ) \, \minimize _ { \phi } & \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 i \in [ N ] } ^ { T } \mathbb { E } [ \mathbb { I } \{ X _ { i } ( t ) < 0 \} ( A _ { i } ( t ) - X _ { i } ( t ) ) ] \\ \text{cts the } \, \\ \text{lus. In } \, \\ \text{straints } \, \end{bmatrix} \begin{bmatrix} ( P ) \, \minimize _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ A _ { i } ( t ) ] \geq 0 \quad \forall i \in [ n ]. \\ \end{bmatrix}$$

Here the decision variable is f , a randomized, historydependent policy. A randomized policy is a sequence of functions f ( ) t , t ∈ N that map the set of histories until time t to probability distributions on the set of available actions at time t . The set of available actions in state ( x b , ) ∈ S is given by (3). A deterministic policy maps the set of histories to a specific available action at each time t ∈ N . A policy is Markov if it depends only on current state ( X t ( ) , b t ( )) and it is stationary if f ( ) t does not depend on t .

The CMDP (P) is tractable since it can be solved by solving an equivalent linear problem (LP) (see [9], [10]); we do not provide the details of this reduction here due to space constraints, though we do present the LP reduction for the CMDP posed in Section V for optimization of fairness given a hard constraint on efficiency. Note also that the CMDP (P) is defined for a given initial distribution on S ; as such its optimal value depends on this initial distribution. However, the choice of this initial distribution does not affect the results we derive in this paper.

## B. Fundamental limits

Denote the set of net demanding and net generating sources by

$$\mathcal { D } \coloneqq \{ i \in [ n ] | \Delta _ { i } < 0 \}, \ \mathcal { A } \coloneqq \{ i \in [ n ] | \Delta _ { i } > 0 \}.$$

The following theorem provides a lower bound on the objective of (P) under any policy.

Theorem 3.1:

$$\text{LLR} _ { s y s } \geq \sum _ { i \in \mathcal { D } } ( - \Delta _ { i } ).$$

Proof: It suffices to prove the stated lower bound on LLRsys under any feasible policy for (P).

$$\text{Proof} \colon \text{ $It$   suffices   to   prove   the   stated   lower   bound    for   som$} \\ \text{on LLRsys under any feasible policy for (P).                                                                                                                                                                                                        
                                                                                                                                                                                                        }
                                                                                                                                                                                                      

LLR _ { i } = \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ \mathbb { I } \{ X _ { i } ( t ) < 0 \} ( A _ { i } ( t ) - X _ { i } ( t ) ) ] \\ = \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ \mathbb { I } \{ X _ { i } ( t ) < 0 \} A _ { i } ( t ) ] \\ + \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ \mathbb { I } \{ X _ { i } ( t ) > 0 \} A _ { i } ( t ) ] - \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ X _ { i } ( t ) ] \quad \text{In thi} \\ = \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ A _ { i } ( t ) ] - \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ X _ { i } ( t ) ] \quad \text{constrai} \\ ( b ) \geq - \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ X _ { i } ( t ) ] = - \Delta _ { i } \quad \text{proposir} \quad \text{fairness} \\ \text{The inequality } ( a )  follows since A _ { i } ( t ) \leq X _ { i } ( t ) \text{ when } X _ { i } ( t ) > 0. \quad \text{without} \\ \text{The inequality } ( b ) \text{ is a consequence of our fairness constraint.} \\ \text{The} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$} \colon \text{ $a$.}$$

The inequality ( a ) follows since Ai ( ) t ≤ Xi ( ) t when Xi ( ) t &gt; . 0 The inequality ( b ) is a consequence of our fairness constraint. The statement of the lemma now follows by summing over all net demanding sources.

glyph[negationslash]

The above bound shows that LLRsys remains bounded away from zero when D = / 0 for any battery size . We next consider the case when all sources are net generative, i.e., G = [ n ] . We show that in this case the optimal LLRsys goes down to zero exponentially with increasing battery size. To show this, we upper bound the optimal LLRsys by an expression which exponentially decays to 0. For this, we extensively use Theorem A.1 from Appendix A. It shows that the optimal LLR for a single net generating user decays exponentially in battery size. Using this, we now show that the exponential decay of the optimal LLR is true even for multiple sources, if all of them are net generating.

Theorem 3.2: If G =[ ] n , we have

$$\lim \sup _ { b _ { \max } \to \infty } \frac { \log ( \text{LLR} _ { o } ) } { b _ { \max } } = - c,$$

where LLR o denotes the optimal LLR, b max is the battery size and c is a positive constant.

Proof: We upper bound the solution of (P) by considering a particular policy. We divide the battery into n equal chunks of size b max n , allocating one chunk to each user. Consider the policy that optimally schedules each user using only the battery chunk allocated to her; as we mention in Appendix A, simple greedy operation is optimal when a battery (chunk) is used by used by a single user. Moreover, it is easy to see that this policy is fair.

Under the above policy, let LLR i denote the loss of load rate of source i . Then, the LLRsys of the combined system under this policy is GLYPH&lt;229&gt; n i = 1 LLR . We know from Theorem A.1 i that

$$\lim _ { b _ { \max } \to \infty } \frac { \log ( \text{LLR} _ { i } ) } { b _ { \max } } = - c _ { i }, \quad \quad ( 6 ) \quad \text{for a}$$

for some positive constant ci . Without loss of generality, let c 1 ≤ c 2 ≤ . . . ≤ cn . It is not hard to see now that

$$\lim \sup _ { b _ { \max } \to \infty } \frac { \log ( \text{LLR} _ { s y s } ) } { b _ { \max } } = - c _ { 1 },$$

which implies the statement of the theorem.

## IV. PRICE OF FAIRNESS

In this section, we analyse the efficiency implications of the fairness constraint (5) in the LLR optimization formulation (P) introduced in the previous section. We introduce the notion of Price of Fairness (PoF), which is the ratio of the optimal LLR subject to the fairness constraint, to the optimal LLR without this constraint. The main conclusion of this section is that the PoF can be arbitrarily large, even when all users are net generative. This means that imposing a strong fairness constraint in battery sharing can result in a substantial loss of efficiency. In the following section, we address this issue by proposing an alternative formulation that seeks to maximize fairness subject to maximal efficiency.

To define PoF, let LLR e denote the optimal loss of load rate without the fairness constraint, i.e.,

$$\stackrel { \text{ant.} } { r } \text{all} \quad \text{LLR} _ { e } \coloneqq \min _ { \phi } \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \sum _ { i = 1 } ^ { n } \mathbb { E } [ \mathbb { I } \{ X _ { i } ( t ) < 0 \} ( A _ { i } ( t ) - X _ { i } ( t ) ) ].$$

We refer to policies that solve the above optimization as efficient policies. It is not hard to see that the optimal loss of load rate is achieved by any greedy policy that (i) always charges the battery whenever energy is available, and (ii) always meets user demand whenever feasible. Formally, any policy that chooses actions that satisfy the following conditions is efficient.

E2. If b + GLYPH&lt;229&gt; i ∈ [ n ] xi &gt; b max , then ai = xi for all i satisfying &lt; , 0 and b + = b .

$$\text{LLR} \quad \text{E1.\, If $0\leq b+\sum_{i\in[n]x_{i}\leq b_{max}$, then $a=x$.} \\ \text{y of} \quad \text{E2.\, If $b+\sum_{i\in[n]x_{i}>b_{max}$, then $a_{i}=x_{i}$ for all $i$} \\ \text{II of} \quad \text{$x_{i}<0$, and $b+\sum_{i\in[n]a_{i}=b_{max}$.} \\ \text{F3.\, If $b+\nabla$.} \cdot \cdot \cdot \nu \cdot \pm \text{ then $a:-v.for all $i$ tactic}$$

$$\begin{array} {$$

Let the space of actions ( a 1 , . . . , an ) that satisfy the above efficiency conditions in state ( x b , ) be denoted by Ae ( x b , ) and the history dependent policies that satisfy these action constraints be denoted by F e .

The price of fairness (PoF) is defined as

$$P o F = \frac { L L R _ { o } } { L L R _ { e$$

To analyse the PoF, we first consider the case where there is at least one net demanding source. In this case, if the system drift is itself negative, it is easy to see that LLR o is bounded away from zero (using the same argument as in the proof of Theorem 3.1). Thus, the more interesting case is D &gt; 0 . In this case, the following lemma shows that the PoF grows to infinity as b max → ¥ .

Lemma 4.1: Suppose that | D | ≥ 1 (i.e., D i &lt; 0 for some i ) but the system is net generative (i.e., D &gt; 0). Then PoF → ¥ as b max → ¥ .

Proof: By Theorem 3.1, LLR o is bounded away from zero for any value of b max . However, LLR e decays exponentially

with b max; this is because under an efficient policy, one can think of the resulting LLR as arising from a single user with net generation process GLYPH&lt;229&gt; i ∈ [ n ] Xi ( ) · . The exponential decay of LLR e with b max now follows from Theorem A.1 in the appendix.

Next, we consider the case where all users are net generating. In this case, one might expect that a strict fairness constraint does not affect efficiency. However, as the following lemma shows, the PoF can be arbitrarily large even when all sources are net generating.

Lemma 4.2: Given any M &gt; , 0 one can construct a system instance where G =[ ] n , such that the PoF ≥ M .

Proof: We will construct an instance with 2 users that satisfies PoF ≥ M for any arbitrary positive threshold M . The full details of the construction are rather cumbersome; we provide a sketch of the argument below.

For users 1 and 2, we construct two independent net generation processes such that the LLR decay rate corresponding to each user operating alone (the framework analysed in the appendix) is distinct, i.e., l 1 &lt; l 2 . In this case, it can be shown (using the precise charactization of the decay rate from large deviations theory) that the decay rate l e associated with battery sharing between the users under an efficient policy satisfies l e ∈ ( l 1 , l 2 ) . Denoting the standalone LLR of user i by LLR o i , , this implies

$$\lim _ { b _ { \max } \to \infty } \frac { \text{$$

Thus, there exists ¯ b max &gt; 0 such that

$$\frac { \text{LLR} _ { o, 1 } ( \bar { b } _$$

From hereon, we freeze the battery size to this value ¯ b max , so the dependence of LLR on ¯ b max will be suppressed.

Let d = LLR o , 1 . We now perturb the net generation process of user 2 as follows: ˜ X 2 ( ) = s X 2 ( ) + s a , for a ≥ 0 such that

$$\sum _ { s \in S } s \pi ( s ) \mathbb { I } \$$

Note that quantities in the perturbed system are represented with a tilde accent. In the perturbed system, user 2 is more generating than in the original system, and the rate at which it demands energy from the system is at most d / 2 .

It is easy to see that ˜ LLR e ≤ LLR e . Moreover, in the perturbed system operated under the fairness constraint, the rate at which energy is accepted from user 2 is at most d / 2 . This means that the reduction in the LLR of user 1 is at most d / 2 relative to standalone operation, i.e.,

$$\widetilde { L L R } _ { o } \geq L L R _ { o, 1 } - \frac { \delta } { 2 } \geq \frac { 1 } { 2 } L L R _ { o, 1 }.$$

Thus,

$$\widetilde { P o F } = \frac { \widetilde { L L R } _ { o } } { \widetilde { L L R } _ { e } } \geq \frac { 1 } { 2 } \frac { L L R _ { o, 1 } } { L L R _ { e } } = M.$$

$$\text{LLR} _ { e }$$

This completes the proof.

An example of the phenomenon of unbounded PoF when all sources are net generating is shown in Figure 1a. Note that the above theorem does not show that the PoF for a given net generation profile grows to infinity as b max → ¥ ; see Figure 1b, where PoF seems to saturate with increasing b max .

Fig. 1: These figures show the change in price of fairness as battery size increases when the sources are independent. S = {-1 1 , } n and Pi denotes the transition matrix of source i .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00699v1-figure-36447965-34c8-4ed1-b2b7-f099151c4822.jpg)

## V. OPTIMIZING FAIRNESS SUBJECT TO EFFICIENCY

It is clear from Section IV that there exist cases, in which the Price of Fairness becomes unbounded as battery size increases. In this section, we formulate a problem in which we try to maximize fairness subject to efficiency, i.e., we pose being efficient as a hard constraint and ask how fair can we get?

We first define the objective which captures the fairness in the system. Our notion of fairness is to minimize the maximum over all users, the amount a user draws minus the amount it supplies to the battery. Recall the net contribution C i = lim T → ¥ 1 T GLYPH&lt;229&gt; T t = 0 E [ Ai ( )] t of user i defined in Section III. Now, by work conservation we have under any policy, GLYPH&lt;229&gt; i ∈ [ n ] C i = 0. The system is said to be completely fair when C i = 0 ∀ ∈ i [ n ] . In general, this may not be the case. Hence to maximize fairness, we maximize the minimum of C . i

Here, by being efficient , we mean being in the space of policies which minimize the LLR without the hard fairness constraint. In general, the optimal value of an objective, in this case fairness, over an arbitrary set of policies is not easily computable. However, an observation we made in Section IV allows to formulate this as a tractable problem. Recall from Section IV that efficient policies are those that take actions in the space Ae ( x b , ) when the state is ( x b , ) ∈ S . As a consequence, the space of efficient policies can be described by specifying only the space of allowable actions. This allows us to formulate this problem as a CMDP.

Thus, we define the problem of maximizing fairness subject to efficiency as follows

$$\max _ { \phi \in \Phi _ { e } } \min _ { i \in [ n ] } \lim _ { T \to \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ A _ { i } ( t ) ],$$

where the maximization is over all f that are efficient, i.e., that are constrained to take actions in Ae ( x b , ) in every state ( x b , ) . This problem can also be formulated as a CMDP as follows

$$\text{te that} \begin{bmatrix} ( F ) \, \maximize & \theta \\ \text{en net} \\ \text{re 1b}, \end{bmatrix} \begin{bmatrix} ( F ) \, \maximize & \theta \\ \phi, \theta \\ \text{subject to} \quad & \theta \leq \lim _ { T \rightarrow \infty } \frac { 1 } { T } \sum _ { t = 0 } ^ { T } \mathbb { E } [ A _ { i } ( t ) ], & \forall i \in [ n ], \\ \phi \in \Phi _ { e }. \end{bmatrix}$$

## A. Reduction to a Linear Program

The optimization problem (F) above is extremely complex since the class of all history dependent policies is a highly unstructured space. This makes it extremely hard to derive a policy or a battery management algorithm. However, a remarkable simplification is possible, which allows for the computation of such policies in an efficient manner.

A Markov decision process is said to be unichain if, under any stationary deterministic policy, the corresponding Markov chain contains a single (aperiodic) ergodic class. This ensures the existence of a unique stationary distribution, independent of the initial distribution. Notice that under any policy f ∈ F e the battery dynamics are identical and deterministic. Consequently, under any policy f ∈ F e , the Markov chain ( X t ( ) , b t ( )) has a single ergodic class, making this CMDP unichain. A well-known fact about unichain CMDPs is that stationary randomized policies dominate (see, e.g., Theorem 4.1 of [9]); thanks to this, we can limit our search to stationary randomized policies. Moreover, the CMDP admits an elegant equivalent linear programming formulation (Theorem 4.3 of [9]), where the optimization is not over policies, but rather over occupation measures (or probability distributions) on the product of state and action spaces. We introduce this formulation below.

An occupation measure r is a probability distribution on S × A e , where A e = ⋃ ( x b , ) ∈ S Ae ( x b , ) . In the LP formulation, the occupation measure is required to satisfy,

$$\sum _ { - } \sum _ { ( x, b ) \in \mathbf S } \rho ( x, b, a ) = 1, \ \rho ( x ^ { \prime }, b ^ { \prime }, a ^ { \prime } ) \geq 0, \ ( 9 ) \quad \text{what} \ \colon$$

$$\sum _ { ( x, b ) \in \mathbf S } \sum _ { a \in A _ { e } ( x, b ) } ^ { \mu \mu } \rho ( x, b, a ) ( \delta _ { ( x ^ { \prime }, b ^ { \prime } ) } ( x, b ) - P ( x ^ { \prime }, b ^ { \prime } | a, x, b ) ) = 0 \, \begin{array} { c } \alpha \\ \text{th} \\ \text{dy} \end{array}$$

(10)

∀ ( x ′ , b ′ ) ∈ S , a ′ ∈ A e , where,

$$\delta _ { ( u, v ) } ( u ^ { \prime }, v ^ { \prime } ) = \begin{cases} 1, & \text{if $u=u^{\prime}$ and $v=v^{\prime}$}, \\ 0, & \text{otherwise}, \end{cases}$$

and P x ( ′ , b ′ | a x b , , ) is the probability of transition from state ( x b , ) to state ( x ′ , b ′ ) under action a ∈ Ae ( x ′ , b ′ ) . In our case, these dynamics are trivial:

$$P ( x ^ { \prime }, b ^ { \prime } | a, x, b ) = P ( x ^ { \prime } | x ) \mathbb { I } \{ b ^ { \prime } = b + \sum _ { i \in [ n ] } a _ { i } \},$$

and P x ( ′ | x ) is the probability that the background process X t ( ) transitions from x to x ′ . (9) encodes that r is a probability distribution on S × A e . (10) imposes that r is an invariant distribution for the controlled Markov chain.

The equivalent LP formulation of (F) is then given by [9]:

$$\begin{bmatrix} ( L P ) & \maximize \, \ \theta \\ \rho, \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \theta \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \beta \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \phi \, & \pi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \xi \, & \geq \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \, & \end{bmatrix}$$

Here, r e is the set of r that satisfy (9)-(10), and with a slight abuse of notation, we define

$$\rho ( a _ { i } = u ) = \sum _ { ( x, b, a ) \in S \times \mathbf A _ { e } \colon \, a _ { i } = u } \rho ( x, b, a ).$$

Fig. 2: This figure shows how the maxmin fairness varies with increasing battery size. S = {-1 1 , } n and Pi denotes the transition matrix of source i . We have the following sources and n = k implies a system which has first k of these sources. 2 P 1 = [ 0 5 0 5 . . 0 6 0 4 . . ] , P 2 = [ 0 5 0 5 . . 0 8 0 2 . . ] , P 3 = [ 0 7 0 3 . . 0 7 0 3 . . ] , P 4 = [ 0 8 0 2 . . 0 4 0 6 . . ] .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00699v1-figure-2658451f-5f6d-4162-9872-aaa5b825bbd5.jpg)

The first constraint in (LP) arises from the fairness definition, restated using occupation measures. This formulation allows for efficient computation of the optimal fairness. We next prove a result giving structural properties of efficient policies.

Proposition 5.1: Under any efficient policy, the battery dynamics remain the same. Moreover, the underlying marginal distribution over states ( r ( x b , ) ∀ x b , ∈ S ) is the same across efficient policies.

Proof: Using E1, E2 and E3, we note that irrespective of what actions we choose for each agent, the sum total of all actions in Ae ( x b , ) is the same for each pair ( x b , ) ∈ S . Since the battery dynamics are b t ( + ) = 1 b t ( ) + GLYPH&lt;229&gt; i ai ( ) t , the battery dynamics stay the same across efficient policies.

Using the first claim, we can see that the transition matrix for ( x b , ) is the same across all efficient policies. Thus, r ( x b , ) is the same across all efficient policies.

We have computed the solution to (LP) and the plot of optimal fairness with increasing battery size for different user configurations is given in Figure 2. We have taken the background processes of the users to be independent for these evaluations. From this plot, we can observe that the fairness tends to saturate on increasing battery size, i.e. after a certain threshold, the fairness value approaches a negative constant (except for the case n = 1 , where the efficient policy is also fair). This illustrates that increasing the battery size does not necessarily improve the fairness of efficient policies.

Figure 2 indicates that even a relaxation of the fairness constraint in (P) to C i ≥-d for some d &gt; 0 is not guaranteed to result in an efficient battery operation, even as b max → ¥ . To illustrate this explicitly, in Figure 3a and Figure 3b, we plot the fairness efficiency frontier for 3 and 5 users, respectively. These plots show how close we get to efficient operation by relaxing the fairness constraint from C i ≥ 0 to C i ≥ -d ∀ i . The shaded region shows all those points which are achievable and the frontier is the boundary for the achievable region. For the case when an efficient policy is fair, the frontier would coincide with the axes.

2 The irregularities for even number of users occur due to integer effects.

Fig. 3: These figures show the fairness efficiency frontier for 3 and 5 users respectively with b max = 12 , S = {-1 1 , } n and Pi denotes the transition matrix of source i . This optimal loss of load is denoted by LLR d . The plot is of e v/s d , where e = LLR d LLR e -1 . and the fairness constraints are Ci ≥-d .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00699v1-figure-9334c126-4d48-41ec-b1c1-cc678c9a6f2e.jpg)

This reveals a fundamental conflict between efficiency and fairness: a small relaxation of the fairness constraint does not necessarily improve efficiency, and a small relaxation of the efficiency requirement does not necessarily imply fairness for all users (this follows from our previous observation of unbounded PoF).

To concretize our claim regarding the fundamental conflict between efficiency and fairness, we show in the following example that irrespective of the battery level, any efficient policy always has a non-zero maxmin fair value. We consider a setup of two users, wherein each user either generates unit power or demands unit power at each time instant. Let the transition probability matrix of user i be given by

$$P _ { i } = \begin{bmatrix} p _ { i } & 1 - p _ { i } \\ 1 - q _ { i } & q _ { i } \end{bmatrix}. \quad \quad \quad ( 1 1 ) \quad \text{Div} \quad \text{trans}$$

Then, we define the generation probability of user i by a i = 1 -qi 2 -pi -qi . Using this setup, we give the following proposition, which gives a class of examples where the fairness remains bounded away from zero under efficient policies. We denote the maxmin fair value under efficient policies by F . e

Proposition 5.2: Consider two users with S = {-1 1 , } 2 and the transition probability matrix of user i being Pi (as in (11)). If a 1 &gt; a 2, we have F e = a 2 -a 1 for all even battery sizes.

Proof: First, we note that r ( b = ) = k 0 for k odd. This is because, for even battery size, we know that in the long run the battery spends only finite amount of time in the odd battery levels and spends an infinite amount of time in the even battery levels. To see this, at each even battery level, we either accept two units of power, accept one unit and give one unit, or supply two units of power. Thus the battery level doesn't change it's parity unless it hits a boundary. If the battery level is initially odd, we know that it will hit either the upper boundary ( b max) or the lower boundary ( 0 ) in finite time, both of which are even. After this, the battery level stays even.

Let a i denote the generation probability of user i and let a ′ i = 1 -a i . Let r ( · , · ) denote the occupation measure of states of any efficient policy (Prop. 5.1). We note that given that the policy is efficient, from E1,E2 and E3, the freedom in the action is only when the background state is x =( -1 , -1 ) and the battery level is b = 1 and when the background state is x =( 1 1 , ) and the battery level is b = b max -1. Let us assume that when the background state is x =( -1 , -1 ) and the battery level is b = 1, we choose action a =( -1 0 , ) with probability s and action a =( 0 , -1 ) with probability 1 -s . Also, assume that when the background state is x =( 1 1 , ) and the battery level is b = b max -1, we choose action a =( 1 0 , ) with probability t and action a =( 0 1 , ) with probability 1 -t . Thus, we have,

$$& - \\ & = \quad C _ { 1 } - C _ { 2 } = & 2 ( \alpha _ { 1 } - \alpha _ { 2 } ) + ( 2 t - 1 ) \rho ( x = ( 1, 1 ), b = b _ { \max } - 1 ) \\ & \quad - ( 2 s - 1 ) \rho ( x = ( - 1, - 1 ), b = 1 ).$$

Since r ( b = ) = k 0 for k odd, we have C1 -C2 = ( 2 a 1 -a 2 ) . Thus, we have C1 = a 1 -a 2 and C2 = a 2 -a 1. For a 1 &gt; a 2, C2 &lt; C1 and hence F e = a 2 -a 1 for all even battery sizes.

## VI. CONCLUDING REMARKS AND FUTURE WORK

We studied the problem of scheduling of a shared energy storage among multiple users by concentrating on the tradeoff between fairness of use across users and the efficiency of use of the battery. Our results show that there are hard fundamental limits to fairness under efficiency constraints and to efficiency under fairness constraints. In particular, a larger battery size does not help in achieving both fairness and efficiency simultaneously. Our effort at characterizing these tradeoffs was via optimization of efficiency subject to fairness (and vice-versa). We have also simulated the fairness-efficiency frontier of levels of efficiency and fairness that cannot be jointly improved upon under any policy or battery size. Our results also indicate that sharing contracts and costing of batteries should be done with care since fair operations imply suboptimal battery utilization. Devising an equitable sharing of costs and a market for transacting excess energy are fascinating directions of future research.

## APPENDIX A

## LARGE BATTERY ASYMPTOTICS FOR A SINGLE USER

In this section, we consider the problem of minimizing the LLR associated with a single user i operating a battery of size b max alone. We make the following remarks:

- 1) The net generation process Xi ( ) · corresponding to user i is a functional of the DTMC X ( ) · .
- 2) An elementary energy conservation argument shows that any policy of battery operation for user i is fair with respect to the fairness notion (5).
- 3) The LLR of user i is minimized by a simple greedy policy: Suppose that the net generation is xi and the battery occupancy equals b . If 0 ≤ b + x ≤ b max, set action a = x . If b + x &lt; 0, set a = -b , and if b + x &gt; b max, set a = b max -b . Under this policy, the battery evolution is given by

$$B ( t + 1 ) = [ B ( t ) + X _ { i } ( t ) ] _ { [ 0, b _ { \max } ] }, \quad \ \ ( 1 2 )$$

where [ z ] [ 0 , b max ] = min max ( ( z , 0 ) , b max ) .

The main result of this section is that if D i &gt; , 0 then LLR o i , , the optimal LLR for user i , decays exponentially with the battery size b max .

Theorem A.1: For user i operating a battery of size b max in a standalone fashion, if D i &gt; , 0 then

$$\lim _ { b _ { \max } \to \infty } \frac { \log ( \text{LLR} _ { o, i } ) } { b _ { \max } } = - \lambda _ { i },$$

where l i ∈ ( 0 , ¥ ) .

Theorem A.1 is a consequence of the following lemmas.

Lemma A.1: Let the setting of Theorem A.1 hold. Under the battery evolution given by (12),

$$\lim _ { b _ { \max } \to \infty } \frac { \log ( \text{LLR} _ { o, i } ) } { b _ { \max } } = \lim _ { b _ { \max } \to \infty } \frac { \log \mathbb { P } [ B = 0 ] } { b _ { \max } }.$$

where B is distributed according to the steady state distribution of B ( ) ·

Proof: It is easy to see that LLR o i , ≤ P [ B = ] 0 . It therefore suffices to show that LLR o i , ≥ c P [ B = ] 0 for some c ∈ ( 0 1 , ) . This is a direct consequence of our assumption that P [ X t ( + ) = 1 s | X t ( ) = s ] &gt; 0 for all s ∈ S , which ensures that each time the battery drains to zero, there is positive probability of a loss of load. This argument can be easily formalized using the renewal reward theorem.

Lemma A.2: Let the setting of Theorem A.1 hold. Under the battery evolution given by (12),

$$\lim _ { b _ { \max } \to \infty } \frac { \log \mathbb { P } [ B = 0 ] } { b _ { \max } } = - \lambda _ { i },$$

where l i ∈ ( 0 , ¥ ) .

Proof: We analyse the asymptotics of P [ b = ] 0 using the reversed system [11], which is obtained by interchanging the role of generation and demand. In other words, X r i ( ) = t -Xi ( ) t (we use the superscript r to represent quantities in the reversed system). Thus, D r i = -D i &lt; . 0 It is not hard to see that

$$\mathbb { P } \left [ B = 0 \right ] = \mathbb { P } \left [ B ^ { r } = b _ { \max } \right ].$$

The battery evolution in the reversed system is equivalent to the buffer evolution in a finite buffer Markov modulated queue with negative drift, for which logarithmic asymptotics of the form

$$\lim _ { b _ { \max } \rightarrow \infty } \frac { \log \mathbb { P } [ B ^ { r } = b _ { \max } ] } { b _ { \max } } = - \lambda$$

are known; see [12, Section 6.5] and [13].

## REFERENCES

- [1] K. N. Chadha, A. A. Kulkarni, and J. Nair, 'Efficiency fairness tradeoff in battery sharing,' in Decision and Control (CDC), 2019 IEEE 58nd Annual Conference on . IEEE, 2019, p. pages.
- [2] D. Kalathil, C. Wu, K. Poolla, and P. Varaiya, 'The sharing economy for the electricity storage,' IEEE Transactions on Smart Grid , vol. 10, no. 1, pp. 556-567, jan 2019. [Online]. Available: https://doi.org/10.1109/tsg.2017.2748519
- [3] P. Chakraborty, E. Baeyens, K. Poolla, P. P. Khargonekar, and P. Varaiya, 'Sharing storage in a smart grid: A coalitional game approach,' IEEE Transactions on Smart Grid , pp. 1-1, 2018. [Online]. Available: https://doi.org/10.1109/tsg.2018.2858206
- [4] C. Wu, J. Porter, and K. Poolla, 'Community storage for firming,' in 2016 IEEE International Conference on Smart Grid Communications (SmartGridComm) . IEEE, nov 2016. [Online]. Available: https: //doi.org/10.1109/smartgridcomm.2016.7778822
- [5] Y. H. Zhou, A. Scheller-Wolf, N. Secomandi, and S. Smith, 'Managing wind-based electricity generation in the presence of storage and transmission capacity,' Production and Operations Management , nov 2018. [Online]. Available: https://doi.org/10.1111/poms.12946
- [6] J. H. Kim and W. B. Powell, 'Optimal energy commitments with storage and intermittent supply,' Operations Research , vol. 59, no. 6, pp. 1347-1360, dec 2011. [Online]. Available: https://doi.org/10.1287/ opre.1110.0971
- [7] M. Korpaas, A. T. Holen, and R. Hildrum, 'Operation and sizing of energy storage for wind power plants in a market system,' International Journal of Electrical Power &amp; Energy Systems , vol. 25, no. 8, pp. 599-606, oct 2003. [Online]. Available: https://doi.org/10.1016/s0142-0615(03)00016-4
- [8] P. M. van de Ven, N. Hegde, L. Massouli, and T. Salonidis, 'Optimal control of end-user energy storage,' IEEE Transactions on Smart Grid , vol. 4, 03 2012.
- [9] E. Altman, Constrained Markov Decision Processes , 1999.
- [10] M. L. Puterman, Markov decision processes: discrete stochastic dynamic programming . John Wiley &amp; Sons, 2014.
- [11] D. Mitra, 'Stochastic theory of a fluid model of producers and consumers coupled by a buffer,' Advances in Applied Probability , vol. 20, no. 3, pp. 646-676, 1988.
- [12] A. J. Ganesh, N. O'Connell, and D. J. Wischik, Big queues . Springer, 2004.
- [13] F. Toomey, 'Bursty traffic and finite capacity queues,' Annals of Operations Research , vol. 79, pp. 45-62, 1998.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00699v1-figure-f1d0cf64-cdab-4ec9-a04c-3dd81dc898e6.jpg)

Karan N. Chadha Karan is a dual degree student of Electrical Engineering at Indian Institute of Technology Bombay (IITB). His research interests include applied probabilty, game theory, optimization and learning theory.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00699v1-figure-1a52fe82-9464-4871-a856-3bf8da0e0cd5.jpg)

Ankur A. Kulkarni Ankur is an Associate Professor with the Systems and Control Engineering group at Indian Institute of Technology Bombay (IITB). He received his B.Tech. from IITB in 2006, M.S. in 2008 and Ph.D. in 2010, both from the University of Illinois at Urbana-Champaign (UIUC). From 20102012 he was a post-doctoral researcher at the Coordinated Science Laboratory at UIUC. His research interests include information theory, stochastic control, game theory, combinatorial coding theory problems, optimization and variational inequalities, and operations research. He was an Associate (from 2015-2018) of the Indian Academy of Sciences, Bangalore, a recipient of the INSPIRE Faculty Award of the Department of Science and Technology, Government of India, 2013, Best paper awards at the National Conference on Communications, 2017, Indian Control Conference, 2018 and International Conference on Signal Processing and Communications (SPCOM) 2018, Excellence in Teaching Award 2018 at IITB and the William A. Chittenden Award, 2008 at UIUC. He is a consultant to the Securities and Exchange Board of India on regulation of high frequency trading.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00699v1-figure-735495d6-2c80-4af6-b6a0-de7abc80bdfb.jpg)

Jayakrishnan Nair Jayakrishnan received his BTech and MTech in Electrical Engg. (EE) from IIT Bombay (2007) and Ph.D. in EE from California Inst. of Tech. (2012). He has held post-doctoral positions at California Inst. of Tech. and Centrum Wiskunde &amp; Informatica. He is currently an Assistant Professor in EE at IIT Bombay. His research focuses on modeling, performance evaluation, and design issues in queueing systems and communication networks.
Karan N. Chadha Ankur A. Kulkarni Jayakrishnan Nair
Efficiency Fairness Tradeoff in Battery Sharing
The increasing presence of decentralized renewable generation in the power
grid has motivated consumers to install batteries to save excess energy for
future use. The high price of energy storage calls for a shared storage system,
but careful battery management is required so that the battery is operated in a
manner that is fair to all and as efficiently as possible. In this paper, we
study the tradeoffs between efficiency and fairness in operating a shared
battery. We develop a framework based on constrained Markov decision processes
to study both regimes, namely, optimizing efficiency under a hard fairness
constraint and optimizing fairness under hard efficiency constraint. Our
results show that there are fundamental limits to efficiency under fairness and
vice-versa, and, in general, the two cannot be achieved simultaneously. We
characterize these fundamental limits via absolute bounds on these quantities,
and via the notion of price of fairness that we introduce in this paper.