A novel dual iterative Q-learning method for optimal battery management in smart residential environments | Synapse