Professional Documents
Culture Documents
NETWORK MODELING
LAST CLASS
Minimum cost network flow problems y If Total Supply > Total Demand y Then Inflow-Outflow >= Supply or Demand Excel:
y
SUMIF(range,criteria,sum_range)
Many decision problems boil down to determining the shortest (or least costly) route or path through a network.
y
L'burg 9
+0
+1
Va Bch
11
+0
K'ville 5
1.7 hrs 5 pts 2.0 hrs 9 pts
+0
3.0 hrs 4 pts
G'boro
Raliegh
10
+0
+0
A'ville 6 +0
2.8 hrs 7 pts 2.0 hrs 8 pts 1.7 hrs 4 pts
Chatt. 3
Charl. 7
+0
G'ville 4
1.5 hrs 2 pts
B'ham 1
Atlanta
2.5 hrs 3 pts
+0
-1
+0
Define the decision Variable Xij =1, choose to leave node i for node j 0, dont choose the arc from node i for node j Number of decision variables?
Min-Time objective function Min 2.5 X12 +3 X13 +1.7 X23 +2.5X24 +1.7X35+2.8X36+2X46+1.5X47+ +2X56 +5X59 +3X68+4.7X69+1.5 X78 +2.3 X7,10+2X89+1.1 X8,10+3.3 X9,11 +2.7X10,11
Flow constraints
X12 X13 +X12 X23 X24 +X13 + X23 X35 X36 + X24 X46 X47 + X35 X56 X59 + X36 + X46 + X56 X68 X69 +X47 X78 X7,10 + X68 + X78 X89 X8,10 + X59 + X69 + X89 X9,11 +X7,10 + X8,10 X10,11 +X9,11 + X10,11 = 1 =0 =0 =0 =0 =0 =0 =0 =0 =0 =1 } node 1 } node 2 } node 3 } node 4 } node 5 } node 6 } node 7 } node 8 } node 9 } node 10 } node 11
IMPLEMENT
Max scenic score objective function Max 3X12 +4X13 +4X23 +3X24 +5X35+7X36+8X46+2X47+ +9X56 +9X59 +4X68+9X69+3X78 +3X7,10+4X89+3X8,10+5X9,11+4X10,11
Va Bch
11
Charl. 7
G'ville 4 B'ham 1
Atlanta
10
A'ville 6 Chatt. 3
B'ham 1
Atlanta
11
PRACTICE QUESTIONS
Find the quickest route but with total 18 scenic scores. y Total driving time = 11.8 Find the most scenic route but with no more than 13-hr total travel time. y Total scenic score = 23
12
2. 3.
4. 5.
14
Two lease contracts are being considered: y Each equipment requires $62,000 initially y Contract 1:
Prices increase 6% per year 60% trade-in for 1 year old equipment 15% trade-in for 2 year old equipment
Contract 2:
Prices increase 2% per year 30% trade-in for 1 year old equipment 10% trade-in for 2 year old equipment
You want to minimize total cost Each contract can be modeled as a shortest path problem
15
+0
4
$30,231 $32,045 $33,968
2
$28,520
-1
$60,363
$67,824
+1
+0
y y y y
Net cost = Initial investment trade-in value Cost of trading after 1 year: 1.06*$62,000-0.6*$62,000 = $28,520 Cost of trading after 2 years: 1.062*$62,000-0.15*$62,000 = $60,363 etc, etc.
16
17
Some network flow problems dont have transshipment nodes; only supply and demand nodes.
Groves
Mt. Dora
Supply 275,000
Processing Plants
Ocala
Capacity 200,000
400,000
Eustis
30 22
Orlando
600,000
55
300,000
Clermont
20 25
Leesburg
225,000
18
FORMULATION
min 21x11 50 x12 40 x13 35 x21 30 x22 22 x23 55 x31 20 x32 25 x33 s.t. x11 x12 x13 e 275K x21 x22 x23 e 400 K x31 x32 x33 e 300 K x11 x21 x31 e 200 K x12 x22 x32 e 600 K x13 x23 x33 e 225K xij u 0, i, j ! 1, 2,3
These problems are implemented more effectively in a matrix format in Chapter 3.
19
Supply 275,000
Groves
Mt. Dora
Capacity 200,000
400,000
Eustis
30 22
Orlando
600,000
55
300,000
Clermont
20 25
Leesburg
225,000
20
Oil or gas shipped through a leaky pipeline Imperfections in raw materials entering a production process Spoilage of food items during transit Theft during transit Interest or dividends on investments
21
22
Newsprint Pulp Source Recycling Process 1 Recycling Process 2 Demand Cost Yield $5 95% $6 90% 60 tons
$13
1
$12 90%
Mixed paper
+0
Recycling Process 1
95% $5
Newsprint pulp
+60
-50
$11
80% 95%
7
90%
$6 $8 90%
Packing paper pulp
$13
5
75%
+40
-30
85% $6
Recycling Process 2
95% 90%
$8 $7
6
$13 85%
+0
95%
+50
24
-40
Cardboard
$14
Minimize total cost. MIN: 13X15 + 12X16 + 11X25 + 13X26 + 9X35+ 10X36 + 13X45 + 14X46 + 5X57 + 6X58 + 8X59 + 6X67 + 8X68 + 7X69
25
Raw Materials
-X15 -X16 >= -70 -X25 -X26 >= -50 -X35 -X36 >= -30 -X45 -X46 >= -40
26
Recycling Processes
+0.9X15+0.8X25+0.95X35+0.75X45- X57- X58-X59 = 0 +0.85X16+0.85X26+0.9X36+0.85X46-X67-X68-X69 = 0
} node 5 } node 6
27
Paper Pulp
+0.95X57 + 0.90X67 >= 60 } node 7 +0.90X57 + 0.95X67 >= 40 } node 8 +0.90X57 + 0.95X67 >= 50 } node 9
28
29
30
Objective: To use a network model to assign companies to bus routes so that each route is covered at minimum cost and no company is assigned to more than two routes
31