Scheduling and supervisory control for cost effective load shaping of microgrids with flexible demands. (February 2019)