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.
Copyrights © 2026