Chapter 4 Transportation and Assignment Models
Chapter 4 Transportation and Assignment Models
TRANSPORTATION AND
ASSIGNMENT MODELS
Learning Objectives
After completing this chapter, students will be able to:
               Factories                          Warehouses
               (Sources)                         (Destinations)
                 TO
 FROM                  ALBUQUERQUE        BOSTON       CLEVELAND
 DES MOINES                  $5              $4             $3
EVANSVILLE $8 $4 $3
 FORT LAUDERDALE             $9              $7             $5
Setting Up a
Transportation Problem
 Geographical locations of Executive Furnitures factories
  and warehouses
Boston
                               Cleveland
       Des Moines                                 Factory
Evanston
                                           Warehouse
    Albuquerque
                                Fort Lauderdale
Setting Up a
Transportation Problem
  Transportation table for Executive Furniture                                     Des Moines
                                                                                    capacity
                                                                                    constraint
DES MOINES                          $5                $4                  $3
                                                                                   100
FACTORY
EVANSVILLE                          $8                $4                  $3
                                                                                   300
FACTORY
FORT LAUDERDALE                     $9                $7                  $5
                                                                                   300
FACTORY
WAREHOUSE
REQUIREMENTS                300              200                  200              700
(DEMAND)
                                                                           Cell representing a
                                                           Total supply    source-to-destination
             Cost of shipping 1 unit from Cleveland                        (Evansville to Cleveland)
                                                           and demand
             Fort Lauderdale factory to   warehouse                        shipping assignment
             Boston warehouse             demand                           that could be made
Setting Up a
Transportation Problem
  In this table, total factory supply exactly equals
   total warehouse demand
  When equal demand and supply occur, a
   balanced problem is said to exist
  This is uncommon in the real world and we have
   techniques to deal with unbalanced problems
Developing an Initial Solution:
Northwest Corner Rule
 Once we have arranged the data in a table, we must
  establish an initial feasible solution
 One systematic approach is known as the northwest
  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 right to the next column
    3. Check that all supply and demand requirements are met.
 In this problem it takes five steps to make the initial
  shipping assignments
Developing an Initial Solution:
Northwest Corner Rule
1. Beginning in the upper left hand corner, we assign 100
   units from Des Moines to Albuquerque. This exhaust the
   supply from Des Moines but leaves Albuquerque 200
   desks short. We move to the second row in the same
   column.
                TO   ALBUQUERQUE    BOSTON        CLEVELAND     FACTORY
 FROM                (A)            (B)          (C)            CAPACITY
 DES MOINES                    $5           $4             $3
 (D)                  100                                         100
 EVANSVILLE                    $8           $4             $3
                                                                  300
 (E)
 FORT LAUDERDALE               $9           $7             $5
                                                                  300
 (F)
 WAREHOUSE
                         300          200            200          700
 REQUIREMENTS
2. Assign 200 units from Evansville to Albuquerque. This
   meets Albuquerques demand. Evansville has 100 units
   remaining so we move to the right to the next column of
   the second row.
                TO   ALBUQUERQUE    BOSTON        CLEVELAND     FACTORY
 FROM                (A)            (B)          (C)            CAPACITY
 DES MOINES                    $5           $4             $3
                       100                                        100
 (D)
 EVANSVILLE                    $8           $4             $3
 (E)                  200                                         300
 FORT LAUDERDALE               $9           $7             $5
                                                                  300
 (F)
 WAREHOUSE
                         300          200            200          700
 REQUIREMENTS
3. Assign 100 units from Evansville to Boston. The
   Evansville supply has now been exhausted but Boston is
   still 100 units short. We move down vertically to the next
   row in the Boston column.
 DES MOINES                   $5            $4             $3
                       100                                        100
 (D)
 EVANSVILLE                   $8            $4             $3
 (E)
                       200         100                            300
 FORT LAUDERDALE              $9            $7             $5
                                                                  300
 (F)
 WAREHOUSE
                        300           200            200          700
 REQUIREMENTS
4. Assign 100 units from Fort Lauderdale to Boston. This
   fulfills Bostons demand and Fort Lauderdale still has 200
   units available.
 DES MOINES                   $5            $4             $3
                      100                                         100
 (D)
 EVANSVILLE                   $8            $4             $3
                      200           100                           300
 (E)
 FORT LAUDERDALE              $9            $7             $5
 (F)                               100                            300
 WAREHOUSE
                        300           200            200          700
 REQUIREMENTS
5. Assign 200 units from Fort Lauderdale to Cleveland. This
   exhausts Fort Lauderdales supply and Clevelands
   demand. The initial shipment schedule is now complete.
 DES MOINES                    $5           $4             $3
                       100                                        100
 (D)
 EVANSVILLE                    $8           $4             $3
                       200          100                           300
 (E)
 FORT LAUDERDALE               $9           $7             $5
 (F)
                                    100          200              300
 WAREHOUSE
                         300          200            200          700
 REQUIREMENTS
 We can easily compute the cost of this shipping
  assignment
      ROUTE
                UNITS       PER UNIT         TOTAL
   FROM    TO   SHIPPED   x COST ($)   =     COST ($)
     D     A       100          5               500
     E     A       200          8              1,600
     E     B       100          4               400
     F     B       100          7               700
     F     C       200          5              1,000
                                               4,200
                                                                          $5            $4
   MoinesBoston shipping                              Factory
                                                          D        100
   route                                                                          +
                                                       Factory
                                                                     +    $8           $4
                                                          E         200           100
               TO                                                FACTORY
                    ALBUQUERQUE    BOSTON       CLEVELAND
FROM                                                             CAPACITY
                              $5           $4             $3
  DES MOINES          100                                           100
                              $8           $4             $3
  EVANSVILLE          200          100                              300
                              $9           $7             $5
FORT LAUDERDALE                    100           200                300
  WAREHOUSE
                        300          200           200              700
 REQUIREMENTS
 Evaluating the unused Des                                      Warehouse A     Warehouse B
   MoinesBoston shipping                                        99         $5               $4
                                                       Factory
   route                                                  D           100          1
                                                                                      +
                                                       Factory   201   +          99        $4
                                                          E           200              100
               TO                                                FACTORY
                    ALBUQUERQUE    BOSTON       CLEVELAND
FROM                                                               Result
                                                                 CAPACITY     of Proposed
                              $5           $4             $3          Shift in Allocation
  DES MOINES          100                                             100
                                                                          = 1 x $4
                              $8           $4             $3               1 x $5
  EVANSVILLE          200          100                                300 + 1 x $8
                                                                           1 x $4 = +$3
                              $9           $7             $5
FORT LAUDERDALE                    100           200                  300
  WAREHOUSE
                        300          200           200                700
 REQUIREMENTS
Five Steps to Test Unused Squares
with the Stepping-Stone Method
 Step 4. We can now compute an improvement index (Iij) for
 the Des MoinesBoston route
  We add the costs in the squares with plus signs
   and subtract the costs in the squares with minus
   signs
     Des Moines
     Boston index = IDB = +$4  $5 + $5  $4 = + $3
                TO                                              FACTORY
                     ALBUQUERQUE    BOSTON       CLEVELAND
FROM                                                            CAPACITY
                               $5           $4             $3
   DES MOINES            100                                      100
                                                +
                               $8           $4             $3
   EVANSVILLE            200        100                           300
                     +                
                               $9           $7             $5
FORT LAUDERDALE                     100              200          300
                                      +          
   WAREHOUSE
                         300          200            200          700
  REQUIREMENTS
Des MoinesCleveland
improvement index    = IDC = + $3  $5 + $8  $4 + $7  $5 = + $4
Five Steps to Test Unused Squares
with the Stepping-Stone Method
 Opening the Des MoinesCleveland route will not
  lower our total shipping costs
 Evaluating the other two routes we find
     Evansville-
     Cleveland index = IEC = + $3  $4 + $7  $5 = + $1
    The closed path is
                   + EC  EB + FB  FC
    Fort Lauderdale
    Albuquerque index = IFA = + $9  $7 + $4  $8 =  $2
    The closed path is
                   + FA  FB + EB  EA
 So opening the Fort Lauderdale-Albuquerque
  route will lower our total transportation costs
Obtaining an Improved Solution
                            $8              $4          $3
       E          200                100                       300
                  
                            $9              $7          $5
       F                             100         200           300
                  +              
   WAREHOUSE
                      300             200         200          700
  REQUIREMENTS
 Obtaining an Improved Solution
 Second solution to the Executive Furniture problem
             TO                                       FACTORY
                    A           B           C
 FROM                                                 CAPACITY
                         $5          $4          $3
        D         100                                   100
                         $8          $4          $3
        E         100         200                       300
                         $9          $7          $5
        F         100                     200           300
   WAREHOUSE
                   300         200         200          700
  REQUIREMENTS
             TO                                       FACTORY
                    A           B           C
FROM                                                  CAPACITY
                         $5          $4          $3
       D          100                                   100
                         $8          $4          $3
       E          100         200                       300
                         $9          $7          $5
       F          100                     200           300
   WAREHOUSE
                   300         200         200          700
  REQUIREMENTS
     ROUTE
               DESKS       PER UNIT       TOTAL
   FROM   TO   SHIPPED   x COST ($)   =   COST ($)
    D     A       100            5           500
    E     B       200            4           800
    E     C       100            3           300
     F    A       200            9         1,800
     F    C       100            5           500
                                           3,900
 Obtaining an Improved Solution
            TO                                       FACTORY
                   A           B           C
FROM                                                 CAPACITY
                        $5          $4          $3
       D         100                                   100
                        $8          $4          $3
       E                     200         100           300
                        $9          $7          $5
       F         200                     100           300
  WAREHOUSE
                  300         200         200          700
 REQUIREMENTS
 Obtaining an Improved Solution
 This solution is optimal as the improvement indices that
  can be computed are all greater than or equal to zero
  D to B = IDB = + $4  $5 + $9  $5 + $3  $4 = + $2
              (closed path: + DB  DA + FA  FC + EC  EB)
  D to C = IDC = + $3  $5 + $9  $5 = + $2
                          (closed path: + DC  DA + FA  FC)
  E to A = IEA = + $8  $9 + $5  $3 = + $1
                          (closed path: + EA  FA + FC  EC)
  F to B = IFB = + $7  $5 + $3  $4 = + $1
                          (closed path: + FB  FC + EC  EB)
 Summary of Steps in Transportation
 Algorithm (Minimization)
1. Set up a balanced transportation table
2. Develop initial solution using either the northwest corner
   method or Vogels approximation method
3. Calculate an improvement index for each empty cell
   using either the stepping-stone method or the MODI
   method. If improvement indices are all nonnegative, stop
   as the optimal solution has been found. If any index is
   negative, continue to step 4.
4. Select the cell with the improvement index indicating the
   greatest decrease in cost. Fill this cell using the stepping-
   stone path and go to step 3.
Unbalanced Transportation
Problems
  In real-life problems, total demand is frequently not
   equal to total supply
  These unbalanced problems can be handled easily by
   introducing 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, we introduce
   a dummy source (factory) with a supply equal to the
   excess of demand over supply
Unbalanced Transportation
Problems
  In either case, shipping cost coefficients of zero are
   assigned to each dummy location or route as no goods
   will actually be shipped
  Any units assigned to a dummy destination represent
   excess capacity
  Any units assigned to a dummy source represent unmet
   demand
Demand Less Than Supply
 Suppose that the Des Moines factory increases its rate of
    production from 100 to 250 desks
   The firm is now able to supply a total of 850 desks each
    period
   Warehouse requirements remain the same (700) so the
    row and column totals do not balance
   We add a dummy column that will represent a fake
    warehouse requiring 150 desks
   This is somewhat analogous to adding a slack variable
   We use the northwest corner rule and either stepping-
    stone or MODI to find the optimal solution
Demand Less Than Supply
  Initial solution to an unbalanced problem where demand
     is less than supply
              TO                                                    DUMMY           TOTAL
 FROM
                           A               B              C         WAREHOUSE       AVAILABLE
                                $5             $4              $3               0
        D            250                                                               250
                                $8             $4              $3               0
        E            50              200            50                                 300
                                $9             $7              $5               0
        F                                           150               150              300
 WAREHOUSE
                          300          200               200            150            850
 REQUIREMENTS
                           $10            $5            $8
 PLANT X                                                           175
                           $12            $7            $6
 PLANT Y                                                           75
                                                                               Totals
 WAREHOUSE                                                               450
 DEMAND
                     250            100           150
                                                             500
                                                                               do not
                                                                               balance
Demand Greater than Supply
 Initial solution to an unbalanced problem in
  which demand is greater than supply
                 TO    WAREHOUSE          WAREHOUSE     WAREHOUSE
                                                                         PLANT SUPPLY
    FROM                   A                  B             C
                                    $6             $4               $9
    PLANT W              200                                                 200
                                    $10            $5               $8
    PLANT X              50                100           25                  175
                                    $12            $7               $6
    PLANT Y                                              75                   75
                                     0             0                0
    DUMMY PLANT                                          50                   50
    WAREHOUSE
                              250            100              150            500
    DEMAND
                             $10              $9                $9
    WAREHOUSE 2                       100            20                 120
                             $7               $10               $7
    WAREHOUSE 3                                      80                 80
    CUSTOMER
                       100              100               100           300
    DEMAND
                                   Possible choices of
                                   cells to address the
                                   degenerate solution
Degeneracy During Later Solution
Stages
  A transportation problem can become degenerate after
   the initial solution stage if the filling of an empty square
   results in two or more cells becoming empty
   simultaneously
  This problem can occur when two or more cells with
   minus signs tie for the lowest quantity
  To correct this problem, place a zero in one of the
   previously filled cells so that only one cell becomes
   empty
Degeneracy During Later Solution
Stages
  Bagwell Paint Example
    After one iteration, the cost analysis at Bagwell Paint
     produced a transportation table that was not
     degenerate but was not optimal
    The improvement indices are
                                $15              $10              $7
   FACTORY B         50                80                                 130
                                $3               $9               $10
   FACTORY C         30                                 50                 80
   WAREHOUSE
                          150               80               50           280
   REQUIREMENT
            Degeneracy During
            Later Solution Stages
 Tracing a closed path for the factory B  warehouse 3
  route
                      TO
                           WAREHOUSE 1   WAREHOUSE 3
          FROM
                                   $15           $7
          FACTORY B          50
                                   $3            $10
          FACTORY C          30            50
PROJECT
PERSON 1 2 3
Brown 8 10 11
      Cooper           9           12           7
 Assignment Model Approach
 Summary of Fix-It Shop assignment alternatives and
  costs
          PRODUCT ASSIGNMENT
                                         LABOR          TOTAL
   1              2              3
                                        COSTS ($)      COSTS ($)
 Adams          Brown          Cooper   11 + 10 + 7       28
 Adams          Cooper         Brown    11 + 12 + 11      34
 Brown          Adams          Cooper    8 + 14 + 7       29
 Brown          Cooper         Adams     8 + 12 + 6       26
 Cooper         Adams          Brown    9 + 14 + 11       34
 Cooper         Brown          Adams     9 + 10 + 6       25
The Hungarian Method
(Floods Technique)
 The Hungarian method is an efficient method of finding
    the optimal solution to an assignment problem without
    having to make direct comparisons of every option
   It operates on the principle of matrix reduction
   By subtracting and adding appropriate numbers in the
    cost table or matrix, we can reduce the problem to a
    matrix of opportunity costs
   Opportunity costs show the relative penalty associated
    with assigning any person to a project as opposed to
    making the best assignment
   We want to make assignment so that the opportunity
    cost for each assignment is zero
Three Steps of the Assignment
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
2. Test the table resulting from step 1 to see whether an
    optimal assignment can be made by drawing the
    minimum number of vertical and horizontal straight
    lines necessary to cover all the zeros in the table. If the
    number of lines is less than the number of rows or
    columns, proceed to step 3.
Three Steps of the Assignment
Method
                                       Not
   Set up cost table for problem               Revise opportunity cost table
                                     optimal
                                               in two steps:
Step 1                                         (a) Subtract the smallest
                                               number not covered by a line
                                               from itself and every other
 Find opportunity cost
                                               uncovered number
 (a) Subtract smallest number in
                                               (b) add this number at every
     each row from every number
                                               intersection of any two lines
     in that row, then
 (b) subtract smallest number in
     each column from every
     number in that column                     Optimal solution at zero
                                               locations. Systematically make
                                               final assignments.
Step 2
                                               (a) Check each row and column
                                               for a unique zero and make the
  Test opportunity cost table to               first assignment in that row or
  see if optimal assignments are               column
  possible by drawing the
  minimum possible lines on                    (b) Eliminate that row and
  columns and/or rows such that    Optimal     column and search for another
  all zeros are covered                        unique zero. Make that
                                               assignment and proceed in a
                                               like manner.
     The Hungarian Method
     (Floods Technique)
                   PROJECT                         PROJECT
PERSON        1      2       3    PERSON      1      2       3
Brown 8 10 11 Brown 0 2 3
Cooper 9 12 7 Cooper 2 5 0
                PROJECT                         PROJECT
PERSON      1     2       3     PERSON      1     2       3
Adams $5 $8 $0 Adams $5 $6 $0
Brown 0 2 3 Brown 0 0 3
Cooper      2     5       0     Cooper      2     3       0
         The Hungarian Method
         (Floods Technique)
 Step 2: Test for the optimal assignment
   We want to assign workers to projects in such a way
      that the total labor costs are at a minimum
     We would like to have a total assigned opportunity
      cost of zero
     The test to determine if we have reached an optimal
      solution is simple
     We find the minimum number of straight lines
      necessary to cover all the zeros in the table
     If the number of lines equals the number of rows or
      columns, an optimal solution has been reached
           The Hungarian Method
           (Floods Technique)
 Test for optimal solution
                     PROJECT
  PERSON        1       2         3
Adams $5 $6 $0
Cooper 2 3 0
Covering line 2
Adams $3 $4 $0
Brown 0 0 5
              Cooper    0      1       0
           The Hungarian Method
           (Floods Technique)
 Optimality test on the revised opportunity cost
  table
                         PROJECT
  PERSON           1           2          3
Adams $3 $4 $0
Cooper 0 1 0
Adams to project 3 6
Brown to project 2 10
Cooper to project 1 9
          Total cost                         25
 Making the Final Assignment
 Making the final assignments
1 2 3 1 2 3 1 2 3
ASSIGNMENT EFFICIENCY
Ship 1 to sector D 55
Ship 2 to sector C 80
Ship 4 to sector A 65