Transportation Problem
Transportation Problem
PROBLEM
THE TRANSPORTATION
PROBLEM
To find the most economical way of allocating 𝑚𝑚 sources to 𝑛𝑛
destinations, given:
• Capacity of each source;
• Demand of each destination;
• Transportation cost to ship one unit from a source to a destination.
Input to transportation problem:
Demand of each
destination
Since the cost of shipping is significant, the company wants to minimize the
transportation cost. Given the data, determine the optimal shipping plan to
minimize the total shipping cost.
A TYPICAL TRANSPORTATION
PROBLEM
Destination A Destination B Destination C Production
Source 1 $8/unit $9/unit $4/unit 72 units
Source 2 $5/unit $6/unit $8/unit 38 units
Source 3 $7/unit $9/unit $6/unit 46 units
Source 4 $5/unit $3/unit $7/unit 19 units
Demand 110 units 34 units 31 units 175 Total demand
Total production = EQUAL
BALANCED / UNBALANCED
TRANSPORTATION PROBLEM
Prototype Example
One of the main products of the P & T COMPANY is canned peas. The
peas are prepared at three canneries (near Bellingham, Washington;
Eugene, Oregon; and Albert Lea, Minnesota) and then shipped by truck
to four distributing warehouses in the western United States
(Sacramento, California; Salt Lake City, Utah; Rapid City, South Dakota;
and Albuquerque, New Mexico). Because the shipping costs are a major
expense, management is initiating a study to reduce them as much as
possible. For the upcoming season, an estimate has been made of the
output from each cannery, and each warehouse has been allocated a
certain amount from the total supply of peas. This information (in units
of truckloads), along with the shipping cost per truckload for each
cannery-warehouse combination, is given in Table. Thus, there are a total
of 300 truckloads to be shipped. The problem now is to determine which
plan for assigning these shipments to the various cannery-warehouse
combinations would minimize the total shipping cost.
• 3 plants
• 4 warehouses
• Objective is to determine a minimum cost shipping plan that meets the production
and allocation requirements
75 P1
W2 - 65
125 P2
W3 - 70
100 P3
W4 - 85
Formulate the problem as a linear program.
VISUAL REPRESENTATION
• Decision variables
𝒙𝒙𝒊𝒊𝒊𝒊 : Number number of truckloads to be shipped from cannery 𝒊𝒊 to warehouse 𝒋𝒋
• Constraints
• Production constraint at each plant
• Allocation constraint at each warehouse
• Non-negativity constraints for the number of truckloads to be shipped
• Objective function
To minimize the total shipping cost (𝒁𝒁)
FORMULATION
LINEAR PROGRAMMING FORMULATION
Minimize 𝑍𝑍 = 464𝑥𝑥11 + 513𝑥𝑥12 + 654𝑥𝑥13 + 867𝑥𝑥14 + 352𝑥𝑥21 + 416𝑥𝑥22 +
690𝑥𝑥23 + 791𝑥𝑥24 + 995𝑥𝑥31 + 682𝑥𝑥32 + 388𝑥𝑥33 + 685𝑥𝑥34
𝑠𝑠. 𝑡𝑡.
𝑥𝑥11 + 𝑥𝑥12 + 𝑥𝑥13 + 𝑥𝑥14 = 75 Production
𝑥𝑥21 + 𝑥𝑥22 + 𝑥𝑥23 + 𝑥𝑥24 = 125 Constraints
𝑥𝑥31 + 𝑥𝑥32 + 𝑥𝑥33 + 𝑥𝑥34 = 100
𝑥𝑥11 + 𝑥𝑥21 + 𝑥𝑥31 = 80
𝑥𝑥12 + 𝑥𝑥22 + 𝑥𝑥32 = 65 Allocation
𝑥𝑥13 + 𝑥𝑥23 + 𝑥𝑥33 = 70 constraints
𝑥𝑥14 + 𝑥𝑥24 + 𝑥𝑥34 = 85
𝑥𝑥𝑖𝑖𝑖𝑖 ≥ 0, 𝑖𝑖 = 1,2,3; 𝑗𝑗 = 1,2,3,4 Non-negativity constraints
Integer solutions property: For transportation problems where every 𝑎𝑎𝑖𝑖 /𝑠𝑠𝑖𝑖 and 𝑏𝑏𝑗𝑗 /𝑑𝑑𝑗𝑗
have an integer value, all the basic variables (allocations) in every basic feasible
solution (including an optimal one) also have integer values.
Relationship between Prototype Example and General
Problem
𝑚𝑚 𝑛𝑛
where:
𝑚𝑚: number of origins
𝑚𝑚: number of destinations
𝑥𝑥𝑖𝑖𝑖𝑖 : quantity shipped from origin 𝑖𝑖 to destination 𝑗𝑗
𝑐𝑐𝑖𝑖𝑖𝑖 : unit cost of shipping from origin 𝑖𝑖 to destination 𝑗𝑗
𝑠𝑠𝑖𝑖 : supply at origin 𝑖𝑖
𝑑𝑑𝑗𝑗 : demand at destination 𝑗𝑗
GENERAL TRANSPORTATION
PROBLEM
Constraint Set
TRANSPORTATION PROBLEMS:
SPECIAL STRUCTURE
Constraint matrix as it appears in the Simplex Table
𝒙𝒙𝟏𝟏𝟏𝟏 𝒙𝒙𝟏𝟏𝟏𝟏 𝒙𝒙𝟏𝟏𝟏𝟏 𝒙𝒙𝟏𝟏𝟏𝟏 𝒙𝒙𝟐𝟐𝟐𝟐 𝒙𝒙𝟐𝟐𝟐𝟐 𝒙𝒙𝟐𝟐𝟐𝟐 𝒙𝒙𝟐𝟐𝟐𝟐 𝒙𝒙𝟑𝟑𝟑𝟑 𝒙𝒙𝟑𝟑𝟑𝟑 𝒙𝒙𝟑𝟑𝟑𝟑 𝒙𝒙𝟑𝟑𝟑𝟑
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1
1 1 1
1 1 1
1 1 1
TRANSPORTATION PROBLEMS:
SPECIAL STRUCTURE
SOLVING A TRANSPORTATION PROBLEM
Transportation
Problems If total supply is greater than total demand, a
dummy destination (warehouse), with demand
exactly equal to the surplus, is created
Unbalanced
Transportation
Any units assigned to a dummy destination
represent excess capacity
Problems
Dummy 0 0 0 0 30
Allocation 80 65 100 85 330 330
CASE 1: TOTAL SUPPLY < TOTAL DEMAND
P&T Co. Distribution Problem
Unit Cost Destination (Warehouse)
Sacramento Salt Lake City Rapid City Albuquerque
Source Bellingham $464 $513 $654 $867
(Cannery) Eugene $352 $416 $690 $791
Albert Lea $995 $682 $388 $685
Dummy $0 $0 $0 $0
In this situation, total supply quantity is more than the total demand.
So minimum one supply node will have a excess supply as slack.
--- Quantity cannot be shipped for this combination of source and destination
XYZ Co. has to determine the number of product A that it should produce
in each of the next four months so as to minimize the total production and
storage cost. Data about its contracted deliveries, production capacity, unit
cost of production, and storage are as given below:
2. Destination 𝒋𝒋:
REQUIRED INFORMATION
1. Source 𝒊𝒊: Production in month 𝑖𝑖
INFORMATION IN PRODUCTION
SCHEDULING SCENARIO
D1 -10
25 P1
35 P2 1.11
D2 -15
30 P3 1.10
D3 -25
10 P4
D4 -20
NETWORK FIGURE
Total cost
Month 1 Month 2 Month 3 Month 4 Production
Month 1 Prod Cost Prod Cost +Stor Prod Cost +2 Prod Cost +3 25
= Cost = *Stor Cost= *Stor Cost=
Determine the distribution plan if all the available water is to be distributed in such a
way as to at least meet the essential needs of each city while minimizing the total cost
to MWD.
WATER DISTRIBUTION AT MWD
Preferred distribution plan would be to meet each
city’s requested demand
Can never meet City 4’s requested demand
City 1 receives: 50 units of water, that is, its upper limit. Hence, 20 units more
than minimum requirement of 30 units.
City 2 receives: 70 units of water, that is, it is lower and upper limit
City 3 receives: 30 units but from dummy, therefore, practically it is receiving 0 unit of
water and satisfying its minimum requirement
City 4 receives: 60 units but 20 from dummy, therefore, practically it is receiving 40
units. Hence, 30 units more than minimum requirement of 10 units.
SUPPLIER SELECTION PROBLEM
SUPPLIER SELECTION PROBLEM
SUPPLIER SELECTION PROBLEM
Supplier Selection
Unit Cost Month 1 Month 2 Month 3 Month 4 Dummy
Supplier 1 55 60 52 48 0
Supplier 2 60 54 55 45 0
Supplier 3 48 50 60 50 0
Supplier 4 53 55 49 54 0
Distribution Total
Month 1 Month 2 Month 3 Month 4 Dummy From Supplier Available
Supplier 1 0 200 0 0 0 200 = 200
Supplier 2 250 0 0 0 0 250 = 250
Supplier 3 0 0 150 0 0 150 = 150
Supplier 4 50 0 0 75 100 225 = 225