Отправить по sms: Optimal Energy Management within a Microgrid: A Comparative Study