Professional Documents
Culture Documents
Abstract—Shift of the focus from bulk generation to distributed shifting of the load from peak periods to off peak periods
generation is an established global trend in the power sector. or during demand response events. Due to the use of battery
Further the mode of distributed generations is shifting from the fluctuations in the demand on the grid will reduce there
dependence on fossil fuels to renewable sources. These sources
are intermittent in nature and their generation pattern does not by benefiting the utility. Further more the fluctuations in the
match the load pattern there by creating a need for a battery generation due to renewable energy sources (RES) such as
storage system. In this context, energy management presents itself roof top solar can also be absorbed by the battery, there by
as inevitable challenge in operating a grid connected distributed improving the grid stability [1].
renewable sources. The challenge is due to factors such as
intermittency of source, time of the day prices, sizing of solar However, the above benefits can only be achieved by
panels and battery, limitations of charging and discharging rates incorporating some kind of smartness at the consumer end.
of the battery. To address these, in this paper, an algorithm for The challenge is to implement an effective energy management
energy management of grid-connected rooftop solar with battery algorithm which controls the positive and negative power flow
storage is proposed. The objective is to maximize the savings through the battery, so as to achieve savings in the total
in electricity bill by decreasing the power drawn from the grid
during high grid prices. The charge controller of battery uses electricity bill. The contribution of this paper is in solving
this algorithm for making decision on charging or discharging the challenge of energy management with an efficient and
of the battery or keeping it in idle mode. The algorithm is coded easy to implement algorithm for controlling the battery power.
in MATLAB and tested with realistic demand patterns and solar The architecture of the system is depicted in Fig. 1. For the
generation patterns of data representing a duration of 30 days. purpose of this study it is assumed that power from grid is
The obtained results show effective savings on electricity bill
monthly. The optimal selection of number of solar panels, battery unidirectional and the option of selling power back to the grid
size has also been presented. The proposed algorithm helps is not considered. This assumption is justified in the case when
in effectively deriving the potential benefits of grid connected the net solar energy units generated per day is less than the
rooftop solar system with battery storage. daily energy consumption of the load. In other words, the solar
Index Terms—Energy management strategy, rooftop solar, will meet only a part of the demand where as the other part
battery storage, Time of the day pricing.
is met from the grid.
I. I NTRODUCTION
With the increasing trend in the prices of fossil fuels paired
with the decreasing trends in the distributed generation tech- ŝƐƚƌŝďƵƚŝŽŶ
hƚŝůŝƚLJ;'ƌŝĚͿ
nologies, electricity consumers are gradually shifting towards
being electricity prosumers. Also, some government subsidies
WŽǁĞƌ&ůŽǁ
are encouraging the customers to have their own renewable
energy generation. Rooftop solar now-a-days became more
popular because it doesn’t require a separate land space or
/ŶǀĞƌƚĞƌǁŝƚŚ
area. It is flexible to install on the roof of the house or DWWd ŽŶǀĞƌƚĞƌǁŝƚŚ
ŚĂƌŐĞŽŶƚƌŽůůĞƌ
commercial complex. A rooftop solar alone cannot justify the
reduction in electricity bill as the solar irradiation is available ĂƚƚĞƌLJ ^ƚŽƌĂŐĞ
1196
If the grid connected rooftop solar and battery system was to choose has to be determined by analyzing of data. These
not available, the entire load will be on the grid. Thus, the considerations can be mathematically expressed as rules below.
net payment made to the grid with out solar system can be Rule 1: when EBat,t = 0 then PBat,t ≥ 0
calculated as Rule 2: when EBat,t = EBat,tmax
then PBat,t ≤ 0
t Rule 3: when 0 ≤ EBat,t ≤ EBat,t max
then PBat,t = 0
UwithoutSolar = Gprice,t ∗ PLoad,t (4) The next set of rules pertain to how much should be value
0 of PBat,t . When charging it is best to charge the battery as
The net saving in the bill can be calculated by subtracting quickly as possible, since the grid power will be available.
eq(4) from eq(3). However when discharging we need to have a controlled rate
of discharge, so that we avoid sending power back into the
S = UwithoutSolar − UwithSolar (5) grid. Hence by keeping PGrid,t = 0 in eq.(2), we get PBat,t =
PSolar,t − PLoad,t . Note that Pbat,t has to be negative when
Objective The objective is to achieve maximum saving on
discharging, that means we should discharge only when the
the net payment made to the grid, namely,
load is more than the solar generation. Thus we get following
rules.
maximize S (6) Rule 4: when charging PBat,t = PBat,tmax
It can be observed that for a given load profile and grid pricing Rule 5: when discharging 0 ≥ PBat,t = PSolar,t − PLoad,t
scheme, the term Uwithoutsolar will be fixed. Hence in order and PGrid,t = 0
to maximize the savings, S, we need to minimize the value Now we come to the question of deciding to charge or
Uwithsolar which can be achieved by re-scheduling the power discharge. By applying the above rules we can simulate the
taken from grid such that during the periods of lower price we energy management system and calculate the savings.
draw more power from the grid and vice versa, subjected to the In this algorithm predicted prices are divided into four
constraints of the battery capacity, charging and discharging regions. Based on these four regions the charging rate and
rates and the availability of solar power. discharging rate of the battery is considered. The four regions
Constraints The following constraints are applicable. (i) constitutes low, medium, high, and very high. These regions
The energy stored in battery can not be negative. (ii) the energy may vary based on the maximum price. Here in this paper
stored in the battery should not exceed the maximum storage for analysis of algorithm the price regions are considered as
capacity of battery. (iii) the maximum rate of charging and shown in (10).
discharging of the battery are not exceeded (iv) The power ⎧ ⎫
flow back to the grid is not allowed. This assumption is made ⎪
⎪ low; price = 50% of max(price) ⎪
⎪
⎨ ⎬
to avoid the trivial solution of having the entire load met with medium; price = 60% of max(price)
price =
solar and battery system, which will become equivalent to ⎪
⎪ high; price = 80% of max(price) ⎪
⎪
⎩ ⎭
off grid solar solution. Mathematically the constraints can be very high; price = max(price)
stated as below. (10)
Fig. 2. shows the algorithm for energy management in the
0 ≤ EBat,t ≤ EBat
max
(7) form of a flow chart. The following are the considerations that
are made for implementation of energy management.
1) We classify each time block into price regions based on
min
PBat ≤ PBat,t ≤ PBat
max
(8)
the price during that particular time period.
2) Depending on the price region charging rate and the
PGrid ≥ 0 (9) discharging rate are decided i.e., in during low price
region the rate of charge of battery is high compared to
III. I MPLEMENTATION OF A LGORITHM FOR E NERGY medium price region. Similarly discharge rate to supply
M ANAGEMENT S YSTEM during high region is less compared to very high price
In this section we describe a simple algorithm for solv- region.
ing the mathematical model described in previous section.As 3) Next we check for availability of solar and battery
noted, the only decision to be taken is how much to charge or capacity. Here solar is always in MPPT mode and it
discharge during a given time block t. The decision variable is is used to either meet the load or charge the battery.
PBat,t . So we begin by considering the obvious extreme cases. 4) If the price is in either low or medium the battery will
When the battery is completely discharged i.,e., maximum always charge from either grid or solar and the load is
discharge, we can not discharge further and when the battery met from grid.
is completely charged we can not charge it further. Another 5) If the price is in either high or very high region, we
subtle rule is that as long as the battery is not fully charged or will try to meet the demand from solar or battery and
fully discharged, there is always going to be an opportunity avoiding the grid power to the most possible extent.
to save on total bills by either charging or discharging during Fig. 3. shows the implementation of the above algorithm in
that hour as opposed to being idle. However, which option MATLAB. The input layer contains a .csv file in which first
1197
Calculate the price ranges
Read input file containing 1. Low
Start data on Hours, Load, Price, 2. Medium
Solar generation 3. High
4. Very High
If NO If NO NO
Price< Very High Price< High If If
Price< Medium Price<Price_low
YES
YES
YES YES
Set discharge rate equal
Set discharging rate to
to load Set Charging rate to Set Charging rate to
80% of load
minimum maximum
Check if
Check if Check if
battery is fully YES
battery is fully battery is fully
YES charged YES YES
YES charged charged
YES
NO YES NO
YES No
Supply maximum Power drawn Supply load from
amount of power Power drawn from Maximum load is Grid supplies
from grid is zero solar and charge Grid supplies Use grid and
from battery and grid is zero as solar/ met from solar, to power to Supply load
as battery is battery with to power to Supply solar to Use
remaining from battery is supplying battery remaining battery and from grid and
supplying load remaining solar only load load from charge battery grid+solar
grid load load from grid load charge battery
power solar and supply so meet
using solar
load load
STOP
1198
10
L M VH M L VH M L M L
VH
I I
M M
8 I
6
Power in kw
C
2
D
C-Charging, Grid Power D
-2 D-Discharging, I-Idle D Load
Pg-Power drawn Battery Energy
from grid, L-Low Price,
Battery Power
M-Medium Price, VH-Very
Solar Power
High Price
-4
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 7172
Hours
Fig. 4. Output showing how the energy management strategy algorithm works
one square meter area there by achieving solar panel capacity 8000
Cost without solar and battery
of 2kWp. Battery capacity is considered as 10kWh. 7000 Cost with solar and battery
5000
It is simulated for three days in order to show clearly that 4000
the algorithm works well. But the total energy savings are 3000
calculated for one month data. Here in the table t is hours,P l 2000
4500
4000 4000 investment.
3500
2000
3000 The following Fig. 6. shows the comparison plot between
0
20
15 6
2500
2000
the cumulative sum of cost that to be paid to the grid with
4
10
Battery capacity in kWh 5 1
2 Number of Solar Panels solar and without solar. It is observed that there is an effective
gap between the cost with solar and cost without solar for one
Fig. 5. Optimal selection of solar panels, battery size, cost savings month. The total savings that is achieved with the considered
number of solar panels and battery size is given by Rs. 3019.6
Fig 4. provides the clear idea about the energy management per month.
strategy algorithm. In the figure charging of battery, discharg-
ing of battery mode and idle mode are indicated. It is observed V. C ONCLUSION AND F UTURE WORK
whenever solar is available based on the price region solar In this paper, an algorithm is presented for energy man-
will either charge the battery or supply the load. Also the agement in grid connected rooftop solar system with battery
grid power touches to zero which means that the savings on storage. Based on the results and discussion it is observed that
bill is achievable. Also it is concluded that the savings can be the algorithm is achieving the intended savings in different
increased by increasing the number of solar panels and battery scenarios considered. Depending on the solar availability and
size. The effect of increase in solar panels and battery size on the battery capacity, savings in energy bill varies. With the
savings is presented in Fig. 5. increase in solar panels, battery capacity there will increase
1199
in savings of energy bill and vice versa. The algorithm is
TABLE I
E NERGY M ANAGEMENT FOR 3 DAYS simple as it is based on if then conditions on levels of solar
power, battery capacity, grid power and prices of grid power.
t Pl G PR Ps Pg Eb BM U Uw
No computation intensive optimization problems are required,
1 1.45 2 Low 0 1.45 1.8 C 2.89 2.89
2 1.31 2 Low 0 2.93 3.42 C 2.61 5.85
making it light and easy to implement in a relatively simple
3 1.21 2 Low 0 2.67 4.88 C 2.42 5.33 charge controller. Incorporating the feature of selling power
4 1.16 2 Low 0 2.47 6.19 C 2.31 4.94 back to the grid can be the future extension of the above energy
5 1.15 2 Low 0 2.33 7.37 C 2.31 4.67
6 1.21 2 Low 0 2.27 8.43 C 2.41 4.54
management algorithm, which is under research.
7 1.3 4 Medium 0 1.36 8.49 C 5.21 5.43
8 1.36 4 Medium 0.31 1.38 8.49 I 5.44 5.52
R EFERENCES
9 1.49 7 Very High 0.91 0 7.84 D 10.44 0 [1] A. A. E. m. Gado, “Impact the expansion of the production of generation
10 1.64 7 Very High 1.13 0 7.27 D 11.5 0 of solar power on the low voltage network in egypt,” in 2015 Saudi
11 1.76 6 Very High 1.35 0 6.81 D 10.54 0 Arabia Smart Grid (SASG), Dec 2015, pp. 1–4.
12 1.83 6 Very High 1.47 0 6.42 D 10.99 0 [2] N. Jabalameli, S. Deilami, M. A. S. Masoum, and F. Shahnia, “Rooftop
13 1.84 6 Very High 1.49 0 6.03 D 11.02 0 pv with battery storage for constant output power production consid-
14 1.8 6 Very High 1.44 0 5.63 D 10.79 0 ering load characteristics,” in Electrical and Electronics Engineering
15 1.75 6 Very High 1.34 0 5.18 D 10.47 0 (ELECO), 2013 8th International Conference on, Nov 2013, pp. 142–
16 1.77 6 Very High 1.04 0 4.37 D 10.63 0 146.
17 2.04 6 Very High 0.71 0 2.89 D 12.26 0 [3] A. Chersin, W. Ongsakul, and J. Mitra, “Improving of uncertain power
18 2.32 7 Very High 0.03 0 0.34 D 16.23 0 generation of rooftop solar pv using battery storage,” in Green Energy for
19 2.3 7 Very High 0 1.96 0 I 16.08 13.69 Sustainable Development (ICUE), 2014 International Conference and
20 2.23 4 Medium 0 3.13 0.9 C 8.91 12.51 Utility Exhibition on, March 2014, pp. 1–4.
21 2.14 4 Medium 0 2.95 1.71 C 8.54 11.79 [4] F. Giraud and Z. M. Salameh, “Steady-state performance of a grid-
22 1.97 2 Low 0 3.6 3.34 C 3.95 7.21 connected rooftop hybrid wind-photovoltaic power system with battery
23 1.75 2 Low 0 3.22 4.81 C 3.51 6.44 storage,” in Power Engineering Society Winter Meeting, 2001. IEEE,
24 1.53 2 Low 0 2.85 6.12 C 3.06 5.7 vol. 3, 2001, pp. 978 vol.3–.
25 1.35 2 Low 0 2.53 7.31 C 2.69 5.07 [5] Y. Kumar and R. Bhimasingu, “Optimal sizing of microgrid for an urban
26 1.26 2 Low 0 2.32 8.38 C 2.51 4.65 community building in south india using homer,” in Power Electronics,
27 1.22 2 Low 0 2.18 9.34 C 2.43 4.36 Drives and Energy Systems (PEDES), 2014 IEEE International Confer-
28 1.21 2 Low 0 1.21 9.34 I 2.43 2.43 ence on. IEEE, 2014, pp. 1–6.
29 1.26 2 Low 0 1.26 9.34 I 2.52 2.52 [6] J. Venkatesh, S. Chen, P. Tinnakornsrisuphap, and T. S. Rosing,
30 1.41 2 Low 0 1.41 9.34 I 2.82 2.82 “Lifetime-dependent battery usage optimization for grid-connected resi-
31 1.67 4 Medium 0 1.64 9.31 D 6.7 6.56 dential systems,” in Modeling and Simulation of Cyber-Physical Energy
32 1.93 4 Medium 0.32 1.87 9.31 I 7.72 7.48 Systems (MSCPES), 2015 Workshop on, April 2015, pp. 1–6.
33 2.13 7 Very High 0.85 0 7.89 D 14.92 0 [7] F. Martel, Y. Dubé, L. Boulon, and K. Agbossou, “Hybrid electric ve-
34 2.29 7 Very High 1.13 0 6.6 D 16.06 0 hicle power management strategy including battery lifecycle and degra-
35 2.38 6 Very High 1.35 0 5.45 D 14.27 0 dation model,” in Vehicle Power and Propulsion Conference (VPPC),
37 2.37 6 Very High 1.5 0 3.37 D 14.24 0 2011 IEEE. IEEE, 2011, pp. 1–8.
38 2.32 6 Very High 1.45 0 2.41 D 13.91 0 [8] M. Ibrahim, A. Khairy, H. Hagras, N. Abdel-Rahim, A. Shafei, and
39 2.28 6 Very High 1.36 0 1.38 D 13.66 0 A. Shaltout, “Intelligent energy management strategy for decentralized
40 2.28 6 Very High 1.12 0 0.09 D 13.7 0 battery storage in grid connected wind energy conversion systems,” in
42 2.63 7 Very High 0 2.63 0 I 18.43 18.43 Renewable Power Generation (RPG 2011), IET Conference on. IET,
44 2.43 4 Medium 0 3.33 0.9 C 9.72 13.32 2011, pp. 1–6.
45 2.29 4 Medium 0 3.1 1.71 C 9.17 12.41 [9] S. Grillo, M. Marinelli, S. Massucco, and F. Silvestro, “Optimal
46 2.11 2 Low 0 3.74 3.34 C 4.22 7.48 management strategy of a battery-based storage system to improve
47 1.87 2 Low 0 3.34 4.81 C 3.74 6.68 renewable energy integration in distribution networks,” Smart Grid,
48 1.62 2 Low 0 2.94 6.12 C 3.23 5.87 IEEE Transactions on, vol. 3, no. 2, pp. 950–958, 2012.
49 1.4 2 Low 0 2.59 7.31 C 2.81 5.18 [10] H. Alharbi and K. Bhattacharya, “Optimal sizing of battery energy stor-
50 1.27 2 Low 0 2.34 8.38 C 2.54 4.68 age systems for microgrids,” in Electrical Power and Energy Conference
51 1.21 2 Low 0 2.17 9.34 C 2.41 4.34 (EPEC), 2014 IEEE. IEEE, 2014, pp. 275–280.
52 1.18 2 Low 0 1.18 9.34 I 2.35 2.35 [11] H. Delavaripour, H. R. Karshenas, A. Bakhshai, and P. Jain, “Optimum
53 1.19 2 Low 0 1.19 9.34 I 2.37 2.37 battery size selection in standalone renewable energy systems,” in
54 1.26 2 Low 0 1.26 9.34 I 2.51 2.51 Telecommunications Energy Conference (INTELEC), 2011 IEEE 33rd
55 1.39 4 Medium 0 1.36 9.31 D 5.57 5.43 International. IEEE, 2011, pp. 1–7.
56 1.57 4 Medium 0.3 1.51 9.31 I 6.29 6.05 [12] B. Rajasekhar and N. M. Pindoriya, “Multi-stage scheduling for a smart
57 1.79 7 Very High 0.82 0 8.23 D 12.54 0 home with solar pv and battery energy storage??? a case study,” in Smart
58 2 7 Very High 1.18 0 7.32 D 13.97 0 Grid Technologies-Asia (ISGT ASIA), 2015 IEEE Innovative. IEEE,
59 2.12 6 Very High 1.35 0 6.47 D 12.69 0 2015, pp. 1–6.
60 2.15 6 Very High 1.49 0 5.74 D 12.88 0 [13] Z. Ren, G. Grozev, and A. Higgins, “Modelling impact of pv battery
61 2.12 6 Very High 1.5 0 5.06 D 12.7 0 systems on energy consumption and bill savings of australian houses
63 1.99 6 Very High 1.34 0 3.67 D 11.96 0 under alternative tariff structures,” Renewable Energy, vol. 89, pp. 317–
64 1.98 6 Very High 1.07 0 2.65 D 11.88 0 330, 2016.
65 2.18 6 Very High 0.73 0 1.04 D 13.07 0 [14] A. Mahesh and K. S. Sandhu, “Hybrid wind/photovoltaic energy system
66 2.36 7 Very High 0.01 1.3 0 I 16.49 9.12 developments: Critical review and findings,” Renewable and Sustainable
68 2.2 4 Medium 0 3.1 0.9 C 8.78 12.38 Energy Reviews, vol. 52, pp. 1135–1147, 2015.
69 2.09 4 Medium 0 2.9 1.71 C 8.36 11.6 [15] Y. P. Kumar and R. Bhimasingu, “Renewable energy based microgrid
70 1.93 2 Low 0 3.56 3.34 C 3.86 7.12 system sizing and energy management for green buildings,” Journal of
71 1.72 2 Low 0 3.18 4.81 C 3.44 6.37 Modern Power Systems and Clean Energy, vol. 3, no. 1, pp. 1–13, 2015.
72 1.48 2 Low 0 2.8 6.12 C 2.97 5.61
Total 611.61 325.23
1200