Applying machine learning from historical events and the current state of the railway to generate and validate new Very Short-Term Planning (VSTP) train schedules, and to amend existing ones.