Skip to main content
MAP-Elites Optimizer

This optimizer is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.


Source
ProtoProtoevo-design/proto-language
View source
Optimizer contributors
MAP-Elites optimizer keeping one lowest-energy elite per descriptor cell.
Results are num_results elites spread over the grid by deterministic farthest-point sampling on cell coordinates, seeded with the best elite and ordered by energy. If the archive has fewer cells, only the distinct elites are returned (with a warning), as rejection sampling does; the next stage cycles them to fill its pool. The plateau stop tracks the best elite’s fitness, so new cells filled without a better elite do not reset plateau_patience. With constraint_weight_schedules (fitness constraints only; a descriptor does not count toward fitness), iteration t scores its offspring at the weights scheduled for t after shifting every elite’s fitness to those weights from its recorded per-constraint scores, so each cell compares its elite and a newcomer under one set of weights.

API Reference

ConfigMAPElitesOptimizerConfig Source
Configuration for the MAP-Elites optimizer.
integer
required
Number of mutate-score-insert iterations.
List[string]
required
One or two scoring constraint labels whose scores define the grid; excluded from fitness.
integer
default:"10"
Number of bins per descriptor over the [0, 1] score range.
integer
default:"16"
Children mutated from randomly chosen elites per iteration.
integer
Number of elites (one per cell, spread over the grid) to return. Overrides program count.
integer
Random seed for reproducible optimization, generator, and constraint tool streams.
integer
default:"1"
Save history and log progress every N steps. Step 0 and final step always saved.
boolean
default:"False"
Save granular per-proposal results (accept/reject) in history snapshots.
boolean
default:"False"
Emit per-step debug information about proposals, scores, and acceptance through the logger.
integer
With a checkpoint_dir, checkpoint the running stage every N iterations. None: stage ends only.
integer
Stop after N iterations in a row without improving the best energy (first sets it). None disables.
number
default:"0.0"
Minimum decrease of the best energy that counts as improvement for plateau_patience.
array
Per-constraint weight schedules that override the constraint’s static weight at each step.

Usage

python

Metadata