A Machine Learning Approach For Optimisation In Railway Planning