QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.entropy_tours.EntropyTourSearch Class Reference

Optimize high-order segment entropy among bounded-cost symmetric tours. More...

Public Member Functions

 run (self, initial_tours, *, budget)
 Evolve an exact-call-bounded portfolio from caller-supplied tours.

Detailed Description

Optimize high-order segment entropy among bounded-cost symmetric tours.

Generate a biased and a uniform 2-opt child and compare them with their parent.

:param distances: Square symmetric nonnegative matrix of finite edge costs.
:param cost_limit: Inclusive ceiling for each retained tour.
:param population_size: Maximum number of distinct tours to retain.
:param segment_length: Number of consecutive vertices in a segment.
:param seed: Private random stream for parent choice and cut locations.

Definition at line 94 of file entropy_tours.py.

Member Function Documentation

◆ run()

qdpy.algorithms.entropy_tours.EntropyTourSearch.run ( self,
initial_tours,
* ,
budget )

Evolve an exact-call-bounded portfolio from caller-supplied tours.

Return distinct feasible tours and count every evaluated seed or child.

At least one initial tour must meet the ceiling. A single feasible
seed can grow to a larger portfolio as new tours are found.

Definition at line 134 of file entropy_tours.py.


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