31 """Run the search and return what it *did*: every point it evaluated, in order.
33 The first version of this test compared the final best point of two seeds, and that
34 is a coin flip: at a 600-evaluation budget the search often never improves on the
35 start at all -- seed 7 returns the start point on every machine tried, seed 8 finds
36 something marginally better here and nothing at all on the CI runner -- so "the two
37 seeds landed in different places" passed or failed on luck. Whether the seed reaches
38 the sampler is visible in the *sequence of candidates*, which differs between seeds
39 on the very first iteration and is identical between equal seeds, whatever the
40 search then makes of them.
46 seen.append(np.array(x, dtype=float).round(12))
50 elite_k=20, block_method=
"corr_greedy", num_blocks=2, cycles=2,
51 per_block_budget_fraction=0.5, refresh_every_pass=
True,
52 refresh_budget_fraction=0.1, refresh_sigma_scale=0.2,
54 best_x, best_f, evals = run_hybrid_optimization(
55 objective, [(-5.0, 5.0)] * dim, np.zeros(dim), cfg,
56 total_budget=budget, logger=
None, seed=seed,
58 return np.array(seen), np.asarray(best_x, dtype=float), float(best_f), int(evals)