SMS versenden: Forecast-Based Energy Management for Optimal Energy Dispatch in a Microgrid