Text this: Improved PV control that considers charging restrictions of lithium-ion battery