|
QDpy
|
Entropy-based evolutionary diversity optimization for symmetric tours. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.entropy_tours.TourResult |
| Report one canonical tour and its exact cyclic cost. More... | |
| class | qdpy.algorithms.entropy_tours.TourPortfolio |
| Return a feasible portfolio and its search costs. More... | |
| class | qdpy.algorithms.entropy_tours.EntropyTourSearch |
| Optimize high-order segment entropy among bounded-cost symmetric tours. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.entropy_tours._replacement_delta (counts, old, new) | |
| qdpy.algorithms.entropy_tours.tour_segment_entropy (tours, segment_length=3) | |
| Measure the Shannon entropy of directed cyclic k-vertex segments. | |
Entropy-based evolutionary diversity optimization for symmetric tours.
Definition in file entropy_tours.py.
|
protected |
Compare entropy numerators using only segments affected by a replacement.
Definition at line 50 of file entropy_tours.py.
| qdpy.algorithms.entropy_tours.tour_segment_entropy | ( | tours, | |
| segment_length = 3 ) |
Measure the Shannon entropy of directed cyclic k-vertex segments.
Count each segment in both directions and return its population entropy in nats.
Definition at line 59 of file entropy_tours.py.