Optimal Battery Sizing of a Grid-Connected Residential Photovoltaic System for Cost Minimization using PSO Algorithm

N. Regis, C. M. Muriithi, L. Ngoo


This paper proposes a new optimization technique that uses Particle Swarm Optimization (PSO) in residential grid-connected photovoltaic systems. The optimization technique targets the sizing of the battery storage system. With the liberation of power systems, the residential grid-connected photovoltaic system can supply power to the grid during peak hours or charge the battery during non-peak hours for later domestic use or for selling back to the grid during peak hours. However, this can only be achieved when the battery energy system in the residential photovoltaic system is optimized. The developed PSO algorithm aims at optimizing the battery capacity that will lower the operation cost of the system. The computational efficiency of the developed algorithm is demonstrated using real PV data from Strathmore University. A comparative study of a PV system with and without battery energy storage is carried out and the simulation results demonstrate that PV system with battery is more efficient when optimized with PSO.


grid-connected PV; electricity surplus; sizing; battery energy storage; electricity prices; net metering; PSO

Full Text:



Y. Ru, J. Kleissl, S. Martinez, “Storage size determination for grid-connected photovoltaic systems”, IEEE Transactions on Sustainable Energy, Vol. 4, No. 1, pp. 68–81, 2013

D. Abdoulaye, Z. Koalaga, F. Zougmore, “Grid-connected photovoltaic (PV) systems with batteries storage as solution to electrical grid outages in Burkina Faso”, 1st International Symposium on Electrical Arc and Thermal Plasmas in Africa, Ouagadougou, Burkina Faso, October 17-21, 2012

Y. Riffonneau, S. Bacha, F. Barruel, S. Ploix, “Optimal power flow management for grid connected PV systems with batteries”, IEEE Transactions on Sustainable Energy, Vol. 2, No. 3, pp. 309–320, 2011

Y. Choi, H. Kim, “Optimal scheduling of energy storage system for self-sustainable base station operation considering battery wear-out cost”, Eighth International Conference on Ubiquitous and Future Networks, Vienna, Austria, July 5-8, 2016

S. Grillo, A. Pievatolo, E. Tironi, “Optimal storage scheduling using Markov decision processes”, IEEE Transactions on Sustainable Energy, Vol. 7, No. 2, pp. 755–764, 2016

M. Gitizadeh, H. Fakharzadegan, “Battery capacity determination with respect to optimized energy dispatch schedule in grid-connected photovoltaic (PV) systems”, Energy, Vol. 65, pp. 665–674, 2014

F. Mavromatakis, G. Viskadouros, G. Xanthos, “Photovoltaic systems and net metering in Greece”, Engineering, Technology & Applied Science Research, Vol. 8, No. 4, pp. 3168–3171, 2018

J. Li, “Optimal sizing of grid-connected photovoltaic battery systems for residential houses in Australia”, Renewable Energy, Vol. 136, pp. 1245-1254, 2019

M. A. Mohamed, A. M. Eltamaly, A. I. Alolah, “PSO-based smart grid application for sizing and optimization of hybrid renewable energy systems”, PLoS One, Vol. 11, No. 8, pp. 1–22, 2016

L. A. Wong, H. Shareef, A. Mohamed, A. A. Ibrahim, “Optimal placement and sizing of energy storage system in distribution network with photovoltaic based distributed generation using improved firefly algorithms”, World Academy of Science, Engineering and Technology, International Journal of Electrical, Computer, Energetic, Electronic and Communication Engineering, Vol. 11, No. 7, pp. 864–872, 2017

M. O. Badawy, F. Cingoz, Y. Sozer, “Battery storage sizing for a grid tied PV system based on operating cost minimization”, IEEE Energy Conversion Congress and Exposition, Milwaukee, USA, September 18-22, 2016

V. S. Borra, K. Debnath, “Comparison between the dynamic programming and Particle Swarm Optimization for solving unit commitment problems”, IEEE Jordan International Joint Conference on Electrical Engineering and Information Technology, Amman, Jordan, April 9-11, 2019

P. Ahmadi, M. H. Nazari, S. H. Hosseinian, “Optimal resources planning of residential complex energy system in a day-ahead market based on Invasive Weed Optimization algorithm”, Engineering, Technology & Applied Science Research, Vol. 7, No. 5, pp. 1934–1939, 2017

K. Thirugnanam, H. Saini, P. Kumar, “Mathematical modeling of Li-Ion battery for charge/discharge rate and capacity fading characteristics using Genetic Algorithm approach”, IEEE Transportation Electrification Conference and Expo, Dearborn, USA, June 18-20, 2012

D. T. Ton, C. J. Hanley, G. H. Peek, J. D. Boyes, Solar energy grid Integration Systems: Energy Storage (SEGIS-ES), Sandia National Laboratories, 2008

E. McKenna, M. McManus, S. Cooper, M. Thomson, “Economic and environmental impact of lead-acid batteries in grid-connected domestic PV systems”, Applied Energy, Vol. 104, pp. 239–249, 2013

P. Mohanty, K. R. Sharma, M. Gujar, M. Kolhe, A. N. Azmi, “PV system design for off-grid applications”, in: Solar photovoltaic system applications: A guidebook for off-frid electrification, Springer, 2015

Y. Riffonneau, S. Bacha, F. Barruel, S. Ploix, “Optimal power flow management for grid connected PV systems with batteries”, IEEE Transactions on Sustainable Energy, Vol. 2, No. 3, pp. 309-320, 2011

L. Ravi, C. V. Kumar, M. R. Babu, “Stochastic optimal management of renewable microgrid using simplified Particle Swarm Optimization algorithm”, 4th International Conference on Electrical Energy Systems, Chennai, India, February 7-9, 2018

K. Yenchamchalit, Y. Kongjeen, K. Bhumkittipich, N. Mithulananthan, “Optimal sizing and location of the charging station for plug-in electric vehicles using the Particle Swarm Optimization technique”, International Electrical Engineering Congress, Krabi, Thailand, March 7-9, 2018

D. Truong, “Hybrid PSO-optimized ANFIS-based model to improve dynamic voltage stability”, Engineering, Technology & Applied Science Research, Vol. 9, No. 4, pp. 4384–4388, 2019

eISSN: 1792-8036     pISSN: 2241-4487