A communitarian microgrid storage planning system inside the scope of a smart city. (1st September 2017)