-
Notifications
You must be signed in to change notification settings - Fork 1
/
matrices.m
58 lines (55 loc) · 3.25 KB
/
matrices.m
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
% R(i,j) gives the capacity (in Gbps) of the connection from node i to node j
R= [0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0
1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0
1 1 0 1 0 0 10 0 0 0 1 0 0 0 0 0 0
0 0 1 1 0 0 1 0 1 0 0 1 0 0 0 0 0
0 0 0 0 10 1 0 10 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 10 0 10 0 1 0 1 0 0 0 0
0 0 0 0 0 1 0 10 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0
1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0
0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0
0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0];
% connection lengths (in kilometers) where element L(i,j) indicates
% the length of the connection from node i to node j
L= [0 119 0 0 147 0 0 0 0 0 292 0 0 0 0 0 0
119 0 61 0 105 0 0 0 0 0 0 0 0 0 0 0 0
0 61 0 40 0 136 0 0 0 0 0 0 0 0 0 0 0
0 0 40 0 83 116 0 0 0 0 0 0 0 0 0 0 0
147 105 0 83 0 0 65 0 0 0 181 0 0 0 0 0 0
0 0 136 116 0 0 120 0 136 0 0 157 0 0 0 0 0
0 0 0 0 65 120 0 95 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 95 0 71 0 80 0 67 0 0 0 0
0 0 0 0 0 136 0 71 0 51 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 51 0 0 32 0 0 87 0 0
292 0 0 0 181 0 0 80 0 0 0 0 0 73 0 0 0
0 0 0 0 0 157 0 0 0 32 0 0 0 0 0 61 0
0 0 0 0 0 0 0 67 0 0 0 0 0 68 40 0 0
0 0 0 0 0 0 0 0 0 0 73 0 68 0 0 0 0
0 0 0 0 0 0 0 0 0 87 0 0 40 0 0 0 45
0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 81
0 0 0 0 0 0 0 0 0 0 0 0 0 0 45 81 0];
% defines the average traffic bandwidth sent from node i to node j, in mbps
T= [0 32 78 23 0 60 0 0 0 13 14 15 25 55 17 14 12
60 0 80 38 0 290 0 0 0 51 78 70 51 280 42 64 54
82 84 0 11 0 260 0 0 0 19 15 48 17 84 18 19 15
18 51 21 0 0 41 0 0 0 26 41 16 12 42 15 14 19
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
72 350 270 73 0 0 0 0 0 54 71 59 56 410 54 94 83
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
17 70 14 13 0 61 0 0 0 0 12 13 15 56 14 15 12
12 48 13 41 0 54 0 0 0 19 0 13 14 63 12 15 14
14 81 47 13 0 79 0 0 0 14 16 0 13 44 13 37 13
14 43 12 16 0 47 0 0 0 19 13 18 0 50 15 23 12
54 240 65 76 0 450 0 0 0 42 42 44 61 0 54 76 53
16 49 14 13 0 49 0 0 0 14 13 16 15 63 0 15 14
14 63 13 15 0 59 0 0 0 18 24 17 12 75 19 0 15
21 45 16 22 0 73 0 0 0 12 14 17 14 59 14 16 0];