-
Notifications
You must be signed in to change notification settings - Fork 0
/
runInst.py
37 lines (33 loc) · 820 Bytes
/
runInst.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
from main import timeTablingInstance
instances= [
# "comp01.ctt",
# "comp02.ctt",
# "comp03.ctt",
# "comp04.ctt",
# "comp05.ctt",
# "comp06.ctt",
# "comp07.ctt",
# "comp08.ctt",
# "comp09.ctt",
# "comp10.ctt",
# "comp11.ctt",
# "comp12.ctt",
# "comp13.ctt",
# "comp14.ctt",
# "comp15.ctt",
# "comp16.ctt",
# "comp17.ctt",
# "comp18.ctt",
# "comp19.ctt",
"comp20.ctt",
"comp21.ctt"
]
print("Running instances:\n")
for instance in instances:
f = open("results/" + instance, "w")
print("Instance:", instance + "...")
for j in range(5):
path = "data/" + instance
cost, i = timeTablingInstance(300, 0.1, path, 228, j)
f.write(str(cost) + " " + str(i) + " ")
f.close()