Energy management of a grid-connected microgrid using heuristic and linear programming approaches: contribution to Morocco's energy transition
Abstract
This study compares two energy management strategies, a rule-based heuristic controller and a linear programming (LP) optimization scheme with rolling horizon implementation, for a grid-connected industrial microgrid in Morocco, where a structured feed-in framework for surplus PV energy has only recently been introduced. Both strategies are examined on similar PV, load, and tariff data related to the representative clear and cloudy days, with and without surplus energy export, and the results are extrapolated to an annual basis using the region-specific distribution of weather day types for Beni Mellal, Morocco. The LP-based approach provides greater savings on an annual cost than the heuristic approach (14.17% vs. 3.24%), corresponding to estimated monthly savings of up to approximately 4,500 MAD on clear days, but at the cost of twice as many daily battery charge/discharge cycles, raising a trade-off between economic performance and battery degradation. This points to the need for sound and stable feed-in tariff systems to motivate the industrial self-producing entities to dispatch surplus energy during Morocco’s energy transition.
Keywords
energy management system; energy storage system; grid-connected microgrid; heuristic technique; linear programming method; optimization algorithm
Full Text:
PDFDOI: http://doi.org/10.11591/ijpeds.v17.i4.pp2556-2569
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Jaouad El Habbazi, Soufiane Badii, Abdelghani Boudaoud, Mounaim Aqil

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