Professional Documents
Culture Documents
The general transportation problem is concerned (literally or figuratively) with distributing any
commodity from any group of supply centers, called sources, to any group of receiving centers, called
destinations, in such a way as to minimize the total distribution cost. The correspondence in
terminology between the prototype example and the general problem is summarized as
Units of a commodity
m sources
n destinations
Supply si from source i
Demand dj at destination j
Cost cij per unit distributed from source i to destination j
Mathematical model
Minimize
𝑚 𝑛
𝑍=∑ ∑ 𝑐𝑖𝑗 𝑥𝑖𝑗
𝑖=1 𝑗=1
Integer Programming 1
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
subject to
𝑛
∑ 𝑥𝑖𝑗 ≤ 𝑠𝑖
𝑗=1
𝑚
∑ 𝑥𝑖𝑗 ≥ 𝑑𝑗
𝑖=1
𝑥𝑖𝑗 ≥ 0
When the total supply is equal to the total demand then the transportation model is said to be balanced.
𝑚 𝑛
∑ 𝑠𝑖 = ∑ 𝑑𝑗
𝑖=1 𝑗=1
Example 1: Balanced transportation model. Consider the following problem with 2 factories and 3
warehouses:
Warehouse 1 Warehouse 2 Warehouse 3 Supply
Factory 1 𝑐11 𝑐12 𝑐13 20
Factory 2 𝑐21 𝑐21 𝑐23 10
Demand 7 10 13
Total supply
= 20+10=30
Example 2:
There are two cases in unbalanced transportation model to consider, namely excess demand and excess
supply.
Suppose the demand at warehouse 1 above is 9 units. Then the total supply and total demand are
unequal, and the problem is unbalanced.
Integer Programming 2
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
In this case it is not possible to satisfy all the demand at each destination simultaneously. We
reformulate the model as follows: since demand exceeds supply by 2 units, we introduce a dummy
source (i.e. a fictitious factory) which has a capacity of 2.
Since no shipping takes place, the unit transportation costs can be set to zero.
If there is a cost for storing , S, the surplus production then the unit transportation costs should
be set equal to the unit storage costs.
A balanced transportation problem has Total supply = Total demand which lead to balanced
transportation model has n + m − 1 independent constraint equations.
Integer Programming 3
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
W1 W2 W3 W4 Supply
F1 10 0 20 11 20
F2 12 7 9 20 25
F3 0 14 16 18 15
Demand 10 15 15 20
The north-west corner method generates an initial allocation according to the following procedure:
1. Allocate the maximum amount allowable by the supply and demand constraints to the variable
x11 (i.e. the cell in the top left corner of the transportation tableau).
2. If a column (or row) is satisfied, cross it out. The remaining decision variables in that column
(or row) are non-basic and are set equal to zero. If a row and column are satisfied
simultaneously, cross only one out (it does not matter which).
3. Adjust supply and demand for the non-crossed out rows and columns.
4. Allocate the maximum feasible amount to the first available non-crossed out element in the next
column (or row).
5. When exactly one row or column is left, all the remaining variables are basic and are assigned
the only feasible allocation.
Cost matrix
W1 W2 W3 W4 Supply
F1 10 0 20 11 20
F2 12 7 9 20 25
F3 0 14 16 18 15
Demand 10 15 15 20
Initial BF using north-west approach
W1 W2 W3 W4 Supply
F1 10 10 20
Integer Programming 4
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
F2 5 15 5 25
F3 15 15
Demand 10 15 15 20
Method 2: The Least-Cost Method
This method usually provides a better initial basic feasible solution than the north-west method since it
takes into account the cost variables in the problem.
1. Assign as much as possible to the cell with the smallest unit cost in the entire tableau. If there is
a tie then choose arbitrarily.
2. Cross out the row or column which has satisfied supply or demand. If a row and column are
both satisfied then cross out only one of them.
3. Adjust the supply and demand for those rows and columns which are not crossed out.
4. When exactly one row or column is left, all the remaining variables are basic and are assigned
the only feasible allocation.
Cost matrix
W1 W2 W3 W4 Supply
F1 10 0 20 11 20
F2 12 7 9 20 25
F3 0 14 16 18 15
Demand 10 15 15 20
Initial BF using least-cost approach
W1 W2 W3 W4 Supply
F1 15 5 20
F2 15 10 25
F3 10 5 15
Demand 10 15 15 20
For the balanced transportation problem, there are only n+m−1 basic variables.
Integer Programming 5
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
For each basic variable xij, the equation λi + μj = cij to find the value of λi or μj
For each non basic variable xij, the index sij = cij − λi − μj is computed. If all sij ≥ 0, the current
solution is the optimal solution. Otherwise, the current solution is not optimal
If the current solution is not optimal, choose the cell with the most negative value of sij as the
entering variable, as the cost will be reduced most by using this route.
Construct a closed loop that starts and ends at the entering variable and comprises successive
horizontal and vertical segments whose end points must be basic variables (except those
associated with the entering variable). It does not matter whether the loop is clockwise or
anticlockwise.
Test all the end points to see the maximum of quantity can be shift along the closed loop to the
cell of entering variable without constraint violation.
The departing variable is the cell corresponding with the end point which can shift maximum
quantity along the closed loop without constraint violation
Cost matrix
W1 W2 W3 W4 Supply
F1 10 0 20 11 20
F2 12 7 9 20 25
F3 0 14 16 18 15
Demand 10 15 15 20
Initial BF using north-west approach
Iteration 1
W1 W2 W3 W4 Supply λi
F1 10 10 20 0
F2 5 15 5 25 7
F3 15 15 5
Demand 10 15 15 20
μj 10 0 2 13
Using the equation λi + μj = cij for basic variables
Integer Programming 6
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
W1 W2 W3 W4 Supply λi
F1 0 0 18 -2 20 0
F2 -5 0 0 0 25 7
F3 -15 9 9 0 15 5
Demand 10 15 15 20
μj 10 0 2 13
Iteration 2
W1 W2 W3 W4 Supply λi
F1 5 15 20 0
F2 15 10 25 -8
F3 5 10 15 -10
Demand 10 15 15 20
μj 10 0 17 28
Using the equation λi + μj = cij for basic variables
W1 W2 W3 W4 Supply λi
F1 0 0 3 -17 20 0
F2 10 15 0 0 25 -8
F3 0 24 9 0 15 -10
Demand 10 15 15 20
Integer Programming 7
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
μj 10 0 17 28
Iteration 3:
W1 W2 W3 W4 Supply λi
F1 15 5 20 0
F2 15 10 25 9
F3 10 5 15 7
Demand 10 15 15 20
μj -7 0 0 11
Calculate the sij for each non basic variables
W1 W2 W3 W4 Supply λi
F1 17 0 20 0 20 0
F2 10 -2 0 0 25 9
F3 0 7 9 0 15 7
Demand 10 15 15 20
μj -7 0 0 11
Iteration 4
W1 W2 W3 W4 Supply λi
F1 5 15 20 0
F2 10 15 25 7
F3 10 5 15 7
Demand 10 15 15 20
μj -7 0 2 11
Calculate the sij for each non basic variables
W1 W2 W3 W4 Supply λi
F1 17 0 18 0 20 0
F2 12 0 0 3 25 9
Integer Programming 8
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
F3 0 7 7 0 15 7
Demand 10 15 15 20
μj -7 0 2 11
We stop here.
Integer Programming 9
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
Assigment
Question 1: For the transportation problem given by the following tableau, find an initial basic feasible
solution by the least-cost method and then find an optimal solution.
Question 2: For the transportation problem given by the following tableau, find an initial basic feasible
solution by the North-West corner method and then find an optimal solution.
Question 3: For the transportation problem given by the following tableau, find an initial basic feasible
solution by the North-West corner method and then find an optimal solution.
Question 4: Three refineries with maximum daily capacities of 6, 5, and 8 million gallons of oil supply
three distribution areas with daily demands of 4, 8 and 7 million gallons. Oil is transported to the three
distribution areas through a network of pipes. The transportation cost is 1 pence per 100 gallons per
mile. The mileage table below shows that refinery 1 is not connected to distribution area 3. Formulate
the problem as a transportation model and solve it. [Hint: Let the transportation cost for the non-
connected route be equal to some large value M say and then proceed as normal.]
Integer Programming 10
INTERNATIONAL UNIVERSITY (IU) Deterministic Models in Operation Research
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
Integer Programming 11