Accelerating Dynamic Route Re-solving via Robust Solver Evolution in Automatic Heuristic Design
Authors: Yizhuo Ma, Haoran Sun, Shuang Liang, Muquan Li, Qizhi Chen, Renzhong Wang, Nan Chen, Lunxu Liu, Ke Qin
Organizations: University of Electronic Science and Technology of China, Chengdu, China · Department of Thoracic Surgery, West China Hospital, Sichuan University
Multi-goal route planning uses spatial data on service locations and pairwise travel costs to determine a visiting order that minimizes total travel cost. This task can be formulated as the traveling salesman problem (TSP) and has benefited from large language model-based automatic heuristic design (AHD) for constructing effective solvers. Despite their effectiveness in static settings, existing methods exhibit substantial re-solving inefficiency when location changes, new requests, or request cancellations alter the underlying request data during execution. Our empirical analysis suggests that static-overfitting'' contributes to this inefficiency, as evolved solvers may repeatedly direct search toward overlapping local neighborhoods after dynamic changes. We further find that this overfitting'' is associated with limitations in existing evolutionary processes, where lower objective values on some instances coincide with longer solving times. In this paper, we therefore propose ERDR, a plug-and-play framework that integrates two strategies into existing AHD pipelines to guide evolution toward solvers that re-solve dynamically changed instances faster. Specifically, 1) ERDR uses validation-guided reselection to reevaluate candidates on instances excluded from routine evolution, reducing specialization to fixed training instances. 2) ERDR applies runtime robustness-augmented evaluation, supplementing the original evaluation objective of AHD methods with inter-group variability and tail risk in solving time to discourage costly and uneven search. Experiments across multiple TSP scales and dynamic scenarios show that ERDR achieves average re-solving speedups of 2.2× under guided local search and 4.4× under iterated local search.
Figures & tables
Fig. 1: (a) Static execution, where an AHD-evolved solver plans a tour that is followed without instance changes. (b) Dynamic execution, where location changes, new requests, or request cancellations alter the remaining routing problem and require reuse of the evolved solver for re-solving. (c) and (d) compare mean tour re-solving times within GLS for reused and specialized solvers generated by EoH and Hercules, respectively, under location changes and request cancellations at 20% tour progress on 50 TSP500 instances.
Fig. 2: Experimental observations of re-solving inefficiency within GLS. (a)–(b) show edge selections before and after dynamic changes, respectively, recorded over at most 500 GLS iterations using the EoH solver evolved on static TSP200. (a) shows the original 200-node instance, while (b) shows the remaining task after 20% tour progress, with new nodes added at 20% of the unvisited-node count. Points denote TSP nodes, and edge darkness and width encode selection frequency during solving. (c)–(e) show instance-level joint distributions of objective value and solving time over 50 source TSP200 instances at initialization and evolution iterations 5 and 10. Each point denotes one instance. In (d) and (e), solid lines show the fitted relationship between objective value and solving time, and the accompanying labels report the corresponding slopes. Gray dashed lines mark the mean objective value and solving time at each stage, with labels reporting the proportion of instances below the mean objective value. Orange points identify a low-objective, high-time subset at iteration 10 and track the same instances across all three checkpoints.
Fig. 3: Overview of the ERDR framework. Training and validation groups support solver evaluation and validation-guided reselection, respectively. (a) The original objective used in solver evaluation and reselection is augmented with inter-group variability and tail risk in solving time. (b) Validation-guided reselection reevaluates candidates to update the solver pool before the next evolution.
Change
Operation
Location changes
Add independent zero-mean Gaussian noise with standard deviation σ to both coordinates of every node in Uρ , then clip the perturbed coordinates to [0,1]2 . The node count remains unchanged.
New requests
Add max{1,round(r1∣Uρ∣)} nodes sampled independently and uniformly from [0,1]2 to the unvisited set, where r1 denotes the node-addition ratio.
Request cancellations
Remove max{1,round(r2∣Uρ∣)} nodes sampled uniformly without replacement from the unvisited set, where r2 denotes the node-removal ratio. The removal count is capped at ∣Uρ∣−2 , and retained-node coordinates remain unchanged.
TABLE I: Construction of the three dynamic changes. Each operation is applied to the unvisited set after the tour-progress cutoff.
Method
20%
50%
80%
Loc. Change ↓
New Req. ↓
Cancel. ↓
Loc. Change ↓
New Req. ↓
Cancel. ↓
Loc. Change ↓
New Req. ↓
Cancel. ↓
GLS
EoH
6.443 ± 0.709
9.139 ± 1.106
4.412 ± 0.437
2.757 ± 0.276
4.025 ± 0.443
1.860 ± 0.167
0.588 ± 0.053
0.782 ± 0.077
0.443 ± 0.036
+ERDR
2.673 ± 0.176
3.806 ± 0.276
2.547 ± 0.151
0.443 ± 0.027
0.508 ± 0.034
0.361 ± 0.019
0.220 ± 0.012
0.242 ± 0.014
0.189 ± 0.009
MEoH
1.420 ± 0.209
2.009 ± 0.070
0.930 ± 0.054
0.582 ± 0.041
0.822 ± 0.073
0.381 ± 0.014
0.102 ± 0.006
0.144 ± 0.010
0.067 ± 0.004
+ERDR
0.986 ± 0.039
1.349 ± 0.073
0.672 ± 0.042
0.439 ± 0.045
0.601 ± 0.061
0.299 ± 0.012
0.091 ± 0.004
0.124 ± 0.006
0.062 ± 0.002
TABLE II: Mean solving time (s) on TSP200 and TSP500 under dynamic scenarios within GLS and ILS. The column groups 20%, 50%, and 80% indicate the fraction of nodes visited when a dynamic change occurs. Loc. Change, New Req., and Cancel. denote location changes, new requests, and request cancellations, respectively. For each scenario, solving times are first averaged over paired successful instances in each run. We report the mean ± standard deviation of these instance-averaged times across three runs. Within each baseline pair, the result with the lower mean for each scale and scenario is shown in bold, including its standard deviation.
Method
20%
50%
80%
Loc. Change
New Req.
Cancel.
Loc. Change
New Req.
Cancel.
Loc. Change
New Req.
Cancel.
GLS
EoH
8.822
10.090
7.885
5.619
7.365
4.965
2.319
4.235
2.045
+ERDR
8.946 Δ +0.124
10.240 Δ +0.150
7.979 Δ +0.094
5.709 Δ +0.090
7.507 Δ +0.142
5.001 Δ +0.036
2.338 Δ +0.019
4.279 Δ +0.044
2.051 Δ +0.006
MEoH
9.063
10.248
7.925
5.685
7.534
5.016
2.341
4.155
2.049
+ERDR
9.083 Δ +0.020
10.251 Δ +0.003
7.933 Δ +0.008
5.699 Δ +0.014
7.550 Δ +0.016
5.020 Δ +0.004
2.341 Δ +0.000
4.160 Δ +0.005
2.049 Δ +0.000
TABLE III: Mean final objective value (Obj.) on TSP200 and TSP500 under dynamic scenarios within GLS and ILS. For each scenario, objective values are first averaged over paired successful instances in each run, and the reported value is the mean of these instance averages across three runs. Scenario columns follow Table II . Δ annotations indicate the objective-value differences of ERDR relative to the corresponding baselines. Lower values are better.
Variant
20%
50%
80%
Loc. Change
New Req.
Cancel.
Loc. Change
New Req.
Cancel.
Loc. Change
New Req.
Cancel.
Hercules
Full
2.045
3.489
1.345
0.878
1.342
0.697
0.188
0.200
0.090
w/o Val.
2.577 (1.26 × )
4.187 (1.2 × )
1.775 (1.32 × )
1.089 (1.24 × )
1.597 (1.19 × )
0.795 (1.14 × )
0.224 (1.19 × )
0.232 (1.16 × )
0.101 (1.12 × )
w/o Time 1
3.579 (1.75 × )
5.234 (1.5 × )
2.179 (1.62 × )
1.370 (1.56 × )
2.120 (1.58 × )
0.934 (1.34 × )
0.269 (1.43 × )
0.330 (1.65 × )
0.145 (1.61 × )
w/o Time 2
2.495 (1.22 × )
4.605 (1.32 × )
1.601 (1.19 × )
1.027 (1.17 × )
1.785 (1.33 × )
0.920 (1.32 × )
0.224 (1.19 × )
0.236 (1.18 × )
0.098 (1.09 × )
TABLE IV: Solving-time ablation results (s) for Hercules+ERDR within GLS on TSP500 at progress ratios of 20%, 50%, and 80%. For each scenario, solving times are first averaged over successful instances in each run, and the reported value is the mean of these instance averages across three runs. Parentheses report the solving-time ratio relative to Full.
Fig. 4: Mean solving times of EoH, Hercules, and their ERDR variants within GLS on TSP500. Panels (a1)–(a3), (b1)–(b3), and (c1)–(c3) correspond to 20%, 50%, and 80% tour progress, respectively. Within each group, panels 1, 2, and 3 vary coordinate perturbation σ , node-addition ratio r1 , and node-removal ratio r2 within their respective dynamic scenarios.
Fig. 5: Solving-time sensitivity to the training-group count (left) and validation interval (right) within GLS on TSP500 with new requests added at a node-addition ratio of 20%. The validation interval counts population updates between consecutive validation-guided reselections. Rows correspond to 20%, 50%, and 80% tour progress. Panels use separate vertical scales. Blue and purple denote EoH+ERDR and Hercules+ERDR, respectively. Lower values are better.
Method
Loc. change
New Req.
Cancel.
Time (s) ↓
Iter. ↓
Time (s) ↓
Iter. ↓
Time (s) ↓
Iter. ↓
GLS – TSP200
EoH
0.3592
40.42
0.2818
37.00
0.0968
18.14
+ERDR
0.0158
23.44
0.0144
21.84
0.0132
5.30
ReEvo
0.1820
242.68
0.2119
196.84
0.0903
195.00
+ERDR
0.0780
203.38
0.0973
150.50
0.0420
167.98
TABLE V: Search time (s) and iteration counts to first match or improve on the higher final objective value in each baseline–ERDR pair across dynamic scenarios at 20% tour progress. Entries are means over paired successful instances. Lower values within each baseline pair are shown in bold.
Fig. 6: Variability and tail costs of time to reach the paired common objectives after dynamic changes at 20% tour progress. Rows separate search frameworks and baselines. The left and right groups report TSP200 and TSP500, each with columns for location changes, new requests, and request cancellations. Bars show σt , σinst , and wt for the baseline (orange) and its ERDR variant (green). All values are in seconds.
EoH
Hercules
ReEvo
MEoH
Scale
Variant
GLS
ILS
GLS
ILS
GLS
ILS
GLS
ILS
TSP200
Baseline
2.60
12.49
0.25
1.03
0.39
2.61
2.80
11.26
+ERDR
2.40
11.09
0.23
1.24
0.33
2.01
2.62
11.35
TSP500
Baseline
4.30
22.06
0.55
7.34
0.84
7.76
4.65
19.82
+ERDR
3.93
19.95
0.50
5.91
0.75
6.80
4.25
18.68
TABLE VI: Mean end-to-end evolution time (h) over three runs on TSP200 and TSP500 under GLS and ILS. Each scale compares the baseline with baseline+ERDR.
Instance
Method
20%
50%
80%
Loc. Change
New Req.
Cancel.
Loc. Change
New Req.
Cancel.
Loc. Change
New Req.
Cancel.
st70 ( n=70 )
Hercules
0.078
0.104
0.053
0.036
0.057
0.029
0.014
0.016
0.012
+ERDR
0.047
0.057
0.030
0.024
0.029
0.016
0.012
0.011
0.009
ReEvo
0.061
0.095
0.043
0.028
0.041
0.021
0.012
0.013
0.009
+ERDR
0.042
0.063
0.027
0.021
0.026
0.017
0.009
0.013
0.007
pr76 ( n=76 )
Hercules
0.062
0.075
0.045
0.033
0.042
0.026
0.014
0.015
0.013
TABLE VII: Total search time (s) of Hercules, ReEvo, and their ERDR variants on six TSPLIB instances within GLS. The heuristics are evolved on TSP200 instances and directly evaluated on dynamic tasks derived from each TSPLIB instance using the default search settings. Within each baseline pair, results with lower times are shown in bold.
Fig. 7: Penalty-edge selection coverage within GLS on TSP200 with new requests added at 20% tour progress using a node-addition ratio of 20%. Columns show EoH, ReEvo, Hercules, and MEoH, with baselines above and their ERDR variants below. For a common spatial reference, node coordinates are aligned to the EoH baseline and edge endpoints are mapped to this layout, preserving edge colors and widths.
LLM-based automated heuristic design (AHD) typically scores executable programs on complete instances or within fixed solver components. In large-scale routing problems, localized reconstruction reduces the size of each optimization task, but repair regions within the same incumbent can exhibit substantially different structures. One construction rule must therefore compromise across them. In this paper, we propose SpecAHD, a coupled bilevel framework for within-instance specialization. An upper-level search learns where to expose bounded repair regions, while a lower-level search evolves a complementary repertoire of executable heuristics for the induced repair tasks. The upper-level program determines the repair tasks seen by the lower level, while checked repair outcomes determine how upper-level programs are evaluated. The lower-level objective favors heuristics that perform well on average or solve tasks that the current repertoire handles poorly. For the repair tasks induced by a fixed upper-level program and a fixed lower-level candidate pool, this objective is monotone submodular, allowing greedy repertoire selection with a (1-1/e) approximation guarantee. Across four routing problems and multiple LLM backbones, SpecAHD reduces held-out objective cost by up to 57.7% against the strongest competing AHD baseline and outperforms the per-instance baseline envelope on most public instances.
Kezhao Lai, Yutao Lai, Hai-Lin Liu
School of Mathematics and Statistics, Guangdong University of Technology, China
Automatic Heuristic Design (AHD) has emerged as a transformative approach for solving combinatorial optimization problems. While recent Large Language Model (LLM)-based methods have shown promise, they predominantly rely on fixed evolutionary operators and struggle to effectively accumulate and reuse historical search experience. This paper proposes RefineEvo, a novel evolutionary framework that transforms AHD from a static trial-and-error process into a planning-guided, experience-driven system. RefineEvo introduces a Planner to dynamically schedule evolutionary operators and trigger refinement based on the current search state, and a Reflector to distill valuable lessons into a Bidirectional Experience Pool containing both positive insights and negative pitfalls. This synergistic framework enables the system to adapt its search tools to the evolving complexity of the problem and leverage trajectory-aware, situation-conditioned insights to guide generation. Experiments on several classic combinatorial optimization benchmarks demonstrate that RefineEvo consistently outperforms strong baselines. In particular, RefineEvo delivers superior solution quality while improving token efficiency, enabling more efficient and autonomous heuristic design.
Yang Wu, Junran Pan, Yifan Zhang +3
C2DL, Institute of Automation, Chinese Academy of Sciences · School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing · University of Chinese Academy of Sciences, Nanjing +1
Routing problems, like the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), are NP-hard and slow to solve for large instances. Diffusion-based solvers can be trained in a supervised way using sets of optimal solutions, and then quickly solve new test instances. However, for large instances, optimal solutions are hard to find, and diffusion models fail to generalize to instance sizes outside their training distribution. Here we describe ResizeCO, a label free size-generalization approach that addresses both the change in statistical properties of larger instances, and the computational challenge of solving them quickly. It uses reinforcement learning on large-scale instances to adapt a diffusion model trained on small instances. Specifically, we adapt GRPO to this problem, using route length as the training signal. ResizeCO also formulates k-opt as a tree search, solved by a beam search on the GPU. In size-generalization experiments on TSP and CVRP instances with up to 10000 nodes, ResizeCO achieves a Pareto front over route quality and time that dominates learned solvers, and also outperforms other solvers at short run times, setting a new state of the art.
Barak Itzchak Davidovitch, Eli Meirom, Ethan Fetaya +1