Text this: New algorithm for energy dispatch scheduling of grid-connected solar photovoltaic system with battery storage system