pycombinatorial 2.1.4__tar.gz → 2.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/PKG-INFO +2 -2
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/README.md +1 -1
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/aco.py +31 -20
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/alns.py +20 -7
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_4.py +1 -1
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pycombinatorial.egg-info/PKG-INFO +2 -2
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/setup.py +1 -1
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/LICENSE +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/__init__.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/__init__.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/bb.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/bf.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/bhk.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/brkga.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/bt.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/christofides.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/conc_hull.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/conv_hull.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/cw.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/eln.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/eo.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/frnn.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ga.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/gksp.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/grasp.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/hpn.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ins_c.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ins_f.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ins_n.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ins_r.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ksp.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/lns.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/mf.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/nn.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_2.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_2_5.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_2_5s.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_2s.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_3.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_3s.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_4s.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_5.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_5s.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/opt_or.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/rl_double_ql.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/rl_ql.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/rl_sarsa.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/rr.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/rt.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/s_gui.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/s_itr.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/s_sct.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/s_shc.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/s_tabu.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/s_vns.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/sa.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/som.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/spfc_h.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/spfc_m.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/spfc_s.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/ssi.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/swp.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/tat.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/tbb.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/algorithm/zs.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/utils/__init__.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/utils/graphs.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pyCombinatorial/utils/util.py +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pycombinatorial.egg-info/SOURCES.txt +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pycombinatorial.egg-info/dependency_links.txt +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pycombinatorial.egg-info/requires.txt +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pycombinatorial.egg-info/top_level.txt +0 -0
- {pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pycombinatorial
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.7
|
|
4
4
|
Summary: A library to solve TSP (Travelling Salesman Problem) using Exact Algorithms, Heuristics, Metaheuristics and Reinforcement Learning
|
|
5
5
|
Home-page: https://github.com/Valdecy/pyCombinatorial
|
|
6
6
|
Author: Valdecy Pereira
|
|
@@ -121,7 +121,7 @@ print('Total Distance: ', round(distance, 2))
|
|
|
121
121
|
- Space Filling Curve (Hilbert) ([ Colab Demo ](https://colab.research.google.com/drive/1FXzWrUBjdbJBngRFHv66CZw5pFN3yOs8?usp=sharing)) ( [ Paper ](https://doi.org/10.1016/0960-0779(95)80046-J))
|
|
122
122
|
- Space Filling Curve (Morton) ([ Colab Demo ](https://colab.research.google.com/drive/1Z13kXyi7eaNQbBUmhvwuQjY4VaUfGVbs?usp=sharing)) ( [ Paper ](https://dominoweb.draco.res.ibm.com/reports/Morton1966.pdf))
|
|
123
123
|
- Space Filling Curve (Sierpinski) ([ Colab Demo ](https://colab.research.google.com/drive/1w-Zptd5kOryCwvQ0qSNBNhPXC61c8QXF?usp=sharing)) ( [ Paper ](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.67.9061&rep=rep1&type=pdf))
|
|
124
|
-
- Spectral Seriation Initializer ([ Colab Demo ](https://colab.research.google.com/drive/1lG0pYxASU75qh0jK-A_eMCoPpCWv0I4V?usp=sharing)) ( [ Paper ](https://doi.org/10.1137/
|
|
124
|
+
- Spectral Seriation Initializer ([ Colab Demo ](https://colab.research.google.com/drive/1lG0pYxASU75qh0jK-A_eMCoPpCWv0I4V?usp=sharing)) ( [ Paper ](https://doi.org/10.1137/S0097539795285771))
|
|
125
125
|
- Stochastic Hill Climbing ([ Colab Demo ](https://colab.research.google.com/drive/1_wP6vg4JoRHGItGxEtXcf9Y9OuuoDlDl?usp=sharing)) ( [ Paper ](http://aima.cs.berkeley.edu/))
|
|
126
126
|
- Sweep ([ Colab Demo ](https://colab.research.google.com/drive/1AkAn4yeomAp6POBslk3Asd6OrxfBrHT7?usp=sharing)) ( [ Paper ](http://dx.doi.org/10.1287/opre.22.2.340))
|
|
127
127
|
- Tabu Search ([ Colab Demo ](https://colab.research.google.com/drive/1SRwQrBaxkKk18SDvQPy--0yNRWdl6Y1G?usp=sharing)) ( [ Paper ](https://doi.org/10.1287/ijoc.1.3.190))
|
|
@@ -110,7 +110,7 @@ print('Total Distance: ', round(distance, 2))
|
|
|
110
110
|
- Space Filling Curve (Hilbert) ([ Colab Demo ](https://colab.research.google.com/drive/1FXzWrUBjdbJBngRFHv66CZw5pFN3yOs8?usp=sharing)) ( [ Paper ](https://doi.org/10.1016/0960-0779(95)80046-J))
|
|
111
111
|
- Space Filling Curve (Morton) ([ Colab Demo ](https://colab.research.google.com/drive/1Z13kXyi7eaNQbBUmhvwuQjY4VaUfGVbs?usp=sharing)) ( [ Paper ](https://dominoweb.draco.res.ibm.com/reports/Morton1966.pdf))
|
|
112
112
|
- Space Filling Curve (Sierpinski) ([ Colab Demo ](https://colab.research.google.com/drive/1w-Zptd5kOryCwvQ0qSNBNhPXC61c8QXF?usp=sharing)) ( [ Paper ](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.67.9061&rep=rep1&type=pdf))
|
|
113
|
-
- Spectral Seriation Initializer ([ Colab Demo ](https://colab.research.google.com/drive/1lG0pYxASU75qh0jK-A_eMCoPpCWv0I4V?usp=sharing)) ( [ Paper ](https://doi.org/10.1137/
|
|
113
|
+
- Spectral Seriation Initializer ([ Colab Demo ](https://colab.research.google.com/drive/1lG0pYxASU75qh0jK-A_eMCoPpCWv0I4V?usp=sharing)) ( [ Paper ](https://doi.org/10.1137/S0097539795285771))
|
|
114
114
|
- Stochastic Hill Climbing ([ Colab Demo ](https://colab.research.google.com/drive/1_wP6vg4JoRHGItGxEtXcf9Y9OuuoDlDl?usp=sharing)) ( [ Paper ](http://aima.cs.berkeley.edu/))
|
|
115
115
|
- Sweep ([ Colab Demo ](https://colab.research.google.com/drive/1AkAn4yeomAp6POBslk3Asd6OrxfBrHT7?usp=sharing)) ( [ Paper ](http://dx.doi.org/10.1287/opre.22.2.340))
|
|
116
116
|
- Tabu Search ([ Colab Demo ](https://colab.research.google.com/drive/1SRwQrBaxkKk18SDvQPy--0yNRWdl6Y1G?usp=sharing)) ( [ Paper ](https://doi.org/10.1287/ijoc.1.3.190))
|
|
@@ -62,41 +62,52 @@ def update_thau(distance_matrix, thau, city_list):
|
|
|
62
62
|
return thau
|
|
63
63
|
|
|
64
64
|
# Function: Generate Ant Paths
|
|
65
|
-
def ants_path(distance_matrix, h, thau, alpha, beta, full_list, ants, local_search):
|
|
66
|
-
best_path_distance = float(
|
|
65
|
+
def ants_path(distance_matrix, h, thau, alpha, beta, full_list, ants, local_search, deposit_mode = 'all'):
|
|
66
|
+
best_path_distance = float("inf")
|
|
67
67
|
best_city_list = None
|
|
68
|
+
all_tours = []
|
|
68
69
|
for _ in range(0, ants):
|
|
69
70
|
city_list = [np.random.choice(full_list)]
|
|
70
|
-
while
|
|
71
|
-
current_city
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
while len(city_list) < len(full_list):
|
|
72
|
+
current_city = city_list[-1]
|
|
73
|
+
candidates = [c for c in full_list if c not in city_list]
|
|
74
|
+
weights = []
|
|
75
|
+
for nxt in candidates:
|
|
76
|
+
tau = thau[current_city - 1, nxt - 1]
|
|
77
|
+
eta = h[current_city - 1, nxt - 1]
|
|
78
|
+
w = (tau ** alpha) * (eta ** beta)
|
|
79
|
+
weights.append(w)
|
|
80
|
+
weights = np.array(weights, dtype = float)
|
|
81
|
+
s = weights.sum()
|
|
82
|
+
if s <= 0 or not np.isfinite(s):
|
|
83
|
+
next_city = np.random.choice(candidates)
|
|
84
|
+
else:
|
|
85
|
+
probs = weights / s
|
|
86
|
+
next_city = np.random.choice(candidates, p = probs)
|
|
81
87
|
city_list.append(next_city)
|
|
82
88
|
path_distance = calculate_distance(distance_matrix, city_list)
|
|
83
|
-
if
|
|
84
|
-
best_city_list = copy.deepcopy(city_list)
|
|
89
|
+
if path_distance < best_path_distance:
|
|
85
90
|
best_path_distance = path_distance
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
best_city_list = copy.deepcopy(city_list)
|
|
92
|
+
if deposit_mode == "all":
|
|
93
|
+
all_tours.append((city_list, path_distance))
|
|
94
|
+
if local_search:
|
|
88
95
|
best_city_list, best_path_distance = local_search_2_opt(distance_matrix, city_tour = [best_city_list, best_path_distance])
|
|
89
|
-
|
|
96
|
+
if deposit_mode == "all":
|
|
97
|
+
for tour, dist in all_tours:
|
|
98
|
+
thau = update_thau(distance_matrix, thau, city_list = tour)
|
|
99
|
+
else:
|
|
100
|
+
thau = update_thau(distance_matrix, thau, city_list = best_city_list)
|
|
90
101
|
return best_city_list, best_path_distance, thau
|
|
91
102
|
|
|
92
103
|
############################################################################
|
|
93
104
|
|
|
94
105
|
# ACO Function
|
|
95
|
-
def ant_colony_optimization(distance_matrix, ants =
|
|
106
|
+
def ant_colony_optimization(distance_matrix, ants = 15, iterations = 100, alpha = 1, beta = 2, decay = 0.05, local_search = True, verbose = True):
|
|
96
107
|
count = 0
|
|
97
108
|
best_route = []
|
|
98
109
|
full_list = list(range(1, distance_matrix.shape[0] + 1))
|
|
99
|
-
distance =
|
|
110
|
+
distance = float('inf')
|
|
100
111
|
h = attractiveness(distance_matrix)
|
|
101
112
|
thau = np.ones((distance_matrix.shape[0], distance_matrix.shape[0]))
|
|
102
113
|
while (count <= iterations):
|
|
@@ -80,10 +80,12 @@ def local_search_2_opt(distance_matrix, city_tour, recursive_seeding = -1, verbo
|
|
|
80
80
|
# Function: Removal
|
|
81
81
|
def removal_operators():
|
|
82
82
|
def random_removal(city_tour, num_removals):
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
available = city_tour[1:]
|
|
84
|
+
if (len(available) == 0):
|
|
85
|
+
return []
|
|
86
|
+
k = int(num_removals)
|
|
87
|
+
k = max(1, min(k, len(available)))
|
|
88
|
+
return random.sample(available, k)
|
|
87
89
|
return [random_removal]
|
|
88
90
|
|
|
89
91
|
# Function: Insertion
|
|
@@ -104,7 +106,7 @@ def insertion_operators():
|
|
|
104
106
|
############################################################################
|
|
105
107
|
|
|
106
108
|
# Function: Adaptive Large Neighborhood Search
|
|
107
|
-
def adaptive_large_neighborhood_search(distance_matrix, iterations = 100, removal_fraction = 0.2, rho = 0.1, local_search = True, verbose = True):
|
|
109
|
+
def adaptive_large_neighborhood_search(distance_matrix, iterations = 100, removal_fraction = 0.2, rho = 0.1, local_search = True, verbose = True, sa = True, t0 = None, cooling = 0.995):
|
|
108
110
|
initial_tour = list(range(0, distance_matrix.shape[0]))
|
|
109
111
|
random.shuffle(initial_tour)
|
|
110
112
|
route = initial_tour.copy()
|
|
@@ -113,20 +115,29 @@ def adaptive_large_neighborhood_search(distance_matrix, iterations = 100, remova
|
|
|
113
115
|
insertion_ops = insertion_operators()
|
|
114
116
|
weights_removal = [1.0] * len(removal_ops)
|
|
115
117
|
weights_insertion = [1.0] * len(insertion_ops)
|
|
118
|
+
rho = max(0.0, min(float(rho), 0.99))
|
|
119
|
+
temp = float(distance) if (t0 is None) else float(t0)
|
|
120
|
+
temp = max(temp, 1e-12)
|
|
116
121
|
count = 0
|
|
117
|
-
while (count
|
|
122
|
+
while (count < iterations):
|
|
118
123
|
if (verbose == True and count > 0):
|
|
119
124
|
print('Iteration = ', count, 'Distance = ', round(distance, 2))
|
|
120
125
|
city_tour = route.copy()
|
|
121
126
|
removal_op = random.choices(removal_ops, weights = weights_removal)[0]
|
|
122
127
|
insertion_op = random.choices(insertion_ops, weights = weights_insertion)[0]
|
|
123
128
|
num_removals = int(removal_fraction * distance_matrix.shape[0])
|
|
129
|
+
num_removals = max(1, num_removals)
|
|
130
|
+
num_removals = min(num_removals, max(1, len(city_tour) - 1))
|
|
124
131
|
removed_nodes = removal_op(city_tour, num_removals)
|
|
125
132
|
for node in removed_nodes:
|
|
126
133
|
city_tour.remove(node)
|
|
127
134
|
new_tour = insertion_op(removed_nodes, city_tour, distance_matrix)
|
|
128
135
|
new_tour_distance = distance_point(distance_matrix, new_tour)
|
|
129
|
-
|
|
136
|
+
delta = new_tour_distance - distance
|
|
137
|
+
accept = (delta < 0)
|
|
138
|
+
if (sa == True and accept == False):
|
|
139
|
+
accept = (random.random() < np.exp(-delta / temp))
|
|
140
|
+
if (accept == True):
|
|
130
141
|
route = new_tour
|
|
131
142
|
distance = new_tour_distance
|
|
132
143
|
weights_removal[removal_ops.index(removal_op)] = weights_removal[removal_ops.index(removal_op)] * (1 + rho)
|
|
@@ -138,6 +149,8 @@ def adaptive_large_neighborhood_search(distance_matrix, iterations = 100, remova
|
|
|
138
149
|
total_weight_insertion = sum(weights_insertion)
|
|
139
150
|
weights_removal = [w / total_weight_removal for w in weights_removal]
|
|
140
151
|
weights_insertion = [w / total_weight_insertion for w in weights_insertion]
|
|
152
|
+
if (sa == True):
|
|
153
|
+
temp = max(temp * cooling, 1e-12)
|
|
141
154
|
count = count + 1
|
|
142
155
|
route = route + [route[0]]
|
|
143
156
|
route = [item + 1 for item in route]
|
|
@@ -145,7 +145,7 @@ def local_search_4_opt(distance_matrix, city_tour, recursive_seeding = -1, verbo
|
|
|
145
145
|
[a + c + b + d],
|
|
146
146
|
[a + c + d + b],
|
|
147
147
|
|
|
148
|
-
]
|
|
148
|
+
]
|
|
149
149
|
for item in trial:
|
|
150
150
|
best_route_1[0] = item[0]
|
|
151
151
|
best_route_1[1] = distance_calc(distance_matrix, [best_route_1[0] + [best_route_1[0][0]], 1])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pycombinatorial
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.7
|
|
4
4
|
Summary: A library to solve TSP (Travelling Salesman Problem) using Exact Algorithms, Heuristics, Metaheuristics and Reinforcement Learning
|
|
5
5
|
Home-page: https://github.com/Valdecy/pyCombinatorial
|
|
6
6
|
Author: Valdecy Pereira
|
|
@@ -121,7 +121,7 @@ print('Total Distance: ', round(distance, 2))
|
|
|
121
121
|
- Space Filling Curve (Hilbert) ([ Colab Demo ](https://colab.research.google.com/drive/1FXzWrUBjdbJBngRFHv66CZw5pFN3yOs8?usp=sharing)) ( [ Paper ](https://doi.org/10.1016/0960-0779(95)80046-J))
|
|
122
122
|
- Space Filling Curve (Morton) ([ Colab Demo ](https://colab.research.google.com/drive/1Z13kXyi7eaNQbBUmhvwuQjY4VaUfGVbs?usp=sharing)) ( [ Paper ](https://dominoweb.draco.res.ibm.com/reports/Morton1966.pdf))
|
|
123
123
|
- Space Filling Curve (Sierpinski) ([ Colab Demo ](https://colab.research.google.com/drive/1w-Zptd5kOryCwvQ0qSNBNhPXC61c8QXF?usp=sharing)) ( [ Paper ](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.67.9061&rep=rep1&type=pdf))
|
|
124
|
-
- Spectral Seriation Initializer ([ Colab Demo ](https://colab.research.google.com/drive/1lG0pYxASU75qh0jK-A_eMCoPpCWv0I4V?usp=sharing)) ( [ Paper ](https://doi.org/10.1137/
|
|
124
|
+
- Spectral Seriation Initializer ([ Colab Demo ](https://colab.research.google.com/drive/1lG0pYxASU75qh0jK-A_eMCoPpCWv0I4V?usp=sharing)) ( [ Paper ](https://doi.org/10.1137/S0097539795285771))
|
|
125
125
|
- Stochastic Hill Climbing ([ Colab Demo ](https://colab.research.google.com/drive/1_wP6vg4JoRHGItGxEtXcf9Y9OuuoDlDl?usp=sharing)) ( [ Paper ](http://aima.cs.berkeley.edu/))
|
|
126
126
|
- Sweep ([ Colab Demo ](https://colab.research.google.com/drive/1AkAn4yeomAp6POBslk3Asd6OrxfBrHT7?usp=sharing)) ( [ Paper ](http://dx.doi.org/10.1287/opre.22.2.340))
|
|
127
127
|
- Tabu Search ([ Colab Demo ](https://colab.research.google.com/drive/1SRwQrBaxkKk18SDvQPy--0yNRWdl6Y1G?usp=sharing)) ( [ Paper ](https://doi.org/10.1287/ijoc.1.3.190))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pycombinatorial-2.1.4 → pycombinatorial-2.1.7}/pycombinatorial.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|