Text this: Optimal handling and fault-tolerant speed regulation of heavy haul trains