Real-time estimation of state-of-charge using particle swarm optimization on the electro-chemical model of a single cell