Developing a New Flexibility-Based Algorithm for Home Energy Management System (HEMS) | IEEE Conference Publication | IEEE Xplore