QDpy
Loading...
Searching...
No Matches
entropy_tours.py File Reference

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.

Detailed Description

Entropy-based evolutionary diversity optimization for symmetric tours.

See also
https://arxiv.org/abs/2104.13538

Definition in file entropy_tours.py.

Function Documentation

◆ _replacement_delta()

qdpy.algorithms.entropy_tours._replacement_delta ( counts,
old,
new )
protected
Compare entropy numerators using only segments affected by a replacement.

Definition at line 50 of file entropy_tours.py.

◆ tour_segment_entropy()

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.