Hierarchical predictive control scheme for distributed energy storage integrated with residential demand and photovoltaic generation. Issue 15 (1st November 2015)