QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.dissimilarity_nsga.DiversityEnhancingNSGAII Class Reference

Rank by quality and average diversity, then crowd by dissimilarity. More...

Public Member Functions

 population (self)
 stats (self)
 run (self, evaluate, budget)
 Breed and evaluate additional slots, then select from the merged population.

Detailed Description

Rank by quality and average diversity, then crowd by dissimilarity.

Apply DE-NSGA-II to encodings with an application-defined distance.

Each merged population receives an extra objective equal to mean
behavioral dissimilarity. Its Pareto ranks guide survival and
tournament selection. To break rank ties, the default uses average
behavioral dissimilarity. A separate callback can use the genomes.

:param objective_count: Number of raw objectives.
:param sample: Callable (rng) returning a genome.
:param mutate: Callable (parent_genome, rng) returning an offspring.
:param distance: Symmetric nonnegative callable over two behavior objects.
    Treat the genome elements and observed behavior as immutable.
:param crowding_distance: Optional symmetric callable over two DissimilarityEntry
    instances. Omit it to share the diversity objective's distance matrix.
:param population_size: Parent and offspring population capacity.
:param maximize: A Boolean or one Boolean direction per objective.
:param standard_crowding: Use standard objective-space NSGA-II crowding for an ablation.
:param seed: Private sampling and evaluation seed.

Definition at line 39 of file dissimilarity_nsga.py.

Member Function Documentation

◆ population()

qdpy.algorithms.dissimilarity_nsga.DiversityEnhancingNSGAII.population ( self)
Return survivors from the last completed selection, in tournament order.

Definition at line 80 of file dissimilarity_nsga.py.

◆ run()

qdpy.algorithms.dissimilarity_nsga.DiversityEnhancingNSGAII.run ( self,
evaluate,
budget )

Breed and evaluate additional slots, then select from the merged population.

Parameters
evaluateCallable (genome, seed) returning (objectives, behavior) or None.
budgetNumber of additional attempted evaluations.
Returns
Cumulative DissimilarityStats.
Spend the budget and keep an unfinished offspring batch for a later call.

Definition at line 108 of file dissimilarity_nsga.py.

◆ stats()

qdpy.algorithms.dissimilarity_nsga.DiversityEnhancingNSGAII.stats ( self)
Return cumulative evaluation attempts and completed selections.

Definition at line 85 of file dissimilarity_nsga.py.


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