Two-stage charge and discharge optimization of battery energy storage systems in microgrids considering battery state of health | IEEE Conference Publication | IEEE Xplore