forked from abigailhayes/rl-for-vrp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalyse.py
60 lines (49 loc) · 1.37 KB
/
analyse.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""Code for running most of the analysis, apart from graph plotting. Generates results csvs."""
import analysis.validity_check as vc
import analysis.instance_count as ic
import analysis.experiment_a as expt_a
import analysis.experiment_b as expt_b
import analysis.experiment_c as expt_c
import analysis.best_or_tools as ortools
import analysis.vehicles as vehicles
def main():
print("Validity checks...")
vc.main()
print("Complete")
print("*****")
print("Instance count...")
ic.main()
print("Complete")
print("*****")
print("Best OR tools")
ortools.main()
print("Complete")
print("Expt A - all averages")
expt_a.a_all_averages()
print("Complete")
print("Expt B - best values")
expt_b.b_best()
print("Complete")
print("Expt B - all averages")
expt_b.b_all_averages()
print("Complete")
print("Expt B - tables")
for size in [10, 20, 50, 100]:
print(size)
expt_b.size_table(size)
expt_b.b_group_averages(size)
print("Complete")
print("*****")
print("Expt C - all averages")
expt_c.c_all_averages()
print("Complete")
print("Vehicle counts")
print("A:")
vehicles.all_vehicle_counts("a")
print("B:")
vehicles.all_vehicle_counts("b")
print("C:")
vehicles.all_vehicle_counts_c()
print("Complete")
if __name__ == "__main__":
main()