CHAPTER 4 - Network Models
CHAPTER 4 - Network Models
LEARNING OBJECTIVES
At the end of the lessons, students are expected to:
1. formulate network models;
2. analyze and solve shortest path problems;
3. analyze and solve traveling salesperson problems;
4. analyze and solve network problems using minimal spanning tree; and
5. analyze and solve maximum flow problems.
Network Models
A few issues can be described graphically as a network (the set of nodes and arcs). Typical
circumstance is a transportation network: cities (nodes) are connected with one another by roads
(arcs). If we assess the network (in this case we are interested e.g. in distances between all the
cities), the undertaking is often to locate the minimal distance from one city to all other cities.
Some types of networks may be evaluated by capacities rather than distances and afterward the
problem of maximal flow can be solved. In numerous issues, solved with utilization of the network
models, the most significant value is unit cost and the objective is to find the minimal total cost
The network model describes conformations of flow in a connected system in which the
flow can include material, people, funds, and so on. These configurations are appropriately
described with flow diagrams that support in the development of effective spreadsheet models.
The opportunity of undertaking some of the model building with a diagram makes network models
a special category of linear programs.
i i
Fig. 3.1 Undirected and Directed Arc
The path in Figure 3.2 is an open path, since it starts and ends in different nodes. If the
path starts and ends in the same node (closed path) it is termed a circuit (cycle).
If there is a path connecting every pair of nodes in the network, it is called connected.
The network shown above is connected. If we removed the arcs (1, 2) and (1, 3), there would
no longer have the connected network.
The connected network without any circuit is called a tree. If we denote the total number
of nodes in the network as n it is evident that the tree involving all nodes must contain exactly
(n – 1) arcs. If we add any arc to the tree, the circuit will appear.
A spanning tree is a tree including all the nodes from the original network. The tree
shown in Figure 3.4 is an example of spanning tree. Removing of any arc from the spanning
tree changes the tree into unconnected network.
In real situation the network is evaluated. The values can be added to nodes or/and to arcs
and can represent time, distance, cost, capacity, etc. In the following section, several examples
of network problems are described.
3.2 Basic Network Applications
Before describing the frequent applications of network theory - project management we
mention some simple circumstances where the network representation is effectively utilized.
However, it is not possible to describe all the methods used for solving problems and we will
concentrate just on some simpler methods.
Example 3.1
In Figure 3.5 there is an example with 6 cities. Direct distances between the cities are in
kilometers. The goal is to run from the city 1 to the city 6 through shortest path. It is easy to locate
the path across the cities 2 and 3. The length of the shortest path is 40 km.
The issue can be conveyed as finding the shortest paths not only from one origin to one
destination, but from each node to all the other nodes (Table 3.1). Because the network is
undirected the matrix of shortest paths is symmetric (e.g. the length of the path from 1 to 6
equals the length of the path from 6 to 1).
To 1 2 3 4 5 6
From
1 0 14 24 26 32 40
2 14 0 10 12 18 26
3 24 10 0 15 28 16
4 26 12 15 0 23 15
5 32 18 28 23 0 30
6 40 26 16 15 30 0
Example 3.2
A salesperson has to visit a specified group of cities and come back to the origin (home
city). This tour should be as short as possible in terms of the total distance. In Figure 3.6 such a
tour (circuit) is displayed (it crosses the nodes 1, 2, 5, 4, 6, 3, 1). The optimal total distance is
111km.
To 1 2 3 4 5 6
From
1 - 14 25 - - -
2 14 - 10 12 18 -
3 25 10 - 15 - 16
4 - 12 15 - 23 15
5 - 18 - 23 - 30
6 - - 16 15 30 -
To 1 2 3 4 5 6
From
1 - 14 25 - - -
2 14 - 10 12 18 -
3 25 10 - 15 - 16
4 - 12 15 - 23 15
5 - 18 - 23 - 30
6 - - 16 15 30 -
Solution
1. In the first step we find two arcs with minimal distances. These are the arcs (8, 10) and
(3, 5) with direct distances 35 and 40 meters (Figure 3.9).
Fig. 3.9 First Step – Finding Two Arcs with Minimal Lengths
2. In the second step we need to find for another arc (from the set of all the
remaining arcs in the network) with the minimal distance. This arc is added into the set of
the arcs selected before. We must note the relevant rule that no circuit can happen after
adding a new arc. If the circuit appeared we would ignore this arc in the searching process
Fig. 3.10 Second Step – Adding a New Arc
To find a maximal quantity of gas, fluid, traffic, information, people and so on that can
be transported through a capacitated network is the objective. This network comprises two
relevant nodes – a starting node called the source and a terminal node called the sink. However
in directed networks the movement must note the orientation of the arcs (movement in the
reverse direction is restricted), in undirected networks movement in both directions is allowed.
The maximum flow problems include finding a feasible flow through a flow network that
acquires the maximum possible flow rate. The maximum flow problem can be seen as a special
case of more complex network flow problems, such as the circulation problem.
There are five relevant rules that must be considered during the construction of the
mathematical model:
1. The quantity flowing through an arc must be less than or equal to the capacity of that
arc.
2. For every node, except the source and the sink, the quantity flowing out of a node is
equal to the quantity flowing into it.
3. Total quantity flowing into the source is zero.
4. Total quantity flowing out of the sink is zero.
5. Total quantities flowing out of the source and into the sink are equal.
Example 3.4
The board of White Lake City, which is located on the edge of a small lake, solves the
problem of minimizing disruptive effects of possible flood. One of solutions is to rebuild the
system of drains that would pump the water out of the lake into great reservoir. Since there are
two alternatives of a drain system, the city board must decide which of them will be used.
The objective is to maximize the quantity of water being pumped in one hour. In
both networks (Figures 3.12 and 3.13) the capacities of all the drains (in cubic meters per
hour) are known.
Optimal Solution
If the city used the first alternative “Northern Channel”, it would allow to pump
maximally 1930 cubic meters per hour. Figure 3.14 displays for each drain the quantity
of water and the direction in which the water will be flowing. Capacity of some drains is
not saturated (e.g. (1, 2) or (6, 7)); some drains are not used at all ((2, 3), (3, 4) and (7,
8)).
Note: A maximum flow problem has usually multiple optimal solutions. Using
other algorithms could lead to another solution with the maximal flow 1930 cubic meters
per hour, however with a different structure of individual flows.
In Figure 3.15 you can find the optimal solution for the second alternative
“Southern Channel”. Since the maximum flow equals 2270 cubic meters per hour, the
city board should prefer this alternative to protect the White Lake City from the possible
flood.
ACTIVITIES
1. Ships are available at three ports of origin and need to be sent to four ports of destination.
The number of ships available at each origin, the number required at each destination, and
the sailing times are given in the tableau below.
2. A distributing company has two major customers and three supply sources. The
corresponding unit from each supply center to each customer is given in the following
table, together with the total customer requirements and supply availabilities.
3. Consider the following transshipment problem where goods are shipped from two plants
to either a warehouse or two distribution centers and then on to the two end markets.
The production rates in units per month are 250 and 450 for plants 1 and 2, respectively.
The demands of the two markets occur at rates 200 and 500 units per month. The costs of
shipping one unit over a particular route is shown adjacent to the appropriate arc in the
network.
a) Redraw the above transshipment network as a network consisting of only origins
and destinations, by replacing all intermediate nodes by two nodes, an origin and
destination, connected by an arc, from the destination back to the origin, whose
cost is zero.
b) The network in (a) is a transportation problem except that a backwards arc, with
flow xii, from newly created destination i to its corresponding newly created
source, is required. Convert this to a transportation network by substituting x 0 ii =
B − xii. How do you choose a value for the constant B?
c) Certain arcs are inadmissible in the original transshipment formulation; how can
these be handled in the reformulated transportation problem?
d) Interpret the linear-programming tableau of the original transshipment network and
that of the reformulated transportation network.
e) Can any transshipment problem be transformed into an equivalent transportation
problem?
References
Baker, K. (2011). Linear Programming: Network Models. Retrieved from
https://onlinelibrary.wiley.com/doi/10.1002/9780470949108.ch3#:~:text=The%20networ
k%20model%20describes%20configurations,%2C%20funds%2C%20and%20so%20on.
&text=The%20possibility%20of%20doing%20some,special%20category%20of%20linea
r%20programs.
Fabry, J. (2003). Management Science. University of Economics Prague.
Fourer, R. (2003). Network Linear Programs. Retrieved from
https://ampl.com/BOOK/CHAPTERS/18-network.pdf
Network Models. Retrieved from http://web.mit.edu/15.053/www/AMP-Chapter-08.pdf