A Scalable Contract Based Approach for Integrating Building Flexibility to Energy Grids | IEEE Conference Publication | IEEE Xplore