arXiv:2610.22637cs.DSOct 2026

Manuscript Offprint

arXiv:2610.22637

Hard Instances on Demand

Jamie Fravel, Martin Koutecký, Pavlo Tsitsei

Jamie Fravel †^{\dagger}

Martin Koutecký †^{\dagger}

Pavlo Tsitsei †^{\dagger}

Abstract. The conclusions of an experimental study of algorithms are, in many ways, only as good as the instances they are run on. For well-studied problems, benchmark libraries have taken decades to curate while evaluations of new problems often fall back on random instances due to lack of real-world data. However, random instances are known to be misleading—they may say more about the structure of random generation than about the algorithmic question at hand.

We treat instance generation as an optimization problem: parameterize the instance space, take the solver's running time as the objective, and let a black-box optimizer search for hard instances. We develop a widely applicable workflow built on the Nevergrad optimization platform and demonstrate it on four NP-hard problems: satisfiability, traveling salesperson, Hamiltonian cycle, and non-permutation flow-shop scheduling. We propose this as a routine component of experimental papers; the search needs only the solver, an instance encoder, and a compute budget. The four problems—chosen for their strong external baselines—validate the effectiveness of our scheme. Our evolved instances beat the hardest instance of a budget-matched, random draw in all four case studies and beat them by an order of magnitude or more in three cases. They are often competitive with long-curated benchmark sets: our SAT champion is harder (for a three-solver portfolio) than 78% of the 498 SAT Competition formulas in its size class, matched or exceeded only by families that encode expert insight into hardness; our 20-city TSP champions take several times longer on held-out solver seeds than the hardest measured classical TSPLIB instance (which has 229 cities); and our non-permutation flow-shop champion takes 238.6 seconds of CP Optimizer time to solve to proven optimality (compared to 4.5 seconds for the hardest of 100,000 random draws) while also denying CP-SAT an optimality proof. The optimizer even recovers known structural characteristics from running time alone: it locates a SAT clause/variable ratio near the phase transition and, attacking the two scheduling engines separately, finds structurally different champions for each.

*All authors were supported by the Czech Science Foundation (GA ČR), project 25-17221S. M. Koutecký was additionally partially supported by Charles University project UNCE 24/SCI/008 and by the ERC-CZ project LL2406 of the Ministry of Education, Youth and Sports of the Czech Republic.

†^{\dagger}Full version of a paper in the proceedings of ALENEX 2027.

†^{\dagger}Computer Science Institute, Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic. jfravel@iuuk.mff.cuni.cz, koutecky@iuuk.mff.cuni.cz, tsitseip@iuuk.mff.cuni.cz.

1 Introduction Good test instances can be scarce. For a handful of classical problems, decades of community effort have produced benchmark libraries: the SAT competitions [34, 19], TSPLIB [48], MIPLIB [21], and the Taillard instances for shop scheduling [59] are all good examples. Each of these serves an NP-hard problem whose solvers are exact (i.e., they prove the answers they return) and, even there, curation is a running concern: the SAT competitions solicit new benchmarks every year and MIPLIB is in its sixth edition, with both collections requiring re-curation as solvers improve and once-challenging instances become easy.

The situation is worse away from the classics. When Hiermann et al. [28] introduced the electric fleet-size-and-mix vehicle-routing problem with time windows and recharging stations (by now a classical problem warranting reviews of its own [38]), they also had to create its benchmark set. A new problem may have no established instance corpus while a new algorithm for a known problem may face only a thin one. The common fallback is random instance generation, which has well documented dangers. Johnson [35], in his classic essay on experimental algorithms, lists concentration on unstructured random instances among his named pet peeves, writing that such instances “may actively mislead us as to the difficulty of the problem.” Johnson’s example is random asymmetric TSP distance matrices, which become easy as the instances grow (for the commonly used bounded coefficient ranges). Hooker [29] and McGeoch [44] likewise make test-problem choice central to valid algorithm experiments. Many natural random distributions produce systematically easy instances; for random 3-SAT, the classic observation is that hardness concentrates near the satisfiability threshold [10, 51], a picture since revisited critically [52]. Our own measurements agree that a positive evaluation on such instances says little: in our SAT and TSP experiments, even the hardest instance of a budget-matched, random draw is an order of magnitude easier than the evolved champions (section 3). On the other hand, a new algorithm performing well on a thin, albeit established, benchmark set may not imply good performance in general, merely good tuning to the benchmark.

Adversarial instance generation. We propose to attack both problems the same way: search for hard instances directly. We parameterize a space of instances of a given size and let a black-box optimizer maximize the solver's measured running time over it. The optimizer plays the role of adversary and needs nothing apart from the ability to run the solver. Hardness found this way is necessarily relative to the attacked solver (section 2). Hardness for a portfolio of solvers is a stronger property, and our approach finds that as well (subsection 3.1).

A new default for experimental papers. Muñoz and Smith-Miles [45] call for test instances that “expose the strengths and weaknesses of algorithms and drive algorithm development”. Our central proposal is a concrete default toward that goal: alongside performance on standard benchmarks, an experimental paper should also report the hardest instances a fixed-budget adversarial search finds against its own solver. Our paper gives a concrete, easy-to-follow workflow which only requires the solver, an instance encoder, and an evaluation budget (section 5 discusses the cost), ingredients every experimental paper already has. Adversarial testing tells the reader what benchmark averages cannot: where the solver breaks, and how badly.

Validation: why these four problems. The obstacles to this proposal were never conceptual. A platform like Nevergrad plausibly supplies the adversary, but it offers several hundred optimizers with no guidance on which of them can attack a solver's running time. More fundamentally, beating random sampling is not by itself evidence of genuine hardness. Whether the found instances are impressive or trivial can only be judged against strong existing benchmarks, which new problems (those that most require this sort of analysis) do not have. We therefore validate the workflow on four problems chosen for their existing, external baselines. Boolean satisfiability (SAT) and the traveling salesperson problem (TSP) have decades of crafted adversarial families (pigeonhole, Tseitin, van der Waerden formulas, Hard-TSPLIB). Hamiltonian cycle (HAM) has a curated challenge set (FHCP), though at larger sizes than ours. Flow shop (studied here in its general non-permutation form (NPFS)) has the Taillard [59] and VRF [60] suites created for the restricted permutation variant, but the standard test bed for NPFS as well [4, 5]. Performing credibly against these benchmarks licenses our recommendation to use the workflow herein where it is needed most: on problems whose only baseline is random.

The four problems also differ in their input data. SAT and HAM have no numbers at all—a formula is clauses of literals, a graph is edges, and HAM is the unweighted feasibility counterpart of TSP. TSP and NPFS have integer weights whose allowed range U lets the search probe a solver's sensitivity to coefficient magnitude. Our NPFS experiments use U=100U = 100 derived from the scale of Taillard's generator, and TSP reports U=103U = 10^{3} and U=104U = 10^{4} as separate experiments. We fix a relatively low value of U so that coefficient scale alone (through, for example, numerical instability) does not drive the hardness.

Objectives beyond running time. Our method can be used for other optimization objectives beyond run-ning time, as long as it is a reproducibly measurable scalar. For example, the number of conflicts MiniSat reports (a machine-independent proxy) or the length of the proof certificate kissat [8] emits. One can also invert the goal to search for instances inside a prescribed difficulty band to build a graded benchmark suite, or for instances which fill the gaps in an existing corpus [55].

Contributions.

• A proposal for experimental practice: report, alongside standard benchmarks, the hardest instances a fixed-budget adversarial search finds against your solver.

  • To make this affordable, we designed a common workflow (subsection 2.3): calibrate the instance size, screen a fixed roster of twenty black-box optimizers (distilled from our one-time 256-optimizer screen) at a modest budget, then escalate the budget for the few optimizers the screening singles out.

• An instantiation of the above workflow for SAT, TSP, HAM, and NPFS, including the instance parameterizations which are the main problem-specific ingredient (section 2 and subsection 2.4).

• An experimental comparison against random instances, curated benchmark libraries, and handcrafted adversarial families (section 3).

– For SAT, the evolved champion is 26×26 \times harder than equal-budget random sampling for a three-solver portfolio. Only families built on expert hardness insight exceed it in the size-matched SAT Competition archive.

– For TSP, the two headline champions are several times harder than the hardest of the measured classical TSPLIB instances (up to 300 cities) while having only one-tenth of its cities. This result is measured on held-out solver seeds to account for possible optimizer over-fitting.

– For flow shop, the 10×510 \times 5 champion takes 238.6 seconds of CP Optimizer time to solve to proven optimality. This is a factor of 53 above the hardest of 100,000 random draws, of 62 above the hardest official VRF instance of identical size, and of 53 above the hardest official Taillard instance of the size-closest group (20×5)(20 \times 5), even though it has twice as many jobs. Moreover, here the hardness transfers between solvers: the 8×48 \times 4 champion bred against CP Optimizer exceeds CP-SAT's 60-second cap.

– For HAM, the gain over budget-matched random search is a factor of two to three, and we find that the optimizer discovers structure. The champions it produces are sparse, asymmetric, and barely non-Hamiltonian, sitting just past the Hamiltonianity boundary.

1.1 Related work Van Hemert [61] evolved CSP, SAT, and TSP instances to maximize solver effort, finding harder instances than popular benchmarks. His TSP instances target Lin–Kernighan-style local search, and Julstrom [36] generalized the idea. Hougardy and Zhong [30] hand-designed a Euclidean TSP family over a million times slower for Concorde than similarly sized TSPLIB instances. Fischer et al. [18] relate structure and hardness from the opposite direction: starting from highly structured, polynomially solvable TSP instances, they remove cities or perturb coordinates and measure how the hardness changes for local search and branch-and-cut. Sleegers and Van den Berg [54] evolved 14-vertex graphs requiring about 28×28 \times as much search by a Hamiltonian-cycle backtracker—not Concorde—as their hardest Hamiltonian graph. They later exhibited instances which are hard for every solver they tested [53]; our portfolio objective guarantees hardness only for the portfolio's members. Goerigk and Maher [23] use optimization models to generate robust-optimization instances up to 500×500 \times harder than random ones. This work is extended by Goerigk and Khosravi [22]. Later adversarial work includes SAT and TSP, but targets solver differences, failures, or learned solvers rather than releasing instances evolved against an exact solver's measured running time [41, 50, 31, 20, 43, 46]. HardSAT-Gen [40] and HardCore [12] generate variants of already-hard SAT formulas and test whether the variants retain their difficulty. They do not search for instances harder than their seeds. The scheduling benchmark suites (Taillard, VRF, Demirkol) are introduced with the flow-shop results in subsection 3.4.

Declarative generator models can express structured instance domains that are awkward for direct box encodings like ours [2, 14]. These systems use irace (a package implementing the “iterated racing” method) to tune a small generator parameterization toward a solving-time band or a solver separation, rather than directly maximizing one instance’s runtime [2, 1, 14]. For our fixed-size SAT domain, neither obvious parameterization fits: automatically derived parameters are too coarse to tune hardness-relevant correlations, whereas exposing the literals directly exceeds stock irace’s 1,024-dimensional Sobol initializer. The published experiments also provide no random or established-hard baseline directly comparable to ours.

Instance space analysis diagnoses gaps and solver-specific regions in an existing corpus [55, 56]. Algorithm configuration applies the same outer-loop pattern in the opposite direction. SMAC [32] and irace [42] tune a solver to run fast on fixed instances; we hold the solver fixed and search for slow instances.

2 Method

2.1 Hardness is relative to a solver An instance of a computational problem has no running time by itself; only a solver applied to it does. Indeed, in theory there is no such thing as a hard instance at all: for any single instance there is an algorithm that stores its answer and returns it in constant time. We therefore define the hardness of an instance I with respect to a solver S as the CPU time, in seconds, that S takes to solve I (to proven optimality, when S is an optimizing solver) on a fixed reference machine. When something closer to hardness for a problem is wanted and several solvers S1,…,SkS_{1}, \ldots, S_{k} are available, we use the portfolio hardness min⁡itime(Si,I)\min_{i} \text{time}(S_{i}, I): an instance counts as hard only if every solver in the portfolio struggles with it. Our SAT experiments use exactly this objective (subsection 3.1). Repeated measurements and randomized solver seeds are aggregated by the problem-specific protocols in subsection 2.5; the result tables report medians over the stated seed sets or repetition counts after a final clean re-measurement.

2.2 Instance generation as black-box optimization Fix a problem, an instance size, and a solver (or portfolio). An encoding is a box [l,u]d={x∈Rd∣l≤xi≤u for each i}[l, u]^d = \{x \in \mathbb{R}^d \mid l \leq x_i \leq u \text{ for each } i\}, given by bounds l<ul < u and a dimension dd (or its integer analogue in Zd\mathbb{Z}^d), together with a decoder that turns each point of the box into an instance of the chosen size. The objective function of a point is (a decreasing transform of) the measured hardness of the decoded instance. Any derivative-free optimizer can now search the box: 1^1 such an optimizer needs no gradients and no view into the objective. In an ask/tell loop it proposes a point (ask), receives the measured loss (tell), and biases future proposals toward better regions. Methods differ in how: by evolving a population, adapting a sampling distribution, or fitting a surrogate. The encoding is the main problem-specific ingredient of the approach, and we deliberately use naive encodings to test whether hard instances can be found without domain insight.

We run the optimizers of the Nevergrad platform [6], which offers several hundred derivative-free optimizers behind one ask/tell interface, including the CMA-ES family, particle swarm variants, differential evolution, bandit-style discrete methods, and “wizard” portfolios such as NGOpt and Shiwa that select among the others. How each individual optimizer works is beyond the scope of this paper: the workflow treats them as interchangeable adversaries, and subsection 2.3 reduces the several hundred to a fixed roster of twenty.

All experiments run through our experiment-management layer around Nevergrad, released as part of the artifact. A problem plugs in by implementing an encode/decode/solve interface, and the layer manages the configured optimizer campaigns, parallel execution, per-candidate aggregation, and checkpointed result archives (artifact link in subsection 2.5).

2.3 Common workflow The workflow has three default stages: calibrate the instance size, screen a fixed roster of optimizers at a modest budget, and escalate the budget for the optimizer families that the screening singles out. The solver, encoding, aggregation rule, and occasionally the budget adapt to the case study; subsection 2.5 records those deviations.

Figure 2.1 summarizes the evaluation loop and how it sits inside the screening tournament.

Stage 0: calibrate the size. Sample random instances across a range of sizes and pick the size at which one evaluation of a random instance (subsection 2.5) takes roughly 100–200 ms. This window is a compromise: cheap enough that an optimizer can afford tens of thousands of evaluations, and expensive enough that timing measurements are not dominated by noise. All hardness gains reported later are relative to this deliberately easy starting point.

Stage 1: screen. The screen we recommend is deliberately small: a fixed roster of twenty optimizers, each run on every encoding with a budget of 15,000 evaluations and 2 independent runs, under the plain loss −t-t. The roster 2^{2}, the union of the top-three finishers across all our full screens (section A), spans the CMA-ES family, discrete (1+1)(1+1)-type methods, differential evolution, particle swarm, and the wizard portfolios, so the practitioner never has to choose among Nevergrad's several hundred optimizers. Optimizers are ranked by the re-measured hardness of the best instance each finds; the outcome of the screening is not a single winner but a ranking of optimizer families, and the best two or three families proceed to Stage 2.

The roster is distilled from our one-time full screen, a meta-experiment that shaped the workflow itself. We

2^{2}By Nevergrad name. Wizards: NGOptRW, NglohMLn, NglohRS, Shiwa; CMA-ES family: MultiScaleCMA, MultiCMA, TripleCMA, PolyCMA, BFGSCMA, DiagonalCMA, MetaModel-DiagonalCMA, ChainCMAwithMetaRecentering; differential evolution: TwoPointsDE, BPRotationInvariantDE; discrete: DiscreteB-SOOnePlusOne, AnisotropicAdaptiveDiscreteOnePlusOne, RecombiningDiscreteLenglerOnePlusOne; particle swarm: PSO, RealSpacePSO, SQORealSpacePSO.

1^{1}The box is the simplest search space, not the limit: Nevergrad also optimizes over integer arrays, log-scaled scalars, categorical choices, and nested tuples. Hard constraints are the real limitation; feasibility is best built into the decoder, as our score-and-threshold HAM encoding does.

Config: task, encoding, F

Figure

one evaluation = one ask/tell round

Figure 2.1: The evaluation pipeline. Bottom: one evaluation – the optimizer asks for a genome, the encoding decodes it into an instance, the solver solves it k times, the aggregated time is transformed into a loss and told back to the optimizer. Top: the screening stage (Stage 1) runs this loop for every optimizer with budget B and several independent runs per configuration (task, encoding, loss transform F).

report it here rather than among the per-problem results of section 3. We ran up to 256 Nevergrad optimizers for every encoding and each of three loss transforms of the measured time t:−t,−log⁡tt: -t, -\log t, and −t2-t^{2}. A transform reshapes what the optimizer sees: −log⁡t-\log t equalizes relative gains, −t2-t^{2} sharpens the top. (229 supported the parallel ask/tell configuration, the rest ran serially, and a few optimizer-encoding combinations failed.) Across all seven encoding screens (two SAT, one TSP, three HAM, one NPFS), only twenty distinct optimizers ever placed in the top three of an encoding (section A), and the winners depended on the encoding: CMA-ES variants led on the continuous duration and clause encodings, discrete (1+1)(1+1)-type methods placed high on the binary adjacency encoding, and wizard portfolios won the TSP screen and two of the three HAM screens. The winning optimizer, and sometimes its family, varied with the loss transform (Table A.1), but no transform dominated across encodings, so the default uses the simplest, −t-t, alone. This full screen consumed roughly half of our total compute (section 5); repeating it is warranted only when the fixed roster fails on a new problem or encoding class.

Stage 2: escalate. Rerun the top optimizers with a budget of 100,000 evaluations and 5 runs; the champions reported in section 3 come from these full-budget runs.

Measurement discipline. Every solve, during search and final measurement alike, runs under a per-solve time cap stated in subsection 2.5; an evaluation budget therefore also bounds total compute, by budget × cap. Two further rules proved essential. First, search and measurement are separated: searches run massively in parallel on a shared, heterogeneous cluster whose timings are unreliable, so every final number in the result tables comes from a subsequent clean re-measurement (“rebench”) of the candidate instances on a single reference machine (subsection 2.5); the screening appendix keeps the original screening campaign’s rebench values, identified as such. Second, each evaluation aggregates repeated measurements and, where applicable, several solver seeds. As a default we recommend the median of at least three repeated evaluations, aggregated across solver seeds by a second median. The domain-specific deviations, stated in subsection 2.5, trade measurement noise against evaluation throughput and affect only the search. For randomized solvers, the seeds used during breeding are kept separate from held-out seeds used only in the final evaluation (subsection 3.2); optimizing against a fixed seed set invites overfitting to those seeds, and the held-out numbers show this effect is real.

2.4 Case-study instantiations The four case studies emphasize different axes of the workflow: SAT the portfolio objective, HAM the comparison of encodings, NPFS solver specificity. The solvers are, in each domain, standard exact solvers.

SAT. Instances are 3-CNF formulas with 200 variables and 1000 clauses. The size comes from the Stage-0 calibration, not from any prior on hard clause-variable ratios. The mprefix encoding below lets the search tune the ratio itself. The basic encoding (kcnf) is an array of 1000×31000 \times 3 integers, each an index of one of the 400 literals: the value ranges over [−200,199][-200, 199], negative values −v-v decode to the positive literal xvx_v and non-negative values vv to the negated literal ¬xv+1\neg x_{v+1}. For example, −5-5 in the second slot of clause cc makes x5x_5 the second literal of cc. A second encoding (mprefix) adds one extra search variable, the prefix length mm: only the first mm clauses are active, so the optimizer can also tune the clause-variable ratio. The solver is a portfolio of MiniSat 2.2 [17], CaDiCaL preprocessed by BreakID [7, 16], and CryptoMiniSat [57], run through PySAT [33]; the objective is the minimum over the three. The members cover complementary techniques (clause learning, symmetry breaking, XOR reasoning), so an instance that merely trips one technique while remaining easy for another does not count as hard. Kissat [8] and march [27] are measured for context but are not part of the objective: they serve as out-of-objective transfer checks, and the four-solver campaign of subsection 3.1 later brings both into the objective.

TSP. Instances are symmetric integer distance matrices on N=20N = 20 cities, encoded as (202)=190\binom{20}{2} = 190 reals in [1,U],U∈{103,104}[1, U], U \in \{10^3, 10^4\}, rounded to the nearest integer before solving; they need not be Euclidean or metric. The solver is Concorde [3], the standard exact TSP solver.

Hamiltonian cycle (HAM). Instances are graphs on 20 vertices, in three encodings: the 0/1 adjacency vector; per-edge scores with an edge count kk (the kk best-scored vertex pairs become edges); and per-edge scores with a threshold (pairs scoring below it become edges). HAM is the one case study where we compare encodings of the same object, and the comparison shows the encoding choice indeed matters: different optimizer families lead the three screens (section A), and the best champion comes from the score-and-threshold encoding while the adjacency encoding's best is weaker (Table 3.4).

Regardless of the encoding, each HAM instance is then encoded as a TSP instance with 0/1 weights: edges get weight 0, non-edges weight 1, so the graph is Hamiltonian exactly if the optimal tour has length 0. The result is again solved with Concorde. (Note that Concorde proves the exact optimum, the minimum number of absent edges any tour must use, which subsumes the Hamiltonianity decision; measured hardness refers to this full optimality proof.)

NPFS. We study the general, or non-permutation, flow-shop problem [49], Fm∥Cmax⁡F_m\|C_{\max} in the standard three-field notation: nn jobs each pass through machines 1,…,m1,\ldots,m in that fixed order, with a given duration on each; a machine processes one job at a time, without preemption, and may sequence the jobs in its own order; the objective is the makespan, the completion time of the last job. It is a broader problem than permutation flow shop ( Fm∣prmu∣Cmax⁡F_m \mid \text{prmu} \mid C_{\max}), which requires one common job order on every machine. Instances have 6×46 \times 4, 8×48 \times 4, or 10×510 \times 5 jobs ×\times machines and durations in [1, 100], encoded as the flattened duration matrix. We optimize against two different solvers separately: OR-Tools CP-SAT [47] and IBM CP Optimizer [39] (the leading freely available and commercial constraint-programming engines, respectively), both single-threaded and deterministic per seed, minimizing makespan.

The baseline families for each problem are introduced with the corresponding results in section 3.

2.5 Experimental setup Searches ran on a shared university cluster (heterogeneous CPUs spanning 2014–2021 microarchitectures, preemptible, 12-hour walltime cap; details in section B); its timings were used only to steer the optimizers, never for reporting. All reported times come from one reference machine, an AMD Ryzen 5 8600G (6 cores, 12 threads, 32 GB RAM) running Linux, capped at 60 s in all tables (600 s for the 10×510 \times 5 flow-shop experiment). Each solve ran single-threaded, pinned to one logical CPU, and solves within a measurement campaign ran sequentially; independent campaigns ran concurrently on distinct physical cores, and frequency boost remained enabled. Champions, random controls, and external baselines were measured under these same conditions; repetition counts and seed sets are stated per experiment.

All measurements are CPU time of the solver, not wall clock, which further insulates them from process contention effects. Solvers that run in process (PySAT, Concorde via its Python bindings, CP-SAT) are timed with time.process_time(); CP Optimizer runs as a separate engine process and is timed as the delta in cumulative child-process CPU time (getrusage). Versions: Python 3.12 with PySAT 1.9.dev2 (MiniSat 2.2, CaDiCaL 1.9.5), CryptoMiniSat 5.14.4, BreakID 3.1, kissat 4.0.4, march_cu, Concorde 03.12.19 (via pyconcorde 0.1.0), OR-Tools 9.15, and CP Optimizer 22.1.2. The main campaigns use master seed 20260601 for instance generation and optimizer seeding; separately sourced auxiliary runs retain the seeds recorded in their archived configurations. Solver seed sets are stated per experiment.

The per-evaluation aggregation depended on the solver and was chosen empirically, trading measurement noise against evaluation throughput. SAT used the median of three repeated portfolio evaluations during the search and the median of five sequential evaluations per solver in the final tables. For TSP and HAM, each candidate was solved three times at each of Concorde seeds 1–7; we took a geometric mean within a seed and then the median across seeds. The broad external scans (TSPLIB, Hard-TSPLIB, a locally generated clustered Euclidean set, FHCP) used one solve per seed instead of three; specific instances which we refer to further (gr229, and the hardest solved Hard-TSPLIB instance) use the full three-repetition protocol. “Typical random” figures are the median over 1,000 fresh uniform draws from the same encoding, one evaluation per draw. The four flow-shop arms were bred with per-arm seed rules rather than one uniform rule ( 6×46 \times 4 CP Optimizer: median over solver seeds 1–3; 6×46 \times 4 CP-SAT: seed 0 three times; 8×48 \times 4: one fixed seed; 10×510 \times 5: minimum over two seeds). The inconsistency is confined to the search, where aggregation only steers the optimizer; every number we report comes from the uniform final protocol below. Final tables use seeds 1–7 for remeasurement and 8–30 to test transfer. One TSP result is from a separate U=104U = 10^{4} experiment: 50,000 evaluations, two runs, and the minimum over seven seeds; its final held-out median uses seeds 8–30. The reported 6×46 \times 4 CP-SAT flow-shop champion comes from Stage 1 (15,000 evaluations, 2 runs); there was no Stage 2 CP-SAT arm. The 10×510 \times 5 flow-shop experiment used 50,000 evaluations and 2 runs. The other full-budget runs use 100,000 evaluations and 5 runs.

The full experiment configurations, the champion instances, and the scripts that regenerate the final result tables are part of the artifact, archived at https://doi.org/10.5281/zenodo.23220527 and developed at https://github.com/martinkoutecky/hard-instances-on-demand-artifact.

3 Quantitative results For each problem we compare the evolved champions with budget-matched RandomSearch, the calibration baseline, and external benchmarks. Random controls are the hardest instances found, not typical draws; each received at least one guided run's evaluation budget (more where noted). Budgets are matched in evaluations, the standard budget unit in black-box optimization. Since evaluations slow as instances harden, this gives the guided runs more total compute than their controls. Several controls therefore received larger pools, up to six times the guided evaluations, flagged where they occur. RandomSearch samples uniformly in the chosen encoding, which need not induce a uniform distribution over decoded instances. All reported times come from clean remeasurement on the reference machine. Table 3.1 gives the primary comparison for each case study.

References (55)