QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.hill_valley.HillVallEA Class Reference

Discover distinct high-quality basins from a scalar black-box objective. More...

Public Member Functions

 run (self, evaluate, budget)
 Run from scratch and return near-optima with an exact evaluation count.

Detailed Description

Discover distinct high-quality basins from a scalar black-box objective.

Cluster nearest-better candidates using line tests, then refine each basin.

This bounded variant uses CMA-ES for local search. Restart populations
include the retained near-optima and grow when a restart finds no new
basin. Every evaluation, including intermediate tests for clustering
and duplicate-peak checks, reduces the same hard budget. Requires the
optional cma extra at run time.

:param bounds: Finite increasing (lower, upper) pairs per decision coordinate.
:param maximise: Maximize fitness if true, otherwise minimize it.
:param initial_samples: Number of random candidates at the first restart (default 16 per dimension).
:param selection_fraction: Fraction of sampled and retained points to cluster.
:param neighbors: Number of earlier nearest points to consider during clustering.
:param max_probes: Maximum interpolation points per line test.
:param local_population: Starting population size for each local CMA-ES.
:param local_generations: Maximum number of CMA-ES generations per cluster.
:param fitness_tolerance: Retain niche representatives within this fitness gap of the best retained peak.
:param seed: Private seed.

Definition at line 175 of file hill_valley.py.

Member Function Documentation

◆ run()

qdpy.algorithms.hill_valley.HillVallEA.run ( self,
evaluate,
budget )

Run from scratch and return near-optima with an exact evaluation count.

Measure finite scalar fitness on raw decision vectors.

If the final budget interrupts a comparison, retain completed
niche updates. The result also exposes the best measured point,
even if its basin could not be checked before the budget stopped.

Definition at line 224 of file hill_valley.py.


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