-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.py
76 lines (66 loc) · 1.62 KB
/
common.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
synthesized_traffic_range = [
'Uniform',
'Transpose1',
'Transpose2',
]
bench_and_trace_file_name_range = [
# ('simple_pthread', 'test_traces/simple_pthread.trace.21454.0'),
('blackscholes', 'traces/blackscholes.trace.4.txt'),
('bodytrack', 'traces/bodytrack.trace.4.txt'),
('canneal', 'traces/canneal.trace.4.txt'),
('fluidanimate', 'traces/fluidanimate.trace.4.txt'),
('freqmine', 'traces/freqmine.trace.4.txt'),
('streamcluster', 'traces/streamcluster.trace.4.txt'),
('x264', 'traces/x264.trace.4.txt'),
]
# max_cycles = 100000000
# max_cycles = 10000000
max_cycles = 1000000
# max_cycles = 1000
num_nodes = 64
synthesized_data_packet_injection_rate_range = [
0.015,
0.030,
0.045,
0.060,
0.075,
0.090,
0.105,
0.120,
]
trace_driven_data_packet_injection_rate_range = [
0.05,
0.1,
0.15,
0.2,
0.21,
0.22,
0.23,
0.24,
0.25,
]
ant_packet_injection_rate = 0.0002
aco_selection_alpha_range = [
0.30,
# 0.35,
0.40,
# 0.45,
0.50,
# 0.55,
0.60,
# 0.65,
0.70,
]
reinforcement_factor_range = [
0.0005,
# 0.001,
0.002,
# 0.004,
0.008,
# 0.016,
0.032,
# 0.064,
]
def working_directory(traffic, bench, max_cycles, num_nodes, routing, selection, data_packet_injection_rate, aco_selection_alpha, reinforcement_factor):
return 'results/t_' + traffic + '/b_' + bench + '/c_' + str(max_cycles) + '/n_' + str(num_nodes) + '/r_' + routing + '/s_' + selection \
+ '/di_' + str(data_packet_injection_rate) + '/ai_' + str(aco_selection_alpha) + '/rf_' + str(reinforcement_factor)