Freight Train Optimization and Simulation