Network Optimization Problem
Irwin/McGraw-Hill
Distribution Unlimited Co. Problem
•
The Distribution Unlimited Co. has two factories producing a product that
needs to be shipped to two warehouses
–
–
–
–
Factory 1 produces 80 units.
Factory 2 produces 70 units.
Warehouse 1 needs 60 units.
Warehouse 2 needs 90 units.
•
There are rail links directly from Factory 1 to Warehouse 1 and Factory 2 to
Warehouse 2.
•
Independent truckers are available to ship up to 50 units from each factory to
the distribution center, and then 50 units from the distribution center to each
warehouse.
Question: How many units (truckloads) should be shipped along each
shipping lane?
6-2
The Distribution Network
80 units
produced
W1 60 units
needed
F1
DC
70 units
produced
F2
W2
90 units
needed
6-3
Data for Distribution Network
6-4
A Network Model
6-5
The Optimal Solution
[80]
[- 60]
(30)
F1
(50)
W1
(30)
[0]
DC
(30)
F2
[70]
(50)
(40)
W2
[- 90]
6-6
Terminology for Minimum-Cost Flow Problems
1. The model for any minimum-cost flow problem is represented by a network
with flow passing through it.
2. The circles in the network are called nodes.
3. Each node where the net amount of flow generated (outflow minus inflow) is a
fixed positive number is a supply node.
4. Each node where the net amount of flow generated is a fixed negative number
is a demand node.
5. Any node where the net amount of flow generated is fixed at zero is a
transshipment node. Having the amount of flow out of the node equal the
amount of flow into the node is referred to as conservation of flow.
6. The arrows in the network are called arcs.
7. The maximum amount of flow allowed through an arc is referred to as the
capacity of that arc.
6-7
Assumptions of a Minimum-Cost Flow Problem
1. At least one of the nodes is a supply node.
2. At least one of the other nodes is a demand node.
3. All the remaining nodes are transshipment nodes.
4. Flow through an arc is only allowed in the direction indicated by the
arrowhead, where the maximum amount of flow is given by the capacity of
that arc. (If flow can occur in both directions, this would be represented by a
pair of arcs pointing in opposite directions.)
5. The network has enough arcs with sufficient capacity to enable all the flow
generated at the supply nodes to reach all the demand nodes.
6. The cost of the flow through each arc is proportional to the amount of that
flow, where the cost per unit flow is known.
7. The objective is to minimize the total cost of sending the available supply
through the network to satisfy the given demand. (An alternative objective is
to maximize the total profit from doing this.)
6-8
Properties of Minimum-Cost Flow Problems
•
The Feasible Solutions Property: Under the previous assumptions, a
minimum-cost flow problem will have feasible solutions if and only if the sum
of the supplies from its supply nodes equals the sum of the demands at its
demand nodes.
•
The Integer Solutions Property: As long as all the supplies, demands, and
arc capacities have integer values, any minimum-cost flow problem with
feasible solutions is guaranteed to have an optimal solution with integer values
for all its flow quantities.
6-9
Spreadsheet Model
3
4
5
6
7
8
9
10
11
B
C
D
From
F1
F1
DC
DC
F2
F2
To
W1
DC
W1
W2
DC
W2
Ship
30
50
30
50
30
40
Total Cost
E
<=
<=
<=
<=
F
G
Capacity
Unit Cost
$700
$300
$200
$400
$400
$900
50
50
50
50
H
I
J
K
L
Nodes
F1
F2
DC
W1
W2
Net Flow
80
70
0
-60
-90
=
=
=
=
=
Supply/Demand
80
70
0
-60
-90
$110,000
J
3
4
5
6
7
8
Net Flow
=SUMIF(From,I4,Ship)-SUMIF(To,I4,Ship)
=SUMIF(From,I5,Ship)-SUMIF(To,I5,Ship)
=SUMIF(From,I6,Ship)-SUMIF(To,I6,Ship)
=SUMIF(From,I7,Ship)-SUMIF(To,I7,Ship)
=SUMIF(From,I8,Ship)-SUMIF(To,I8,Ship)
6-10
The SUMIF Function
•
The SUMIF formula can be used to simplify the node flow constraints.
=SUMIF(Range A, x, Range B)
•
For each quantity in (Range A) that equals x, SUMIF sums the corresponding
entries in (Range B).
•
The net outflow (flow out – flow in) from node x is then
=SUMIF(“From labels”, x, “Flow”) – SUMIF(“To labels”, x, “Flow”)
6-11
Typical Applications of Minimum-Cost Flow Problems
Kind of
Application
Supply
Nodes
Transshipment
Nodes
Demand
Nodes
Operation of a
distribution network
Sources of goods
Intermediate storage
facilities
Customers
Solid waste
management
Sources of solid
waste
Processing facilities
Landfill locations
Operation of a
supply network
Vendors
Intermediate
warehouses
Processing facilities
Coordinating product
Plants
mixes at plants
Production of a
specific product
Market for a specific
product
Cash flow
management
Short-term
investment options
Needs for cash at a
specific time
Sources of cash at a
specific time
6-12
The BMZ Maximum Flow Problem
•
The BMZ Company is a European manufacturer of luxury automobiles. Its
exports to the United States are particularly important.
•
BMZ cars are becoming especially popular in California, so it is particularly
important to keep the Los Angeles center well supplied with replacement parts
for repairing these cars.
•
BMZ needs to execute a plan quickly for shipping as much as possible from
the main factory in Stuttgart, Germany to the distribution center in Los
Angeles over the next month.
•
The limiting factor on how much can be shipped is the limited capacity of the
company’s distribution network.
Question: How many units should be sent through each shipping lane to
maximize the total units flowing from Stuttgart to Los Angeles?
6-13
The BMZ Distribution Network
[60 units max.]
RO Rotterdam
[50 units max.]
New York NY
[80 units max.]
New Orleans
LA
Los Angeles
[70 units max] NO
{40 units max.]
ST Stuttgart
[70 units max.]
Bordeaux
[40 units max.]
BO
[50 units max.]
LI
Lis bon
[30 units max.]
6-14
A Network Model for BMZ
RO
[60]
[50]
NY
[80]
[40]
BO
LA
[70]
ST
[50]
[70]
NO
[40]
[30]
LI
6-15
Spreadsheet Model for BMZ
3
4
5
6
7
8
9
10
11
12
13
14
B
C
D
From
Stuttgart
Stuttgart
Stuttgart
Rotterdam
Bordeaux
Bordeaux
Lisbon
New York
New Orleans
To
Rotterdam
Bordeaux
Lisbon
New York
New York
New Orleans
New Orleans
Los Angeles
Los Angeles
Ship
50
70
30
50
30
40
30
80
70
Maximum Flow
150
E
F
<=
<=
<=
<=
<=
<=
<=
<=
<=
Capacity
50
70
40
60
40
50
30
80
70
G
H
I
Nodes
Stuttgart
Rotterdam
Bordeaux
Lisbon
New York
New Orleans
Los Angeles
Net Flow
150
0
0
0
0
0
-150
J
K
Supply/Demand
=
=
=
=
=
0
0
0
0
0
6-16
Assumptions of Maximum Flow Problems
1. All flow through the network originates at one node, called the source, and
terminates at one other node, called the sink. (The source and sink in the BMZ
problem are the factory and the distribution center, respectively.)
2. All the remaining nodes are transshipment nodes.
3. Flow through an arc is only allowed in the direction indicated by the
arrowhead, where the maximum amount of flow is given by the capacity of
that arc. At the source, all arcs point away from the node. At the sink, all arcs
point into the node.
4. The objective is to maximize the total amount of flow from the source to the
sink. This amount is measured in either of two equivalent ways, namely, either
the amount leaving the source or the amount entering the sink.
6-17
BMZ with Multiple Supply and Demand Points
•
BMZ has a second, smaller factory in Berlin.
•
The distribution center in Seattle has the capability of supplying parts to the
customers of the distribution center in Los Angeles when shortages occur at
the latter center.
Question: How many units should be sent through each shipping lane to
maximize the total units flowing from Stuttgart and Berlin to Los Angeles
and Seattle?
6-18
Network Model for The Expanded BMZ Problem
HA
[40]
[60]
BN
[30]
[20]
RO
SE
[40]
BE
[60]
[10]
LA
[20]
[50]
NY
[40]
[80]
BO
[70]
ST
[50]
[70]
NO
[40]
[30]
LI
6-19
Spreadsheet Model
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
B
C
D
From
Stuttgart
Stuttgart
Stuttgart
Berlin
Berlin
Rotterdam
Bordeaux
Bordeaux
Lisbon
Hamburg
Hamburg
New Orleans
New York
New York
Boston
Boston
To
Rotterdam
Bordeaux
Lisbon
Rotterdam
Hamburg
New York
New York
New Orleans
New Orleans
New York
Boston
Los Angeles
Los Angeles
Seattle
Los Angeles
Seattle
Ship
40
70
30
20
60
60
30
40
30
30
30
70
80
40
10
20
Maximum Flow
220
E
F
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
<=
Capacity
50
70
40
20
60
60
40
50
30
30
40
70
80
40
10
20
G
H
I
Nodes
Stuttgart
Berlin
Hamburg
Rotterdam
Bordeaux
Lisbon
Boston
New York
New Orleans
Los Angeles
Seattle
Net Flow
140
80
0
0
0
0
0
0
0
-160
-60
J
K
Supply/Demand
=
=
=
=
=
=
=
0
0
0
0
0
0
0
6-20
© Copyright 2026 Paperzz