A Learning-Augmented Dynamic Programming Approach for Orienteering Problem with Time Windows

Guansheng Peng, Lining Xing, Fuyan Ma, Aldy Gunawan, Guopeng Song, Pieter VansteenwegenNeurIPS 2025

TL;DR

Researchers have developed a "learning-augmented" exact algorithm for the Orienteering Problem with Time Windows (OPTW) that uses a specialized Graph Convolutional Network to predict optimal search relaxations. By integrating deep learning with traditional Dynamic Programming, the approach achieves a staggering sevenfold speedup over state-of-the-art exact solvers on challenging benchmarks without sacrificing optimality.

What Problem Does This Paper Address?

The Orienteering Problem with Time Windows (OPTW) is a complex puzzle often found in logistics and tourism. Imagine you are a tourist in a new city: you want to visit as many high-score attractions as possible, but each has specific opening hours, and you have a limited total time budget.

Mathematically, this is an NP-hard combinatorial optimization problem. While we have "exact" algorithms that guarantee the best possible answer, they often hit a wall called the "curse of dimensionality." As the number of locations increases, the number of possible paths explodes, making traditional Dynamic Programming (DP) too slow for practical use. The challenge is finding a way to prune the search space aggressively without accidentally throwing away the optimal solution.

Methods

The authors introduce DP-NG-ML, a framework that marries deep learning with an exact DP technique called ng-route relaxation.

The DP-NG-ML framework pipeline
  1. The Relaxation: Standard DP tracks every visited node to ensure the path is "elementary" (meaning it contains no cycles). The ng-route relaxation lightens this computational load by only "remembering" a small subset of nearby nodes (the ng-set). This makes the search faster but risks creating paths with cycles. Usually, these sets are built using simple heuristics (like "remember the 3 nearest neighbors").
  2. The ML Innovation (DiConvNet): Instead of using a simple heuristic, the authors use a novel Graph Convolutional Network called DiConvNet to predict the optimal ng-sets. Unlike standard GCNs designed for undirected graphs, DiConvNet is built to handle the asymmetry of time windows and directed travel.
  3. Supervised Learning: The model is trained via imitation learning. It looks at optimal solutions for smaller problems and learns the "hidden patterns" of which edges and nodes are critical to remember to avoid unproductive cycles.
  4. The Hybrid Loop: The predicted ng-sets initialize the DP. If the DP still finds a cycle, it iteratively tightens the relaxation until a perfect, elementary path is found.
Iterative refinement of ng-sets to eliminate cycles

Datasets

The model was evaluated on two classic benchmarks:

  • Solomon’s Instances: 29 instances with 100 vertices, categorized by whether locations are clustered or random.
  • Cordeau’s Instances: 10 highly challenging instances with 48 to 288 vertices. These are considered much harder because they feature wider time windows, which typically causes DP state spaces to explode.
  • Synthetic Data: The authors generated 100,000 training instances (50 vertices each) to teach the model the underlying structure of the problem.

Key Insights and Ideas

  • ML as an Accelerator, Not Just a Heuristic: Most ML research in this field tries to replace solvers with "black box" neural networks that give "good enough" answers. This paper uses ML to help an exact solver work faster while maintaining a 100% guarantee of optimality.
  • Directionality Matters: The authors found that standard GCNs performed poorly. By creating a directed variant (DiConvNet) that separates "source" and "target" embeddings, the model could better capture the one-way nature of time-constrained travel.
  • Generalization is Possible: Even though the model was trained on small, 50-node random graphs, it successfully "scaled up" to solve 288-node benchmark problems. This suggests the network learned fundamental geometric and temporal rules of the OPTW rather than just memorizing maps.

Key Results

The results represent a significant leap over the previous state-of-the-art (SOTA) "pulse algorithm":

  • Solomon’s Benchmark: Achieved a 38% average speedup.
  • Cordeau’s Benchmark: Achieved a sevenfold (7.33x) speedup on average.
  • Efficiency: On the Cordeau set, the ML-augmented version often found the optimal solution in a single iteration, whereas the standard version required nearly 24 iterations of refinement.
  • Accuracy: DiConvNet significantly outperformed traditional heuristics (like "Nearest Neighbor") in predicting the necessary memory sets, reducing the error rate by over 20%.

Limitations and Future Work

The primary limitation is the reliance on optimal labels for training. To train the model, you first need to solve many instances using a slow, traditional solver. This creates a "chicken and egg" problem for extremely large-scale instances where even the best current solvers fail.

The authors suggest that Reinforcement Learning (RL) could be a promising next step, allowing the model to learn through trial and error without needing pre-solved optimal labels. Additionally, they aim to extend this "learning-augmented DP" paradigm to other complex routing problems, such as those involving multiple vehicles or more complex resource constraints.

Summary updated

BibTeX
@inproceedings{peng2025learning,
  author = {Guansheng Peng and Lining Xing and Fuyan Ma and Aldy Gunawan and Guopeng Song and Pieter Vansteenwegen},
  title = {{A Learning-Augmented Dynamic Programming Approach for Orienteering Problem with Time Windows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=OROkRBW6cu},
}
Figure