Similar Items: An optimal energy management strategy for a household photovoltaic–battery–grid system