QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.decentralized.DecentralizedMAPElites Class Reference

Run local MAP-Elites searches with budgeted peer snapshots. More...

Public Member Functions

 peer_evaluations (self)
 optimise (self, evaluate, *, budget, message_budget, executor=None, seeded=False)
 Run local search and peer exchange under separate exact and message caps.
 union (self)
 Collect the best measured elite per cell across all peers.

Detailed Description

Run local MAP-Elites searches with budgeted peer snapshots.

Simulate peer contacts in synchronous rounds using a shared evaluator.

:param geometry: Empty parentless best-only scalar Grid or CVTGrid.
:param peers: Number of distinct local archives, at least two.
:param propose: Callback (peer, rng) producing a random genome.
:param mutate: Callback (peer, parent_genome, rng) producing an offspring.
:param topology: "ring" for two-way adjacent contacts or "complete".
:param local_batch_size: Candidates proposed by each peer per round.
:param exchange_period: Completed rounds between exchange opportunities.
:param migrants: Maximum distinct entries sent along each directed edge per exchange.
:param seed: Root seed for independent proposal, contact, and rollout streams.

Definition at line 23 of file decentralized.py.

Member Function Documentation

◆ optimise()

qdpy.algorithms.decentralized.DecentralizedMAPElites.optimise ( self,
evaluate,
* ,
budget,
message_budget,
executor = None,
seeded = False )

Run local search and peer exchange under separate exact and message caps.

Return the reporting union after one simulated run.

The evaluator is shared by peers. Each transferred elite consumes one
message even if rejected by its recipient. The final partial round
contributes local measurements, then exchanges if due. Supply
seeded=True to receive an explicit rollout seed as a second argument.

Definition at line 108 of file decentralized.py.

◆ peer_evaluations()

qdpy.algorithms.decentralized.DecentralizedMAPElites.peer_evaluations ( self)
Return exact evaluator attempts in peer order.

Definition at line 73 of file decentralized.py.

◆ union()

qdpy.algorithms.decentralized.DecentralizedMAPElites.union ( self)

Collect the best measured elite per cell across all peers.

Return an independent merged reporting archive, without using it for breeding.

Definition at line 153 of file decentralized.py.


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