Exemplo n.º 1
0
    20911, 22440, 19833, 18710, 18541, 19245, 18363, 20241, 20330, 21320,
    33623, 31587, 33920, 31611, 34557, 32564, 32922, 32412, 33600, 32262,
    64802, 68051, 63162, 68226, 69351, 66841, 66253, 64332, 62981, 68770,
    87114, 82820, 79931, 86446, 86377, 86587, 88750, 86727, 85441, 87998,
    125831, 119247, 116459, 120261, 118184, 120586, 122880, 122489, 121872,
    123954, 253266, 242281, 237832, 227738, 240301, 232342, 240366, 230945,
    247921, 242933, 298385, 274384, 288114, 301044, 284681, 269686, 279463,
    290908, 301970, 291283, 365463, 372449, 370027, 372393, 368915, 370908,
    373408, 384525, 374423, 379296, 1046314, 1034195, 1046902, 1030481,
    1034027, 1006195, 1053051, 1044875, 1026137, 1030299, 1227733, 1245271,
    1269673, 1238349, 1227214, 1227604, 1243707, 1246123, 1234936, 1250596,
    6698656, 6770735, 6739645, 6785991, 6729486, 6724085, 6691468, 6783916,
    6711305, 6755722
]

# 90mn milisegundos, como ta no artigo do ILS
time = lambda p: .09 * p.shape[0] * p.shape[1]  # seconds

# print('instance', 'schedule', 'flowtime', sep='\t')
print('instance', 'flowtime', 'bks', 'gap ((flowtime - bks) / bks)', sep='\t')
i = 0
for name, instance in instances.items():
    # print(name, file=sys.stderr)
    sched = ils(instance, time(instance))
    # print(name, sched.tolist(), _c_sum(instance, sched), sep='\t')
    print(name,
          _c_sum(instance, sched),
          bks[i], (_c_sum(instance, sched) - bks[i]) / bks[i],
          sep='\t')
    i += 1
Exemplo n.º 2
0
    'ta119': taillard1990.ta119,
    'ta120': taillard1990.ta120,
}

bks = [ 14033, 15151, 13301, 15447, 13529, 13123, 13548, 13948, 14295, 12943, 
20911, 22440, 19833, 18710,18541, 19245, 18363, 20241, 20330, 21320, 33623, 
31587, 33920, 31611, 34557, 32564, 32922, 32412, 33600, 32262, 64802, 68051, 
63162, 68226, 69351, 66841, 66253, 64332, 62981, 68770, 87114, 82820, 79931, 
86446, 86377, 86587, 88750, 86727, 85441, 87998, 125831, 119247, 116459, 120261,
118184, 120586, 122880, 122489, 121872, 123954, 253266, 242281, 237832, 227738,
240301, 232342, 240366, 230945, 247921, 242933, 298385, 274384, 288114, 301044,
284681, 269686, 279463, 290908, 301970, 291283, 365463, 372449, 370027, 372393,
368915, 370908, 373408, 384525, 374423, 379296, 1046314, 1034195, 1046902,1030481,
1034027, 1006195, 1053051, 1044875, 1026137, 1030299, 1227733, 1245271, 1269673,
1238349, 1227214, 1227604, 1243707, 1246123, 1234936, 1250596, 6698656, 6770735,
6739645, 6785991, 6729486, 6724085, 6691468, 6783916, 6711305, 6755722 ]

# 90mn milisegundos, como ta no artigo do ILS
time = lambda p: .03 * p.shape[0] * p.shape[1]  # seconds

# print('instance', 'schedule', 'flowtime', sep='\t')
print('instance', 'flowtime', 'bks', 'gap ((flowtime - bks) / bks)', sep='\t')
i = 0
for name, instance in instances.items():
    # print(name, file=sys.stderr)
    sched = ils(instance, time(instance))
    # print(name, sched.tolist(), _c_sum(instance, sched), sep='\t')
    print(name, _c_sum(instance, sched), bks[i], (_c_sum(instance, sched) - bks[i])/ bks[i] , sep='\t')
    i+=1