This solution leverages an Elitist Genetic Algorithm (EGA) to tackle interconnected challenges in the Energy Storage System (ESS) design and demand-side management, particularly focusing on battery scheduling. It addresses these concerns simultaneously for diverse styles of Heavy Goods Electrical Vehicle (HGEV) Depots and on-route charging stations. The ESS design encompasses considerations like battery capacity and power electronic board rating power, while demand-side management involves a series of battery charging/discharging power scheduling within the evaluation time window.