Text this: Optimal Energy Management for Renewable Energy Microgrids