Mixed-direction train shunting with numerical planning