Towards a smart home energy management system - A dynamic programming approach | Synapse