Optimizing electricity consumption of buildings in a microgrid through demand response | IEEE Conference Publication | IEEE Xplore