Is "Selection of an electrification system is based on economics of energy supply, maintenance, and capital cost compared to the revenue obtained for freight and passenger traffic." a good answer to the question "How do some locomotives function in order to be more flexible in operation?"
no