QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.qdgp.QDGP Class Reference

Fixed-instance QD Genetic Programming on a sparse MAP-Elites archive. More...

Public Member Functions

 archive (self)
 best (self)
 shape (self)
 compile (self, rules)
 Rebuild the priority functions from a trusted text rule pair.
 characterize (self, rules)
 Characterize a given rule pair on the fixed sequencing and routing probes.
 run (self, evaluate, budget)
 Spend an additional number of fixed-instance evaluations.

Detailed Description

Fixed-instance QD Genetic Programming on a sparse MAP-Elites archive.

QDGPf from Xu et al. (GECCO 2025), with caller-defined scheduling instances.

An evaluation receives two compiled priority functions. Lower scores
take precedence at each probe. Encode the rank of the chosen candidate
under fixed reference rules in two mixed-radix cell coordinates.
A sparse archive stores the best measured rule pair per coordinate.
Use the same training instances whenever you call run on this search.

:param sequencing: Untyped DEAP PrimitiveSet for sequencing rules.
:param routing: Untyped DEAP PrimitiveSet for routing rules.
:param sequencing_probes: Sequence of DecisionProbe instances.
:param routing_probes: Sequence of DecisionProbe instances.
:param initial_samples: Number of randomly initialized candidates.
:param max_depth: Maximum height of either tree.
:param tournament_size: Number of randomly sampled elites per parent tournament.
:param crossover_probability: Probability of using subtree crossover instead of mutation.
:param maximize: Whether the caller's fitness is higher-is-better.
:param seed: Search seed. Use fixed literal terminals for deterministic initialization.

Definition at line 63 of file qdgp.py.

Member Function Documentation

◆ archive()

qdpy.algorithms.qdgp.QDGP.archive ( self)
Return a dictionary snapshot of the current elites.

Definition at line 114 of file qdgp.py.

◆ best()

qdpy.algorithms.qdgp.QDGP.best ( self)
Return the best measured rule pair, or None for an empty archive.

Definition at line 119 of file qdgp.py.

◆ characterize()

qdpy.algorithms.qdgp.QDGP.characterize ( self,
rules )

Characterize a given rule pair on the fixed sequencing and routing probes.

Return the pair of mixed-radix rank coordinates.

Definition at line 197 of file qdgp.py.

◆ compile()

qdpy.algorithms.qdgp.QDGP.compile ( self,
rules )

Rebuild the priority functions from a trusted text rule pair.

Return (sequencing, routing) callables using this search's primitive sets.

Definition at line 183 of file qdgp.py.

◆ run()

qdpy.algorithms.qdgp.QDGP.run ( self,
evaluate,
budget )

Spend an additional number of fixed-instance evaluations.

Return the best retained SchedulingElite. An evaluator may return None for a failed attempt.

Definition at line 202 of file qdgp.py.

◆ shape()

qdpy.algorithms.qdgp.QDGP.shape ( self)
Return the number of possible mixed-radix coordinates on each axis.

Definition at line 124 of file qdgp.py.


The documentation for this class was generated from the following file: