














































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!















































Transportation, Assignment, and
Transshipment Problems
In this chapter, we discuss three special types of linear programming problems: transporta- tion, assignment, and transshipment. Each of these can be solved by the simplex algorithm, but specialized algorithms for each type of problem are much more efficient.
7.1 Formulating Transportation Problems
We begin our discussion of transportation problems by formulating a linear programming model of the following situation.
Powerco has three electric power plants that supply the needs of four cities. †^ Each power plant can supply the following numbers of kilowatt-hours (kwh) of electricity: plant 1— 35 million; plant 2—50 million; plant 3—40 million (see Table 1). The peak power de- mands in these cities, which occur at the same time (2 P.M.), are as follows (in kwh): city 1—45 million; city 2—20 million; city 3—30 million; city 4—30 million. The costs of sending 1 million kwh of electricity from plant to city depend on the distance the elec- tricity must travel. Formulate an LP to minimize the cost of meeting each city’s peak power demand. Solution To formulate Powerco’s problem as an LP, we begin by defining a variable for each deci- sion that Powerco must make. Because Powerco must determine how much power is sent from each plant to each city, we define (for i 1, 2, 3 and j 1, 2, 3, 4) xij number of (million) kwh produced at plant i and sent to city j In terms of these variables, the total cost of supplying the peak power demands to cities 1–4 may be written as 8 x 11 6 x 12 10 x 13 9 x 14 (Cost of shipping power from plant 1) 9 x 21 12 x 22 13 x 23 7 x 24 (Cost of shipping power from plant 2) 14 x 31 9 x 32 16 x 33 5 x 34 (Cost of shipping power from plant 3) Powerco faces two types of constraints. First, the total power supplied by each plant cannot exceed the plant’s capacity. For example, the total amount of power sent from plant
E X A M P L E 1 Powerco Formulation
†This example is based on Aarvik and Randolph (1975).
1 to the four cities cannot exceed 35 million kwh. Each variable with first subscript 1 rep- resents a shipment of power from plant 1, so we may express this restriction by the LP constraint
x 11 x 12 x 13 x 14 35
In a similar fashion, we can find constraints that reflect plant 2’s and plant 3’s capacities. Because power is supplied by the power plants, each is a supply point. Analogously, a constraint that ensures that the total quantity shipped from a plant does not exceed plant capacity is a supply constraint. The LP formulation of Powerco’s problem contains the following three supply constraints:
x 11 x 12 x 13 x 14 35 (Plant 1 supply constraint) x 21 x 22 x 23 x 24 50 (Plant 2 supply constraint) x 31 x 32 x 33 x 34 40 (Plant 3 supply constraint) Second, we need constraints that ensure that each city will receive sufficient power to meet its peak demand. Each city demands power, so each is a demand point. For exam- ple, city 1 must receive at least 45 million kwh. Each variable with second subscript 1 represents a shipment of power to city 1, so we obtain the following constraint:
x 11 x 21 x 31 45
Similarly, we obtain a constraint for each of cities 2, 3, and 4. A constraint that ensures that a location receives its demand is a demand constraint. Powerco must satisfy the fol- lowing four demand constraints:
x 11 x 21 x 31 45 (City 1 demand constraint) x 12 x 22 x 32 20 (City 2 demand constraint) x 13 x 23 x 33 30 (City 3 demand constraint) x 14 x 24 x 34 30 (City 4 demand constraint)
Because all the xij ’s must be nonnegative, we add the sign restrictions xij 0 ( i 1, 2, 3; j 1, 2, 3, 4). Combining the objective function, supply constraints, demand constraints, and sign re- strictions yields the following LP formulation of Powerco’s problem:
min z 8 x 11 6 x 12 10 x 13 9 x 14 9 x 21 12 x 22 13 x 23 7 x 24 14 x 31 9 x 32 16 x 33 5 x 34 s.t. x 11 x 12 x 13 x 14 35 (Supply constraints) s.t. x 21 x 22 x 23 x 24 50 s.t. x 31 x 32 x 33 x 34 40
T A B L E 1 Shipping Costs, Supply, and Demand for Powerco
To (^) Supply From City 1 City 2 City 3 City 4 (million kwh)
Plant 1 $8 $6 $10 $9 35 Plant 2 $9 $12 $13 $7 50 Plant 3 $14 $9 $16 $5 40 Demand 45 20 30 30 (million kwh)
s.t. (^)
j n
j 1
xij si ( i 1, 2,... , m ) (Supply constraints) (1)
s.t. (^)
i m
i 1
xij dj ( j 1, 2,... , n ) (Demand constraints)
xij 0 ( i 1, 2,... , m ; j 1, 2,... , n )
If a problem has the constraints given in (1) and is a maximization problem, then it is still a transportation problem (see Problem 7 at the end of this section). If
i m
i 1
si (^)
j n
j 1
dj
then total supply equals total demand, and the problem is said to be a balanced trans- portation problem. For the Powerco problem, total supply and total demand both equal 125, so this is a balanced transportation problem. In a balanced transportation problem, all the constraints must be binding. For example, in the Powerco problem, if any supply constraint were non- binding, then the remaining available power would not be sufficient to meet the needs of all four cities. For a balanced transportation problem, (1) may be written as
min (^)
i m
i 1
j n
j 1
cijxij
s.t. (^)
j n
j 1
xij si ( i 1, 2,... , m ) (Supply constraints) (2)
s.t. (^)
i m
i 1
xij dj ( j 1, 2,... , n ) (Demand constraints)
xij 0 ( i 1, 2,... , m ; j 1, 2,... , n )
Later in this chapter, we will see that it is relatively simple to find a basic feasible solu- tion for a balanced transportation problem. Also, simplex pivots for these problems do not involve multiplication and reduce to additions and subtractions. For these reasons, it is de- sirable to formulate a transportation problem as a balanced transportation problem.
If total supply exceeds total demand, we can balance a transportation problem by creat- ing 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. Shipments to the dummy demand point indicate unused supply capacity. To understand the use of a dummy demand point, 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 mil- lion kwh. From each plant, the cost of shipping 1 million kwh to the dummy is 0. The op- timal solution to this balanced transportation problem is z 975, x 13 20, x 12 15, x 21 40, x 23 10, x 32 5, x 34 30, and x 35 5. Because x 35 5, 5 million kwh of plant 3 capacity will be unused (see Figure 2). A transportation problem is specified by the supply, the demand, and the shipping costs, so the relevant data can be summarized in a transportation tableau (see Table 2). The square, or cell, in row i and column j of a transportation tableau corresponds to the
364 C H A P T E R 7 Transportation, Assignment, and Transshipment Problems
Plant 1
Supply points Demand points
s 1 = 35
x 11 = 0
x 32 = 5
x 12 = 15
x 14 = 0
x 21 = 40
x 33 = 0
x 23 = 10
x 13 = 20
x 31 = 0
x 34 = 30
x 15 = 0
x 35 = 5
x 24 = 0
x 25 = 0
x 22 = 0
City 1 d 1 = 40
City 2 d 2 = 20
City 3 d 3 = 30
City 4 d 4 = 30
Dummy City 5 d^5 = 5
s 2 = 50 Plant 2
s 3 = 40 Plant 3
F I G U R E 2 Graphical Representation of Unbalanced Powerco Problem and Its Optimal Solution (with Dummy Demand Point)
c 11 c 12 c 1 n
c 21 c 22 c 2 n
cm 1 cm 2 cmn
s 1
s 2
sm
d 1 d 2 dn
T A B L E 2 A Transportation Tableau
Supply
Demand
8 6 9
9 12 7
45 20 30 30
10
10
45 5
25
30
10
13
14 9 16 5
35
50
40
T A B L E 3 Transportation Tableau for Powerco
City 1 City 2 City 3 City 4 Supply
Plant 1
Plant 2
Plant 3
Demand
366 C H A P T E R 7 Transportation, Assignment, and Transshipment Problems
Many inventory planning problems can be modeled as balanced transportation problems. To illustrate, we formulate a balanced transportation model of the Sailco problem of Sec- tion 3.10.
Sailco Corporation must determine how many sailboats should be produced during each of the next four quarters (one quarter is three months). Demand is as follows: first quarter, 40 sailboats; second quarter, 60 sailboats; third quarter, 75 sailboats; fourth quarter, 25 sail- boats. Sailco must meet demand on time. At the beginning of the first quarter, Sailco has an inventory of 10 sailboats. At the beginning of each quarter, Sailco must decide how many sailboats should be produced during the current quarter. For simplicity, we assume that sailboats manufactured during a quarter can be used to meet demand for the current quarter. During each quarter, Sailco can produce up to 40 sailboats at a cost of $400 per sailboat. By having employees work overtime during a quarter, Sailco can produce addi- tional sailboats at a cost of $450 per sailboat. At the end of each quarter (after production has occurred and the current quarter’s demand has been satisfied), a carrying or holding cost of $20 per sailboat is incurred. Formulate a balanced transportation problem to mini- mize the sum of production and inventory costs during the next four quarters. Solution We define supply and demand points as follows: Supply Points Point 1 initial inventory ( s 1 10) Supply Points Point 2 quarter 1 regular-time (RT) production ( s 2 40) Supply Points Point 3 quarter 1 overtime (OT) production ( s 3 150) Supply Points Point 4 quarter 2 RT production ( s 4 40) Supply Points Point 5 quarter 2 OT production ( s 5 150) Supply Points Point 6 quarter 3 RT production ( s 6 40) Supply Points Point 7 quarter 3 OT production ( s 7 150) Supply Points Point 8 quarter 4 RT production ( s 8 40) Supply Points Point 9 quarter 4 OT production ( s 9 150) There is a supply point corresponding to each source from which demand for sailboats can be met:
E X A M P L E 3 Setting Up an Inventory Problem as a Transportation Problem
T A B L E 5 Transportation Tableau for Reservoir
7 8
9 7
40 40 40
30
20
10 40
20
10
8
20 22 23
50
20
50
City 1 City 2 City 3 Supply
Dummy (shortage)
Reservoir 2
Demand
Reservoir 1
Demand Points Point 1 quarter 1 demand ( d 1 40) Demand Points Point 2 quarter 2 demand ( d 2 60) Demand Points Point 3 quarter 3 demand ( d 3 75) Demand Points Point 4 quarter 4 demand ( d 4 25) Demand Points Point 5 dummy demand point ( d 5 770 200 570) A shipment from, say, quarter 1 RT to quarter 3 demand means producing 1 unit on regu- lar time during quarter 1 that is used to meet 1 unit of quarter 3’s demand. To determine, say, c 13 , observe that producing 1 unit during quarter 1 RT and using that unit to meet quar- ter 3 demand incurs a cost equal to the cost of producing 1 unit on quarter 1 RT plus the cost of holding a unit in inventory for 3 1 2 quarters. Thus, c 13 400 2(20) 440. Because there is no limit on the overtime production during any quarter, it is not clear what value should be chosen for the supply at each overtime production point. Total de- mand 200, so at most 200 10 190 (10 is for initial inventory) units will be pro- duced during any quarter. Because 40 units must be produced on regular time before any units are produced on overtime, overtime production during any quarter will never exceed 190 40 150 units. Any unused overtime capacity will be “shipped” to the dummy demand point. To ensure that no sailboats are used to meet demand during a quarter prior to their production, a cost of M ( M is a large positive number) is assigned to any cell that corresponds to using production to meet demand for an earlier quarter.
T A B L E 6 Transportation Tableau for Sailco
40
M
60
M
75
M
25
450
570
0 150
M M M 400 25
0 15
M M 450 35
470 0 115
M M 400 40
420 0
M 450 10
470 490 0 140
M 400 40
420 440 0
450 470 490 510 0 150
400 30
420 10
440 460 0
0 10
20 40 60 0
150
40
150
40
150
40
150
40
10
1 2 3 4 Dummy Supply
Demand
Initial
Qtr 1 RT
Qtr 1 OT
Qtr 2 OT
Qtr 3 OT
Qtr 4 RT
Qtr 4 OT
Qtr 2 RT
Qtr 3 RT
generate all demand constraints. They ensure that for each city, the sum of the amount shipped into the city will be at least as large as the city’s demand. Note that the extra parenthesis after SHIP(I,J) in line 8 is to close the @SUM operator, and the extra paren- thesis after DEM(J) is to close the @FOR operator. Using the @FOR and @SUM op- erators, lines 9–10 generate all supply constraints. They ensure that for each plant, the to- tal shipped out of the plant will not exceed the plant’s capacity. Lines 11–17 contain the data needed for the problem. Line 12 defines each plant’s ca- pacity, and line 13 defines each city’s demand. Lines 14–16 contain the unit shipping cost from each plant to each city. These costs correspond to the ordering of the links described previously. ENDDATA ends the data section, and END ends the program. Typing GO will solve the problem. This program can be used to solve any transportation problem. If, for example, we wanted to solve a problem with 15 supply points and 10 demand points, we would change line 2 to create 15 supply points and line 3 to create 10 demand points. Moving to line 12, we would type in the 15 plant capacities. In line 13, we would type in the demands for the 10 demand points. Then in line 14, we would type in the 150 shipping costs. Ob- serve that the part of the program (lines 6–10) that generates the objective function and constraints remains unchanged! Notice also that our LINGO formulation does not require that the transportation problem be balanced.
Often it is easier to obtain data for a LINGO model from a spreadsheet. For example, shipping costs for a transportation problem may be the end result of many computations. As an example, suppose we have created the capacities, demands, and shipping costs for the Powerco model in the file Powerco.xls (see Figure 3). We have created capacities in the cell range F9:F11 and named the range Cap. As you probably know, you can name a range of cells in Excel by selecting the range and clicking in the name box in the upper left-hand corner of your spreadsheet. Then type the range name and hit the Enter key. In a similar fashion, name the city demands (in cells B12:E12) with the name Demand and the unit shipping costs (in cells B4:E6) with the name Costs.
Powerco.xls
1 2 3 4 5 6 7 8 9
10 11 12 13 14
A B C D E F G H OPTIMAL SOLUTION FOR POWERCO COSTS COSTS CITY 1020 PLANT 1 2 3 4 1 8 6 10 9 2 9 12 13 7 3 14 9 16 5 SHIPMENTS CITY SHIPPED SUPPLIES PLANT 1 2 3 4 1 0 10 25 0 35 <= 35 2 45 0 5 0 50 <= 50 3 0 10 0 30 40 <= 40 RECEIVED 45 20 30 30
= >= >= >= DEMANDS 45 20 30 30
F I G U R E 3
370 C H A P T E R 7 Transportation, Assignment, and Transshipment Problems
Using an @OLE statement, LINGO can read from a spreadsheet the values of data that are defined in the Sets portion of a program. The LINGO program (see file Transp- spread.lng) needed to read our input data from the Powerco.xls file is shown below. MODEL: SETS: PLANTS/P1,P2,P3/:CAP; CITIES/C1,C2,C3,C4/:DEM; LINKS(PLANTS,CITIES):COST,SHIP; ENDSETS MIN=@SUM(LINKS:COST*SHIP); @FOR(CITIES(J): @SUM(PLANTS(I):SHIP(I,J))>DEM(J)); @FOR(PLANTS(I); @SUM(CITIES(J):SHIP(I,J))<CAP(I)); DATA: CAP, DEM, COST=@OLE(‘C:\MPROG\POWERCO.XLS’,‘Cap’,‘Demand’,‘Costs’); ENDDATA END The key statement is CAP, DEM, COST=@OLE(‘C:\MPROG\POWERCO.XLS’,‘Cap’,‘Demand’,‘Costs’);. This statement reads the defined data sets CAP, DEM, and COSTS from the Powerco.xls spreadsheet. Note that the full path location of our Excel file (enclosed in single quotes) must be given first followed by the spreadsheet range names that contain the needed data. The range names are paired with the data sets in the order listed. Therefore, CAP values are found in range Cap and so on. The @OLE statement is very powerful, because a spreadsheet will usually greatly simplify the creation of data for a LINGO program.
In the file Powerco.xls, we show how easy it is to use the Excel Solver to find the opti- mal solution to a transportation problem. After entering the plant capacities, city demands, and unit shipping costs as shown, we enter trial values of the units shipped from each plant to each city in the range B9:E11. Then we proceed as follows: Step 1 Compute the total amount shipped out of each city by copying from F9 to F10:F11 the formula SUM(B9:E9) Step 2 Compute the total received by each city by copying from B12 to C12:E12 the formula SUM(B9:B11) Step 3 Compute the total shipping cost in cell F2 with the formula SUMPRODUCT(B9:E11,Costs) Note that the SUMPRODUCT function works on rectangles as well as rows or columns of numbers. Also, we have named the range of unit shipping costs (B4:E6) as COSTS. Step 4 We now fill in the Solver window shown in Figure 4. We minimize total shipping costs (F2) by changing units shipped from each plant to each city (B9:E11). We constrain amount received by each city (B12:E12) to be at least each city’s demand (range name Demand). We constrain the amount shipped out of each plant (F9:F11) to be at most each plant’s capacity (range name Cap). After checking the Assume Nonnegative option and Assume Linear Model option, we obtain the optimal solution shown in Figure 3. Note, of course, that the objective function of the optimal solution found by Excel equals the ob-
Transpspread.lng
Powerco.xls
perishable, it can only be used during the month of purchase. Two companies (Daisy and Laroach) sell the medicine. The medicine is in short supply. Thus, during the next two months, the hospital is limited to buying at most 5 gallons from each company. The companies charge the prices shown in Table 10. Formulate a balanced transportation model to minimize the cost of purchasing the needed medicine.
6 A bank has two sites at which checks are processed. Site 1 can process 10,000 checks per day, and site 2 can process 6,000 checks per day. The bank processes three types of checks: vendor, salary, and personal. The processing cost per check depends on the site (see Table 11). Each day, 5,000 checks of each type must be processed. Formulate a balanced transportation problem to minimize the daily cost of processing checks.
7 †^ The U.S. government is auctioning off oil leases at two sites: 1 and 2. At each site, 100,000 acres of land are to be auctioned. Cliff Ewing, Blake Barnes, and Alexis Pickens are bidding for the oil. Government rules state that no bidder can receive more than 40% of the land being auctioned. Cliff has bid $1,000/acre for site 1 land and $2,000/acre for site 2 land. Blake has bid $900/acre for site 1 land and $2,200/acre for site 2 land. Alexis has bid $1,100/acre for site 1 land and $1,900/acre for site 2 land. Formulate a balanced transportation model to maximize the government’s revenue.
372 C H A P T E R 7 Transportation, Assignment, and Transshipment Problems
8 The Ayatola Oil Company controls two oil fields. Field 1 can produce up to 40 million barrels of oil per day, and field 2 can produce up to 50 million barrels of oil per day. At field 1, it costs $3 to extract and refine a barrel of oil; at field 2, the cost is $2. Ayatola sells oil to two countries: England and Japan. The shipping cost per barrel is shown in Table 12. Each day, England is willing to buy up to 40 million barrels (at $6 per barrel), and Japan is willing to buy up to 30 million barrels (at $6.50 per barrel). Formulate a balanced transportation problem to maximize Ayatola’s profits. 9 For the examples and problems of this section, discuss whether it is reasonable to assume that the proportionality assumption holds for the objective function. 10 Touche Young has three auditors. Each can work as many as 160 hours during the next month, during which time three projects must be completed. Project 1 will take 130 hours; project 2, 140 hours; and project 3, 160 hours. The amount per hour that can be billed for assigning each auditor to each project is given in Table 13. Formulate a balanced transportation problem to maximize total billings during the next month.
Group B 11 ‡^ Paperco recycles newsprint, uncoated paper, and coated paper into recycled newsprint, recycled uncoated paper, and recycled coated paper. Recycled newsprint can be produced by processing newsprint or uncoated paper. Recycled coated paper can be produced by recycling any type of paper. Recycled uncoated paper can be produced by processing uncoated paper or coated paper. The process used to produce recycled newsprint removes 20% of the input’s pulp, leaving 80% of the input’s pulp for recycled paper. The process used to produce recycled coated paper removes 10% of the input’s pulp. The process used to produce recycled uncoated paper removes 15% of the input’s pulp. The purchasing costs, processing costs, and availability of each type of paper are shown in Table 14. To meet demand,
T A B L E 9 Time (minutes) Plant Steel 1 Steel 2 Steel 3 1 15 12 15 2 15 15 20 3 10 10 15
T A B L E 10 Current Month’s Next Month’s Price per Price per Company Gallon ($) Gallon ($) Daisy 800 720 Laroach 710 750
T A B L E 11
Site (¢) Checks 1 2
Vendor 5 3 Salary 4 4 Personal 2 5
†This problem is based on Jackson (1980). ‡This problem is based on Glassey and Gupta (1974).
T A B L E 12 To ($) From ($) England Japan Field 1 1 2 Field 2 2 1
T A B L E 13 Project ($) Auditor 1 2 3 1 120 150 190 2 140 130 120 3 160 140 150
7.2 Finding Basic Feasible Solutions for Transportation Problems
Consider a balanced transportation problem with m supply points and n demand points. From (2), we see that such a problem contains m n equality constraints. From our ex- perience with the Big M method and the two-phase simplex method, we know it is diffi- cult to find a bfs if all of an LP’s constraints are equalities. Fortunately, the special struc- ture of a balanced transportation problem makes it easy for us to find a bfs. Before describing three methods commonly used to find a bfs to a balanced trans- portation problem, we need to make the following important observation. If a set of val- ues for the x (^) ij’s satisfies all but one of the constraints of a balanced transportation prob- lem, then the values for the x (^) ij ’s will automatically satisfy the other constraint. For example, in the Powerco problem, suppose a set of values for the xij ’s is known to satisfy all the constraints with the exception of the first supply constraint. Then this set of xij ’s must supply d 1 d 2 d 3 d 4 125 million kwh to cities 1–4 and supply s 2 s 3 125 s 1 90 million kwh from plants 2 and 3. Thus, plant 1 must supply 125 (125 s 1 ) 35 million kwh, so the xij ’s must also satisfy the first supply constraint. The preceding discussion shows that when we solve a balanced transportation prob- lem, we may omit from consideration any one of the problem’s constraints and solve an LP having m n 1 constraints. We (arbitrarily) assume that the first supply constraint is omitted from consideration. In trying to find a bfs to the remaining m n 1 constraints, you might think that any collection of m n 1 variables would yield a basic solution. Unfortunately, this is not the case. For example, consider (3), a balanced transportation problem. (We omit the costs because they are not needed to find a bfs.)
(3)
Paperco must produce at least 250 tons of recycled newsprint pulp, at least 300 tons of recycled uncoated paper pulp, and at least 150 tons of recycled coated paper pulp. Formulate a balanced transportation problem that can be used to minimize the cost of meeting Paperco’s demands. 12 Explain how each of the following would modify the formulation of the Sailco problem as a balanced trans- portation problem: a Suppose demand could be backlogged at a cost of $30/sailboat/month. ( Hint: Now it is permissible to ship from, say, month 2 production to month 1 demand.) b If demand for a sailboat is not met on time, the sale is lost and an opportunity cost of $450 is incurred. c Sailboats can be held in inventory for a maximum of two months. d At a cost of $440/sailboat, Sailco can purchase up to 10 sailboats/month from a subcontractor.
T A B L E 14
Purchase Processing Cost per Ton Cost per Ton of Pulp ($) of Input ($) Availability
Newsprint 10 500 Coated paper 19 300 Uncoated paper 18 200 NP used for RNP 3 NP used for RCP 4 UCP used for RNP 4 UCP used for RUP 1 UCP used for RCP 6 CP used for RUP 5 CP used for RCP 3
3
4
5
2 4
F I G U R E 5
F I G U R E 6
F I G U R E 7
F I G U R E 8
T H E O R E M 1
In a balanced transportation problem with m supply points and n demand points, the cells corresponding to a set of m n 1 variables contain no loop if and only if the m n 1 variables yield a basic solution.
Theorem 1 follows from the fact that a set of m n 1 cells contains no loop if and only if the m n 1 columns corresponding to these cells are linearly independent. Be- cause (1, 1)–(1, 2)–(2, 2)–(2, 1) is a loop, Theorem 1 tells us that { x 11 , x 12 , x 22 , x 21 } can- not yield a basic solution for (3). On the other hand, no loop can be formed with the cells (1, 1)–(1, 2)–(1, 3)–(2, 1), so { x 11 , x 12 , x 13 , x 21 } will yield a basic solution to (3). We are now ready to discuss three methods that can be used to find a basic feasible so- lution for a balanced transportation problem: 1 northwest corner method 2 minimum-cost method 3 Vogel’s method
To find a bfs by the northwest corner method, we begin in the upper left (or northwest) corner of the transportation tableau and set x 11 as large as possible. Clearly, x 11 can be no larger than the smaller of s 1 and d 1. If x 11 s 1 , cross out the first row of the transporta- tion tableau; this indicates that no more basic variables will come from row 1. Also change d 1 to d 1 s 1. If x 11 d 1 , cross out the first column of the transportation tableau; this in- dicates that no more basic variables will come from column 1. Also change s 1 to s 1 d 1. If x 11 s 1 d 1 , cross out either row 1 or column 1 (but not both). If you cross out row 1, change d 1 to 0; if you cross out column 1, change s 1 to 0. Continue applying this procedure to the most northwest cell in the tableau that does not lie in a crossed-out row or column. Eventually, you will come to a point where there is only one cell that can be assigned a value. Assign this cell a value equal to its row or column demand, and cross out both the cell’s row and column. A basic feasible solution has now been obtained. We illustrate the use of the northwest corner method by finding a bfs for the balanced transportation problem in Table 15. (We do not list the costs because they are not needed to apply the algorithm.) We indicate the crossing out of a row or column by placing an by the row’s supply or column’s demand. To begin, we set x 11 min{5, 2} 2. Then we cross out column 1 and change s 1 to 5 2 3. This yields Table 16. The most northwest remaining variable is x 12. We set x 12 min{3, 4} 3. Then we cross out row 1 and change d 2 to 4 3 1. This yields Table 17. The most northwest available variable is now x 22. We set x 22 min{1, 1} 1. Because both the supply and demand corresponding to the cell are equal, we may cross out either row 2 or column 2 (but not both). For no particular reason, we choose to cross out row 2. Then d 2 must be changed to 1 1 0. The resulting tableau is Table 18. At the next step, this will lead to a degenerate bfs.
376 C H A P T E R 7 Transportation, Assignment, and Transshipment Problems
T A B L E 15
4
5
3
2 2 1
1
T A B L E 16
4
3
3
2 1
1
2
tive) and also that each supply and demand constraint is satisfied (because every row and col- umn is eventually crossed out). Thus, the northwest corner method yields a feasible solution. To complete the northwest corner method, m n rows and columns must be crossed out. The last variable assigned a value results in a row and column being crossed out, so the northwest corner method will assign values to m n 1 variables. The variables chosen by the northwest corner method cannot form a loop, so Theorem 1 implies that the northwest corner method must yield a bfs.
The northwest corner method does not utilize shipping costs, so it can yield an initial bfs that has a very high shipping cost. Then determining an optimal solution may require sev- eral pivots. The minimum-cost method uses the shipping costs in an effort to produce a bfs that has a lower total cost. Hopefully, fewer pivots will then be required to find the problem’s optimal solution. To begin the minimum-cost method, find the variable with the smallest shipping cost (call it x (^) ij ). Then assign x (^) ij its largest possible value, min{ s (^) i , d (^) j }. As in the northwest corner method, cross out row i or column j and reduce the supply or demand of the noncrossed-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 pro- cedure. 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 vari- able satisfies both a supply and demand constraint, only cross out a row or column, not both. To illustrate the minimum cost method, we find a bfs for the balanced transportation prob- lem in Table 21. The variable with the minimum shipping cost is x 22. We set x 22 min{10, 8} 8. Then we cross out column 2 and reduce s 2 to 10 8 2 (Table 22). We could now choose either x 11 or x 21 (both having shipping costs of 2). We arbitrarily choose x 21 and set x 21 min{2, 12} 2. Then we cross out row 2 and change d 1 to 12 2 10 (Table 23). Now we set x 11 min{5, 10} 5, cross out row 1, and change d 1 to 10 5 5 (Table 24). The minimum cost that does not lie in a crossed-out row or column is x 31. We set x 31 min{15, 5} 5, cross out column 1, and reduce s 3 to 15 5 10 (Table 25). Now we set x 33 min{10, 4} 4, cross out column 3, and reduce s 3 to 10 4 6 (Table 26). The only cell that we can choose is x 34. We set x 34 min{6, 6} and cross out both row 3 and column
378 C H A P T E R 7 Transportation, Assignment, and Transshipment Problems
T A B L E 21
8
5
15
12 4 6
10
6
5
6
5
3
4
3
1
8
2
2
3
T A B L E 22
5
15
12 4 6
2
6
5
6
5
3
4
3
1
8
2
2
3
8
T A B L E 23
5
15
10 4 6
6
5
6
5
3
4
3
1
8
2
2
3
2 8
T A B L E 24
15
5 4 6
6
5
6
5
3
4
3
1
8
2
2
3
2 8
5
T A B L E 25
10
4 6
6
5
6
5
3
4
3
1
8
2
2
3
2 8
5
5