Electricity is typically generated in large and relatively efficient generating stations, transmitted to the railway network and distributed to the trains.
How is electricity being generated for electric locomotives?
generating stations