Microgrid Energy Storage Model