# Optimization of the Railcar Assignment Problem Using Zone-based Double Deep Reinforcement Learning

arXiv: https://arxiv.org/abs/2608.18442 · HTML: https://mlsanity.com/paper/2608.18442/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Placed in RL for autonomous driving and traffic, one of 15 directions in Deep reinforcement learning methods.
- Builds on 5 of its 32 references that are in the map.
- First posted on arXiv 19 Aug 2026.

## Placed in

- Deep reinforcement learning methods / [RL for autonomous driving and traffic](https://mlsanity.com/deeprl/rl-for-autonomous-driving-and-traffic/)

## Builds on (most cited first, 5 of 5)

- [Deep Reinforcement Learning with Double Q-learning](https://mlsanity.com/paper/1509.06461/) (2015)
- [A Novel Dynamic Programming Approach to the Train Marshalling Problem](https://mlsanity.com/paper/1903.08364/) (2019)
- [Optimizing Railcar Movements to Create Outbound Trains in a Freight Railyard](https://mlsanity.com/paper/2505.06510/) (2025)
- [Sorting Balls and Water: Equivalence and Computational Complexity](https://mlsanity.com/paper/2202.09495/) (2022)
- [A Novel Hybrid Heuristic-Reinforcement Learning Optimization Approach for a Class of Railcar Shunting Problems](https://mlsanity.com/paper/2603.05579/) (2026)

## Abstract (arXiv)

Railcar switching, or shunting operations decisions play a significant role in the efficient operation of railyard systems, which are in turn critical to the fast and effective movement of goods. In flat yards, switching operations are primarily performed using locomotives to push and pull railcars in order to assemble and disassemble trains. In such settings, railcars with predefined destinations are located across multiple parallel rail tracks, and must be moved, or switched, in order to form desired outbound trains. This study addresses the Railcar Assignment Problem (RAP) in flat yards with an objective of minimizing the total number of switching movements. We present a novel mixed-integer programming (MIP) model for this problem that incorporates practical operational constraints in rail yards, and demonstrate its NP-hardness. To solve large-scale instances, we propose a comprehensive Zone-based Double Deep Q-Network (Zone-DDQN) heuristic method that integrates railway structure, yard-zone decomposition, and a Double Deep Q-Network (DDQN). The yard-zone decomposition strategy partitions the yard into multiple parallel yard zones, after which the DDQN is applied to solve the problem within each zone individually and sequentially. Computational experiments across small-, medium-, and large-scale yards were conducted on a series of RAP instances. Average results show that the Zone-DDQN heuristic achieves an average optimality gap of 5.71% across small-scale yard instances. For large-scale yard instances containing more than 150 railcars and 30 tracks, the MIP model was not able to obtain solutions within 24 hours. In contrast, the Zone-DDQN heuristic was able to solve these instances with an average running time of 214.42 seconds.
