Introduction
Combinatorial optimization problems, such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), present a significant challenge for standard reinforcement learning (RL) algorithms. The primary obstacle is the action space: in value-based RL, selecting an optimal action typically requires enumerating all possibilities to find the one that maximizes expected reward. In combinatorial settings, the number of possible actions (e.g., all valid routes) grows exponentially with the number of locations, making exhaustive enumeration impossible.
Previous RL approaches often simplified the problem by selecting one city at a time. However, this incremental approach limits the model's foresight and places the entire computational burden on the neural network. This paper introduces a novel framework that asks: Can we leverage mathematical optimization to select the best action from a structured, effectively infinite action space?
Methodology: A Hybrid RL-MIP Approach
The authors propose a hybrid framework that combines the predictive capabilities of RL with the search efficiency of Mixed-Integer Programming (MIP) solvers.
- Action as a Route: Instead of incremental city selection, an "action" is defined as the construction of a complete single route for a vehicle.
- Value Function Learning: A small ReLU-activated neural network is trained to estimate the "cost-to-go" ($V(s)$), representing the total distance required to visit all remaining cities from the current state.
- MIP-based Action Selection: To select the next action, the system solves an optimization problem: finding a route that minimizes the sum of the immediate route distance and the estimated future cost provided by the neural network.
- Neural Network Integration: A key technical contribution is embedding the neural network's logic directly into the MIP formulation. Because the network uses ReLU activations, its output is piecewise linear, allowing it to be modeled using "big-M" constraints and binary variables within standard solvers like Gurobi or SCIP.
- Policy Iteration: The framework employs a policy iteration scheme where the current policy is evaluated to gather data, followed by retraining the value function to refine the policy.
Key Insights
Small Networks, Big Impact
A surprising finding was that even a minimal neural network—containing as few as 16 hidden neurons—performs remarkably well. This suggests that the MIP solver handles the heavy lifting of the combinatorial structure, while the network only needs to capture the general "shape" of the cost-to-go function.
Physics-Informed RL
The researchers augmented the neural network's predictions with known mathematical lower bounds, such as the distance to the farthest city. Integrating these "hints" significantly accelerated convergence and improved the final solution quality.
Efficiency through Parallelism
While MIP solvers are computationally intensive, the authors demonstrate that the training process remains manageable through parallelism. By evaluating multiple sample paths simultaneously, the framework can converge to high-quality solutions efficiently.
Results and Benchmarks
The framework was evaluated on two distinct datasets:
- Random Euclidean Instances: On 51-city instances, the method (RLCA-16) achieved a mean distance of 10.65, nearly matching the highly optimized OR-Tools solver (10.47) and outperforming several RL-only benchmarks.
- CVRPLIB (Standard Library): On 50 instances from the "A" and "B" sets (ranging from 32 to 78 cities), the approach achieved an average gap of only 1.7% compared to OR-Tools.
Limitations and Future Work
Despite its success, the approach faces scalability challenges; as the number of cities exceeds 100, the MIP sub-problem for action selection becomes significantly harder to solve in real-time. Additionally, the current method focuses on single-instance learning. Future research aims to explore multi-instance learning, allowing a model trained on a distribution of problems to solve new, unseen instances instantly. Finally, the requirement for "MIP-friendly" architectures currently limits the use of more complex models like Transformers, which would require new methods for solver integration.
Summary updated