Choose a QD algorithm

Browse Choose a QD method to match a method to your evaluator, archive, and budget. In Compare three QD baselines, run three baseline methods with a shared evaluator and result format. Use this page to choose how to submit and budget evaluations.

Choose an evaluation interface

Search

Entry point and budget

Evaluators, executors, and archive history

Native MAP-Elites, Iso+LineDD, NSLC, and sampling decorators

optimise(), qdpy.simple.run(), or individual ask() and tell(). Budgets count candidates, or rollouts for decorators.

Native result formats, named scores, managed or caller-owned executors, packed evaluators, and recorder callbacks.

CMA-MAE, DMS, BOP-Elites, MOME, MOUR-QD, Mix-ME, Dominated Novelty Search, constrained MAP-Elites, and HiGeME

optimise(), simple.run(), or ask_batch() and tell_batch(). Keep managed execution in batch mode.

Native result formats in proposal order. Managed execution accepts executors, packed evaluators, and recorder callbacks. BOP-Elites proposes one candidate per generation.

CMA-MAEGA

optimise() or simple.run(). For manual runs, use ask_dqd() and tell_dqd() before the offspring batch.

The centre evaluator returns a GradientEvaluation. The offspring evaluator uses the native format and can be packed. Centre calls count against the same budget as offspring.

Uncertain MAP-Elites

optimise(evaluate, executor=..., seeded=...). The budget counts individual rollouts, including reevaluations.

One native result per rollout, with an optional evaluator seed. Save the archive after the run or use the noisy-search audit tools.

Fixed-task and Dynamic MAP-Elites

mtmb_search() or dynamic_map_elites(). Both run sequentially. Dynamic search spends attempts on offspring and refreshes.

The evaluator takes a task ID and genome, or a genome and tick. It returns fitness and descriptors. Use on_step to record history.

Parametric-Task MAP-Elites and AutoQD

parametric_task_map_elites() or autoqd_search() with sequential evaluation. The budget counts candidate attempts.

PT-ME evaluates a genome at a physical task vector. AutoQD evaluates a genome with a rollout seed and uses the returned trajectories.

QDHF

qdhf_search() with separate evaluation and feedback attempt budgets.

Supply a genome evaluator and a similarity callback. The result includes the fitted projector and ordered judgments.

Graph-path QD

graph_path_qd() with an offspring proposal budget.

Supply weighted directed edges. Costs are sums of edge weights.

GAME

game_search() runs sequentially. The result reports search and tournament attempts separately.

The evaluator takes Red and Blue genomes and returns a MatchResult. Inspect the archives in the returned rounds.

See Control evaluation with ask and tell for payload examples and Plot archive geometry and evolution for recording and replay.

IsoLineCross uses native MAP-Elites ask and tell. Learned QD uses ordered batches. SQUAD consumes a Jacobian evaluator and a supplied initial population. RefQD and Pollination each use train(max_env_steps) with a Gymnasium environment factory.

Run from a checkout

Use the example and install column in Choose a QD method. From the repository root, run the command for the method you want to try.

python -m pip install .          # Base examples
python -m pip install ".[cma]"   # CMA-ES, CMA-ME, and covariance-based examples
python -m pip install ".[dms]"   # Discount Model Search
python -m pip install ".[deap]"  # Scheduling QD-GP and other DEAP examples
python -m pip install ".[rl]"    # Gymnasium and PyTorch policy methods

With uv, create and activate a virtual environment, then run the corresponding install command with uv pip install.

uv venv
source .venv/bin/activate
uv pip install .
# Example with an extra: uv pip install ".[rl]"

The walkthroughs use short seeded runs so you can inspect the outputs quickly. For a comparison, use the same evaluator, attempt budget, objective directions, and reporting grid. The pilot reports include these settings and separate measures of search time and archive quality. See Modern QD pilot results, Differentiable, Bayesian, and high-dimensional QD pilots, Constrained search and GAME pilots, and Fixed-task and dynamic QD pilots.