Text this: Optimal Day-Ahead Scheduling of Microgrids with Battery Energy Storage System