Papers › Towards Efficient Constraint Handling in Neural Solvers for Routing Problems

Towards Efficient Constraint Handling in Neural Solvers for Routing Problems

17 Feb 2026arXiv:2602.16012added by Syntology

Jieyi Bi, Zhiguang Cao, Jianan Zhou, Wen Song, Yaoxin Wu, Jie Zhang, Yining Ma, Cathy Wu

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Neural solvers have achieved impressive progress in addressing simple routing problems, particularly excelling in computational efficiency. However, their advantages under complex constraints remain nascent, for which current constraint-handling schemes via feasibility masking or implicit feasibility awareness can be inefficient or inapplicable for hard constraints. In this paper, we present Construct-and-Refine (CaR), the first general and efficient constraint-handling framework for neural routing solvers based on explicit learning-based feasibility refinement. Unlike prior construction-search hybrids that target reducing optimality gaps through heavy improvements yet still struggle with hard constraints, CaR achieves efficient constraint handling by designing a joint training framework that guides the construction module to generate diverse and high-quality solutions well-suited for a lightweight improvement process, e.g., 10 steps versus 5k steps in prior work. Moreover, CaR presents the first use of construction-improvement-shared representation, enabling potential knowledge sharing across paradigms by unifying the encoder, especially in more complex constrained scenarios. We evaluate CaR on typical hard routing constraints to showcase its broader applicability. Results demonstrate that CaR achieves superior feasibility, solution quality, and efficiency compared to both classical and neural state-of-the-art solvers.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2602.16012")

Code

Syntology Ran 1 of 25 code samples harvested from 1 repository linked to this paper; 24 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: found in paper text by Syntology: 25 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jieyibi/CaR-constraint found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 1 ran; 0 honoured the contract we drafted; 24 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
24unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jieyibi/CaR-constraint. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

reshape_by_heads jieyibi/CaR-constraint/models/SINGLEModel.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 459fe521069329c6 · report
Euc_distance jieyibi/CaR-constraint/baselines/OR-Tools_baseline.py found in paper text by Syntology unverified MIT (permissive) · b614c1ddea8c410f · report
calc_vrp_cost jieyibi/CaR-constraint/baselines/HGS_pyvrp_baseline.py found in paper text by Syntology unverified MIT (permissive) · 8db9a91b0002e752 · report
calc_vrp_cost jieyibi/CaR-constraint/baselines/LKH_baseline.py found in paper text by Syntology unverified MIT (permissive) · 83dadb20cccdae82 · report
calculate_distance jieyibi/CaR-constraint/baselines/greedy_parallel.py found in paper text by Syntology unverified MIT (permissive) · a2d50d249f007e4e · report
check_mem jieyibi/CaR-constraint/utils.py found in paper text by Syntology unverified MIT (permissive) · f17c01b663993e4e · report
create_data_model jieyibi/CaR-constraint/baselines/OR-Tools_baseline.py found in paper text by Syntology unverified MIT (permissive) · 939dcf5fde45950d · report
estimate_batch_size jieyibi/CaR-constraint/analysis/grid_search.py found in paper text by Syntology unverified MIT (permissive) · 90ca1feb298895ad · report
fast_multi_head_attention jieyibi/CaR-constraint/models/SINGLEModel.py found in paper text by Syntology unverified MIT (permissive) · 57f3aff50aa7f611 · report
get_env jieyibi/CaR-constraint/utils.py found in paper text by Syntology unverified MIT (permissive) · f85cae57b28101a3 · report
get_hgs_cvrp_executable jieyibi/CaR-constraint/baselines/HGS_baseline.py found in paper text by Syntology unverified MIT (permissive) · add84ba016364520 · report
get_hgs_vrptw_executable jieyibi/CaR-constraint/baselines/HGS_baseline.py found in paper text by Syntology unverified MIT (permissive) · 53d638ee9f6282f9 · report
get_lkh_executable jieyibi/CaR-constraint/baselines/LKH_baseline.py found in paper text by Syntology unverified MIT (permissive) · d3630ff1f12d5a6e · report
get_opt_sol_path jieyibi/CaR-constraint/utils.py found in paper text by Syntology unverified MIT (permissive) · dad6cf482598ad57 · report
get_time_horizon jieyibi/CaR-constraint/baselines/OR-Tools_baseline.py found in paper text by Syntology unverified MIT (permissive) · d0bd680f5f2b3b80 · report
greedy_tsptw_instance jieyibi/CaR-constraint/baselines/greedy_parallel.py found in paper text by Syntology unverified MIT (permissive) · dc03804de3dda999 · report
hamming_distance jieyibi/CaR-constraint/analysis/similarity.py found in paper text by Syntology unverified MIT (permissive) · 6c620551834a7442 · report
hamming_distance_vectorized jieyibi/CaR-constraint/analysis/diversity.py found in paper text by Syntology unverified MIT (permissive) · 00cc8946a1c331bf · report
jaccard_distance_vectorized jieyibi/CaR-constraint/analysis/diversity.py found in paper text by Syntology unverified MIT (permissive) · 0e79c3e2c2672651 · report
levenshtein_distance jieyibi/CaR-constraint/analysis/similarity.py found in paper text by Syntology unverified MIT (permissive) · d345ac1930735cb8 · report
load_data jieyibi/CaR-constraint/baselines/greedy_parallel.py found in paper text by Syntology unverified MIT (permissive) · faf4e1c4deeb8f60 · report
multi_head_attention jieyibi/CaR-constraint/models/SINGLEModel.py found in paper text by Syntology unverified MIT (permissive) · 657ae188fd7e1f14 · report
plot_cvrp_trajectory000 jieyibi/CaR-constraint/analysis/similarity.py found in paper text by Syntology unverified MIT (permissive) · b2c62640d0b5e307 · report
positional_jaccard_distance jieyibi/CaR-constraint/analysis/diversity.py found in paper text by Syntology unverified MIT (permissive) · 308ec540b94dd9ed · report
read_hgs_vrplib jieyibi/CaR-constraint/baselines/HGS_pyvrp_baseline.py found in paper text by Syntology unverified MIT (permissive) · 110b4de489553a90 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.16012, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections