Software optimizes train circulation control in real time