Capacity Optimization of Battery Energy Storage Systems in a Microgrid | IEEE Conference Publication | IEEE Xplore