Shell-Ordering TSP Benchmark

Exact TSP · branch-and-bound · full validation run

Shell-Ordering TSP Benchmark

Does shell-based branch ordering make an exact travelling-salesman solver faster — and does it hold up against Concorde? Every figure below is recomputed from the raw run records, paired per instance, with timeouts counted separately rather than folded in as finite times.

13,622 solver runs9/9 correctness gates10 instance families2026-09-09 13:48:07

ResultWhat the run says

Shell vs no-shell
0.981×
geomean over 750 paired instances, CI [0.924, 1.04]
Best coefficient
c = 0
1× on train, 1× held out
Largest n solved every time
30
P2 shell-cut, all instances inside 60 s (P1 tops out at n = 30)
Concorde at n = 50
155 ms
median; it finished all 41 of its three-way runs, every size, inside the limit

Inside the prototype, shell ordering makes no measurable difference. It runs 0.981× the no-shell ordering in geometric mean across 750 instances both solvers finished (95% CI [0.924, 1.04]), winning on 49% of them — the 95% interval straddles parity, so this run cannot distinguish it from the plain ordering at all.

Against Concorde, it is not close. On the instances both finished, P2 runs 0.139× Concorde — i.e. Concorde is 7× faster — and Concorde finished every run inside the limit, while the two prototypes timed out 6 times between them.

Both readings point the same way. The ordering heuristic does not pay for itself against its own baseline, and the coefficient sweep picks c = 0 as its best value — which is the heuristic switched off. The prototype is also orders of magnitude off a production cutting-plane solver. Nothing in this run supports the idea that shell ordering helps.

PipelineStages of the validation run

These are ordered because each depends on the one before it: nothing is timed until the correctness gates pass, and the coefficient is chosen on the train split before it is ever measured on the held-out split.

run_full_validation.sh
StageArtefactStatus
1  Buildbuild/tsp_benchpass
2  Concordethird_party/concorde/TSP/concordepass
3  Correctness gates9/9 passingpass
4  P1 ordering ablation3,000 runspass
5  Coefficient sweep — train7,500 runspass
6  Coefficient sweep — held out2,250 runspass
7  P2 component ablation750 runspass
8  Three-way timed benchmark122 runspass

Stage 3Correctness gates

Timing a wrong answer is worthless, so every gate runs in --full mode before anything is measured. Each one checks a property that would silently corrupt the benchmark if it broke: bounds that never exceed the optimum, propagation that never removes an optimal edge, and byte-identical results across repeated runs.

GateStatusReported
correctnesspasscorrectness: 38400 solver runs checked, 0 failures
bound_validitypassdegree bound violations (de-duplicated) : 0
reproducibilitypassreproducibility: 0 failures
crossing_propagationpasscrossing_propagation: 10000 instances, 366785 conflicting pairs, 0 failures
shell_cut_propagationpassshell_cut_propagation: 49501536 tours, 119746 edge/cut memberships, 0 failures
one_tree_boundpassone_tree_bound: 170000 checks, 32668 tight, 0 violations
shell_lagrangian_boundpassshell bound beat same-pi classical : 40412 (1.58%), max gain 9999520.0
forced_edge_statepasspropagation unsoundness : 0
prototype2_correctnesspassprototype2_correctness: 72800 P2 runs, 0 failures

Stage 4Does the shell ordering help?

Same solver, same bounds, same instances — only the order in which branches are explored changes. Speedups are paired per instance and only counted where both orderings proved optimality, so a timeout can never masquerade as a win.

shell ordering vs each baseline, n = 16, 18, 20
BaselinePairedGeomean95% CIMedianWin rateWorst caseNode ratio
noshell7500.981×[0.924, 1.04]0.982×49%0.0259×1×
nearest7501.01×[0.955, 1.08]0.969×48%0.0292×0.991×
random7501.03×[0.965, 1.1]1.02×52%0.0452×1.28×

Search-tree size is the honest check on an ordering heuristic: shell explores 1× the nodes of no-shell, and on 694 of 750 instances the two explore an identical number of nodes. Where node counts match, any wall-clock difference is ordering overhead, not better pruning.

Stages 5–6Tuning, and whether it generalises

The shell coefficient was swept on seeds 1–25 and then measured again on seeds starting at 1001, which were never used for tuning. A curve that peaks sharply on train and flattens on held-out data is a tuning artefact, not a result.

0.88× 0.94× 1.00× 1.06× 1.12× parity with c = 0 0 0.005 0.01 0.02 0.04 0.08 0.16 0.5 2 10 shell coefficient geomean speedup train (seeds 1-25) held out (seeds 1001+)
Geometric-mean speedup against the c = 0 baseline, over instances every coefficient solved. Above the dashed line the coefficient is helping.
CoefficientTrain geomeanTrain median timeHeld-out geomeanHeld-out median time
c = 01×19.9 ms1×19.1 ms
c = 0.0050.959×20.4 ms——
c = 0.010.986×20.9 ms——
c = 0.020.951×21.8 ms——
c = 0.040.991×20.7 ms1.01×17.9 ms
c = 0.080.931×21.4 ms——
c = 0.160.97×20.8 ms——
c = 0.50.981×20.5 ms——
c = 20.956×21 ms1.01×18.6 ms
c = 100.946×22.5 ms——

Stage 7P2 shell-cut, on its own

The second prototype adds shell cuts on top of the P1 search. Run across the same ten families at n = 16, 18, 20 it proved optimality on 743 of 750 instances, median 31.3 ms, p90 341 ms.

Stage 8Against Concorde

10 instances from each of 1 family at every size, each run serially and pinned to one core so wall time means something, with a 60-second limit per run. Concorde is the reference implementation of exact TSP; this is the comparison that decides whether the prototypes matter outside their own ablation.

Partial run. This stage was stopped early: only the random family of the ten planned produced runs, so every figure in this section rests on 122 of the 1,500 planned runs. Read it as an indication, not as the finished comparison.

10 ms 100 ms 1 s 10 s 100 s 60 s time limit 20 25 30 40 50 cities (n) median wall time P1 inflation B&B 35.6 s P2 shell-cut 8.48 s Concorde 155 ms
Median wall time over the instances each solver actually proved optimal, log scale. A line that stops short means that solver finished nothing at that size.
0% 25% 50% 75% 100% n=20 n=25 n=30 n=40 n=50 P1 inflation B&B P2 shell-cut Concorde solved in limit
Share of the 10 instances per size proved optimal inside the 60-second limit. Timeouts are excluded from the timing chart above, which is why the medians there stay optimistic for the prototypes.
per size, 1 family pooled
Solvern = 20n = 25n = 30n = 40n = 50
P1 inflation B&B87.9 ms336 ms1.52 s35.6 s
4 t/o
all timed out
P2 shell-cut42.2 ms155 ms433 ms8.48 s
1 t/o
all timed out
Concorde37.1 ms36 ms47.1 ms76.6 ms155 ms

Paired comparisons

ComparisonPairedGeomean95% CIMedianWin rateTimeouts (ref / test)
P2 shell-cut vs Concorde390.139×[0.0701, 0.274]0.194×18%0 / 2
P1 inflation B&B vs Concorde360.0572×[0.0276, 0.119]0.0575×14%0 / 4
P2 shell-cut vs P1363.03×[1.96, 5.03]2.74×75%4 / 1

Every instance both a prototype and Concorde finished agreed on the optimal tour cost. Speedups are only computed over those agreeing pairs.

MethodHow these numbers were produced

Reproduce everything with ./scripts/run_full_validation.sh.

Instances10 families — random, clustered, circle, grid, rings, line, symmetric, clustered_k, hull_heavy, grid_perturbed — generated from a fixed PRNG, written as TSPLIB EXPLICIT integer matrices
Pairingspeedups computed per instance, only where both solvers proved optimality and agreed on the optimum; timeouts reported as counts, never as times
Statisticsgeometric mean and median with 4,000-sample bootstrap 95% CIs; arithmetic mean never reported alone
Timingstage 8 runs serially, pinned with taskset; solver order alternates per instance so no solver always gets a cold cache
Held-out splitseeds 1–25 tune, seeds 1001+ verify; the held-out split was never used to choose the coefficient