chapter 5 Transportation and Assignment Problems
chapter 5 Transportation and Assignment Problems
Transportation Problems
The transportation problem is a special type of linear program that
arises in planning the distribution of goods and services from several
supply points to several demand locations.
- Transportation problem involve determining how to optimally
(minimum shipping cost) transport goods from the sources to
destinations.
- Usually we are given the capacity of goods at each source and the
requirements at each destination
- Typically the objective is to minimize total transportation and production
costs
- The transportation model can also be optimally solved by Linear
Programming.
The LP Formulation
Warehouse
Factory A B C D Supply
1 4 7 7 1 100
2 12 3 8 8 200 Total
3 8 10 16 5 150 Supply
Demand 80 90 120 160 450
Total Demand 450
let x be the quantity shipped from factory i to warehouse j
i, j
minimize 4x1,A 7 x1,B 7 x1,C 1x1,D
12x2,A 3x2,B 8x2,C 8x2,D
8x3,A 10x3,B 16x3,C 5x3,D
The LP Formulation
. Supply Constraints (rows)
subject to x1,A x1,B x1,C x1,D 100
x2,A x2,B x2,C x2,D 200
x3,A x3,B x3,C x3,D 150
. Demand Constraints (columns)
subject to x1,A x2,A x3,A 80
x1,B x2,B x3,B 90
x1,C x2,C x3,C 120
x1,D x2,D x3,D 160
• Consider the case given below. There are sources (Albuquerque,
Boston and Cleveland) and there are destinations (Des Moines
Evansville and Fort Lauderdale) with costs, and constraints for
capacity and demand.
As a result, we can minimize the total project cost (normal costs plus
crashing costs) by minimizing the crashing costs. Thus, the linear
programming objective function becomes
8 4 3
Evansville 300
Fort 9 7 5
300
Lauderdale
Demand 300 200 200 700
Step1 Start from the left hand side top corner or cell and make
allocations depending on the availability and requirement
constraint.
Step 2 By satisfying availability and requirement constraints fill
the other cells.
Z=1005 + 2008+1004+1007+2005=500+1600+400+700+1000=4200 $
Initial Solution with LEAST COST method
Identify the lowest cost cell in the given matrix. In this particular
Z=3009+2004+1003+1003=2700+800+300+300=4100 $
Initial Solution with Vogel’s Approximation Method
(VAM)
• Step 1: For each row and column find the difference
between the two lowest unit shipping costs.
Step 2
Assign as many units as possible to the lowest-cost square in
the row and column selected.
Step 3
Eliminate the column or row that has been satisfied.
Z= 1005+2004+1003+2009+1005=500+800+300+1800+500=3900 $
STEPPING STONE METHOD of optimality test
Z=1005 + 1008+2004+1009+2005=500+800+800+900+1000=4000 $
The solution obtained may or may not be optimal. To check we return to first step to check the unused squares,
An improvement can be done by allocating to EC, since the minimum number in the
square is 100; we allocate 100 to EC square.
Z=1005 +
2009+2004+1003+1005=500+1800+800+300+500=3900 $
We
D towill
B check
I the+DB-DA+FA-FC+EC-EB
Improvement index in each +2
+4-5+9-5+3-4 cell again.
DB
D to C IDC +DC-DA+FA-FC +3-5+9-5 +2
E to A IEC +EA-FA+FC-EC +8-9+5-3 +1
F to B IFB +FB-EB+EC-FC +7-4+3-5 +1
In the table, no more negative improvement index, so the solution is optimal.
Example
A company has three factories X, Y, and Z and three warehouses A, B, and C. It
is required to schedule factory production and shipments from factories to
warehouses in such a manner so as to minimize total cost of shipment and
production. Unit variable manufacturing cost (UVMC) and factory capacities and
warehouse requirements are given below:
From / To A B C Capacity
10 4 11
70
X
12 5 8
50
Y
9 7 6
30
Z
Demand 40 50 60 150
4 2 8
Zenica 200
6 3 10
Tuzla 150
Three repair person Adams, Brown and Cooper are tried to be assigned to repair a radio(1), a tooster oven (2) and a broken coffee
table(3) by the owner of the repair shop. The owner of the shop try to minimize the cost of assignment.
Step1. Subtract the smallest element in each row from the other elements of the row.
PROJECT PROJECT
PERSON 1 2 3 1 2 3
Adams 11 14 6 ...subtract 6 5 8 0
Brown 8 10 11 ...subtract 8 0 2 3
Cooper 9 12 7 ...subtract 7 2 5 0
Step3. Draw minimum number of lines to cover the zeros. If the lines drawn are equal to the number of rows or columns
(because of square matrix), we can make assignment.
PROJECT
1 2 3
5 6 0
Number of lines is 2 which is less than number of rows or column. So solution is not
0 0 3
optimum.
2 3 0
Step4. If the lines drawn are less than the number of rows or columns,
then we cannot make assignment. Hence the following procedure is to be
followed:
- The cells covered by the lines are known as Covered cells.
- The cells, which are not covered by lines, are known as uncovered
cells.
- The cells at the intersection of horizontal line and vertical lines are
known as Crossed cells.
(b) Once again cover all the zeros by minimum number of horizontal
and vertical lines.
(c) Once the lines drawn are equal to the number of rows or columns,
assignment can be made.
Step 1: Create a Cost Matrix:
Formulate a cost matrix representing the costs or benefits associated with each
task-agent pair. Ensure that the matrix is square.
Step 2: Subtract Row and Column Minima:
For each row, find the minimum element and subtract it from every element in
that row. Next, do the same for each column. This step is aimed at creating as
many zeros as possible in the matrix.
Step 3: Cover Zeros with Minimum Number of Lines:
Cover the zeros with the minimum number of horizontal and vertical lines. If
the number of lines is equal to the matrix size, an optimal solution has been
reached. If not, proceed to the next step.
Step 4: Identify the Smallest Uncovered Element:
Identify the smallest element that is not covered by any line. This element is
referred to as the minimum uncovered element (MUE).
Step 5: Adjust Matrix Elements:
Subtract the MUE from the uncovered elements and add it to the elements that
are at the intersection of two lines. This step modifies the matrix to continue the
process of finding zeros and covering lines.
Step 6: Repeat Until Optimality is Achieved:
Repeat steps 3 to 5 until an optimal assignment is achieved, which is when the
number of lines covering zeros equals the matrix size.
Example
Decision Variables
✦ Powerco must determine how much power is sent from
each plant to each city so xij = Amount of electricity
produced at plant i and sent to city j
x14 = Amount of electricity produced at plant 1 and
sent to city 4
Constraints
✦ A supply constraint ensures that the total quality
produced does not exceed plant capacity. Each plant is a
supply point.
✦ A demand constraint ensures that a location receives its
demand. Each city is a demand point.
✦ Since a negative amount of electricity can not be shipped
all xij’s must be non negative
Ex. 1 - continued
A transportation problem is specified by the supply, the
demand, and the shipping costs. Relevant data can be
summarized in a transportation tableau.
From To
Demand (Million 45 20 30 30
kwh)
Ex. 1 – Solution continued
LP Formulation of Powerco’s Problem
Min Z = 8x11+6x12+10x13+9x14+9x21+12x22+13x23+7x24
+14x31+9x32+16x33+5x34
Machine 1 14 5 8 7
Machine 2 2 12 6 5
Machine 3 7 8 3 9
Machine 4 2 4 6 10