Learning to Search Feasible and Infeasible Regions of Routing Problems with Flexible Neural k-Opt

Yining Ma, Zhiguang Cao, Y. Chee
2/12/2026

Official code: yining043/NeuOpt (56 stars, MIT, last commit 2024-07-24).

Abstract

In this paper, we present Neural k-Opt (NeuOpt), a novel learning-to-search (L2S) solver for routing problems. It learns to perform flexible k-opt exchanges based on a tailored action factorization method and a customized recurrent dual-stream decoder. As a pioneering work to circumvent the pure feasibility masking scheme and enable the autonomous exploration of both feasible and infeasible regions, we then propose the Guided Infeasible Region Exploration (GIRE) scheme, which supplements the NeuOpt policy network with feasibility-related features and leverages reward shaping to steer reinforcement learning more effectively. Additionally, we equip NeuOpt with Dynamic Data Augmentation (D2A) for more diverse searches during inference. Extensive experiments on the Traveling Salesman Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP) demonstrate that our NeuOpt not only significantly outstrips existing (masking-based) L2S solvers, but also showcases superiority over the learning-to-construct (L2C) and learning-to-predict (L2P) solvers. Notably, we offer fresh perspectives on how neural solvers can handle VRP constraints. Our code is available: https://github.com/yining043/NeuOpt.

View on arXivView PDF

Code Implementations(1)

yining043/NeuOptOfficial100%
MIT

This repo implements our paper, "Learning to Search Feasible and Infeasible Regions of Routing Problems with Flexible Neural k-Opt", which has been accepted at NeurIPS 2023.

569Python, Jupyter NotebookAug 9, 20232 years agoMIT
deep-reinforcement-learningk-optlearning-to-optimizeneural-combinatorial-optimizationreinforcement-learning+5 more

Similar Papers

Cite this paper

@article{ma2026learning,
  title  = {Learning to Search Feasible and Infeasible Regions of Routing Problems with Flexible Neural k-Opt},
  author = {Yining Ma and Zhiguang Cao and Y. Chee},
  year   = {2026},
  eprint = {2310.18264},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.18264},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.18264.svg)](https://codeofpaper.com/paper/2310.18264)

Discussion