QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.discriminatory.DiscriminatoryInstanceSearch Class Reference

Generate benchmark problems that separate solvers across feature and gap space. More...

Public Member Functions

 stats (self)
DiscriminatorySearchStats run (self, budget)
 Spend an additional budget of raw solver calls, using complete panels.

Detailed Description

Generate benchmark problems that separate solvers across feature and gap space.

Evolve a population using instance and gap novelty beside discrimination.

A solver returns a single comparable performance value. Its advantage
is measured against the best competing solver, with optional focusing
on a fixed target solver. Every complete panel is scored using the
same seed across its solvers. A passive grid keeps the largest positive
margin, raw panel scores, and the winner for independent analysis.

:param archive: Empty best-only maximizing Grid or CVTGrid with native scores.
:param performance_archive: Optional second maximizing grid with (winner index, raw margin) descriptors.
:param solvers: Ordered mapping from names to callbacks (instance, seed).
:param initializer: Callback (rng) generating an immutable instance sequence.
:param mutate: Callback (instance, rng) generating a new instance sequence.
:param describe: Callback (instance) computing finite instance descriptors.
:param maximize: Whether a larger panel score indicates a better solver.
:param target_solver: Optional fixed solver whose signed margin guides search.
:param novelty_weight: Fraction of the search score allocated to novelty.
:param gap_novelty_weight: Fraction of novelty allocated to performance gaps.
:param gap_scale: Positive reference scale for solver advantages.
:param min_gap: Minimum positive advantage accepted by the reporting grid.
:param population_size: Maximum number of live instances.
:param history_size: Number of distinct recent genomes in novelty history.
:param neighbors: Number of nearest neighbors used for novelty.
:param initial_samples: Number of random instances before variation.
:param seed: Private seed for search and complete solver panels.

Definition at line 44 of file discriminatory.py.

Member Function Documentation

◆ run()

DiscriminatorySearchStats qdpy.algorithms.discriminatory.DiscriminatoryInstanceSearch.run ( self,
budget )

Spend an additional budget of raw solver calls, using complete panels.

Parameters
budgetMaximum additional calls to individual solvers.
Returns
Cumulative counts and measured winning-solvers tally.
Leave any remainder smaller than a panel unspent.

Definition at line 182 of file discriminatory.py.

◆ stats()

qdpy.algorithms.discriminatory.DiscriminatoryInstanceSearch.stats ( self)
Return cumulative solver-panel accounting.

Definition at line 118 of file discriminatory.py.


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