Optimise control and schedule of multiple trains to minimise energy consumption.
Trains run on a multi-node rail line operated under the moving block system.
Formulate a multiphase optimal control problem and solve by pseudospectral method.
Incorporate practical train running conditions and operation constraints.
Two case studies respectively consider overtaking and subway line scheduling.