Optimal Energy Management and Scheduling of a Microgrid in Grid-Connected and Islanded Modes | IEEE Conference Publication | IEEE Xplore