ই-মেইল নথি: Schedule Optimization in a Smart Microgrid Considering Demand Response Constraints