Cooperative home energy management using batteries for a photovoltaic system considering the diversity of households. (15th May 2015)