37
1 Transportatio Transportatio n and n and Assignment Assignment Models Models icrosoft Office Word 2003.ln

Transportation and Assignment Models

Embed Size (px)

DESCRIPTION

Transportation and Assignment Models. Learning Objectives. Structure special LP problems using the transportation and assignment models. Use the N.W. corner, VAM, MODI, and stepping-stone method. Solve facility location and other application problems with transportation methods. - PowerPoint PPT Presentation

Citation preview

Page 1: Transportation and Assignment Models

1

Transportation Transportation and Assignment and Assignment

ModelsModelsMicrosoft Office Word 2003.lnk

Page 2: Transportation and Assignment Models

2

Learning ObjectivesLearning Objectives1. Structure special LP problems using

the transportation and assignment models.

2. Use the N.W. corner, VAM, MODI, and stepping-stone method.

3. Solve facility location and other application problems with transportation methods.

4. Solve assignment problems with the Hungarian (matrix reduction) method.

Page 3: Transportation and Assignment Models

3

Chapter OutlineChapter Outline1 Introduction2 Setting Up a Transportation Problem3 Developing an Initial Solution:

Northwest Corner Rule4 Stepping-Stone Method: Finding a

Least-Cost Solution5 MODI Method6 Vogel’s Approximation Method7 Unbalanced Transportation Problems8 Degeneracy in Transportation Problems

9 More Than One Optimal Solution

10 Maximization Transportation Problems

Page 4: Transportation and Assignment Models

4

Chapter Outline Chapter Outline (continued)(continued)

11 Unacceptable or Prohibited Routes

12 Facility Location Analysis

13 Approach of the Assignment

Model

14 Unbalanced Assignment Models

15 Maximization Assignment

Problems

Page 5: Transportation and Assignment Models

5

IntroductionIntroductionTwo Special LP Models

The Transportation and Assignment problems are types of LP techniques

called network flow problems.1. Transportation Problem

Deals with the distribution of goods from several points of supply (sources) to a number of points of demand (destinations).

Transportation models can also be used when a firm is trying to decide where to locate a new facility.

Good financial decisions concerning facility location also attempt to minimize total transportation and production costs for the entire system.

Page 6: Transportation and Assignment Models

6

IntroductionIntroductionTwo Special LP Models2. Assignment Problem

Refers to the class of LP problems that involve determining the most efficient assignment of

o people to projects, o salespeople to territories, o contracts to bidders,o jobs to machines, etc.

The objective is most often to minimize total costs or total time of performing the tasks at hand.

One important characteristic of assignment problems is that only one job or worker is assigned to one machine or project.

Page 7: Transportation and Assignment Models

7

Importance of Special- Importance of Special- Purpose AlgorithmsPurpose Algorithms

Two common techniques for developing initial solutions are: the northwest corner method and Vogel’s approximation method.

After an initial solution is developed, it must be evaluated by either the stepping-stone method or the modified distribution (MODI)

method. Also introduced is a solution procedure

for assignment problems alternatively called the Hungarian method, Flood’s technique, or the reduced matrix method.

Page 8: Transportation and Assignment Models

8

Transportation TableTransportation Table

20 15 5 40

7

20

13Origin

(D)

Origin(E)

Origin(F)

WarehouseReq.

Destination(A)

Destination(B)

Destination(C) Factory

Capacity

Example

4

8

6 4 1

9 2

3 6

Page 9: Transportation and Assignment Models

9

Initial Solution Using the Initial Solution Using the Northwest Corner RuleNorthwest Corner Rule

Start in the upper left-hand cell and allocate units to shipping routes as follows:

1. Exhaust the supply (factory capacity) of each row before moving down to the next row.

2. Exhaust the demand (warehouse) requirements of each column before moving to the next column to the right.

3. Check that all supply and demand requirements are met.

Page 10: Transportation and Assignment Models

10

The Five Steps of the The Five Steps of the Stepping-Stone MethodStepping-Stone Method

1. Select any unused square to evaluate.2. Begin at this square. Trace a closed

path back to the original square via squares that are currently being used (only horizontal or vertical moves allowed).

3. Beginning with a plus (+) sign at the unused square, place alternate minus (-) signs and plus signs on each corner square of the closed path just traced.

4. Calculate an improvement index by adding together the unit cost figures found in each square containing a plus sign and then subtracting the unit costs in each square containing a minus sign.

Page 11: Transportation and Assignment Models

11

The Five Steps of the The Five Steps of the Stepping-Stone MethodStepping-Stone Method

(Continued)5. Repeat steps 1 to 4 until an improvement

index has been calculated for all unused squares.

If all indices computed are greater than or equal to zero, an optimal solution has been reached.

If not, it is possible to improve the current solution and decrease total shipping costs.

Page 12: Transportation and Assignment Models

12

The MODI MethodThe MODI Method The MODI (modified distribution)

method allows improvement indices quickly to be computed for each unused square without drawing all of the closed paths.

Because of this, it can often provide considerable time savings over the stepping-stone method for solving transportation problems.

In applying the MODI method, begin with an initial solution obtained by using the northwest corner rule.

Page 13: Transportation and Assignment Models

13

The MODI MethodThe MODI Method

But now must compute a value for each row (call the values R1, R2, R3 if there are three rows) and for each column (K1, K2, K3) in the transportation table.

The next slide summarizes the five steps in the MODI Method.

Page 14: Transportation and Assignment Models

14

MODI Method: Five StepsMODI Method: Five Steps

1. Compute the values for each row and column: set Ri + Kj = Cij for those squares currently used or occupied.

2. After writing all equations, set R1 = 0.

3. Solve the system of equations for Ri

and Kj values.4. Compute the improvement index for

each unused square by the formula improvement index: Cij - Ri - Kj

5. Select the largest negative index and proceed to solve the problem as you did using the stepping-stone method.

Page 15: Transportation and Assignment Models

15

Vogel’s Approximation Vogel’s Approximation Alternative to the Alternative to the

Northwest Corner MethodNorthwest Corner Method VAM is not as simple as the northwest

corner method, but it provides a very good initial solution, usually one that is the optimal solution.

VAM tackles the problem of finding a good initial solution by taking into account the costs associated with each route alternative. This is something that the northwest corner

rule does not do. To apply VAM, we first compute for

each row and column the penalty faced if we should ship over the second best route instead of the least-cost route.

Page 16: Transportation and Assignment Models

16

The Six Steps for The Six Steps for Vogel’s ApproximationVogel’s Approximation

1. For each row/column, find difference between two lowest costs.

Opportunity cost2. Find greatest opportunity cost.3. Assign as many units as possible to

lowest cost square in row/column with greatest opportunity cost.

4. Eliminate row or column that has been completely satisfied.

5. Recompute the cost differences for remaining rows/columns.

6. Return to Step 2 and repeat until obtaining a feasible solution.

Page 17: Transportation and Assignment Models

17

Special Problems in Special Problems in Transportation MethodTransportation Method

Unbalanced problemDemand less than supplyDemand greater than supply

Degeneracy More than one optimal solution

Page 18: Transportation and Assignment Models

18

Unbalanced Unbalanced Transportation ProblemsTransportation Problems In real-life problems, total demand is

not equal to total supply. These unbalanced problems can be

handled easily by using dummy sources or dummy destinations.

If total supply is greater than total demand, a dummy destination (warehouse), with demand exactly equal to the surplus, is created.

If total demand is greater than total supply, introduce a dummy source (factory) with a supply equal to the excess of demand over supply.

Page 19: Transportation and Assignment Models

19

Unbalanced Unbalanced Transportation ProblemsTransportation Problems Regardless of whether demand or

supply exceeds the other, shipping cost coefficients of zero are assigned to each dummy location or route because no shipments will actually be made from a dummy factory or to a dummy warehouse.

Any units assigned to a dummy destination represent excess capacity, and units assigned to a dummy source represent unmet demand.

Page 20: Transportation and Assignment Models

20

Unbalanced ProblemUnbalanced ProblemDemand Less than SupplyDemand Less than Supply

Factory 1

Factory 2

Factory 3

Customer Requirements

Customer 1

Customer 2

DummyFactory

Capacity

150 80 150 380

80

130

1708 5 0

0

09

1015

3

Page 21: Transportation and Assignment Models

21

Unbalanced ProblemUnbalanced ProblemSupply Less than DemandSupply Less than Demand The second type of unbalanced

condition occurs when total demand is greater than total supply.

This means that customers or warehouses require more of a product than the firm’s factories can provide.

In this case we need to add a dummy row representing a fake factory.

The new factory will have a supply exactly equal to the difference between total demand and total real supply.

The shipping costs from the dummy factory to each destination will be zero.

Page 22: Transportation and Assignment Models

22

Unbalanced ProblemUnbalanced ProblemSupply Less than DemandSupply Less than Demand

Factory 1

Factory 2

Dummy

Customer Requirements

Customer 1

Customer 2

Customer 3

FactoryCapacity

150 80 150 380

80

130

1708 5 16

7

00

1015

0

Page 23: Transportation and Assignment Models

23

DegeneracyDegeneracy Degeneracy occurs when the number of

occupied squares or routes in a transportation table solution is less than the number of rows plus the number of columns minus 1. # Occupied Squares = Rows + Columns – 1

Such a situation may arise in the initial solution or in any subsequent solution. Degeneracy requires a special procedure to

correct the problem. Without enough occupied squares to trace a

closed path for each unused route, it would be impossible to apply the stepping-stone method or to calculate the R and K values needed for the MODI technique.

Page 24: Transportation and Assignment Models

24

DegeneracyDegeneracy To handle degenerate problems,

create an artificially occupied cell. * That is, place a zero (representing a

fake shipment) in one of the unused squares and then treat that square as if it were occupied.

The square chosen must be in such a position as to allow all stepping-stone paths to be closed.

* Although there is usually a good deal of flexibility in selecting the unused square that will receive the zero.

Page 25: Transportation and Assignment Models

25

More Than One More Than One Optimal SolutionOptimal Solution

As with LP problems, it is possible for a Transportation Problem to have multiple optimal solutions.

Such is the case when one or more of the improvement indices that we calculate for each unused square is zero in the optimal solution. This means that it is possible to design

alternative shipping routes with the same total shipping cost.

The alternate optimal solution can be found by shipping the most to this unused square using a stepping-stone path.

Practically speaking, multiple optimal solutions provide management with greater flexibility in selecting and using resources.

Page 26: Transportation and Assignment Models

26

Maximization Maximization Transportation ProblemsTransportation Problems If the objective in a transportation problem

is to maximize profit, a minor change is required in the transportation algorithm.

Since the improvement index for an empty cell indicates how the objective function value will change if one unit is placed in that empty cell, the optimal solution is reached when all the

improvement indices are negative or zero. If any index is positive, the cell with the

largest positive improvement index is selected to be filled using a stepping-stone path.

This new solution is evaluated and the process continues until there are no positive improvement indices.

Page 27: Transportation and Assignment Models

27

Unacceptable Or Unacceptable Or Prohibited RoutesProhibited Routes

At times there are transportation problems in which one of the sources is unable to ship to one or more of the destinations. When this occurs, the problem is said to have an

unacceptable or prohibited route. In a minimization problem, such a

prohibited route is assigned a very high cost to prevent this route from ever being used in the optimal solution.

After this high cost is placed in the transportation table, the problem is solved using the techniques previously discussed.

In a maximization problem, the very high cost used in minimization problems is given a negative sign, turning it into a very bad profit.

Page 28: Transportation and Assignment Models

28

The Assignment ModelThe Assignment Model The second special-purpose LP

algorithm is the assignment method. Each assignment problem has

associated with it a table, or matrix. Generally, the rows contain the objects

or people we wish to assign, and the columns comprise the tasks or things we want them assigned to.

The numbers in the table are the costs associated with each particular assignment.

Page 29: Transportation and Assignment Models

29

The Assignment ModelThe Assignment Model An assignment problem can be viewed

as a transportation problem in which the capacity from each source (or person

to be assigned) is 1 and the demand at each destination (or job to

be done) is 1. Such a formulation could be solved

using the transportation algorithm, but it would have a severe degeneracy problem.

However, this type of problem is very easy to solve using the assignment method.

Page 30: Transportation and Assignment Models

30

The Assignment ProblemThe Assignment Problem

ProjectPerson 1 2 3Adams $11 $14 $6Brown $8 $10 $11Cooper $9 $12 $7

Page 31: Transportation and Assignment Models

31

The Steps of the The Steps of the Assignment MethodAssignment Method

1. Find the opportunity cost table by:a) Subtracting the smallest number in

each row of the original cost table or matrix from every number in that row.

b) Then subtracting the smallest number in each column of the table obtained in part (a) from every number in that column.

Page 32: Transportation and Assignment Models

32

Steps of the Assignment Steps of the Assignment MethodMethod (continued)(continued)

2. Test the table resulting from step 1 to see whether an optimal assignment can be made.

The procedure is to draw the minimum number of vertical and horizontal straight lines necessary to cover all zeros in the table.

If the number of lines equals either the number of rows or columns in the table, an optimal assignment can be made.

If the number of lines is less than the number of rows or columns, then proceed to step 3.

Page 33: Transportation and Assignment Models

33

3. Revise the present opportunity cost table.

This is done by subtracting the smallest number not covered by a line from every other uncovered number.

This same smallest number is also added to any number(s) lying at the intersection of horizontal and vertical lines.

We then return to step 2 and continue the cycle until an optimal assignment is possible.

Steps of the Assignment Steps of the Assignment MethodMethod (continued)(continued)

Page 34: Transportation and Assignment Models

34

Often the number of people or objects to be assigned does not equal the number of tasks or clients or machines listed in the columns, and the problem is unbalanced. When this occurs, and there are more

rows than columns, simply add a dummy column or task (similar to how unbalanced transportation problems were dealt with earlier).

Unbalanced Unbalanced Assignment ProblemsAssignment Problems

Page 35: Transportation and Assignment Models

35

If the number of tasks that need to be done exceeds the number of people available, add a dummy row. This creates a table of equal dimensions

and allows us to solve the problem as before.

Since the dummy task or person is really nonexistent, it is reasonable to enter zeros in its row or column as the cost or time estimate.

Unbalanced Unbalanced Assignment ProblemsAssignment Problems

(continued)(continued)

Page 36: Transportation and Assignment Models

36

Some assignment problems are phrased in terms of maximizing the payoff, profit, or effectiveness of an assignment instead of minimizing costs.

It is easy to obtain an equivalent minimization problem by converting all numbers in the table to opportunity costs. This is brought about by subtracting

every number in the original payoff table from the largest single number in that table.

Maximization Maximization Assignment ProblemsAssignment Problems

Page 37: Transportation and Assignment Models

37

The transformed entries represent opportunity costs:it turns out that minimizing opportunity

costs produces the same assignment as the original maximization problem.

Once the optimal assignment for this transformed problem has been computed, the total payoff or profit is found by adding the original payoffs of those cells that are in the optimal assignment.

Maximization Maximization Assignment ProblemsAssignment Problems