Professional Documents
Culture Documents
W7 - Transportation Problem
W7 - Transportation Problem
While trying to find the best way, generally a variable cost of shipping
the product from one supply point to a demand point or a similar
constraint should be taken into consideration.
Transportation Problem Generalization
(1/5)
• In general, a transportation problem is specified by the following
information:
o A set of 𝑚 supply points from which a good is shipped. Supply point
𝑖 can supply at most 𝑠𝑖 units.
o A set of 𝑛 demand points to which the good is shipped. Demand
point 𝑗 must receive at least 𝑑𝑖 units of the shipped good.
o Each unit produced at supply point 𝑖 and shipped to demand point
𝑗 incurs a variable cost of 𝑐𝑖𝑗.
Transportation Problem Generalization
(2/5)
• 𝑥𝑖𝑗 = number of units shipped from supply point 𝑖 to demand point 𝑗
i=m j =n
mincijXij
i=1 j =1
j =n
s.t.Xij si(i =1,2,...,m)
j =1
i=m
X d ( j =1,2,...,n)
i=1
ij j
Min 𝑧 = 8𝑥11 + 6𝑥12 + 10𝑥13 + 9𝑥14 + 9𝑥21 + 12𝑥22 + 13𝑥23 + 7𝑥24 + 14𝑥31 + 9𝑥32 + 16𝑥33 + 5𝑥34
Subject to:
𝑥11 + 𝑥12 + 𝑥13 + 𝑥14 ≤ 35 (Plant 1 supply constraint)
𝑥21 + 𝑥22 + 𝑥23 + 𝑥24 ≤ 50 (Plant 2 supply constraint)
𝑥31 + 𝑥32 + 𝑥33 + 𝑥34 ≤ 40 (Plant 3 supply constraint)
𝑥11 + 𝑥21 + 𝑥31 ≤ 45 (City 1 demand constraint)
𝑥12 + 𝑥22 + 𝑥32 ≤ 20 (City 2 demand constraint)
𝑥13 + 𝑥23 + 𝑥33 ≤ 30 (City 3 demand constraint)
𝑥14 + 𝑥24 + 𝑥34 ≤ 30 (City 4 demand constraint)
𝑥𝑖𝑗 ≥ 0 (𝑖 = 1,2,3; 𝑗 = 1,2,3,4)
Example 2 (4/5)
Powerco Formulation
• Tableau Representation of Powerco Problem
Example 2 (5/5)
Powerco Formulation
Exercise 1 (1/3)
The Childfair Company
The Childfair Company has three plants producing child push chairs
that are to be shipped to four distribution centers. Plants 1, 2, and 3
produce 12, 17, and 11 shipments per month, respectively.
Each distribution center needs to receive 10 shipments per month. The
distance from each plant to the respective distributing centers is given
below:
Exercise 1 (2/3)
The Childfair Company
The freight cost for each shipment is $100 plus 50 cents per mile. How
much should be shipped from each plant to each of the distribution
centers to minimize the total shipping cost?
Formulate this problem as a transportation problem by constructing the
appropriate parameter Table!
Exercise 1 (3/3)
The Childfair Company
Unit Cost ($)
1 2 3 4 Supply
s =d
i=1
i
j=1
j
then total supply equals to total demand, the problem is said to be a balanced
transportation problem.
• If total supply exceeds total demand, we can balance the problem by adding
dummy demand point. Since shipments to the dummy demand point are not
real, they are assigned a cost of zero.
• If a transportation problem has a total supply that is strictly less than total
demand the problem has no feasible solution.
o No doubt that in such a case one or more of the demand will be left unmet.
o Generally in such situations a penalty cost is often associated with unmet
demand and as one can guess the total penalty cost is desired to be
minimum.
Balancing a Transportation Problem
If Total Supply Exceeds Total Demand (1/2)
• If total supply exceeds total demand, we can balance a
transportation problem by creating a dummy demand point that has a
demand equal to the amount of excess supply.
• Because shipments to the dummy demand point are not real
shipments, they are assigned a cost of zero.
o Shipments to the dummy demand point indicate unused supply
capacity.
Balancing a Transportation Problem
If Total Supply Exceeds Total Demand (2/2)
• Suppose that in the Powerco
problem, the demand for city 1
were reduced to 40 million kwh.
• To balance the Powerco
problem, we would add a
dummy demand point (point 5)
with a demand of 125 − 120 = 5
million kwh
• From each plant, the cost of
shipping 1 million kwh to the
dummy is 0.
Balancing a Transportation Problem
If Total Supply Is Less Than Total Demand (1/6)
• If a transportation problem has a total supply that is strictly less than
total demand, then the problem has no feasible solution.
• When total supply is less than total demand, it is sometimes desirable
to allow the possibility of leaving some demand unmet. In such a
situation, a penalty is often associated with unmet demand.
• We can balance a transportation problem by creating a dummy
supply point that has a supply equal to the amount of excess demand.
• The cost of shipping from the dummy supply point is just the supply
shortage cost to the corresponding demand point.
Balancing a Transportation Problem
If Total Supply Is Less Than Total Demand (2/6)
Case Example:
• Two reservoirs are available to supply the water needs of three cities.
• Each reservoir can supply up to 50 million gallons of water per day.
Each city would like to receive 40 million gallons per day.
• For each million gallons per day of unmet demand, there is a penalty.
At city 1, the penalty is $20; at city 2, the penalty is $22; and at city 3,
the penalty is $23.
Balancing a Transportation Problem
If Total Supply Is Less Than Total Demand (3/6)
• The cost of transporting 1 million gallons of water from each reservoir
to each city is shown in following Table.
Dick 3 2.7 0 5
Source
Harry 2.9 2.8 0 4
Demand 3 4 2
Modelling for an Unused Source
• In some cases, there are source point that are unused or
intended not be used to meet a demand point.
• We can assign a very large cost of 𝑀 to ensure there are no
sources used for that demand point.
Exercise 3 (1/3)
The Versatech Corporation
The Versatech Corporation has decided to produce three new products.
Five branch plants now have excess product capacity.
The unit manufacturing cost of the first product would be $31, $29, $32,
$28, and $29 in Plants 1, 2, 3, 4, and 5, respectively.
The unit manufacturing cost of the second product would be $45, $41,
$46, $42, and $43 in Plants 1, 2, 3, 4, and 5, respectively.
The unit manufacturing cost of the third product would be $38, $35, and
$40 in Plants 1, 2, and 3, respectively, whereas Plants 4 and 5 do not
have the capability for producing this product.
Exercise 3 (2/3)
The Versatech Corporation
Sales forecasts indicate that 600, 1,000, and 800 units of products 1, 2,
and 3, respectively, should be produced per day. Plants 1, 2, 3, 4, and 5
have the capacity to produce 400, 600, 400, 600, and 1,000 units daily,
respectively, regardless of the product or combination of products
involved. Assume that any plant having the capability and capacity to
produce them can produce any combination of the products in any
quantity.
Formulate this problem as a transportation problem by constructing the
appropriate parameter table!
Exercise 3 (3/3)
The Versatech Corporation
Unit Cost ($)
Product
1 2 3 Dummy Supply
1 31 45 38 0 400
2 29 41 45 0 600
Source 32 46 40 0 400
3
(Plant)
4 28 42 𝑀 0 600
5 29 43 𝑀 0 1000
7 3 3
5 4 6 10 6
7 5
North-West Corner Method (4/4)
• The value of Z for this solution is
𝑧 = 5 2 + 7 2 + 3 1 + 5 8 + 4 4 + 6 6 = 97
• The Northwest Corner Method can provide a quick and easy way
of obtaining BFS. However, it may lead to a high initial cost since it
does not consider shipping costs when determining BFS.
• Another method of finding BFS, the Minimum Cost Method,
considers shipping costs in to determine a bfs that has a lower cost.
Minimum Cost Method (1/3)
• To begin the minimum-cost method, find the variable with the smallest
shipping cost (call it xij). Then assign xij its largest possible value, min{si,dj}.
• As in the northwest corner method, cross out row i or column j and reduce
the supply or demand of the non crossed-out row or column by the value
of xij.
• Then choose from the cells that do not lie in a crossed-out row or column
the cell with the minimum shipping cost and repeat the procedure.
Continue until there is only one cell that can be chosen. In this case, cross
out both the cell’s row and column.
• Remember that (with the exception of the last variable) if a variable
satisfies both a supply and demand constraint, only cross out a row or
column, not both.
Minimum Cost Method (2/3)
Consider the same transportation problem:
Using the Minimum Cost
Method, the initial BFS
5 may yield a lower initial
cost compared to
Northwest Corner
2 8 2 Method:
𝑧=5 2 +2 2 +8 1 +5 3
10 6 +4 4 + 6 6
5 4 6
= 89
10
5
Minimum Cost Method (3/3)
• Because the minimum-cost method chooses variables with small
shipping costs to be basic variables, you might think that this method
would always yield a bfs with a relatively low total shipping cost.
• The following problem shows how the minimum-cost method can be
fooled into choosing a relatively high-cost bfs.
Vogel’s Method
• Vogel’s method for finding a bfs usually avoids extremely high
shipping costs.
• To find the bfs by the Vogel’s method:
o Begin with computing each row and column a penalty. The penalty will be
equal to the difference between the two smallest shipping costs in the row or
column.
o Identify the row or column with the largest penalty.
o Find the first basic variable which has the smallest shipping cost in that row or
column.
o Assign the highest possible value to that variable, and cross-out the row or
column as in the previous methods.
o Compute new penalties and use the same procedure.
Vogel’s Method
• Example: Use Vogel’s Method to find bfs for the following
transportation problem:
Vogel’s Method
• Iteration 1
5 5
Vogel’s Method
• Iteration 2
5
Vogel’s Method
• Iteration 3
15
Vogel’s Method
Initial BFS
0 + 10 = 10 10 − 10 = 0
The Transportation Simplex Method
From the preceding steps, we can summarize the transportation simplex
method:
Step 1 If the problem is unbalanced, balance it.
Step 2 Find the initial BFS.
Step 3 For minimization problem, if 𝑢𝑖 + 𝑣𝑗 − 𝑐𝑖𝑗 ≤ 0 for all non-basic
variables, then the current bfs is optimal. If this is not the case, then we
enter the variable with the most positive 𝑢𝑖 + 𝑣𝑗 − 𝑐𝑖𝑗 into the basis
using the pivoting procedure.
For maximization problem, if 𝑢𝑖 + 𝑣𝑗 − 𝑐𝑖𝑗 ≥ 0 for all non-basic
variables, then the current bfs is optimal. If this is not the case, then we
enter the variable with the most negative 𝑢𝑖 + 𝑣𝑗 − 𝑐𝑖𝑗 into the basis.
Step 4 Perform the pivoting procedure. This yields a new bfs.
Step 5 Using the new bfs, return to steps 3 and 4.
Assignment (1/2)
Use the Transportation Simplex Method to find the optimal solution for the
PowerCo problem.
Use North West Corner Method, Minimum Cost Method, and Vogel’s
method to find the BFS and perform the Transportation Simplex Method
for each separately.
Assignment (2/2)
Instruction:
• This is an individual assignment.
• Write your answer on A4 paper(s).
• You may use multiple sheets for 1 problem. Use different paper set for each problem.
• Pencils are not allowed.
• Late turn-ins are allowed. However you will be penalized 1 point for each late
minute.
• Submit your answer as a .pdf file. You may submit as an image file (.jpg, .jpeg, .png,
.gif, etc.) but make sure the quality of the picture so that your handwriting is clear.
• Unclear/blurry handwriting will be penalized 5 points.
• Submit each problem as different files.
• Solution to a problem with more than 1 page should be merged into 1 file.
• Use the following file naming format: LP-A7-[your NPM]-[your name]-[Initial BFS
Method].pdf
• Example: LP-A7-1706990174-Teuku Naraski Zahari-NWC