OPERATIONS RESEARCH 1
SINTA R SULISTYO
SINTA.SULISTYO@UGM.AC.ID
[CLASS RULES]
COURSE INSTRUCTORS
▸ Email: sinta.sulistyo@ugm.ac.id
GRADING
Homework
5%
Quiz
15%
First-half Term
50%
Final Exam
30%
[CLASS RULES]
COURSE NOTES
▸ Password: Monteiro
MATERIALS
▸ Integer Programming
▸ Dynamic Programming
6
OPERATIONS RESEARCH 1
NETWORK MODELS
▸ Network representation is widely used in:
Production, distribution, project planning, facilities location, resource
management, financial planning, etc.
m for Seervada A
2 2 7
5 T
5 4
O B D
3 7
1
4 1
C E
4
[NETWORK OPTIMIZATION MODELS]
TERMINOLOGY OF NETWORKS
‣ A graph, or network, is defined by two sets of symbols: nodes and arcs.
‣ For arc (j, k), node j is the initial node and node k is the terminal node.
‣ A sequence of arcs such that every arc has exactly one vertex in common
with the previous arc is called a chain.
‣ A path is a chain in which the terminal node of each arc is identical to the
initial node of the next arc.
‣
[NETWORK OPTIMIZATION MODELS]
EXAMPLE
A chain, a path, or both?
‣ (1,2)-(2,3)-(4,3)
‣ (1,2)-(2,3)-(3,4)
[NETWORK OPTIMIZATION MODELS]
EXAMPLE
▸ L1 = 0
▸ L2 = min (L1+6) = 6
▸ L3 = min (L1+9) = 9
▸ Shortest path = 1 – 4 – 5 – 7
[NETWORK OPTIMIZATION MODELS]
EXERCISE
‣ A library must build shelving to shelve 200 4-inch high books, 100 8-inch high books, and
80 12-inch high books. Each book is 0.5 inch thick.
‣ The library has several ways to store the books. For example, an 8-inch high shelf may be
built to store all books of height less than or equal to 8 inches, and a 12-inch high shelf
may be built for the 12-inch books. Alternatively, a 12-inch high shelf might be built to
store all books.
‣ The library believes it costs $2,300 to build a shelf and that a cost of $5 per square inch is
incurred for book storage. (Assume that the area required to store a book is given by
height of storage area times book’s thickness.)
‣ Formulate and solve a shortest-path problem that could be used to help the library
determine how to shelve the books at minimum cost.
‣ (Hint: Have nodes 0, 4, 8, and 12, with Cij being the total cost of shelving all books of
height > i and ≤ j on a single shelf.)
MINIMUM SPANNING
TREE
[NETWORK OPTIMIZATION MODELS]
PROPERTIES A
T
O B D
‣ Which are spanning trees?
C E
(b)
A
2 2 T
5
■ FIGURE 9.5 4
O B D
Illustrations of the spanning
tree concept for the 7
Seervada Park problem: 4
(a) Not a spanning tree; C E
(b) not a spanning tree;
(c) a spanning tree. (c)
[NETWORK OPTIMIZATION MODELS]
EXAMPLE
MAXIMUM FLOW
PROBLEMS
[NETWORK OPTIMIZATION MODELS]
FEASIBLE SOLUTION
One solution (not optimal):
‣ 1 tram using O → B → C → E → T
‣ 1 tram using O → B → C → E → D → T
[NETWORK OPTIMIZATION MODELS]
‣ Objective: maximize the total amount of flow from the source to the sink.
A 3
0
1
0 T
5 0 0
7 4 9
O 0 B 0 D 0
2 5
4 0
9.7
0 1
esidual network 0
rvada Park 6
0 C E
low problem. 4 0
The number on an arc next to a node gives the residual capacity for flow from that node to
[NETWORK OPTIMIZATION MODELS]
4. Return to Step 1.
Several augmenting paths can be chosen. Its choice is important for the
efficiency of large-scale networks.
[NETWORK OPTIMIZATION MODELS]
EXAMPLE
Iteration 1:
RE 9.8 1 6
3 4
solution for the
a Park maximum flow C E
. 3
AUGMENTING PATH
This can be difficult, especially for large networks.
Procedure:
‣ Find all nodes that can be reached from the source along a single arc
with strictly positive residual capacity.
‣ For each reached node, find all new nodes from this node that can be
reached along an arc with strictly positive residual capacity.
‣ Repeat this successively with the new nodes as they are reached.
‣ Cut: any set of directed arcs containing at least one arc from
every directed path from the source to the sink.
‣ Cut value: sum of the arc capacities of the arcs (in the specified
direction) of the cut.
GURE 9.10 1
0 0
nimum cut for the
vada Park maximum flow 0 C E 6
lem. 4 0
[NETWORK OPTIMIZATION MODELS]
EXERCISE
MINIMUM COST FLOW
PROBLEM
[NETWORK OPTIMIZATION MODELS]
‣ Like the shortest-path problem, it considers a cost (or distance) for flow
through an arc.
The previous problems are all special cases of the minimum cost flow problem
[NETWORK OPTIMIZATION MODELS]
5. Flow through an arc is in the direction of the arrow. Maximum amount of flow given by
the capacity of the arc.
6. Network has enough arcs with sufficient capacity such that all flow generated at supply
nodes reaches the demand nodes.
7. Cost of flow through each arc is proportional to the amount of that flow.
8. Objective: minimize (maximize) the total cost (profit) of sending the available supply
through the network to satisfy the demand.
[NETWORK OPTIMIZATION MODELS]
MODEL FORMULATION
Consider a directed and connected network where the n nodes include at least one supply node and at
least one demand node
‣ xij= flow through arc i→j
The objective is to minimise the total cost of sending the available supply through the network to satisfy
the given demand
[NETWORK OPTIMIZATION MODELS]
MODEL FORMULATION
[NETWORK OPTIMIZATION MODELS]
EXAMPLE
THANK YOU