Simulating smart charging optimization for electric vehicles