Learning to Solve Orienteering Problem with Time Windows and Variable Profits

Songqun Gao, Zanxi Ruan, Patrick Floor, Marco Roveri, Luigi Palopoli, Daniele Fontanelli

Executive Summary

DeCoST is a novel two-stage learning framework designed to solve the Orienteering Problem with Time Windows and Variable Profits (OPTWVP). By decoupling discrete routing decisions from continuous service-time allocation and using a specialized "repulsive" loss function, it achieves near-optimal solutions with up to a 6.6x speedup over state-of-the-art meta-heuristics on large-scale instances.

Introduction: The OPTWVP Challenge

The authors tackle the Orienteering Problem with Time Windows and Variable Profits (OPTWVP). Imagine a robot tasked with visiting several locations to collect rewards. However, there are three major constraints that complicate the mission:

  1. Time Windows: Each location is only accessible during a specific time slot.
  2. Variable Profits: The longer the robot stays at a location (service time), the more reward it collects.
  3. Fixed Budget: The robot has a strict total time limit for the entire journey.
Problem setup for OPTWVP and a comparison of service time allocation between DeCoST and standard NCO.

This creates a "tightly coupled" optimization nightmare. If the robot stays longer at Node A to maximize profit, it might arrive too late for the time window at Node B. Traditional Neural Combinatorial Optimization (NCO) methods usually focus only on the routing (the "where" and "in what order"), often ignoring the continuous timing variables (the "how long") until it's too late to fix the route.

Methodology: The DeCoST Framework

To overcome these limitations, the researchers propose DeCoST (DEcoupled discrete-Continuous optimization with Service-time-guided Trajectory), which breaks the problem into two collaborative stages:

The DeCoST two-stage architecture, featuring parallel neural decoding and service time optimization.
  • Stage 1: Parallel Neural Decoding. A Transformer-based encoder-decoder architecture predicts both the next node to visit and an initial estimate of the service time simultaneously.
  • Spatial Encoding: Unlike standard models that only look at node features, DeCoST uses edge distances as an "attention bias," helping the model understand the physical layout of the graph.
  • Feasibility Masking: The model dynamically blocks nodes that would be impossible to reach within their time windows or would prevent the robot from returning home on time.
  • Stage 2: Service Time Optimization (STO). Once a path is chosen in Stage 1, the timing problem becomes a Linear Programming (LP) task. The authors developed a dedicated STO algorithm that is mathematically proven to find the globally optimal service times for that specific path.
  • The "Secret Sauce" (pTAR Loss): To train the Stage 1 network, they introduced the profit-weighted Time Allocation Ratio (pTAR). This is a "repulsive" supervisory loss that prevents the model from prematurely converging to a narrow set of timing decisions, encouraging it to explore more efficient trade-offs between traveling and staying.

Datasets and Evaluation

The model was rigorously evaluated on multiple datasets to ensure robustness:

  • Synthetic OPTWVP Instances: Datasets with 50, 100, and 500 nodes, featuring varying time window sizes (TW=100 and TW=500).
  • Solomon100: A widely recognized real-world benchmark for vehicle routing problems, adapted here for the OPTWVP context.

Key Insights and Results

  • Decoupling is Power: By separating the "where" (discrete) from the "how long" (continuous), the model avoids the exponential explosion of the joint search space while still allowing the two components to "talk" to each other during training.
  • Superior Accuracy: DeCoST consistently outperformed other NCO methods (like POMO and GFACS) and strong meta-heuristics (like Incremental Local Search - ILS). In 50-node tests, it achieved an optimality gap of just 1.06%, compared to 4.34% for ILS and over 25% for standard NCO baselines.
  • Massive Speedups: On the Solomon100 dataset, DeCoST was 34.5 times faster than ILS while producing higher-quality solutions. On 500-node instances, it achieved a 6.6x inference speedup compared to existing SOTA constructive solvers.
  • Scalability: The model maintains high performance even as the number of nodes increases to 500, a threshold where many traditional solvers begin to struggle with computational overhead.
  • Global Optimality in Stage 2: Proving that the STO algorithm finds the global optimum for a fixed path provides a solid mathematical foundation that many purely "black-box" neural solvers lack.

Limitations and Future Work

While highly effective, the authors noted a few limitations. When integrating with non-autoregressive (NAR) structures, the lack of batch processing can limit the parallelism of the STO module, impacting overall efficiency. Additionally, while the paper briefly touches on "Team OPTWVP" (multiple robots), the primary focus remains on single-vehicle scenarios. Future work will likely explore more complex multi-agent coordination and aim to generalize the framework for non-linear or stochastic reward functions.

Summary updated

BibTeX
@inproceedings{gao2026learning,
  author = {Songqun Gao and Zanxi Ruan and Patrick Floor and Marco Roveri and Luigi Palopoli and Daniele Fontanelli},
  title = {{Learning to Solve Orienteering Problem with Time Windows and Variable Profits}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=koIbbsfKSf},
}
Figure