DEMAND SIDE MANAGEMENT VIA DISTRIBUTED ENERGY GENERATION AND STORAGE