Rolling-horizon optimization of grid-tied PV–BESS for tariff savings, apparent-demand reduction, and critical-load survivability: A Tanzanian university case study
Abstract
This work presents a measurement-based techno-economic and reliability framework for sizing and dispatching a behind-the-meter photovoltaic and battery energy storage system (PV–BESS) at Mbeya University of Science and Technology (MUST), Tanzania. The analysis uses 26,280 measured, audited, timestamp-synchronized 20-minute active/reactive load data. The PV-generation profile was derived from historical global horizontal irradiance (GHI) time-series data using a validated PV system simulation framework, then synchronized with the measured demand series. Reliability is assessed using a 50-event outage calendar compiled from verified TANESCO interruption records and cross-validated with campus facility logs. Among retained candidates, only one design satisfies both planning constraints: 400 kWp PV, a 100-kWh BESS, and a 50-kW bidirectional converter operated with a 40% reserve state of charge. Relative to the grid-only case, this design reduces grid purchases by 51.96%, annual maximum apparent demand by 14.49%, and the annual tariff bill by 48.25%. It yields an NPV of TZS 150.58 million, an internal rate of return of 9.57%, and a simple payback of 9.13 years. It achieves 99.87% two-hour survivability and supplies 99.49% of modeled critical energy in the outage-calendar replay. Overall, PV delivers most of the energy and tariff benefit, whereas the BESS is retained primarily for outage readiness; this distinction matters when interpreting the constrained optimum.
Data Availability Statement
The data that support the findings of this study are available from the authors upon reasonable request
License
Copyright (c) 2026 Romanus Peter Lyanda, Arthur Mngoma Omari, Raphael Iddphonce

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors retain copyright of their work and grant the journal the right to publish it under the Creative Commons Attribution 4.0 International License (CC BY 4.0). This allows for maximum dissemination and reuse with appropriate citation.
How to Cite
References
Cook, J. J., Volpi, C. M., Nobler, E. M., & Flanegin, R. K. (2018). Check the stack: An enabling framework for resilient microgrids. National Renewable Energy Laboratory. https://doi.org/10.2172/1483066
Darghouth, N. R., Barbose, G., Zuboy, J., Gagnon, P. J., Mills, A. D., & Bird, L. (2020). Demand charge savings from solar PV and energy storage. Energy Policy, 146, 111766. https://doi.org/10.1016/j.enpol.2020.111766
Dolatabadi, M., Seyednouri, S., Hasselström, A., Safari, A., & Farrokhifar, M. (2024). Energy storage device sizing and energy management in building-applied photovoltaic systems considering battery degradation. IET Renewable Power Generation, 18(1), 30–47. https://doi.org/10.1049/rpg2.12894
Erdinç, F. G. (2023). Rolling horizon optimization based real-time energy management of a residential neighborhood considering PV and ESS usage fairness. Applied Energy, 344, 121275. https://doi.org/10.1016/j.apenergy.2023.121275
EWURA. (2026). The electricity sub-sector regulatory performance updates – March 2026. Energy and Water Utilities Regulatory Authority. https://www.ewura.go.tz/uploads/documents/en-1778237703-The%20Electricity%20Sub-Sector%20Regulatory%20Performance%20Updates%20%E2%80%93%20March%202026.pdf
Gholami, M., Muyeen, S. M., & Mousavi, S. A. (2023). Development of new reliability metrics for microgrids: Integrating renewable energy sources and battery energy storage system. Energy Reports, 10, 2251–2259. https://doi.org/10.1016/j.egyr.2023.09.047
Gorman, W., Barbose, G., Carvallo, J. P., Baik, S., Miller, C. A., White, P., & Praprost, M. (2023). County-level assessment of behind-the-meter solar and storage to mitigate long duration power interruptions for residential customers. Applied Energy, 342, 121166. https://doi.org/10.1016/j.apenergy.2023.121166
Hanna, R., Kleissl, J., Nottrott, A., & Ferry, M. (2014). Energy dispatch schedule optimization for demand charge reduction using a photovoltaic-battery storage system with solar forecasting. Solar Energy, 103, 269–287. https://doi.org/10.1016/j.solener.2014.02.020
Kajal, M. K. H., Hossain, R., Hassan, M., Dev, S., Islam, M. R., Hasan, M. M., & Islam, J. (2025). Techno-economic and resilience optimization of a university microgrid: A dual-tool approach. Energy Reports, 14, 3369–3389. https://doi.org/10.1016/j.egyr.2025.10.034
Nassif, A. B., Ericson, S., Abbey, C., Jeffers, R., Hotchkiss, E., & Bahramirad, S. (2022). Valuing resilience benefits of microgrids for an interconnected island distribution system. Electronics, 11(24), 4206. https://doi.org/10.3390/electronics11244206
Polat, S., Biyik, E., & Şekerci Öztura, H. (2025). Optimal active and reactive power scheduling for inverter-integrated PV and BESS under inverter current constraints. Electric Power Systems Research, 245, 111629. https://doi.org/10.1016/j.epsr.2025.111629
Rezaeimozafar, M., Barrett, E., Monaghan, R. F. D., & Duffy, M. (2024). A stochastic method for behind-the-meter PV-battery energy storage systems sizing with degradation minimization by limiting battery cycling. Journal of Energy Storage, 86, 111199. https://doi.org/10.1016/j.est.2024.111199
Saleem, M. I., Saha, S., Izhar, U., & Ang, L. (2024). Bi-layer model predictive control strategy for techno-economic operation of grid-connected microgrids. Renewable Energy, 236, 121441. https://doi.org/10.1016/j.renene.2024.121441
Stevenson, A., Riggs, H., & Sarwat, A. (2024). Data-driven scheduling of a grid-connected university campus battery energy storage system considering variable weather and energy pricing. Energy Reports, 12, 5116–5132. https://doi.org/10.1016/j.egyr.2024.10.063