|
QDpy
|
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. | |
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.
| qdpy.algorithms.traveling_thief.TravelingThiefMAPElites.run | ( | self, | |
| budget, | |||
| * | , | ||
| seed_tours = () ) |
Run the bilevel search with the specified number of tour evaluations.
| budget | Number of tour evaluations and exact packing solves. |
| seed_tours | Optional iterable of tours to evaluate first within the budget. |
Optionally measure caller-supplied tours before random starts and offspring.
Definition at line 219 of file traveling_thief.py.
| 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.