Reinforcement Learning with Combinatorial Actions: An Application to Vehicle Routing

Arthur Delarue, Ross Anderson, Christian Tjandraatmadja

TL;DR

This paper introduces a hybrid framework that combines reinforcement learning (RL) with mixed-integer programming (MIP) to solve the Capacitated Vehicle Routing Problem (CVRP). By modeling the selection of an entire vehicle route as a single "combinatorial action" and using a MIP solver to find the best action relative to a learned value function, the authors achieve results that are highly competitive with state-of-the-art operations research (OR) heuristics.

The Challenge of Combinatorial Action Spaces

Combinatorial optimization problems like the CVRP—where a vehicle must deliver goods to various locations while staying under a capacity limit—are notoriously difficult (NP-hard). Standard RL approaches usually struggle with these problems because the "action space" is astronomical. To make it manageable, most RL models pick one city at a time. However, this places a massive burden on the neural network to understand long-term constraints and feasibility.

The authors identify a major gap: value-based RL typically requires an action space small enough to enumerate, while policy-based RL is built for continuous spaces. Neither fits the discrete, structured, and massive nature of combinatorial problems well. This paper asks: What if we could pick a whole route at once by solving a smaller, easier optimization problem inside our RL loop?

A Hybrid RL-MIP Framework

The authors propose a value-function-based RL framework where the action selection step is explicitly formulated as a Mixed-Integer Program (MIP).

  1. Sequential Decision Making: They treat the CVRP as a sequence of route constructions. The state is the set of currently unvisited cities. An action is the construction of one complete, feasible route.
  2. Value Function Approximation: They use a small neural network with ReLU activations to estimate the "cost-to-go" (the total distance needed to finish the job from the current state).
  3. Combinatorial Action Selection: To pick the best route, they solve an optimization problem: minimize the length of the current route plus the estimated cost-to-go for the remaining unvisited cities.
  4. The MIP Trick: Because the value function uses ReLU activations, it is piecewise linear. This allows the authors to embed the neural network's logic directly into the MIP solver's constraints. The action selection then becomes a Prize-Collecting Traveling Salesman Problem (PC-TSP) with a knapsack constraint—a problem that is much easier for solvers to handle than the full CVRP.
  5. Policy Iteration: They use a simple iteration scheme: sample paths using the current policy, calculate actual costs, and retrain the value function to better approximate those costs.

Key Insights

  • Capturing Complexity in the Formulation: Instead of forcing the neural network to learn everything, they offload the "feasibility" (like capacity limits) to the MIP solver. This allows for much simpler neural architectures.
  • ReLU as a Bridge: The choice of ReLU is strategic. Its piecewise linear nature is the "secret sauce" that allows a learned model to be optimized exactly by a mathematical programming solver.
  • Lower Bounds Matter: Augmenting the neural network's estimate with known combinatorial lower bounds (like the distance to the farthest city) significantly speeds up convergence.
  • Data Retention: In approximate dynamic programming, keeping data from previous iterations (with a decay factor) is crucial for stability, especially when sample sizes are small.

Key Results

The approach, dubbed RLCA (Reinforcement Learning with Combinatorial Actions), was evaluated on random instances and standard CVRPLIB benchmark datasets, yielding impressive performance:

  • Accuracy: On CVRPLIB instances, RLCA achieved an average optimality gap of only 1.7% compared to the highly optimized OR-Tools routing solver.
Performance over iterations
  • Efficiency of Architecture: The hybrid approach doesn't require massive deep learning models. Even a tiny network with only 4 to 16 hidden ReLU nodes significantly outperformed linear models (0 nodes).
Impact of neural network size
  • Comparison: It outperformed other recent RL-only baselines on random instances, particularly as the problem size increased to 51 cities.

Limitations and Future Work

While highly effective, the framework has a few limitations to address in future research:

  • Scalability of the Solver: While the PC-TSP subproblem is easier than the CVRP, it is still NP-hard. As the number of cities grows into the hundreds or thousands, the time taken by the MIP solver to pick a single action may become a bottleneck.
  • Single-Instance Learning: Currently, the model is trained on a single instance at a time. "Multi-instance" learning—training on a distribution of problems to solve new ones zero-shot—is a promising next step.
  • Action Space Diversity: The current model focuses on constructing routes. Future work could explore different action spaces, such as sets of local search moves (swapping cities between routes), which might scale better for very large problems.

Summary updated

BibTeX
@inproceedings{delarue2020reinforcement,
  author = {Arthur Delarue and Ross Anderson and Christian Tjandraatmadja},
  title = {{Reinforcement Learning with Combinatorial Actions: An Application to Vehicle Routing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=07ljCa86Fyy},
}
Figure