|
@@ -114,7 +114,7 @@ def main():
|
|
plt.switch_backend('agg')
|
|
plt.switch_backend('agg')
|
|
averages = []
|
|
averages = []
|
|
|
|
|
|
- for i in range(1, 14):
|
|
|
|
|
|
+ for i in range(1, 17):
|
|
average = 0
|
|
average = 0
|
|
for j in range(1, 11):
|
|
for j in range(1, 11):
|
|
filepath = "tsp_problems/" + str(i) + "/instance_" + str(j) + ".txt"
|
|
filepath = "tsp_problems/" + str(i) + "/instance_" + str(j) + ".txt"
|
|
@@ -123,7 +123,7 @@ def main():
|
|
averages.append(average / 10.0)
|
|
averages.append(average / 10.0)
|
|
|
|
|
|
figure, axes = plt.subplots(1, 1, True)
|
|
figure, axes = plt.subplots(1, 1, True)
|
|
- axes.plot(range(1, 14), averages, label='TSP Solver (Heuristic)')
|
|
|
|
|
|
+ axes.plot(range(1, 17), averages, label='TSP Solver (Heuristic)')
|
|
axes.legend()
|
|
axes.legend()
|
|
plt.xlabel("Number of Cities")
|
|
plt.xlabel("Number of Cities")
|
|
plt.ylabel("Average Number of Nodes Generated in 10 Runs")
|
|
plt.ylabel("Average Number of Nodes Generated in 10 Runs")
|