Cost-comfort balancing in a smart residential building with bidirectional energy trading | IEEE Conference Publication | IEEE Xplore