Professional Documents
Culture Documents
Slide 1
Example: Bank Location
2
3
Solution for Ohio
Trust
Interpretation:
Martin Beck (MB) Company operates a plant in St. Louis with an annual
capacity of 30,000 units. Product is shipped to regional distribution centres
in Boston, Atlanta and Houston. MB plans to increase capacity by
constructing a new plant in one or more of the following cities: Detroit,
Toledo, Denver or Kansas City. The estimated annual fixed cost and the
annual capacity for the four proposed plants are:
6
7
Distribution System Design
The shipment cost per unit from each plant to the distribution centre is:
The 0-1 variables can be used to solve this distribution system design.
8
y1= 1 if a plant is constructed in Detroit; 0 if not
y2= 1 if a plant is constructed in Toledo; 0 if not
y3= 1 if a plant is constructed in Denver; 0 if not
y4= 1 if a plant is constructed in Kansas; 0 if not
10
MS Solution for MBC
Interpretation:
The min. cost is _______ thousand
Which plant need to be built?
Ans:________
Ans: ____________
11
Network Model 1: Shortest-Route
The objective is to determine the shortest path between any pair of
nodes in a network.
• The shortest-route problem is concerned with finding the
shortest path in a network from one node (or set of nodes) to
another node (or set of nodes), e.g. e.g. What is the shortest
route for SPH print centre in Jurong to deliver newspaper to
SMU in town?
Step 1: Assign node 1 the permanent label [0,S]. The first number is
the distance from node 1;
the second number is the preceding node. Since node 1 has no
preceding node, it is labeled S for the starting node.
Step 2: Assign tentative labels, (d,n), for the nodes that can be
reached directly from node 1
where
d = the direct distance from node 1
n indicates the preceding node
Step 3: Make a tentative label permanent and repeat steps 2 & 3.
13
Example: Shortest Route
• Find the Shortest Route From Node 1 to All
Other Nodes in the Network:
5
2 5
4 6
3
2
7 3 7
1 3
5 1 2
6
4 6
8
4 6
3 2
7 3 7
[0,S] 1 3 (7,1)
5 1 2
6
(5,1) 4 6
8 Slide 15
Example: Shortest Route
• Iteration 1
– Node 2 is the tentatively labeled node with the smallest
distance (4) , and hence becomes the new permanently
labeled node.
– Make Node 2 permanent:
Node 2: [4, 1] [4,1]
5
2 5
4 6
3 2
7 3 7
[0,S] 1 3 (7,1)
5 1 2
6
(5,1) 4 6
8 Slide 16
Example: Shortest Route
• Iteration 1
For each subsequent node connected to Node 2, compute
the total distance. They are:
Node 5: 5 + 4 = 9 (assign tentative label to Node 5 of
(9,2) since node 5 had no label.)
Node 3: 3 + 4 = 7 (not smaller than current label; do not
change.
[4,1] (9,2)
5
2 5
4 6
3 2
7 3 7
[0,S] 1 3 (7,1)
5 1 2
6
(5,1) 4 6 Slide 17
8
Example: Shortest Route
• Solution Summary
continued
20
Linear Programming Formulation (continued)
21
Example
• Gorman Construction company has several worksite.
The numbers shown are distance in km. Find the
shortest route to each site using diagram method.
Slide 22
Example
Slide 23
Construct a LP Model for Gorman
Slide 24
LP Model for Gorman
Slide 26
Slide 27
LP Model for Gorman (Pg 282)
29
Example: Maximal Flow
Network Model
3
Denver 2 5 St. Louis
3
4 2 3 2
3 4
San 4 3
Diego 1 4 7 Tampa
3 1
3 5 1 5 Dallas
Houston 3 6 Atlanta
6
30
Example: Maximal Flow
• Network Model Redrawn
3 3
2 5
0 4 2
2
Source 4 3 3 0
4 0 3 0
1 4 7
3 5 1 0 Sink
3 1
0 3 6 5
6 0
31
Example: Maximal Flow
There is no path with flow capacities greater than zero in
all its arches.
Iteration Path Maximum Flow
1
2
3
4
5
Total
Slide 33
Example: Maximal Flow
• LP Formulation
(as Capacitated Transshipment Problem)
– There is a variable for every arc.
– There is a constraint for every node; the flow
out must equal the flow in.
– There is a constraint for every arc (except the
added sink-to-source arc); arc capacity
cannot be exceeded.
– The objective is to maximize the flow over the
added, sink-to-source arc.
Slide 35
Example: Maximal Flow
36
Maximal Flow Problem
• LP Formulation
(as Capacitated Transshipment Problem)
s.t.
Slide 37
Example: Maximal Flow
• LP Formulation
– 18 variables (for 17 original arcs and 1 added arc)
– 24 constraints
• 7 node flow-conservation constraints
• 17 arc capacity constraints (for original arcs)
Slide 38
Example: Maximal Flow
• LP Formulation
– Objective Function
Max x71
– Node Flow-Conservation Constraints
x12 + x13 + x14 – x71 = 0 (node 1)
– x12 + x24 + x25 – x42 – x52 = 0 (node 2)
– x13 + x34 + x36 – x43 = 0 (and so on)
– x14 – x24 – x34 + x42 + x43 + x45 + x46 + x47 – x54 – x64 = 0
– x25 – x45 + x52 + x54 + x57 = 0
– x36 – x46 + x64 + x67 = 0
– x47 – x57 – x67 + x71 = 0
Slide 39
Example: Maximal Flow
• LP Formulation (continued)
– Arc Capacity Constraints
x42 < 3 x43 < 5 x45 < 3 x46 < 1 x47 < 3
41
Example: Maximal Flow
Alternative Optimal Solution #1
2
2 5
3 1 2
Source Sink
4 3
1 4 7
3 2 5
10 3 6
5
42
Example: Maximal Flow
43
Example: Maximal Flow
Slide 44
Network Model 3. Minimal-Spanning Tree
Definition:
The Minimal-Spanning Tree technique determines
the path through the network that connects all the
points while minimizing total distance.
For example:
If the points represent houses in a subdivision, the
minimal spanning tree technique can be used to
determine the best way to connect all of the
houses to electrical power, water systems, etc.
in a way that minimizes the total distance or length
of power lines or water pipes.
45
Minimal-Spanning Steps
46
Example: Minimal Spanning Tree
• Find the Minimal Spanning Tree:
3 60
45 9
20 30
50
1 45
4 6
40 40
35
30
5 15
25 20
7
10
2 35
30
25
50 8
47
Example: Minimal Spanning Tree
• Optimal Spanning Tree
3 60
45 9
20 30
50
1 45
4 6
40 40
30 35
5 15
25
7 20
10
2 35
30
50 25
8
48
Class Activity 1: Shortest Route by Linear Programming
Network Model
F
2 5
K L
A
B G
C J
3
6
1
D I
H Paducah
Lewisburg E M
4
50
Example: Shortest Route
Transport Time Ticket
Route Mode (hours) Cost
A Train 4 $ 20
B Plane 1 $115
C Bus 2 $ 10
D Taxi 6 $ 90
E Train 3 1/3 $ 30
F Bus 3 $ 15
G Bus 4 2/3 $ 20
H Taxi 1 $ 15
I Train 2 1/3 $ 15
J Bus 6 1/3 $ 25
K Taxi 3 1/3 $ 50
L Train 1 1/3 $ 10
M Bus 4 2/3 $ 20
Slide 52