A Dynamic Energy Trading and Management Algorithm for the Elastic End-User in Smart Grids | IEEE Conference Publication | IEEE Xplore