Professional Documents
Culture Documents
A Two-Stage Algorithm For Optimal Scheduling of Battery Energy Storage Systems For Peak-Shaving
A Two-Stage Algorithm For Optimal Scheduling of Battery Energy Storage Systems For Peak-Shaving
Abstract—Increased penetration of Renewable Energy Sources transmission expansion [3], [4]. The simple idea is to charge
(RES) with intermittent and variable power output has led to the battery during off-peak hours and to discharge it to the grid
increased use of Battery Energy Storage Systems (BESS) for during peak hours. Moreover, the integration of BESS with
grid applications. This paper presents a two-stage algorithm
for optimal energy scheduling of BESS interfaced with RES. renewable generation helps mitigate issues such as voltage
Initially, a multivariate linear regression-based estimation of fluctuations resulting from the intermittency of RESs [5], [6].
voltages, currents, and network active power loss is performed IEEE 1547 standard requires all DERs to participate in voltage
using a synthetic dataset generated from the network model. regulation at the point of common coupling by changing the
Thereafter, a linear programming (LP) formulation is used to active and reactive power [7].
determine the output power of the BESS aimed at maximum
peak-shaving and valley-filling, based on predicted day-ahead A considerable amount of literature has been published on
net demand and solar photovoltaic (PV) output. BESS technical the integration of BESS and RESs for various applications.
and experimental constraints are considered in the model for The study in [8] proposes two BESS control algorithms for PV
an improved lifetime of the batteries. Compared to nonlinear capacity firming and energy time-shift applications. Another
approaches, the linearized model would reduce computational study [9] proposes a BESS optimization strategy for improving
complexity and time, while maintaining reasonable accuracy. The
linear programming model is solved using MATLAB, and the the load and distributed generation (DG) hosting capacity
proposed algorithm is implemented on a real-world distribution of a distribution network, where, the BESS is utilized for
feeder modeled in OpenDSS. The results show a significant voltage regulation, loss reduction, and peak shaving appli-
reduction in peak demand, net demand variation range, and cations. Other studies have investigated the coordination of
voltage variability caused by intermittent PV output. BESS and DERs for the purpose of cost minimization. In
Index Terms—battery energy storage system, multivariate linear
regression, linear optimization, energy scheduling, peak-shaving [10], a multi-period optimal DER coordination algorithm to
minimize the production cost of DGs and BESS has been
I. I NTRODUCTION presented. Similarly, [11] investigates a multi-objective opti-
Energy storage systems play an important role in addressing mization problem to coordinate the dispatch of DGs (wind,
the issue of intermittency and variability of renewable gen- solar, and diesel generators) and energy storage within a
eration, such as PV systems. Although RESs provide clean microgrid considering generation and BESS cost reduction,
energy and reduce greenhouse gas emissions, they are typi- using a model predictive control approach. In [12], the authors
cally non-dispatchable. Thus, it is important to augment the presented an optimization problem to minimize demand charge
dispatchability of these sources with energy storage systems. and maximize PV utilization for commercial and industrial
While several forms of energy storage—such as electromag- buildings using DERs and BESS.
netic, mechanical, and thermal—exist, electrochemical energy BESS provides distribution system operators with flexibility
storage systems in the form of batteries are most widely used and speed in operation [13]. However, these benefits come at
to integrate renewable generation to the grid. Batteries have a price. Batteries are costly facilities and need to be replaced
the potential to be used for a wide range of applications that within a short period of time that significantly increases the
include balancing load demand and generation in microgrids cost of BESS. Some technical and experimental considerations
and providing ancillary services, such as frequency control and including battery internal temperature [14], the total number of
voltage regulation, to the grid [1]. BESS can also be employed cycles [15], low average State of Charge (SoC) of the battery
for energy time-shift applications, specifically peak shaving (around 50%) [16] would result in an improved lifespan of the
and valley-filling that lead to a significant reduction in utilities’ batteries.
costs, and consequently, the customers’ [2] and deferment of Previous works were mainly carried out using nonlinear
models causing computational complexity and high compu-
tation time especially in dealing with power flow-related
978-1-7281-0407-2/19/$31.00 2019 IEEE constraints. Linearized power flow (PF) model is an approach
Authorized licensed use limited to: UNIVERSIDADE FEDERAL DA PARAIBA. Downloaded on February 04,2023 at 16:46:08 UTC from IEEE Xplore. Restrictions apply.
for simplifying and accelerating the analysis of a power
system for control and operation. Model-based methods were min(max |Pinet − Pavg
net
|) (1)
developed by making approximations in the analytical PF
where
model leveraging the physical characteristics of the power
Pinet = Pid − Pipv − Piref (2)
system. Datasets of measurements collected throughout the
power and distribution grids facilitate data-driven approaches 1
N
Authorized licensed use limited to: UNIVERSIDADE FEDERAL DA PARAIBA. Downloaded on February 04,2023 at 16:46:08 UTC from IEEE Xplore. Restrictions apply.
⎡ ⎤ ⎡ ⎤ ⎡ ⎤
θp0 θk0 θl0 constraint is added to the problem. (20) makes the BESS work
⎢θp1 ⎥ ⎢θk1 ⎥ ⎢θl1 ⎥
Θp = ⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎣θp2 ⎦ , Θk = ⎣θk2 ⎦ , Θl = ⎣θl2 ⎦ (11) in a reduced average SoC condition.
expressed as follows.
Piloss = θp0 + θp1 PiL + θp2 Pipv + θp3 Piref (13)
!"
Vik = θk0 + θk1 PiL + θk2 Pipv + θk3 Piref (14)
Iil = θl0 + θl1 PiL + θl2 Pipv + θl3 Piref (15)
#$%%%
&
The multivariate linear regression establishes the first stage %&
of the algorithm. It is worth mentioning that at this stage PiL '
()*"
SoCmax are the minimum and maximum limits of the battery −Piref + P −Z ≤ −(Pid −Pipv )+Pavg
d
−Pavg
pv
(22)
N i=1 i
SoC. The SoC limits are aimed at maximizing the life of the
battery.
1 ref
N
The SoC of the battery at each time interval i is calculated Piref − P − Z ≤ (Pid − Pipv ) − (Pavg
d
− Pavg
pv
) (23)
based on the initial SoC, charging and discharging rates, and N i=1 i
efficiency of the battery. The SoC calculation is a complex
and nonlinear process [21] beyond the scope of this paper; where Pavg
d
and Pavg
pv
are the average demand and PV output
however, the linear approximation in (19) could be applied power over 24 hours, respectively. Given (4), (13) and (16)
instead. from the the first stage, equations (22) and (23) may be
rewritten as follows.
P ref ts
i−1
SoCi = SoCi−1 − × × 100 (19) 1
N
Erated
b 1hr (θp3 − 1)Piref + (1 − θp3 )Piref − Z
N i=1
where Erated
b
is the rated capacity of the battery in kWh, and ts (24)
is the time duration (in hours) of a time interval. Equations (17) ≤ −((1 + θp1 )PiL + (θp2 − 1)Pipv + θp0 )
and (18) define the upper and lower bounds of the decision +(1 + θp1 )Pavg
L
+ (θp2 − 1)Pavg
pv
+ θp0 )
variables, while (19) is considered as an equality constraint
1
N
to the LP model. Initial SoC can also be defined as a single
equality constraint that could be given to the model as an input (1 − θp3 )Piref + (θp3 − 1)Piref − Z
N i=1
in order to study the impact of the initial SoC on the optimal (25)
operation of the BESS. ≤ (1 + θp1 )PiL + (θp2 − 1)Pipv + θp0
Furthermore, in order to increase the life expectancy of −((1 + θp1 )Pavg
L
+ (θp2 − 1)Pavg
pv
+ θp0 ))
the batteries, other than (18), following experiment-based
Authorized licensed use limited to: UNIVERSIDADE FEDERAL DA PARAIBA. Downloaded on February 04,2023 at 16:46:08 UTC from IEEE Xplore. Restrictions apply.
IV. R ESULTS AND D ISCUSSION
6XEVWDWLRQ
linear regression of the required network variables in terms
of P L , P pv and P ref . Performance of the multivariate linear
regression is shown in Fig. 3 for active power losses over
5HJXODWRU
100 scenarios. The minimum loading level is 35% of the peak
demand. The squared error is 0.16, which is promising. Similar
multivariate linear regression is used for voltages and currents.
Fig. 4 indicates the precision of the linear regression for the
5HFORVHU
5 voltage at recloser R2, over first 100 random scenarios with a
squared error of 3.26 × 10−5 .
0LFURJULG
160
Actual Data
140 Estimated Data
100
5HFORVHU
5
80
7UDQVIRUPHU
60
0:
6RODU
39 40
0
III. T EST S YSTEM
-20
0 10 20 30 40 50 60 70 80 90 100
Fig. 2 shows the one-line schematic of the real-world 12.47 Random Scenarios
kV distribution feeder used in this study. The original feeder
Fig. 3: Active power loss; actual vs. estimated data
of over 600 nodes has been aggregated, as shown. The system
has several DERs, including a 1.2 MW solar PV located
downstream of the feeder, a hybrid energy storage system 7.54
(HESS) at node 4, and a microgrid at node 11. The microgrid Actual Data
7.53 Estimated Data
includes a 120 kW solar PV and a 650 kW/ 326 kWh BESS.
The ratings of these DERs are presented in Table I. The test 7.52
system is modeled in OpenDSS, and the load, PV and Pref
profiles are fed into the model through MATLAB. 7.51
Voltage (kV)
7.5
TABLE I
DISTRIBUTED ENERGY RESOURCES INTERFACED WITH
DISTRIBUTION FEEDER 7.49
Authorized licensed use limited to: UNIVERSIDADE FEDERAL DA PARAIBA. Downloaded on February 04,2023 at 16:46:08 UTC from IEEE Xplore. Restrictions apply.
TABLE II
To verify the performance of the algorithm, three different RESULTS AND METRICS OF THREE SCENARIOS
4500 4500
PV & BESS PV & BESS
PV PV
4000 No PV & BESS 4000 No PV & BESS
3500 3500
Active Power (kW)
3000 3000
2500 2500
2000 2000
1500 1500
1000 1000
0 5 10 15 20 25 0 5 10 15 20 25
time (hour) time (hour)
Fig. 6: Demand seen at the substation for three different operating scenarios Fig. 7: Demand seen at substation considering 1630 kWh/1300 kW BESS
Authorized licensed use limited to: UNIVERSIDADE FEDERAL DA PARAIBA. Downloaded on February 04,2023 at 16:46:08 UTC from IEEE Xplore. Restrictions apply.
TABLE III
IMPACT OF BESS SCHEDULING ON VOLTAGE PROFILE AND TOTAL LOSS [3] M. Rahman, M. Kiesau, V. Cecchi, and B. Watkins, “Investigating effects
of weather parameter uncertainty on transmission line power handling
Standard % Voltage Active Energy capabilities using affine arithmetic,” in 2017 IEEE Power Energy Society
Scenario
deviation Variation Loss (kWh) General Meeting, July 2017, pp. 1–5.
No PV & BESS 0.00353 0.9968 1446 [4] R. Karandeh, S. Mohajeryami, V. Cecchi, and M. H. Javidi, “Evaluation
PV 0.00324 0.8843 1205 of investments made by gencos in transmission network development,”
Sunny
PV & BESS 0.00322 0.8831 1204 in 2017 North American Power Symposium (NAPS), Sept 2017, pp. 1–6.
PV 0.00323 0.8811 1210 [5] F. Jahanbakhsh, M. Davoudi, V. Zamani, N. Yousefpoor, and D. Proud-
Cloudy
PV & BESS 0.00323 0.8809 1209 foot, “BESS performance assessment for integration of wind generation,”
PV 0.00321 0.8773 1203 in 2017 IEEE Industry Applications Society Annual Meeting, Oct 2017,
Intermittent
PV & BESS 0.00321 0.8774 1202 pp. 1–6.
[6] J. Yi, P. F. Lyons, P. J. Davison, P. Wang, and P. C. Taylor, “Robust
Scheduling Scheme for Energy Storage to Facilitate High Penetration of
three-phase voltage at the recloser R2 of the distribution feeder Renewables,” IEEE Transactions on Sustainable Energy, vol. 7, no. 2,
and total active energy losses in kWh over 24 hours are pp. 797–807, April 2016.
investigated. Table III presents the standard deviation of the [7] “IEEE Standard for Interconnection and Interoperability of Distributed
Energy Resources with Associated Electric Power Systems Interfaces,”
voltage data, percent voltage variation, and the total energy IEEE Std 1547-2018 (Revision of IEEE Std 1547-2003), pp. 1–138, April
losses in the feeder over a 24-hour period. As shown in table 2018.
III, the voltage variation has decreased by up to 11.3%, while [8] S. A. Abdelrazek and S. Kamalasadan, “Integrated PV Capacity Firming
and Energy Time Shift Battery Energy Storage Management Using
the total active energy loss decreases by up to 16.7%. The Energy-Oriented Optimization,” IEEE Transactions on Industry Appli-
results confirm an improvement in the feeder voltage profile. cations, vol. 52, no. 3, pp. 2607–2617, May 2016.
The small changes are attributed to the size of the battery [9] N. Jayasekara, M. A. S. Masoum, and P. J. Wolfs, “Optimal Operation
of Distributed Energy Storage Systems to Improve Distribution Network
compared to the feeder peak demand. Load and Generation Hosting Capability,” IEEE Transactions on Sus-
tainable Energy, vol. 7, no. 1, pp. 250–261, Jan 2016.
V. C ONCLUSION [10] T. Yang, D. Wu, A. A. Stoorvogel, and J. Stoustrup, “Distributed
This paper presents a two-stage algorithm for optimal en- coordination of energy storage with distributed generators,” in 2016
IEEE Power and Energy Society General Meeting (PESGM), July 2016,
ergy scheduling of BESS interfaced with RESs. Required pa- pp. 1–5.
rameters for the optimization problem were acquired through a [11] E. Mayhorn, K. Kalsi, M. Elizondo, W. Zhang, S. Lu, N. Samaan, and
multivariate linear regression and a synthetic dataset generated K. Butler-Purry, “Optimal control of distributed energy resources using
model predictive control,” in 2012 IEEE Power and Energy Society
through applying power flow over an adequate number of General Meeting, July 2012, pp. 1–8.
random and feasible scenarios. The optimization problem was [12] M. R. Narimani, B. Asghari, and R. Sharma, “Energy storage control
formulated as a linear programming model to determine the methods for demand charge reduction and PV utilization improvement,”
in 2017 IEEE PES Asia-Pacific Power and Energy Engineering Confer-
output power of the BESS with the objective of maximum ence (APPEEC), Nov 2017, pp. 1–5.
peak-shaving and valley-filling, based on forecasted day-ahead [13] M. Zarghami, M. Y. Vaziri, A. Rahimi, and S. Vadhva, “Applications
demand and PV power profile. Compared to nonlinear ap- of battery storage to improve performance of distribution systems,” in
2013 IEEE Green Technologies Conference (GreenTech), April 2013,
proaches, the linearized model would reduce computational pp. 345–350.
complexity and time, while maintaining a reasonable accuracy. [14] M. M. Hasan, S. A. Pourmousavi, F. Bai, and T. K. Saha, “The
The results show a significant reduction in peak demand show- impact of temperature on battery degradation for large-scale bess in pv
plant,” in 2017 Australasian Universities Power Engineering Conference
ing maximimum utilization of the battery, and improvement (AUPEC), Nov 2017, pp. 1–6.
in the standard deviation of the net demand at the substation. [15] E. Chiodo, D. Lauria, V. Fabrizi, F. Ortenzi, and V. Sglavo, “Battery
Moreover, the algorithm improves the feeder voltage profile design based upon life cycle statistics,” in 3rd Renewable Power Gen-
eration Conference (RPG 2014), Sep. 2014, pp. 1–5.
and reduces the active energy losses of the feeder. The impact [16] B. Torres, V. Quintero, C. Estevez, M. Orchard, and C. Azurdia, “Soc
of increasing the battery capacity and initial SoC were also control for improved battery life and throughput performance under vst-
investigated in this work. Future work will include Economic tdma,” Electronics Letters, vol. 53, no. 3, pp. 183–185, 2017.
[17] Y. Liu, N. Zhang, Y. Wang, J. Yang, and C. Kang, “Data-driven power
evaluation of increasing the size of the BESS and a trade-off flow linearization: A regression approach,” IEEE Transactions on Smart
between maximizing the lifetime of the battery and energy Grid, pp. 1–1, 2018.
savings. [18] R. Karandeh, T. Lawanson, and V. Cecchi, “Impact of operational
decisions and size of battery energy storage systems on demand charge
ACKNOWLEDGMENT reduction,” in Powertech 2019, June 2019, pp. 1–6.
[19] R. Karandeh, W. Prendergast, and V. Cecchi, “Optimal scheduling of
The authors would like to thank Stuart Laval, Andrew Kling, battery energy storage systems for solar power smoothing,” in South-
and their team at the Duke Energy Emerging Technology eastCon 2019, April 2019, pp. 1–6.
[20] I. N. Moghaddam, B. H. Chowdhury, and S. Mohajeryami, “Predictive
Office for providing support for this research. Operation and Optimal Sizing of Battery Energy Storage With High
Wind Energy Penetration,” IEEE Transactions on Industrial Electronics,
R EFERENCES vol. 65, no. 8, pp. 6686–6695, Aug 2018.
[1] M. Farrokhabadi, B. V. Solanki, C. A. Canizares, K. Bhattacharya, [21] D. Bazargan, S. Filizadeh, and A. Gole, “Stability analysis of converter-
S. Koenig, P. S. Sauter, T. Leibfried, and S. Hohmann, “Energy Storage connected battery energy storage systems in the grid,” in 2015 IEEE
in Microgrids: Compensating for Generation and Demand Fluctuations Power Energy Society General Meeting, July 2015, pp. 1–1.
While Providing Ancillary Services,” IEEE Power and Energy Maga- [22] T. H. S. Bruce A McCarl, “Applied mathematical programming using
zine, vol. 15, no. 5, pp. 81–91, Sept 2017. algebraic systems,” Cambridge, MA, 1997.
[2] A. Oudalov, R. Cherkaoui, and A. Beguin, “Sizing and optimal operation [23] T. Lawanson, R. Karandeh, V. Cecchi, and A. Kling, “Impacts of
of battery energy storage system for peak shaving application,” in 2007 Distributed Energy Resources and Load Models on Conservation Voltage
IEEE Lausanne Power Tech, July 2007, pp. 621–625. Reduction,” in 2018 Clemson University Power Systems Conference
(PSC), Sept 2018.
Authorized licensed use limited to: UNIVERSIDADE FEDERAL DA PARAIBA. Downloaded on February 04,2023 at 16:46:08 UTC from IEEE Xplore. Restrictions apply.