A Computational Model for Net-Metering Billing Optimization Using Python for Grid Economic Stability
DOI:
https://doi.org/10.32350/icr.52.04Keywords:
Net-metering, Smart Grid, distribution generator (DG), PythonAbstract
Increasing trends towards the installation of Solar Photovoltaics (PV), as a renewable source, have gained popularity with the injection of energy into the grid system. Besides its advantages, it has also raised many concerns including technical as well as economic problems. Different models of billing this ‘import’ and ‘export’ of energy units are in use to calculate charges of electricity. Grids are becoming economically unstable due to the absence of limitations or putting conditions on injection of energy by distribution generators (DGs). This is not helpful for the grid network in terms of earnings and hence, becoming difficult for distribution companies to maintain their grid. Therefore, the proposed study aimed to address these challenges by developing strategies to ensure grids' economic sustainability and distribution companies' economic sustainability. The research utilized Python for modeling and analysis, enabling accurate simulations of billing mechanisms, energy flows, and their impacts on grid economics.
Downloads
References
[1] C. E. Casillas and D. M. Kammen, “The energy-poverty-climate nexus,” Science, vol. 330, pp. 1181–1182, Nov. 2010, doi: https://doi.org/10. 1126/science.1197412.
[2] M. Moezzi, A. Ingle, L. Lutzenhiser, and B. O. Sigrin, “A non-modeling exploration of residential solar photovoltaic (PV) adoption and non-adoption,” Nat. Renew. Energy Lab. (NREL), Golden, CO, USA, 2017, doi: https://doi.org/10.2172/1379469.
[3] O. M. Butt, M. Mohsin, R. Irfan, H. Ashfaq, and K. Habib, “A comparative simulative study to determine controller schemes of static var compensator (SVC) for stability of power system,” Mehran Univ. Res. J. Eng. Technol., vol. 44, pp. 1–12, 2025, doi: https://doi.org/10.22581/muet 1982.0195.
[4] M. Irfan, Z.-Y. Zhao, M. Ahmad, and M. C. Mukeshimana, “Solar energy development in Pakistan: Barriers and policy recommendations,” Sustainability, vol. 11, Feb. 2019, Art. no. 1206, doi: https://doi.org/10. 3390/su11041206.
[5] M. Alrbai, L. Al-Ghussain, S. Al-Dahidi, O. Ayadi, and S. Al-Naser, “Techno-economic assessment of residential PV system tariff policies in Jordan,” Utilities Policy, vol. 93, p. 101894, 2025, doi: https://doi.org/10. 1016/j.jup.2025.101894.
[6] S. A. Sadat and J. M. Pearce, “Techno-economic evaluation of electricity pricing structures on photovoltaic and photovoltaic-battery hybrid systems in Canada,” Renew. Energy, vol. 242, 2025, Art. no. 122456, doi: https:// doi.org/10.1016/j.renene.2025.122456
[7] M. Asim et al., “Opportunities and challenges for renewable energy utilization in Pakistan,” Sustainability, vol. 14, 2022, Art. no. 10947, doi: https://doi.org/10.3390/su141710947.
[8] J. Khan and M. H. Arsalan, “Solar power technologies for sustainable electricity generation—A review,” Renew. Sustain. Energy Rev., vol. 55, pp. 414–425, Mar. 2016, doi: https:// doi.org/10.1016/j.rser.2015.10.135.
[9] M. Alipour, H. Salim, R. A. Stewart, and O. Sahin, “Residential solar photovoltaic adoption behaviour: End-to-end review of theories, methods and approaches,” Renew. Energy, vol. 170, pp. 471–486, May 2021, doi: https:// doi.org/10.1016/j.renene.2021.01.128.
[10] O. M. Butt, T. M. Butt, M. H. Ashfaq, M. Talha, S. R. S. Raihan, and M. M. Hussain, “Simulative study to reduce DC-link capacitor of drive train for electric vehicles,” Energies, vol. 15, June 2022, Art. no. 4499, doi: https://doi.org/10.3390/en15124499.
[11] M. F. Aziz and N. Abdulaziz, “Prospects and challenges of renewable energy in Pakistan,” in Proc. IEEE Int. Energy Conf. (ENERGYCON), Dec. 2010, pp. 161–165, doi: https://doi.org/10. 1109/ENERGYCON.2010.5771667.
[12] R. Zafar, A. Mahmood, S. Razzaq, W. Ali, U. Naeem, and K. Shehzad, “Prosumer based energy management and sharing in smart grid,” Renew. Sustain. Energy Rev., vol. 82, pp. 1675–1684, Feb. 2018, doi: https:// doi.org/10.1016/j.rser.2017.07.018.
[13] B. Knopf, P. Nahmmacher, and E. Schmid, “The European renewable energy target for 2030—An impact assessment of the electricity sector,” Energy Policy, vol. 85, pp. 50–60, Oct. 2015, doi: https://doi.org/10.1016 /j.enpol.2015.05.010.
[14] A. S. Alahmed and L. Tong, “Integrating distributed energy resources: Optimal prosumer decisions and impacts of net metering tariffs,” ACM SIGENERGY Energy Inform. Rev., vol. 2, pp. 13–31, 2022, doi: https://doi.org/10.1145/3555006.3555008.
[15] P. Benalcazar, C. Andrade, and W. Guamán, “Prosumer policy options in developing countries: A comparative analysis of feed-in tariffs, net metering, and net billing for residential PV-battery systems,” Polit. Energet., vol. 28, pp. 77–98, 2025, doi: https:// doi.org/10.33223/epj/202801.
[16] L.-M. Li, B. Yuan, P. Zhou, and X. Zhou, “On the role of net metering and time-of-use pricing in distributed renewable energy adoption: A review and policy insights,” Energy Sci., vol. 2, no. 1, Jan. 2026, doi: https://doi.org/10.1142/s2972379526300014.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Osama Majeed Butt, Usama Arif, Ali Tahir

This work is licensed under a Creative Commons Attribution 4.0 International License.