Improving Railway Operations Through The Integration Of Macroscopic And Microscopic Modelling With Optimisation