QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.cmoea.CMOEA Class Reference

Preserve solutions to task combinations via local nondominated survival. More...

Public Member Functions

 bins (self)
 Return immutable populations indexed by sorted tuples of task indices.
 best (self)
 Return the highest-scoring survivor for all subtasks.
 stats (self)
 run (self, evaluate, budget)
 Spend additional evaluator attempts and commit surviving task populations.

Detailed Description

Preserve solutions to task combinations via local nondominated survival.

Combine task fitness and within-bin behavioral diversity.

Every evaluated offspring competes in each bin using its original
vector of task scores. Survival uses NSGA-II front ranks and
crowding for the aggregate task score and mean behavioral distance.
Parent sampling is uniform over occupied bins and then their members.

:param task_count: Number of task scores returned per evaluation.
:param sample: Callable (rng) returning an initial genome iterable.
:param mutate: Callable (genome, rng) returning an offspring genome.
    Treat genome elements as immutable.
:param bin_capacity: Maximum number of survivors in each task subset.
:param batch_size: New candidate evaluations before the next competition.
:param max_bins: Cap on automatically generated subsets, defaulting
    to max(64, 2 * task_count). Large families retain all singletons,
    the full task, and a seeded selection of other subsets.
:param subsets: Optional explicit collection of task index subsets.
    Include the full task subset. This overrides automatic bin selection.
:param aggregate: "mean" or "product" for fitness within each subset.
:param seed: Seed for selection, variation, and evaluator seeds.

Definition at line 57 of file cmoea.py.

Member Function Documentation

◆ best()

qdpy.algorithms.cmoea.CMOEA.best ( self)

Return the highest-scoring survivor for all subtasks.

Return the best measured candidate in the full subset, or None.

Definition at line 115 of file cmoea.py.

◆ bins()

qdpy.algorithms.cmoea.CMOEA.bins ( self)

Return immutable populations indexed by sorted tuples of task indices.

Return a read-only live view of each subset and its survivors.

Definition at line 109 of file cmoea.py.

◆ run()

qdpy.algorithms.cmoea.CMOEA.run ( self,
evaluate,
budget )

Spend additional evaluator attempts and commit surviving task populations.

Parameters
evaluateCallable (genome, rollout_seed) returning (task_scores, descriptor) or None.
budgetAdditional candidate calls including failed slots.
Returns
Cumulative CMOEAStats.
Use all requested attempts, including a shorter final generation.

Definition at line 169 of file cmoea.py.

◆ stats()

qdpy.algorithms.cmoea.CMOEA.stats ( self)
Return cumulative attempts, failures, and generations.

Definition at line 120 of file cmoea.py.


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