-
Notifications
You must be signed in to change notification settings - Fork 0
/
WDMnets8.dat
88 lines (80 loc) · 2.89 KB
/
WDMnets8.dat
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
77
78
79
80
81
82
83
84
85
86
87
88
/* Input Data File - do NOT change names, comments */
/* Any change is on your risk for the following functionality of the program */
// Elements in sets
nN= 8; // Number of Nodes
nL= 10; // Number of Links
nP= 24; // Number of Paths
nW= 8; // Number of Wavelengths
nD= 8; // Number of Demands
oaNum= 2; // Two transponders per Node
// Consumption of power
en= 150; // Consumption in the Node
et= 2.95; // Consumption in the Transponder
ew= 0.107; // Consumption in the Wavelength
eoa= 9; // Consumption in the Optical Amplifier
// Lengths
Dist= 480; // Distance between Transponders
le= 245; // Length from one node to another
loa= 80; // Length from one Optical Amplifier to another
h=[ 3 3 3 3 5 5 2 2 4 1 3 3 3 3 3 2 2 4 1 3 3 2 4 4 ]; // Number of hops for each path
// Tables
// Table DP[demand,path]
DP=[
[ 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ] // A B C
[ 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ] // D E F
[ 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ] // G H I
[ 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 ] // J K L
[ 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 ] // M N O
[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 ] // P Q R
[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 ] // S T U
[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 ] // V W X
];
// Table PE[path,link]
PE=[
[ 1 1 1 0 0 0 0 0 0 0 ] // 0,3 named A (0 1 2)
[ 0 0 1 0 0 0 0 1 1 0 ] // 0,3 named B (7 8 2)
[ 0 0 0 0 0 0 1 1 0 1 ] // 0,3 named C (7 6 9)
[ 0 1 1 1 0 0 0 0 0 0 ] // 1,4 named D (1 2 3)
[ 1 0 0 0 1 1 1 1 0 0 ] // 1,4 named E (0 7 6 5 4)
[ 0 1 1 0 1 1 0 0 0 1 ] // 1,4 named F (1 2 9 5 4)
[ 0 0 1 0 0 0 0 0 0 1 ] // 2,6 named G (2 9)
[ 0 0 0 0 0 0 1 0 1 0 ] // 2,6 named H (8 6)
[ 0 0 1 1 1 1 0 0 0 0 ] // 2,6 named I (2 3 4 5)
[ 0 0 0 0 0 0 0 0 1 0 ] // 2,7 named J (8)
[ 1 1 0 0 0 0 0 1 0 0 ] // 2,7 named K (1 0 7)
[ 0 0 1 0 0 0 1 0 0 1 ] // 2,7 named L (2 9 6)
[ 0 0 1 1 1 0 0 0 0 0 ] // 2,5 named M (2 3 4)
[ 0 0 1 0 0 1 0 0 0 1 ] // 2,5 named N (2 9 5)
[ 0 0 0 0 0 1 1 0 1 0 ] // 2,5 named O (8 6 5)
[ 0 0 0 0 0 0 1 0 0 1 ] // 3,7 named P (9 6)
[ 0 0 1 0 0 0 0 0 1 0 ] // 3,7 named Q (2 8)
[ 0 0 0 1 1 1 1 0 0 0 ] // 3,7 named R (3 4 5 6)
[ 0 0 0 0 0 0 0 0 0 1 ] // 3,6 named S (9)
[ 0 0 0 1 1 1 0 0 0 0 ] // 3,6 named T (3 4 5)
[ 0 0 1 0 0 0 1 0 1 0 ] // 3,6 named U (2 8 6)
[ 0 0 0 0 0 1 1 0 0 0 ] // 5,7 named V (5 6)
[ 0 0 1 0 0 1 0 0 1 1 ] // 5,7 named W (5 9 2 8)
[ 0 0 1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