MOUR-QD for unbounded descriptors¶
Use MOUR-QD when objectives conflict and the useful descriptor range is unknown. Each candidate competes with neighbors inside a radius measured in descriptor units. For example, a candidate with higher quality and lower cost replaces a dominated neighbor. A distant solution with those same trade-offs can remain useful in its own region.
from qdpy.algorithms import MOURQD
from qdpy.containers import LocalParetoArchive
from qdpy.simple import run
archive = LocalParetoArchive(
radius=0.15, descriptor_size=1, fitness_weights=(1.0, -1.0),
)
search = MOURQD(archive, budget=64, dimension=2, batch_size=8)
def evaluate(genome):
position, effort = genome
return (effort, effort**2 + 0.1 * position), (position + 2.0,)
result = run(search, evaluate, seed=11)
for elite in result.archive:
print(tuple(elite.features), tuple(elite.fitness))
Choose the radius in the units used by the evaluator. If one coordinate
has a much larger numeric range, scale the coordinates before measuring
distance. Set capacity if you need a memory limit. When full, this
implementation accepts a new solution if it removes at least one
incumbent. Distinct genomes with the same objectives can share a region.
The same genome keeps its first retained measurement.
The example compares MOUR-QD with MOME under narrow and full bounds. It projects the retained solutions into the same reporting grid to measure coverage and hypervolume. See Local Pareto, team, feedback, graph, and Bayesian QD pilots for the pilot configuration and results.