Electrical traction refers to a system that uses electrical power for traction, such as railways, trams, trolleys, and other vehicles. The term "track electrification" refers to the type of power source that used power electric locomotive systems. It could be AC, DC, or a hybrid supply. This paper provides the comparative analysis of electric traction system with PI controller and PSO Optimization Algorithm