Energy and thermal comfort management in a smart building facilitating a microgrid optimization | IEEE Conference Publication | IEEE Xplore