Simulation and optimization models for planning the rail port cycle