Chapter 6 Supplement: Transportation and Assignment Solution Procedures
Chapter 6 Supplement: Transportation and Assignment Solution Procedures
Transportation and
Assignment Solution
Procedures
Chapter Outline
Chapter 6 Supplement
ste9066x_ch06s.qxd 11/16/05 4:41 PM Page 6S-3
Learning Objectives
After completing this chapter 3. Use the assignment (Hungarian)
supplement, you should be able to: method to solve problems manually.
1. Use the transportation method to solve 4. Deal with special cases in solving
problems manually. assignment problems.
2. Deal with special cases in solving
transportation problems.
Chapter Outline
Certain types of linear programming problems can be solved using special-purpose algo-
rithms instead of using the simplex method. Prior to the widespread use of computers to
solve LP problems, special-purpose algorithms were particularly useful because they en-
abled practitioners to obtain solutions to these special cases with much less computational
burden than simplex would have required. Now, these special-purpose algorithms provide
further insight into LP problems and their solutions.
This chapter supplement describes two special-purpose algorithms: the transporta-
tion model and the assignment model. Model formulation, manual solution of models, and
formatting models for computer solution are covered for each of these classes of prob-
lems. The discussion begins with the transportation method.
Transportation Problems
The transportation model is usually applied to distribution-type problems, in which supplies
of goods that are held at various locations are to be distributed to other receiving locations.
For example, a company may have 10 warehouses that are used to supply 50 retail stores.
Obviously, there are many different combinations of warehouse-store supply lines that
could be used. Generally, some of these combinations will involve transportation costs that
are higher than others. The purpose of using an LP model would be to identify a distribu-
tion plan that would minimize the cost of transporting the goods from the warehouses to
the retail stores, taking into account warehouse supplies and store demands as well as trans-
portation costs. Other examples of transportation problems include shipments from factories
to warehouses, shipments between departments within a company, and production sched-
uling. Moreover, some companies use the transportation method to compare location alter-
natives (i.e., to decide where to locate factories and warehouses in order to achieve the
minimum-cost distribution configuration).
The transportation algorithm requires the assumption that all goods be homogeneous,
so that any origin is capable of supplying any destination, and the assumption that trans-
portation costs are a direct linear function of the quantity shipped over any route.
In this supplement we will demonstrate how transportation and assignment problems
covered in Chapter 6 of the textbook can be manually solved.
Let’s again consider this example. Harley’s Sand and Gravel Pit has contracted to pro-
vide topsoil for three residential housing developments. Topsoil can be supplied from three
different “farms” as follows:
Weekly Capacity
Farm (cubic yards)
A 100
B 200
C 200
Weekly Demand
Project (cubic yards)
1 50
2 150
3 300
The manager of the sand and gravel pit has estimated the cost per cubic yard to ship over
each of the possible routes:
This constitutes the information needed to solve the problem. The next step is to
arrange the information into a transportation table. This is shown in Table 6S-1. The ori-
gins (farms) are listed down the left side of the table, and their respective supply quantities
are listed down the right side of the table. The destinations (projects) are listed across the
top of the table, and their respective demands are listed across the bottom of the table. The
unit shipping costs are shown in the upper right-hand corner of each cell, which represents
a shipping route. Hence, the cost per cubic yard to ship topsoil from farm A to project #1 is
$4. (For convenience, dollar signs are not shown.)
Start
No
Develop an
improved solution
by reallocation
transportation table. In the case of a table with 3 rows and 3 columns, the number of occu-
pied cells should be 3 3 1 5 in order to be able to use the transportation algorithm.
Sometimes, fewer occupied or completed cells appear in a solution. When that happens, the
solution is referred to as a degenerate solution: such a solution requires modification in order
to be able to determine if it is optimal. This topic is covered later in the supplement.
Aside from a degenerate case, the transportation method will generate solutions that
have the number of completed cells equal to the number of rows plus the number of
columns minus 1. Other feasible solutions that use more of the cells are imaginable but not
really desirable. For instance, it may be possible to imagine a solution that uses all of the
cells. However, the cell costs are marginal costs to transport single units. Often, there are
fixed costs associated with the number of cells (routes) used. For example, in the Harley
problem, consider that, undoubtedly, each route requires a separate truck, which represents,
perhaps, a high fixed cost. Hence, the more routes, the more trucks, and the higher the fixed
cost. In addition, a solution that uses completed cells equal to the number of rows plus
number of columns minus 1 will provide the minimum cost transportation schedule.
Therefore, it would be desirable to devise a solution that used as few routes as possible. In
general, such a solution will require the above-mentioned number of completed cells.
A number of different approaches can be used to find an initial feasible solution. Three
of these are described here:
1. Begin with the upper-left-hand cell and allocate as many units as possible to that cell.
This will be the smaller of the row supply and the column demand. Adjust the row and
column quantities to reflect the allocation.
2. Remain in a row or column until its supply or demand is completely exhausted or sat-
isfied, allocating the maximum number of units to each cell in turn, until all supply has
been allocated (and all demand has been satisfied because we assume total supply and
demand are equal).
For the Harley problem, the sequence would be as follows (see Table 6S-2):
1. Beginning in cell A–1, allocate 50 units, exhausting demand in column 1 and leaving
50 units of supply in row A.
ste9066x_ch06s.qxd 11/16/05 4:41 PM Page 6S-8
2. Staying in row A, move to cell A–2, where supply is now 50 and demand is 150 units.
Allocate 50 units to this cell, exhausting the supply of row A and leaving 100 units in
column 2.
3. Staying in column 2, move down to cell B–2, where supply is 200 units. Allocate
100 units to this cell, exhausting demand in column 2 and leaving 100 units of supply
in row B.
4. Staying in row B, move to cell B–3 and allocate 100 units, exhausting that row’s supply
and leaving 200 units in column 3.
5. Staying in column 3, move down to cell C–3 and allocate 200 units, exhausting both the
row and column quantities.
In terms of minimizing total transportation cost, this solution may or may not be op-
timal. We shall make that determination very shortly. At this point, let’s simply compute the
total cost this solution would generate if it was implemented.
The total cost is found by multiplying the quantities in “completed” (i.e., nonempty)
cells by the cell’s unit cost, then summing those amounts. Thus:
Total cost 50(4) $ 200
50(2) 100
100(1) 100
100(9) 900
200(3) 600
$1,900
As noted earlier, the main drawback of the northwest-corner method is that it does not
consider cell (route) costs in making the allocation. Consequently, if this allocation is opti-
mal, that can be attributed to chance rather than the method used.
1. Identify the cell that has the lowest unit cost. If there is a tie, select one arbitrarily. Al-
locate a quantity to this cell that is equal to the lower of the available supply for the row
and the demand for the column.
2. Cross out the cells in the row or column that has been exhausted (or both, if both have
been exhausted), and adjust the remaining row or column total accordingly.
ste9066x_ch06s.qxd 11/16/05 4:41 PM Page 6S-9
Table 6S-3a Find the Cell That Has the Lowest Unit Cost
3. Identify the cell with the lowest cost from the remaining cells. Allocate a quantity to this
cell that is equal to the lower of the available supply of the row and the demand for the
column.
4. Repeat steps 2 and 3 until all supply and demand have been allocated.
Let’s see how this method can be applied to the Harley problem. The cell with the low-
est cost is B–2, in which the cost is $1 (see Table 6S-3a). Farm B has a supply of 200 cubic
yards of gravel, whereas project # 2 has a demand for only 150 cubic yards. Consequently,
we allocate 150 cubic yards (the lesser of the two quantities) to cell B–2. Because this ex-
hausts the demand of project # 2, we cross out the cells in that column and the demand, and
we change the row total to 50 (see Table 6S-3b).
Of the cells that remain, C–3 has the lowest cost (A–2 cannot be used because it has
been crossed out). The supply of farm C is 200 cubic yards; the demand of project # 3 is 300
cubic yards. The lesser of these is 200 cubic yards, so that quantity is placed in cell C–3.
Since the supply of farm C has been completely used, the cells in row 3 are crossed out along
with the row total. The remaining demand for project # 3 is 100 units, so that column total
must be adjusted accordingly (see Table 6S-4).
Of the remaining cells, A–1 has the lowest cell cost. The column total is 50 and the row
total is 100; hence, the quantity 50 is assigned to cell A–1. Because the demand of project # 1
has been satisfied, the cells in column A must be crossed out, and 50 units must be sub-
tracted from the supply of farm A, learning 50 units of supply (see Table 6S-4).
At this point, only two remaining cells have not been crossed out: cells A–3 and B–3.
Cell A–3 has the lower cost, so it is next in line for allocation. The remaining supply is 50
units, and the remaining demand is 100 units; consequently, the quantity 50 is placed in A–3.
Table 6S-4 200 Units Are Assigned to Cell C–3 and 50 Units Are
Assigned to cell A–1
This completes the use of supply for farm A, and it leaves a demand of 50 units for project 3.
The last remaining cell, then, receives a quantity of 50 units, canceling the remaining sup-
ply and demand for both its row and column, (see Table 6S-5).
We can easily verify that this is a feasible solution by checking to see that the row and
column totals of the assigned cell quantities equal the supply and demand totals for the rows
and columns. For example, 50 50, or 100 units have been allocated in the first row, which
equals the supply of farm A. Likewise, 50 units have been assigned in the first column, which
equals the demand of project 1. In addition, the number of occupied cells equals five, which
is equal to the number of rows plus number of columns minus 1 (3 3 1 5).
This solution may or may not be optimal. In the next section, the procedure for testing
for optimality will be described. For now, let us simply compute the total cost of this solu-
tion and compare it to that of the northwest-corner solution. Here we have
Compared to the plan generated using the northwest-corner method, this one has a
total cost that is $100 less. The fact that this plan is less costly than the previous one was
expected: The northwest-corner method did not involve the use of cost information in al-
locating units. Whether this plan is optimal, or can be improved on, remains to be seen.
Now we are going to use the Vogel’s approximation method with the Harley problem.
Step 1. In establishing the penalty cost for row 1 (farm A), we subtract the lowest cost in
row one from the second lowest cost in row 1. For farm A, the lowest cost is 2 (unit shipping
cost from farm A to project 2). The second lowest cost is 4 (unit shipping cost from farm A to
project 1). The penalty cost for row 1 is 2, since $4 $2 $2. For column 1, farm A to project
1 has the lowest per-unit transportation cost ($4) and farm B to project 1 has the second low-
est transportation cost. Therefore, the penalty cost for column 1 (project 1) is $5 $4 $1.
Proceeding in this fashion for the rest of the rows and columns, we obtain the follow-
ing penalty costs:
Farm A 2 Project 1 1
Farm B 4 Project 2 1
Farm C 3 Project 3 5
Step 2. Since column (project) 3 has the largest penalty cost, it is selected. In column
3, the shipping route from farm C to project 3 has the lowest shipping cost per unit ($3).
Thus, we allocate as many units as possible (200 units) to it. Since the demand for farm 3 is
reduced to zero, we eliminate farm C from further consideration and return to step 1.
Step 1. After eliminating farm C from further consideration, we recalculate the
penalty costs. Results are given below.
Note that the penalty cost for column (project) 3 was reduced from 5 to 1 due to the elim-
ination of row 3. Since the smallest value in column 3 is 8 and the next smallest value is 9,
the penalty cost for column 3 is 1.
Step 2. Since farm B has the largest penalty cost ($4), it is selected. In row 2, the ship-
ping route from farm B to project 2 has the lowest shipping cost per unit ($1). At this stage,
the maximum units that can be allocated to farm B/project 2 shipping route is 150 units.
Step 3. Allocation of 150 units results in elimination of project 2 from further consid-
eration because the demand at project 2 is exhausted.
ste9066x_ch06s.qxd 11/16/05 4:41 PM Page 6S-12
Step 2. Since there is a tie between row 1 and row 2, we select the row that gives the
smallest unit cost after allocation. Therefore, we select row 1 and allocate as much as possi-
ble to a feasible cell with the smallest per-unit shipping cost. Since farm A to project 1 has the
smallest per-unit shipping cost ($4) in row 1, we allocate 50 units from farm A to project 1.
Step 3. Allocation of 50 units results in elimination of project 1 from further consid-
eration because the demand at project 1 is exhausted. We continue in this fashion until we
obtain the transportation tableau given in Table 6S-6. Note that in this table, we not only
show the units allocated to particular shipping routes, but we also include the penalty costs
at each iteration for each row and column.
Based on Table 6S-6, we have the following shipment quantities and transportation
costs for each cell:
Total transportation cost of the above initial allocation tableau is $1,800, which is equal to
the total cost of the intuitive method.
In the previous section, we discussed three different methods for obtaining an initial
feasible solution. In the next section, we will investigate whether we can improve the initial
feasible solution.
ste9066x_ch06s.qxd 11/16/05 4:41 PM Page 6S-13
The stepping-stone method involves a good deal more effort than the MODI method, as you
will note. However, it is discussed here because it provides an intuitive understanding of the
evaluation process. When a solution is not optimal, the distribution plan must be revised by
reallocating units into and out of various cells, and the stepping-stone method will be used
for the reallocation.
<
<
Farm B 5 100 1 100 9 200
<
Farm C 7 6 200 3 200
Demand 50 150 300 500
only empty cell on the stepping path. In order to maintain the column total of 50, we must
subtract one unit from an occupied cell; cell A 2 is the only option because cell A 1 is
the only occupied cell in column 1. This is designated by placing a in cell A 1 (see Table
6S-8). Because we subtracted one unit from row A, we must compensate for this, which we
can do by adding a unit (i.e., placing a sign) in cell A 2. Similarly, we compensate for the
addition of one unit to column 2 by subtracting a unit from cell B 2, and place a in that
cell to reflect this. Because we initially added one unit to row B in cell B 1, this last subtrac-
tion also compensates for that, and we have traced a completed path, which we can use to
evaluate B 1. Before doing that, let’s consider rules that will guide tracing these paths.
Note that it is not necessary to actually alter the quantities in the various cells to reflect the
one-unit change; the and signs suffice.
The general implication of the plus and minus signs is that cells with a sign mean
one unit would be added; cells with a sign indicate one unit would be subtracted. The net
impact of such a one-unit shift can be determined by adding the cell costs with signs
attached and noting the resulting value. Thus, for cell B–1, we have a net change of 2:
Cells B–1
cells cells
5 4
2 1
7 5
7 5 2
This means that for each unit shifted into cell B–1 in this way (which is the only way a shift
could be made), the total cost would increase by $2. Consequently, such a shift would not be
desirable.
Turning our attention to cell C–1, we begin its evaluation by placing sign in that cell
(see Table 6S-9). We can move horizontally or vertically to an occupied cell. Suppose we
move to cell C–3 and place a sign there. Next, we move vertically to cell B–3, place a
sign in it, then horizontally to B–2, place a sign there, move up to cell A–2, place a sign
ste9066x_ch06s.qxd 11/16/05 4:41 PM Page 6S-15
<
Farm B 5 100 1 100 9 200
<
<
Farm C 7 6 200 3 200
<
<
there, and, then, move horizontally to A–1 and place a sign there. Coincidentally, some of
the cells have or signs that are the same as in the previous evaluation path. However,
this is not necessary; each evaluation path is independent of others in terms of assigning
and signs. The evaluation of this path is 10.
Cell C–1
cells cells
7 3
9 1
2 4
18 8
10
Hence, using this path for reallocation would increase total cost by $10 per unit. Again, this
would be undesirable.
Evaluation paths for empty cells A–3 and C–2 are shown in Table 6S-10. Their net
changes are
Cell A–3 Cell C–2
The negative value for cell A–3 indicates an improved solution is possible: For each unit we
can shift into that cell, the total cost will decrease by $2. The next question is, how many
units can be reallocated into that cell?
5 1 9
<
<
Farm B 100 < 100 200
<
7 6 3
Farm C 200 200
<
<
Before addressing that question, let’s consider an alternative method for cell evaluation
that avoids having to trace all of the evaluation paths.
The index numbers are determined sequentially in a manner dictated by the position of oc-
cupied cells. The number of equations is equal to the number of occupied cells(s), and the
number of unknown variables is the number of rows plus the number of columns (6). Since
the number of equations is less than the number of unknown variables, there is no unique
solution to this, system of equations. However, a solution can be found by assigning a value
of zero as the index number of one of the rows or columns, reducing the number of un-
known variables by one and making it equal to the number of equations.
The method will be illustrated by developing index numbers for the initial feasible so-
lution for the Harley problem generated by the northwest-corner method, which is repeated
in Table 6S-11.
We begin by arbitrarily assigning a value of zero as the index for row 1. Once a row index
has been established, it will enable us to compute column index numbers for all occupied
cells in that row. Similarly, once a column index number has been determined, index num-
bers for all rows corresponding to occupied cells in that column can be determined.
The index number for column 1 is based on the fact that the sum of its value and the
row index number must equal the cell cost of $4 for cell A–1. Thus, 0 k1 4, so k1 4.
Similarly, using occupied cell A–2, the index number for column 2 can be determined:
0 k2 2, so k2 2.
Table 6S-11 Initial Feasible Solution Obtained Using the Northwest-Corner Method
Index numbers
to be computed
k1 k2 k3
Table 6S-12 Index Numbers for Initial Northwest-Corner Solution to the Harley Problem
k1 4 k2 2 k3 10
Knowledge of the index number for column 2 enables us to compute the index num-
ber for row B using the unit cost for occupied cell B–2: r2 2 1, so r2 1. The value of r2
then enables us to compute the index number for column 3: 1 k3 9, so k3 10. The
remaining index number, that of row 3, can be determined using the unit cost of occupied
cell C–3 and the column 3 index number, k3: r3 10 3, so r3 7.
The complete set of row and column index numbers is shown in Table 6S-12. Gener-
ally, it is advisable to do a quick check of the values by confirming that for all occupied cells,
the sum of the row and the column index number equals the unit cell cost.
We can now readily determine the cell evaluations (improvement potentials) for each
of the unoccupied cells using the relationship:
Cell evaluation Cell cost Row index Column index
reduced costs
eij cij ri kj (6S-2)
These determinations can be made in any order. For example, the cell evaluation for A–3
is e13 c13 r1 k3, or 8 0 10 2. This implies an improvement (decrease in total
cost) of $2 per unit for units that can be shifted into cell A–3. Similarly, for empty cell B–1,
the improvement potential is 5 (1) 4 2, which indicates any units shifted into
this cell would increase total cost by $2 each. For unoccupied cell C–1, the evaluation is
7 (7) 4 10, and for cell C–2, the cell evaluation is 6 (7) 2 11. These
values are summarized in Table 6S-13. Note that they agree with the values we computed
earlier using the stepping-stone method.
Table 6S-13 Cell Evaluations for Northwest-Corner Solution for the Harley Problem
k1 4 k2 2 k3 10
When all evaluations are positive or zero, an optimal solution has been found. If one or
more is negative, the cell with the largest negative should be brought into solution because
that route has the largest potential for improvement per unit. In this case, we found that cell
A–3 had an evaluation of –2, which represented an improvement potential of $2 per unit.
Hence, an improved solution is possible.
You can use the following summary of the MODI procedure to guide you through the
process.
<
smallest quantity in a cell with a negative sign along the cell path. The rationale for using the
smallest quantity is that using a larger quantity will result in a negative shipment quantity
for at least one route. There are two quantities in negative positions, 50 and 100. Because
50 is the smaller quantity, that amount will be shifted in the following manner: Subtract
50 units from each cell on the path with a sign, and add 50 units to the quantity of each
cell with a sign in it. The result is shown in Table 6S-15. A quick check reveals that the
sums of quantities in each row and in each column are equal to original row and column
totals.
With each iteration (new solution), it is necessary to evaluate the empty cells to see if
further improvement is possible. This requires use of either the MODI or the stepping-
stone method. Both will yield the same values. Suppose we use the MODI method.
We begin by setting the index number for row 1 equal to zero. The column 1 index
number is found using the equality 0 k1 4. Solving, we find k1 4. Similarly, for col-
umn 3, 0 k3 8, so k3 8. Using cell B–3 as a “pivot,” the index number for row 2
can be found from the equality r2 k3 9. Because k3 was found to equal 8, this means
that r2 1. This value now allows us to compute the index number for column 2 because
r2 k2 1: 1 k2 1, so k2 0. Lastly, the index number for row 3 can be determined on
the basis of the unit cost of cell C–3 and our finding that k3 8. Thus, r3 8 3, so r3 5.
These values provide the basis for computing evaluations for the empty cells using the rela-
tionship eij cij ri kj:
Cell A–2: e12 c12 r1 k2 2 0 0 2
Cell B–1: e21 c21 r2 k1 5 1 4 0
Cell C–1: e31 c31 r3 k1 7 (5) 4 8
Cell C–2: e32 c32 r3 k2 6 (5) 0 11
3. If the solution is not optimal, select the cell that has the most negative cell evaluation.
Obtain an improved solution using the stepping-stone method.
4. Repeat steps 2 and 3 until no cell evaluations (reduced costs) are negative. Once you have
identified the optimal solution, compute its total cost.
Special Issues
A number of special issues are discussed in this section in order to round out your under-
standing of the transportation model. They are
Degeneracy In a transportation problem, degeneracy occurs when there are too few occu-
pied cells to enable all the empty cells to be evaluated. In the case of the stepping-stone
method, this means that there will be at least one empty cell for which an evaluation path
4 0 8
<
Farm B 5 150 1 50 9 200
<
<
Farm C 7 6 200 3 200
Demand 50 150 300 500
cannot be constructed. For the MODI method, it means that it will be impossible to deter-
mine all of the row and column index numbers.
It is relatively simple to determine if a solution is degenerate: A solution is degenerate if the
number of occupied cells is less than the number of rows plus the number of columns minus 1.
A quick check of the alternate solution to the Harley problem developed in the preced-
ing section will reveal that the solution was degenerate: In Table 6S-17b, the number of
completed cells is 4, while the required number of completed cells is 3 3 1 5. This
presented no difficulty because we were not concerned with evaluating the empty cells
since the transportation table represented an optimal solution. We simply were interested in
comparing the total cost of that solution with the total cost of the original optimal solution
to verify that the two yielded the same total cost (alternate optimal solutions).
However, try to trace a stepping-stone path for any of the empty cells and you will
understand the nature of the problem. It should be mentioned that this particular case is
somewhat atypical in that usually some paths can be traced, but not all of them. Similarly, if
you attempt to compute index numbers for the rows and columns, you will be unable to
compute them for row B, column 1, or column 2.
Obviously, some modification has to be made in order to determine if a given solution
is optimal. The modification is to treat some of the empty cells as occupied cells. This is
k1 4 k2 0 k3 8
accomplished by placing a delta () in one of the empty cells.1 The delta represents an ex-
tremely small quantity (e.g., .001 unit); it is so small that supply and demand for the row
and column involved will be unaffected even without modifying other quantities in the row
or column, and so small that total cost will not change.
The purpose of the delta is to enable evaluation of the remaining empty cells. The
choice of location for the delta can be somewhat tricky. Some empty cells may be unsuitable
if they do not enable evaluations of the remaining empty cells. Moreover, the delta cannot
be placed in a cell that later turns out to be in a negative position of a cell path involved in
reallocation because delta will be the “smallest quantity in a negative position” and shifting
that minute quantity around the cell path will leave the solution virtually unchanged.
Consequently, a certain amount of trial and error may be necessary before a satisfactory
location can be identified for delta.
The technique can be demonstrated for the degenerate alternate solution of the Harley
problem. Suppose that after some experimentation, cell A–1 has been selected for the location
of delta. (Not all choices would be acceptable. For example, try placing the delta in cell C–2
and compute the improvement potentials for the empty cells. Remember that delta cannot be
in a cell with a negative sign). The resulting index numbers generated using MODI and the
improvement potential for empty cells based on delta in cell A–1 are shown in Table 6S-18.
Since all of the cell evaluations are nonnegative, this confirms that the solution is optimal.
Actually, the number of deltas needed will equal the difference between the number of completed cells and R C 1.
1
However, you will only be exposed to the most common case in which one more completed cell is needed.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-23
Prohibited
route
k1 4 k2 2 k3 10
Unequal Supply and Demand Up to this point, examples have involved cases in which supply
and demand were equal. As you might guess, in most situations, the two are not equal. When
such a situation is encountered, it is necessary to modify the original problem so that supply and
demand are equal. This is accomplished by adding either a dummy column or a dummy row; a
dummy row is added if supply is less than demand and a dummy column is added if demand is
less than supply. The dummy is assigned unit costs of zero for each cell, and it is given a supply
(if the row total is less than the column total) or a demand (if the column total is less than the
row total) equal to the difference between supply and demand. Quantities in dummy routes in
the optimal solution are not shipped. Rather, they serve to indicate which supplier will hold the
excess supply, and how much, or which destination will have a shortage, and how much it will
be short.
Let’s consider an example. Suppose that farm C in the Harley problem has experienced
an equipment breakdown, and it will be able to supply only 120 cubic yards of topsoil for a
period of time. Therefore, total supply will be 80 units less than total demand. This will
require adding a dummy origin with a supply of 80 units. The modified problem is shown
in Table 6S-20, and the final solution is shown in Table 6S-21. We interpret the solution indi-
cating that project 3 will be short 80 units per week until the equipment is repaired. Note,
though, that this analysis has considered only transportation costs, and that other factors, such
as shortage costs or schedules of the projects, may dictate some other course of action.
If the intuitive approach is used to obtain the initial feasible solution when a dummy is
involved, make assignments to the dummy last. Hence, begin by assigning units to the cell
with the lowest nonzero cost, then the next lowest nonzero cost, and so on. For the Harley
problem, this would mean that units would be assigned first to cell B–2 because its cost of
$1 is the lowest nonzero cell cost. In the next section, we will illustrate the solution proce-
dure for the assignment problem.
Assignment Problems
The assignment problem is a special case of the linear programming problem that is similar
to the transportation problem. It differs from the transportation problem such that the de-
mand at each destination and supply at each source is equal to one. The general explanation,
linear programming formulation, and Excel solution of the assignment problem was covered
in Chapter 6. In this chapter supplement, we will demonstrate the specialized solution
method for the assignment problem called the Hungarian method. The following example is
used to illustrate the Hungarian method.
Example 6S-1
A manager has prepared a table that shows the cost of performing each of four jobs
by each of four employees (see Table 6S-22). According to this table, Job 1 will cost $15
if done by employee A, $20 if it is done by employee B, and so on. The manager has
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-25
stated that his goal is to develop a set of job assignments that will minimize the total
cost of getting all four jobs done. It is further required that the jobs be performed
simultaneously, thus requiring one job being assigned to each employee.
Although the manager recognizes that this problem can be solved using the
simplex routine, he also knows that he can solve the problem by hand using the
Hungarian method.
Employee
A B C D
1 $15 20 18 24
2 12 17 16 15
Job
3 14 15 19 17
4 11 14 12 13
Now, the same logic can be applied from the perspective of the employees; this is called
column reduction. That is, because each employee will have a job, and because there are
cost differences among employees, there can be opportunity costs in that respect. These will
be in addition to the job opportunity costs because the minimum-cost (column) assign-
ments will not necessarily be the same as the minimum-cost row assignments. For instance,
the lowest-cost assignment for job 1 was employee A. However, the lowest-cost assignment
for employee A would be job 4, which has a cost of $11. The opportunity costs for employ-
ees can be determined using the values obtained from the row reductions because they are
in addition to those opportunity costs.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-26
1 15 20 18 24 15 1 0 5 3 9
2 12 17 16 15 12 2 0 5 4 3
Job Row Job
3 14 15 19 17 14 3 0 1 5 3
reduction
4 11 14 12 13 11 4 0 3 1 2
The column reductions for this example are illustrated in Table 6S-24. Notice that because
the minimum cost in column A is zero, there is no change in costs with a column reduction.
This will always be the case for a row or column with a minimum cost equal to zero. Since
both the second and third columns have minimum costs of $1, the values in the new table are
all one less in those columns than in the previous table. Similarly, the new values in the last
column are $2 less than in the previous table.
Once both the row and column opportunity costs have been determined, we can attempt
to make the minimum-cost assignments. Recognizing that assignments with opportunity costs
of zero reflect minimum costs, it would be desirable to attempt to make assignments only with
matches that have costs of zero. For instance, assigning any job to employee A would have a
zero cost. However, once a job is assigned to A, no other job can be assigned to A (i.e., the
other zero costs in that column become irrelevant). Consequently, even though it may appear
on the surface that there are enough zeros to make zero-cost assignments, the fact that each
assignment eliminates an entire row and column from further consideration (i.e., assignments)
means that a complete set of zero-cost assignments might not be possible at this juncture.
A quick method of determining if a set of zero opportunity cost assignments can be
made is to find the minimum number of lines needed to “cover” all the zero costs. That is, if
we draw a line through the zero costs in column A, this will account for four of the seven
zeros. How many such lines will be needed at minimum to cross out all zeros? The answer is
two more (a line through row 3 and one through row 4), for a total of three (see Table 6S-25).
Now, if the minimum number of covering lines equals the number of rows (or columns, because
this is a square table), an optimal assignment is possible. In this case, apparently, an optimal
assignment is not possible because only three lines were necessary. (Note that there is an-
other way of covering the second zero in row 3; a vertical line could have been drawn
through column B. The point is that only three lines, however drawn, would be needed.)
We must, therefore, make further reductions. No further row or column reductions
are possible because there is a zero in every row and column. To get around this, we do the
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-27
Revised (row
reduction) costs
Employee
A B C D
1 0 5 3 9
2 0 5 4 3
Job
3 0 1 5 3
4 0 3 1 2
Column
minimum 0 1 1 2
Column
reduction
Employee
A B C D
1 0 4 2 7
2 0 4 3 1
Job
3 0 0 4 1
4 0 2 0 0
following: Subtract the smallest uncovered value ($1 in this case), from every other uncovered
value and adding that same amount to values that lie at an intersection of two covering
lines. This is done in Table 6S-26. The rationale for this is: Subtracting the smallest uncov-
ered value reveals the next smallest increment in opportunity costs, whereas adding that
amount to intersections removes those assignments from consideration. Because both are
at an intersection means that another assignment already exists in both that row and that
column; hence, we can ignore those intersection possibilities.
We now can repeat the process of finding the minimum number of covering lines. In the
revised table, a minimum of four lines is needed. Hence, an optimal assignment is now possible.
A B C D
1 0 4 2 7
2 0 4 3 1
3 0 0 4 1
4 0 2 0 0
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-28
A B C D Revised costs
1 0 4 2 7 A B C D
2 0 4 3 1 1 0 3 1 6
Smallest
3 0 0 4 1 2 0 3 2 0
uncovered
4 0 2 0 0 cost 3 1 0 4 1
4 1 2 0 0
Assignment Cost
1–A $15
2–D 15
3–B 15
4–C 12
Total cost $57
It is instructive to note that this cost is equal to the sum of the row and column reduction costs
plus the reduction amount for the revised (final) cost table. That is, the row reduction amounts’
total was $15 $12 $14 $11 $52 (see Table 6S-23); and the column reduction amounts’
total was $0 $1 $1 $2 $4 (see Table 6S-24). The revised cost table involved an addi-
tional reduction of $1 for all uncovered numbers. Hence, the total reduction was $52 ($1
$1 $2) $1 $57, which agrees with the total cost amount just determined above.
Employee
A B C D
1 0 3 1 6
2 0 3 2 0
Job
3 1 0 4 1
4 1 2 0 0
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-29
Summary of Procedure
1. Perform a row reduction on the cost table by subtracting the least cost in each row from
all costs in that row.
2. Perform a column reduction on the cost table that results from the row reduction by
subtracting the least cost in each column from all costs in that column.
3. Determine if an optimal assignment can be made by drawing the minimum number of
horizontal and/or vertical lines necessary to cover all zero costs. If the number of lines
equals the number of rows, go to step 5.
4. If the minimum number of lines is less than the number of rows, identify the small-
est uncovered opportunity cost. Subtract that amount from all uncovered costs and
add that amount to the covered costs that lie at line intersections. Go to step 3.
5. Make the assignments. Begin with a row or column that has a single zero. Box that zero
to indicate the assignment and eliminate that row and column from further considera-
tion by drawing a line through the row and another line through the column. Continue
assigning rows or columns with single zero-cost elements, then choose arbitrarily for as-
signments where multiple zero-cost elements exist. Box that zero in that location and
eliminate the row and column from further consideration by drawing a line through the
respective row and column. Stop when all the zeros in the assignment table are covered.
Special Situations
Certain situations can arise in which the model deviates slightly from that previously described.
Among those situations are the following:
The procedure outlined previously for assignment problems requires an equal number
of rows and columns. However, certain problems may not satisfy that requirement. For ex-
ample, a situation might involve four jobs that need processing but there are only three ma-
chines available for processing. Consequently, one job will not be processed immediately. In
order to perform the analysis, and to learn which job will not be processed, an extra “ma-
chine” must be added to the table. In analyzing the problem, one job will be assigned to the
nonexistent machine. Hence, that will be the job that is not immediately processed.
Example 6S-2
Prepare this assignment table so that the optimal set of assignments can be made
using the previously described procedure.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-30
Job
1 2 3 4
A 15 19 12 16
Machine B 23 21 18 17
C 20 16 11 19
Solution
Compensate for too few machines by adding another machine (row) to the table.
Because no such machine exists, three will be no cost for the assignment. Hence, use
costs of 0 for this dummy row:
Job
1 2 3 4
A 15 19 12 16
B 23 21 18 17
Machine
C 20 16 11 19
D 0 0 0 0
Then, proceed as before. Note that the column reduction step will have no effect
because each column already has a zero. Simply skip that step and go on to the next step.
If the goal is to maximize rather than to minimize, one extra step must be added to the
start of the process: Identify the largest value in each column and, then, subtract all num-
bers in each column from the column maximum. Having done that, perform the same steps
that would be required if the problem were minimization because the modified values rep-
resent opportunity costs. The set of assignments that minimizes the opportunity costs will
also maximize the original values.
Example 6S-3
The following table contains profits that would be realized from various possible
pairings. Prepare the table so that the optimal solution can be obtained using the
Hungarian method for minimization.
1 2 3
A 14 22 30
B 20 18 40
C 11 12 50
Solution
Identify the maximum value in each column and then subtract every value in a given
column from the column maximum, as shown below:
Original values
1 2 3
A 14 22 30
B 20 18 40
C 11 12 50
Column
maximum 20 22 50
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-31
Opportunity costs
1 2 3
A 6 0 20
B 0 4 10
C 9 10 0
Example 6S-4
Determine the optimal set of pairings (minimum cost) given the following cost table.
Note that assignment B–3 is undesirable, as denoted by the M in that position.
1 2 3
A 8 7 2
B 1 4 M
C 7 9 3
Solution
Notice how the M does not change throughout the analysis:
In some cases, there are multiple optimal solutions to a problem. This condition can be
easily recognized when making the optimal assignments: No unique 0 will exist at some
point, resulting in more than one choice for assignment and, hence, more than one optimal
solution. It should be noted that all optimal solutions will yield the same value of the objec-
tive function (e.g., the same minimum cost).
Example 6S-5
Given the final assignment table, identify two optimal solutions.
1 2 3
A 4 0 0
B 0 3 2
C 1 0 0
Solution
The first assignment must be B–1, because B–1 is the only 0 that appears in a single
row or column. Having made that assignment, there are two choices for the remain-
ing two rows, and two choices for the remaining two columns. This results in two
possible solutions, as shown:
Summary
This chapter supplement covers the transportation solution procedures. In the first part of
the supplement, how to obtain an initial feasible solution is explained. Three different
methods of obtaining an initial feasible solution are northwest-corner rule, intuitive
method, and Vogel’s approximation. After obtaining an initial feasible solution, two special-
ized methods of solving the transportation problem are demonstrated: (1) stepping-stone
method and (2) MODI method. The supplement continues with an explanation of how to
deal with special cases, including prohibited routes, maximization problems, degenerate
solutions, and alternate optimal solutions. The last part of the supplement describes the
solution procedure for the assignment problem. The specialized solution procedure called
the Hungarian method is described with an example. The chapter supplement concludes
with the coverage of special situations for the assignment model.
Glossary
Assignment Problem A problem that requires pairing two sets of items given a set of
paired costs or profits in such a way that the total cost (profit) of the pairings is minimized
(maximized).
Column Reduction A step in the Hungarian method, whereby the smallest number in each
column in subtracted from all of the numbers in that column.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-33
Degeneracy A condition that can occur in a transportation model. The number of occupied
cells is too small to permit evaluation for optimality without first modifying the solution.
Hungarian Method A specialized solution procedure to solve the assignment problem.
Provides a faster solution to the assignment problem than the simplex method.
MODI MOdified DIstribution method, used to evaluate a transportation solution for
optimality. Involves the use of row and column index numbers.
Northwest-Corner Method A Procedure for obtaining an initial feasible solution to
a transportation problem that begins by allocating units to a upper-left-hand corner of
a transportation table and proceeds to make subsequent allocations moving in a southeast
direction on the transportation table.
Row Reduction A step in the assignment method, whereby the smallest number in each
row of a table is subtracted from all the numbers in its row.
Stepping-Stone Method A procedure for determining if a solution to a transportation prob-
lem is optimal that involves tracing closed paths from each empty cell through occupied cells.
Solved Problems
Problem 1 Solve this transportation problem for the minimum-cost solution. If there is an alternate
optimal solution, identify it.
To:
1 2 3 Supply
From:
A 2 3 9 61
B 5 6 4 61
Demand 50 55 17
Solution First, check to see if supply and demand are equal. Demand is 50 55 17 122;
supply is 61 61 122. Hence, they are equal.
Next, determine an initial feasible solution. This can be done using either the
northwest-corner method, the intuitive method or the Vogel’s approximation method.
Because the question did not specify which one, either can be used. Suppose we use the
intuitive method. The lowest cell cost is $2 in A–1, so we begin by allocating as many units
as possible to that cell. With a supply of 61 and a demand of 50, the most we can allocate
is 50 (which is the smaller of the two quantities). This exhausts the demand of column 1
and leaves 11 units still to be allocated in the first row. Because column 1 demand is
exhausted, we draw a line through the costs in column 1 to remove them from further
consideration.
To:
1 2 3 Supply
From:
A 50 2 3 9 61
11
B 5 6 4 61
Demand 50 55 17 122
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-34
The next lowest cost is the $3 in cell A–2, where demand is 55 and the remaining
supply is 11. Because 11 is the smaller of the two, allocate 11 units, and adjust the row
and column totals accordingly. Cross out the costs in row 1, since that supply has been
exhausted. This results in the following:
To:
1 2 3 Supply
From:
A 50 2 11 3 9 61
B 5 6 4 61
Demand 50 55
44 17 122
The remaining two cells are filled in the same manner, with the result:
To:
1 2 3 Supply
From:
A 50 2 11 3 9 61
B 5 44 6 17 4 61
Demand 50 55 17 122
Because the row and column quantities allocated, add to the row and column totals, this is
a feasible solution.
Next, we must ensure that the minimum number of occupied cells exists, or else we
will have to adjust for degeneracy. That number is one less than the sum of the number of
rows and the number of columns. With two rows and three columns, the desired number
of occupied cells is: 2 3 1 4. Since this agrees with the number we have, there is no
degeneracy and we can proceed to the next step, which is evaluation for optimality.
We can use either the stepping-stone method or MODI because no method was
specified. Since MODI is not as messy as stepping-stone, let’s use MODI. We begin with an
index number of 0 for the first row, which we write at the left of the first row. Then, for any
completed cells in the first row, the column index number is the sum of the cell cost 0.
Hence, for column 1 we have an index number of 2, and for column 2, the index number is
3. Once we have determined the index number for column 2, we can compute the index
number for the second row because cell B–2 is occupied. It is equal to the cell cost for B–2
minus the index for column 2. Hence, it is 6 3 3. And with that row index, we can
determine the column index for column 3. It is equal to the cell cost for B–3 minus the
index for the second row: 4 3 1. The following table shows these index numbers.
k1 2 k2 3 k3 1
To:
1 2 3 Supply
From:
r1 0 A 50 2 11 3 9 61
r2 3 B 5 44 6 17 4 61
Demand 50 55 17 122
Now, we can compute the cell evaluations for the empty cells, using the relationship: Cell
evaluation Cell cost Row index Column index. For cell B–1, this is 5 3 2 0; for
cell A–3, it is 9 0 1 8. These are shown in the following table as circled values.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-35
k1 2 k2 3 k3 1
To:
1 2 3 Supply
From:
r1 0 A 50 2 11 3 8 9 61
r2 3 B 0 5 44 6 17 4 61
Demand 50 55 17 122
Because there are no negative cell evaluations, this is the optimal solution. Thus, to
minimize transportation cost, ship 50 units from A to 1, 11 units from A to 2, 44 units
from B to 2, and 17 units from B. The total cost will be
The appearance of a cell evaluation of zero for cell B–1 indicates that an alternate
solution with the same total cost exists. To determine what that other solution is, we must
trace the stepping-stone path for the cell that has the zero evaluation. The stepping stone
for cell B–1 is given in the following table.
To:
1 2 3 Supply
From:
A 50 2 < 11 3 9 61
<
B 5 44 6 17 4 61
<
<
Demand 50 55 17 122
The negative positions in the path are cells A–1 and B–2. The smallest quantity in a
negative position is the 44 units in cell B–2. 44 is this amount that can be reallocated
around the path, subtracting it from the quantity at each negative position and adding
it at each positive position. After doing this, the alternate solution becomes apparent.
It is
To:
1 2 3 Supply
From:
A 6 2 55 3 9 61
B 44 5 6 17 4 61
Demand 50 55 17 122
If you compute the total cost, you will see that it is the same as the total cost of the
original optimal solution. Hence, the two solutions are equivalent in that regard.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-36
Problem 2 For the following transportation table, determine the initial feasible solution using the
Vogel’s approximation method.
To:
From: Chicago South Bend Indianapolis Fort Wayne Total
Cleveland 80 60 70 50 150
Columbus 75 65 55 40 175
Bowling 70 85 55 35 275
Green
Cincinnati 90 55 48 60 100
Total 200 100 300 100 700
Solution In establishing the penalty cost for row 1 (Cleveland), we subtract the lowest cost in row 1
from the second lowest cost in row 1. For Cleveland, the lowest cost is $50 (unit shipping
cost from Cleveland to Ft. Wayne), and the second lowest cost is $60 (unit shipping cost
from Cleveland to South Bend); therefore, $60 $50 $10 is the initial penalty cost for
row 1 (Chicago). For column 1, Bowling Green to Chicago has the lowest per-unit
transportation cost ($70) and Columbus to Chicago has the next lowest cost ($75).
Therefore, the penalty cost for column 1 (Chicago) is $75 $70 $5
Proceeding in this fashion for the rest of the rows and columns, we obtain the
following penalty costs:
Cleveland 10 Columbus 15 Bowling Green 20 Cincinnati 7
Chicago 5 South Bend 5 Indianapolis 0 Ft. Wayne 5
Since row 3 (Bowling Green) has the largest penalty cost, it is selected. In row 3, the
shipping route from Bowling Green to Ft. Wayne has the lowest shipping cost per unit
($35). Thus, we allocate as many units as possible (100 units) to it. Since the demand in
Ft. Wayne is reduced to zero, we eliminate Ft. Wayne from further consideration.
After eliminating Ft Wayne from further consideration, penalty costs are recalculated:
Cleveland 10 Columbus 10 Bowling Green 15 Cincinnati 7
Chicago 5 South Bend 5 Indianapolis 0
Since Bowling Green has largest penalty cost, it is selected again. Since Bowling Green to
Indianapolis has the smallest cost for the Bowling Green supply point, allocate 175 units from
Bowling Green to Indianapolis. This then eliminates Bowling Green from further
consideration.
The updated penalty costs are
Cleveland 10 Columbus 10 Cincinnati 7
Chicago 5 South Bend 5 Indianapolis 0
Since Cleveland and Columbus have the largest penalty cost, Columbus is arbitrarly
selected. Since Columbus to Indianapolis has the smallest cost for the Columbus supply
point, allocate 125 units from Columbus to Indianapolis. This eliminates Indianapolis
from further consideration.
Continuing in this fashion gives the following completed transportation table with
the penalty costs. Note that the solution is degenerate because the number of allocations
6 (m n 1 4 4 1 7).
ste9066x_ch06s.qxd 11/22/05 12:07 PM Page 6S-37
To:
From: Chicago South Bend Indianapolis Fort Wayne Total PC 1 PC 2 PC 3 PC 4 PC 5
Cleveland 150 80 60 70 50 150 10 10 10 20 —
Columbus 50 75 65 125 55 40 175 15 10 10 10 10
Bowling 70 85 175 55 100 35 275 20 15 — — —
Green
Cincinnati 90 100 55 48 60 100 7 7 7 35 —
Total 200 100 300 100 700
Penalty 5 5 0 5
Cost 1
Penalty 5 5 0 —
Cost 2
Penalty 5 5 0 —
Cost 3
Penalty 5 5 — —
Cost 4
Penalty 5 — — —
Cost 5
Problem 3 Solve this transportation problem for the maximum profit. The values in the upper-right-
hand corner of each cell represent profit per unit for that cell. Use the intuitive method for
the initial solution and the MODI method to evaluate the empty cells.
To:
A B C Capacity
From:
#1 2 8 6 40
#2 9 7 5 50
#3 4 4 3 60
Demand 60 30 60 150
Solution a. Because this is a maximization problem, our first step is to convert it to a minimization
problem so that we can solve it in the same way we solve all transportation problems.
To do this, we note that the largest unit profit in the table is 9. Subtract all of the unit
profits in the table from 9, and enter the resulting opportunity costs in a new table:
To:
A B C Capacity
From:
#1 7 1 3 40
#2 0 2 4 50
#3 5 5 6 60
Demand 60 30 60 150
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-38
b. Now solve this revised problem as a regular transportation problem where the objective
is to minimize the (opportunity) costs. The resulting solution will maximize profits.
(1) Make the initial set of allocations using the intuitive method: Begin with cell A–2
because it has the lowest cell cost (0). Allocate the smaller of the row capacity (50)
and the column demand (60). Thus, allocate 50 units, and adjust the row and
column totals accordingly. Cross out the costs in row 2 because its capacity is now
exhausted. The next lowest cost is for cell B–1. Allocate 30 units and cross out the
costs in column B and the column total of 30. Continue in this manner until all
units have been allocated to cells. The resulting shipping plan is
Intuitive Method Solution
To:
A B C Capacity
From:
#1 7 30 1 10 3 40
#2 50 0 2 4 50
#3 10 5 5 50 6 60
Demand 60 30 60 150
(2) Determine the index numbers of MODI: Begin by assigning a row index number
of zero to the first row. Then, you can determine column index numbers using the
occupied cells in the first row. For column B, the index number is 1 and for
column C, it is 3. (Recall that the sum of the row and column index numbers for
an occupied cell must equal the cell cost.) Next, use the index number for column C
and the cell cost for C–3 to obtain the index number for row 3. We can see that the
sum of the row 3 index number (unknown at this point) and the column C index
number (3) must equal 6. (6 r3 3 and r3 3) Hence, the row index number
must equal 3. Continuing in this manner, we obtain index numbers for the
remaining rows and columns. These are shown in the next table.
(3) Use the index numbers to evaluate the empty cells: For each empty cell, subtract
the sum of the row and column index numbers for that cell from the cell’s unit
cost. The result is the cell evaluation. For cell A–1, we have 7 (0 2) 5. For
cell B–2, we have 2 (2 1) 3. For cell C–2 we have 4 (2 3) 3.
For cell B–3, we have 5 (3 1) 1. These are shown in the following table.
k1 2 k2 1 k3 3
A B C Capacity
r1 0 #1 5 7 30 1 10 3 40
r2 2 #2 50 0 3 2 3 4 0
r3 3 #3 10 5 1 5 50 6 60
Demand 60 30 60 150
(4) Because none of the cell evaluations are negative, this solution is optimal.
(5) Find the total profit by using the unit profits for the original transportation
table, not the table containing the opportunity costs. This yields
30(8) 10(6) 50(9) 10(4) 50(3) $940
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-39
Problem 4 Given this table of job costs determine the optimal set of assignments of employees to
jobs.
Employee
A B C
1 6 4 7
Job 2 9 5 2
3 5 7 1
Solution First, note that the figures in the table represent costs, so this is a minimization problem.
Step 1. First, write the minimum value in each row down the right side of the table. Then sub-
tract each row minimum from every value in the row. This will produce at least one
zero in each row (See Step1 in the following table.)
Step 2. In the resulting table, write the minimum value in each column across the bottom,
and then subtract the column minimum from each value in the column. Note that
when the minimum is zero, the numbers in the column remain the same. (See Step 2
in the following table.)
Step 3. Now draw horizontal and/or vertical crossout lines such that all zeros are crossed
out using as few lines as possible. If the number of crossout lines equals the num-
ber of rows in a square table, the optimal solution can be identified in that table.
Here there are only two crossout lines, so at least one more table will be needed.
(See Step 3 in the following table.)
Step 4. Identify the smallest number that is not crossed out. It is 2. Subtract that number
from every number that is not crossed out. Also, add it to every intersection of
crossout lines. If a number is crossed out but not at an intersection of crossout
lines, don’t change its value. (See Step 4 in the following table.)
Step 5. Redraw the crossout lines using as few as possible. If the number of lines equals the
numbers of rows (it does), an optimal solution can be identified. To identify opti-
mal assignments, begin by finding a row (or column) that has only one zero. Place
a box around that zero and cross out every other number in that row and column.
Find another row or column that has only one zero, place a box around it, and cross
out every other value in that row and column. Repeat this procedure until no fur-
ther zeros exist. (Note: In some instances, there may not be a row or column with
only one zero. This means there will be at least one alternate solution. Refer to the
example in the text for the procedure.) (See Step 5 in the following table.)
Original Table
Employee Row
A B C minimum
1 6 4 7 4
Job 2 9 5 2 2
3 5 7 1 1
Since for column B and job (row) 2, there is a single zero, the optimal assignments are
employee B to job 1, employee C to job 2, and employee A to job 3. Relating the
assignments to the original table reveals that the minimum cost is 4 2 5 11.
Employee
A B C
1 6 4 7
Job 2 9 5 2
3 5 7 1
Problem 5 The following table contains processing costs for two jobs on various machines. Each job
must be processed on one machine. Determine a set of pairings that will minimize total
processing costs.
Job
1 2
A 8 7
Machine B 5 4
C 3 1
Solution The problem requires a pairing, or matching, of jobs and machines. Thus, it is an
assignment problem. Assignment techniques require square tables (i.e., in this case, an
equal number of jobs and machines). Because there are three machines and only two jobs,
a third (dummy) job must be added. Processing costs of zero are assigned to each of the
possible pairings of the dummy job and the machines, resulting in this table:
Job
1 2 3
A 8 7 0
Machine B 5 4 0
C 3 1 0
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-41
Ordinarily, the next step would be to perform a row reduction. Note, however, that the
smallest value in each row is a zero. Consequently, a row reduction (i.e., subtracting the
smallest value in each row from the other values in the row) will result in the same values.
Therefore, we move to the next step, which is a column reduction. The smallest value in
the first column is 3, the smallest in the second column is 1, and the smallest in the third
column is 0. The column reduction is illustrated in the next set of tables.
Job
1 2 3
A 8 7 0
Machine B 5 4 0 (Original values)
C 3 1 0
Minimum
column value: 3 1 0
Now, we test to determine if the optimal solution can be found at this point. This involves
crossing out the zeros in the table with as few (horizontal or vertical) lines as possible. As
shown in the preceding table, only two lines are required. If the lines had equaled the number
of rows (or columns, because we had a square table after adding the dummy job), the optimal
set of assignments could be made. Because that is not the case, we move on to the next step.
Identify the smallest value that is not crossed out. It is the 2 in location B–1. Circle
it, as in the preceding table, and then subtract it from any value that has not been
crossed out. Also, add it to the intersection of the crossing lines. The results are shown
in the next table.
Job
1 2 3
A 3 4 0
Machine B 0 1 0
C 0 0 0
At this point, three lines (not shown) would be needed to cross out all of the zero values.
Therefore, we can identify the optimal solution. To do this, begin with a row or column
that has only one zero. In this case, the first row has only one zero; so does the second
column. Hence, either of those could be chosen for the initial assignment. Suppose we
choose A–3. We indicate this by drawing a box around the 0 at a A–3, and then cross out
all of the values in row A and all of the values in column 3.
Job
1 2 3
A 0 4 0
Machine B 0 1 0
C 0 0 2
We must continue to make assignments to rows or columns that have only one zero,
until none with unique zeros remain. Zeros that have been crossed out should be ignored.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-42
At this point, row B has only one remaining zero, and the second column also has one
zero. Therefore, either of these could be chosen. Suppose we choose B–1. Drawing a box
around that zero and crossing out all of the other values in row B and column 1 leaves
only the 0 at C–2.
Job
1 2 3
A 0 4 0
Machine B 0 1 0
C 0 0 2
Thus, the last assignment is C–2, and our optimal set of assignments is A–3, B–1, and C–2.
The (minimum) cost associated with this set of assignments can be determined by
referring to the optimal table of values and noting the cost of each assignment. Thus:
Assignment Cost
A–3 0
B–1 5
C–2 1
6
Because job 3 (the dummy) has been assigned to machine A, this tells us that, in reality,
machine A will not have a job assigned to it.
Problems
1. Consider the transportation problem of the California Dishwasher Company:
To:
Store 1 Store 2 Store 3 Supply
From:
Warehouse A 12 20 15 50
Warehouse B 9 11 4 15
Warehouse C 20 14 8 55
Demand 25 50 45 120
a. Develop an intuitive solution to this problem; evaluate it, and revise if necessary to
obtain the minimum-cost solution. Then, compute the total cost.
b. Solve the problem using the northwest-corner and stepping-stone methods. Are
there alternate optimal solutions to this problem? How do you know?
3. Rod Steele, superintendent of Rochester Forging, has developed the following transporta-
tion model. Solve it for the minimum-cost solution using the intuitive method for the ini-
tial solution and MODI for evaluation. Is there an alternate optimal solution? What is it?
4. a. Find the initial solution to the following transportation problem using the
northwest-corner method and optimum solution using the stepping-stone
method. What is the total cost?
b. Find the minimum-cost solution using the intuitive method and MODI.
5. The manager of Home Office Supplies, Gigi Staples, has just received demand forecasts
and capacity (supply) figures for next month. These are summarized along with unit
shipping costs in the following transportation table.
To: D1 D2 D3 D4 D5 Supply
From:
O1 8 4 12 11 9 220
O2 7 6 10 5 6 260
O3 12 13 9 16 9 200
Demand 140 180 150 140 195
a. Using the intuitive method and MODI, find the minimum-cost solution.
b. Which destinations will not receive their entire demand? How many units short
will each be?
6. Consider the transportation problem of Doors Plus, a producer of steel doors for public
schools:
a. Using the intuitive method and MODI, find the minimum-cost solution.
b. Now suppose that the Rochester–Chicago route is temporarily unavailable. Begin-
ning with the solution from (a), determine a distribution plan that will avoid this
route. How much extra does this plan cost compared to the plan when all routes
are possible? Note: Costs are in $100s.
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-45
7. The Future Furniture company recently began construction of a new warehouse. Dur-
ing the construction period, several changes have occurred that require development of
a new distribution plan. The current figures for supply are
Capacity
Plant (pieces per week)
East L.A. (ELA) 600
West L.A. (WLA) 800
El Toro (ET) 400
Demand (pieces
Warehouse per week)
Orange County #1 (OC1) 300
Orange County #2 (OC2) 400
Long Beach (LB) 200
Los Angeles (LA) 900
To:
A B C D Supply
From:
1 18 12 14 16 40
2 23 24 27 333 80
3 42 34 31 26 130
Demand 90 80 30 50
b. Based on the solution found in part a, determine the optimal solution using
MODI.
16. a. For the following cost minimization transportation tableau, determine the initial
feasible solution using Vogel’s approximation method.
b. Use the initial feasible solution found in part a and determine the minimum-cost
transportation schedule using MODI.
17. A soft drink manufacturer, Sara Soda, Ltd., has recently begun negotiations with bro-
kers in the areas where it intends to distribute its products. Before finalizing the agree-
ments, however, manager Dave Pepper wants to determine shipping routes and costs.
The firm has three plants with capacities as shown below:
Capacity
Plant (cases per week)
Metro 40,000
Ridge 30,000
Colby 25,000
Demand (cases
Warehouse per week)
RS1 24,000
RS2 22,000
RS3 23,000
RS4 16,000
RS5 10,000
The estimated shipping costs per case for the various routes are
To:
From: RS1 RS2 RS3 RS4 RS5
Metro .80 .75 .60 .70 .90
Ridge .75 .80 .85 .70 .85
Colby .70 .75 .70 .80 .80
a.Determine the optimal shipping plan that will minimize total shipping cost under
these conditions:
b. Route Ridge–RS4 is unacceptable.
c. All routes are acceptable.
d. What is the additional cost of the Ridge–RS4 route not being acceptable?
18. A shop foreman has prepared the following table, which shows the costs for various
combinations of job-machine assignments:
Machine
A B C
1 20 35 22
Job 2 42 18 25
3 6 23 15
19. The foreman of a machine shop wants to determine a minimum-cost matching for op-
erators and machines. The foreman has determined the hourly cost for each of four op-
erators for the four machines, as shown in the following cost table.
Machine
A B C D
1 70 80 75 64
2 55 52 58 54
Operator
3 58 56 64 68
4 62 60 67 70
Game site
Syracuse Buffalo Rochester Ithaca
*
A 1.2 1.4 0.2 1.5
Crew B 1.0 2.0 0.5 1.0
C 1.2 3.4 2.4 0.5
D 2.1 3.1 1.1 0.8
*Time in hours
Machine
A B C D
1 45 75 80 35
Job 2 55 60 60 65
3 70 65 50 45
4 60 75 70 65
ste9066x_ch06s.qxd 11/16/05 4:42 PM Page 6S-49
a. Determine the set of assignments that will minimize total processing cost.
b. What is total processing cost?
c. Is there an alternate optimal solution? What is it?
24. If the numbers in the previous problem reflected profits rather than costs, what set of
assignments would have been optimal?
25. (Refer to Problem 23.) Assuming cost minimization objective. Suppose that job 1 could
not be assigned to machine D because of a technical problem. What set of assignments
would now minimize total cost? What additional cost is incurred because of the tech-
nical problem?
26. An analyst has kept track of the number of defectives produced by five workers on five
different machines. The results are shown below for a run of 400 units per machine:
Machine
A B C D E
1 9 7 4 6 2
2 7 4 5 2 1
Worker 3 3 4 3 2 3
4 9 7 8 6 5
5 0 3 2 4 3
a.
Determine a set of assignments that will minimize the total number of errors for
a given run size.
b. Is there an alternate optimal solution? If so, what is it?
c. What is the total number of defectives expected for the optimal assignment?
27. In the previous problem, if another machine (machine F) was available and the num-
ber of defectives produced by the five workers for a run of 400 units was 4, 4, 2, 3,
and 1, respectively, determine the following:
a. A set of assignments that will minimize the total number of expected defectives.
b. Which machine will not be used?
c. Is there an alternate optimal solution? If so, what is it?
28. A manager has four jobs that must be assigned. Estimated processing times for each
employee are shown in the accompanying table.
Employee
Smith Jones Green Mehl
*
1 6.2 8.0 5.4 4.8
2 6.0 7.2 5.8 4.4
Job
3 5.5 6.0 6.6 6.8
4 6.3 6.6 7.0 7.3
*
Time in hours.
Warehouse
1 2 3 4
A 2.4 1.8 2.6 1.8
Plant B 2.0 1.9 2.2 2.2
C 1.4 1.7 2.0 1.4
D 1.6 2.1 2.1 1.6
a. Determine a set of assignments that will minimize total shipping cost for a period.
b. What is the total shipping cost for your plan?
c. Is there an alternate optimal solution? If so, what is it?
d. Would the optimal solution change if the values represented shipping time instead
of shipping cost ? Explain.
30. On Monday morning, the manager of a small print shop, Carri Fonts, finds that four
jobs must be handled on a “rush” basis. Fortunately, there are four employees available
to work on these jobs, and each will handle one of the jobs. Each employee has a
slightly different estimated completion time for each job, as shown in the table below:
Completion time (hours)
Job
A B C D
Tom 4.2 4.1 5.4 5.0
Dick 4.4 4.0 5.2 4.8
Employee
Harry 4.3 4.2 5.0 4.9
Jane 4.0 4.1 5.4 5.0
Carri wants to determine how to assign the employees to jobs so that the total comple-
tion time is as low as possible. Determine the set of assignments that will minimize the
completion time of all jobs.