Anfonwch hwn fel neges destun: Forecast-Based Energy Management for Optimal Energy Dispatch in a Microgrid