Beruflich Dokumente
Kultur Dokumente
Dr. Dr Mao Jianfeng Assistant Professor, MAE Office: N3.2-02-32 Email: jfmao@ntu edu sg jfmao@ntu.edu.sg Tel: 6790 5522
Jianfeng Mao
1 of 45
Abstract Networks
Organizational charts Human relationship charts (match-making as an example)
Jianfeng Mao 3 of 45
For further details on, say, the Concorde TSP code, visit http://www.tsp.gatech.edu/sweden/index.html Jianfeng Mao 4 of 45
Jianfeng Mao
5 of 45
Jianfeng Mao
6 of 45
An Undirected Graph
An Directed Graph
Jianfeng Mao
7 of 45
Network Definitions
Path: Example: 5,2,3,4 No node is repeated Directions are ignored Directed Path: 1,2,5,3,4 No d is N node i repeated t d Directions are important Cycle: 1 2 3 1 1,2,3,1 A path with 2 or more nodes, except that the first node is the last node. Directions are i Di ti ignored d Directed Cyle: 1,2,3,4,1 No node is repeated, except that the first node is the last node Directions are important
5 1 2 5 1 2 2 1 4 2 1 4 3 3 3 4 3 4
Jianfeng Mao
8 of 45
Jianfeng Mao
10 of 45
Jianfeng Mao
11 of 45
From Los Angeles to: Salt Lake City (node 2) Phoenix (node 3) Denver (node 4) Des Moines (node 5) Dallas (node 6) St. Louis (node 7)
Total Hours 16 9 24 38 31 43
Bellmen-Ford algorithm
Slower Cover the cases with negative distance Efficiency vs. Ge e a ty c e cy s Generality
Linear Programming Li P i
Jianfeng Mao 20 of 45
Jianfeng Mao
21 of 45
1 xij = 0
Objective Function:
Minimize Z = 16x12 + 9x13 + 35x14 + 12x24 + 25x25 + 15x34 + 22x36 + 14x45 + 17x 17 46 + 19 47 + 8 57 + 14 67 19x 8x 14x
Jianfeng Mao
22 of 45
subject to
x14 + x24+ x34 - x45 - x46 - x47 = 0 x25 + x45 - x57 = 0 x36 + x46 - x67 = 0 x47 + x57 + x67 = 1 xij = 0 or 1
Jianfeng Mao
23 of 45
Jianfeng Mao
24 of 45
Jianfeng Mao
25 of 45
Jianfeng Mao
27 of 45
Jianfeng Mao
29 of 45
Jianfeng Mao
30 of 45
Jianfeng Mao
31 of 45
Jianfeng Mao
32 of 45
Jianfeng Mao
33 of 45
Jianfeng Mao
34 of 45
Jianfeng Mao
35 of 45
Jianfeng Mao
36 of 45
Jianfeng Mao
38 of 45
Jianfeng Mao
39 of 45
Jianfeng Mao
40 of 45
Jianfeng Mao
41 of 45
Jianfeng Mao
42 of 45
Flow = x61
Add a new arc with a sufficient large capacity, say, the sum of capacities of arcs entering node 6.
Jianfeng Mao
43 of 45
Objective Function
maximize Z = x61
Jianfeng Mao
44 of 45
Non-negativity Constraints
xij 0 for all i,j
Jianfeng Mao
45 of 45