prep submission

This commit is contained in:
Claudio Maggioni 2020-12-21 17:39:05 +01:00
parent 6dac20afd7
commit ef002c8b1c
3 changed files with 11 additions and 2 deletions

Binary file not shown.

View file

@ -1,2 +1,11 @@
,tour length,optimal solution,gap,time to solve
"('./problems/rat783.tsp', ""'C++ ant colony optimization'"")",9218.0,8806.0,4.68,120.505
"('./problems/pr439.tsp', ""'C++ ant colony optimization'"")",109721.0,107217.0,2.34,67.09
"('./problems/pcb442.tsp', ""'C++ ant colony optimization'"")",52466.0,50778.0,3.32,51.523
"('./problems/d198.tsp', ""'C++ ant colony optimization'"")",15871.0,15780.0,0.58,33.43
"('./problems/fl1577.tsp', ""'C++ ant colony optimization'"")",23020.0,22249.0,3.47,112.319
"('./problems/ch130.tsp', ""'C++ ant colony optimization'"")",6212.0,6110.0,1.67,21.834
"('./problems/u1060.tsp', ""'C++ ant colony optimization'"")",235506.0,224094.0,5.09,104.112
"('./problems/kroA100.tsp', ""'C++ ant colony optimization'"")",21378.0,21282.0,0.45,24.245
"('./problems/eil76.tsp', ""'C++ ant colony optimization'"")",543.0,538.0,0.93,20.232
"('./problems/rat783.tsp', ""'C++ ant colony optimization'"")",9218.0,8806.0,4.68,124.22
"('./problems/lin318.tsp', ""'C++ ant colony optimization'"")",43171.0,42029.0,2.72,42.92

1 tour length optimal solution gap time to solve
2 ('./problems/rat783.tsp', "'C++ ant colony optimization'") ('./problems/pr439.tsp', "'C++ ant colony optimization'") 9218.0 109721.0 8806.0 107217.0 4.68 2.34 120.505 67.09
3 ('./problems/pcb442.tsp', "'C++ ant colony optimization'") 52466.0 50778.0 3.32 51.523
4 ('./problems/d198.tsp', "'C++ ant colony optimization'") 15871.0 15780.0 0.58 33.43
5 ('./problems/fl1577.tsp', "'C++ ant colony optimization'") 23020.0 22249.0 3.47 112.319
6 ('./problems/ch130.tsp', "'C++ ant colony optimization'") 6212.0 6110.0 1.67 21.834
7 ('./problems/u1060.tsp', "'C++ ant colony optimization'") 235506.0 224094.0 5.09 104.112
8 ('./problems/kroA100.tsp', "'C++ ant colony optimization'") 21378.0 21282.0 0.45 24.245
9 ('./problems/eil76.tsp', "'C++ ant colony optimization'") 543.0 538.0 0.93 20.232
10 ('./problems/rat783.tsp', "'C++ ant colony optimization'") 9218.0 8806.0 4.68 124.22
11 ('./problems/lin318.tsp', "'C++ ant colony optimization'") 43171.0 42029.0 2.72 42.92

View file

@ -9,7 +9,7 @@ def run(show_plots=False, verbose=False):
os.system("rm -f " + " ".join(glob.glob("sol/*.sol") + glob.glob("c_prob/*.txt")))
if sys.argv[1] == "all":
os.system("c++ -O2 -lpthread --std=c++11 -o c_prob/aco aco.cc opt.cc")
problems = glob.glob('./problems/*.tsp') if sys.argv[1] == "all" else [f"./problems/{sys.argv[1]}.tsp"]
problems = glob.glob('./problems/*.tsp') if sys.argv[1] == "all" else ["./problems/"+sys.argv[1]+".tsp"]
results = []
index = []