QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.traveling_thief.TravelingThiefMAPElites Class Reference

Evolve depot-anchored tours with 2-opt and exact inner packing. More...

Public Member Functions

 solution_for (self, elite)
 Return the exact measured design associated with a stored elite.
 run (self, budget, *, seed_tours=())
 Run the bilevel search with the specified number of tour evaluations.

Detailed Description

Evolve depot-anchored tours with 2-opt and exact inner packing.

Store the highest measured net profit per tour-length/item-profit cell.

This small-instance bilevel variant uses 2-opt mutation and exact
packing. A tour evaluation includes one packing solve and one
measured route-and-packing pair. An out-of-domain result still
spends its tour evaluation and packing work.

:param problem: TravelingThiefProblem with integer item weights.
:param archive: Empty parentless maximizing scalar Grid or CVTGrid
    with descriptors for unloaded tour length and item profit.
:param initial_tours: Number of random initial route evaluations.
:param seed: Private seed for initialization and 2-opt.

Definition at line 177 of file traveling_thief.py.

Member Function Documentation

◆ run()

qdpy.algorithms.traveling_thief.TravelingThiefMAPElites.run ( self,
budget,
* ,
seed_tours = () )

Run the bilevel search with the specified number of tour evaluations.

Parameters
budgetNumber of tour evaluations and exact packing solves.
seed_toursOptional iterable of tours to evaluate first within the budget.
Returns
Reporting archive, search costs, and archive admission counters.
Optionally measure caller-supplied tours before random starts and offspring.

Definition at line 219 of file traveling_thief.py.

◆ solution_for()

qdpy.algorithms.traveling_thief.TravelingThiefMAPElites.solution_for ( self,
elite )

Return the exact measured design associated with a stored elite.

Recover the tour and packed items stored in the native archive genotype.

Definition at line 210 of file traveling_thief.py.


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