An Iterative Optimization Framework for Delay Management and Train Scheduling