Traffic Management Optimization of Railway Networks