DISTRIBUTED ENERGY STORAGE FUNCTION