Energy cost reduction in residential nanogrid under constraints of renewable energy, customer demand fitness and binary battery operations. (July 2021)