Docsity

Operation Research summary, Summaries of Operational Research

Toggle sidebar
bg1
Chapter 5 Transportation Model and Its Variants
Transportation Model and Its Variants
Transportation Model is a special class of Linear Programming (LP) problem It deals with the situation in which a
commodity is shipped from source (e.g. factories) to destinations (e.g. warehouses)
Objective: The objective is to determine the amounts shipped from each source to each destination that minimize
the total shipping cost while satisfying both the supply limits and the demand requirements.
Symbols:
• ai = supply at source i
• bj = demand at destination j
• xij = units shipped from source i to destination j
• cij = cost per unit from i to j
Transportation Tableau
it is not necessary to explicitly build the LP model of the transportation problem. Instead, we usually represent
the transportation problem by using a transportation tableau.
Main elements:
• xij → decision variable
(shipment quantity)
• cij → cost per unit
• ai → supply
• bj → demand
Characteristics of the Transportation Problem
• Can be solved by regular simplex method., but, because of its special characteristics, a more efficient
procedure is used. The procedure is called the transportation (simplex) method.
• Because of the uni-modularity property (special structure of the constraints), If supply and demand are
integers → solution will be integers
• Solved in two phases:
1. Determination of an initial basic feasible solution
2. Finding an optimal solution through the sequential improvement of the initial feasible solution
Transportation Algorithm
Step 1: Determine an Initial Basic Feasible Solution (IBFS)
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Operation Research summary and more Summaries Operational Research in PDF only on Docsity!

Chapter 5 Transportation Model and Its Variants

Transportation Model and Its Variants Transportation Model is a special class of Linear Programming (LP) problem It deals with the situation in which a commodity is shipped from source (e.g. factories) to destinations (e.g. warehouses) Objective: The objective is to determine the amounts shipped from each source to each destination that minimize the total shipping cost while satisfying both the supply limits and the demand requirements. Symbols:

  • ai = supply at source i
  • bj = demand at destination j
  • xij = units shipped from source i to destination j
  • cij = cost per unit from i to j Transportation Tableau it is not necessary to explicitly build the LP model of the transportation problem. Instead, we usually represent the transportation problem by using a transportation tableau. Main elements:
  • xij → decision variable (shipment quantity)
  • cij → cost per unit
  • ai → supply
  • bj → demand Characteristics of the Transportation Problem
  • Can be solved by regular simplex method., but, because of its special characteristics, a more efficient procedure is used. The procedure is called the transportation (simplex) method.
  • Because of the uni-modularity property (special structure of the constraints), If supply and demand are integers → solution will be integers
  • Solved in two phases:
  1. Determination of an initial basic feasible solution
  2. Finding an optimal solution through the sequential improvement of the initial feasible solution Transportation Algorithm Step 1: Determine an Initial Basic Feasible Solution (IBFS)

Methods: (producing near optimal solutions)

  • Northwest Corner Method (NWC)
  • Least Cost Method
  • Vogel Approximation Method (VAM) Important rule: m sources and n destinations
  • Number of basic variables = m + n - 1 Step 2: Improve the IBFS
  • Determine an entering variable.
  • Determine a leaving variable.
  • Obtain a new BFS
  • If the solution is optimal stop. Otherwise; repeat step (2). Northwest Corner Rule (NWC) Start from upper-left corner of the matrix and assign as much as we can (considering supply and demand) and update remaining supply and demand. We move either down or to the right (depending on whether supply or demand has been depleted). We again assign as much as possible and continue to the Southeast (lower-right). Steps: Step1. Allocate as much as possible to the selected cell, and adjust the associated amounts of supply and demand by subtracting the allocated amount. Step2. Cross out the row or column with zero supply or demand. If both a row and a column net to zero simultaneously, cross out one only, and leave a zero supply (demand) in the uncrossed-out row (column). Step3. If exactly one row or column is left uncrossed out, stop. Otherwise, move to the cell to the right if a column has just been crossed out or below if a row has been crossed out. Go step 1 Note: (we always cross out to right or down never to diagonal or reverse)

Least-Cost Method – Example Step 1: Choose smallest cost Smallest cost = 2 at X Assign minimum of (Supply Row1, Demand Col2): min(15, 15) = 15 → X12 = 15 → Row1 becomes 0 →eliminate row 1 → Col2 becomes 0 → eliminate column 2 Step 2: Next smallest cost Next smallest = 4 at X Assign: min(Supply Row3 = 10, Demand Col1 = 5) = 5 → X31 = 5 → Col1 becomes 0 → eliminate column 1 → Row3 becomes 10 - 5 = 5 left Step 3: Next smallest cost Next smallest = 9 at X Assign: min(Supply Row2 = 25, Demand Col3 = 15) = 15 → X23 = 15 → Col3 becomes 0 → eliminate column 3 → Row2 becomes 25 - 15 = 10 left Step 4: Next smallest cost Next = 18 at X34 (from remaining cells) Assign: min(Supply Row3 = 5, Demand Col4 = 15) = 5 → X34 = 5 → Row3 becomes 0 → eliminate row 3 → Col4 becomes 15 - 5 = 10 left Step 5: Last assignment Only cell left: X24 (cost = 20) Assign: min(Supply Row2 = 10, Demand Col4 = 10) = 10 → X24 = 10 → Row2 and Col4 both become 0 Degeneracy (Important) We need number of basic cells = m + n - 1 = 3 + 4 - 1 = 6 We only have 5 allocations → add: → X14 = 0 (dummy to complete count) Final Solution X12 = 15 (from min(15,15)) X31 = 5 (from min(10,5)) X23 = 15 (from min(25,15)) X34 = 5 (from min(5,15)) X24 = 10 (from min(10,10)) X14 = 0 Method of Multipliers (u, v) – Simple Explanation Idea: We use this method to check if the current solution is optimal or can be improved. Step 1: Assign u and v values For every basic cell 𝑿𝒊𝒋 (allocated cell): 𝒖𝒊 + 𝒗𝒋 = 𝒄𝒊𝒋

  • u → for rows
  • v → for columns
  • c → cost of the cell Use these equations to find all u and v values Step 2: Calculate improvement value for empty cells For every non-basic cell 𝑿𝒊𝒋 (empty cell): 𝑪′𝒊𝒋 = 𝒖𝒊 + 𝒗𝒋 − 𝒄𝒊𝒋 This tells us if using this cell will improve the solution Total Cost Z = (15×2) + (5×4) + (15×9) + (5×18) + (10×20) + (0×11) Z = 30 + 20 + 135 + 90 + 200 + 0 = 475

Step 3: Choose entering variable

  • Look at all C'ij values
  • Choose the largest positive value This cell will enter the solution (best improvement) Step 4: Optimality condition
  • If all C'ij ≤ 0 (negative or zero) → ✔️ Solution is optimal
  • If any C'ij > 0 → ❌ Not optimal → we can improve → Set: u1 = 0
  1. From X11 (cost = 10) u1 + v1 = 10 0 + v1 = 10 → v1 = 10
  2. From X12 (cost = 2) u1 + v2 = 2 0 + v2 = 2 → v2 = 2
  3. From X22 (cost = 7) u2 + v2 = 7 u2 + 2 = 7 → u2 = 5
  4. From X23 (cost = 9) u2 + v3 = 9 5 + v3 = 9 → v3 = 4
  5. From X24 (cost = 20) u2 + v4 = 20 5 + v4 = 20 → v4 = 15
  6. From X34 (cost = 18) u3 + v4 = 18 u3 + 15 = 18 → u3 = 3 Final Values u1 = 0 u2 = 5 u3 = 3 v1 = 10 v2 = 2 v3 = 4 v4 = 15 Total Cost z = (5×10) + (10×2) + (5×7) + (15×9) + (5×20) + (10×18) = 520

We need to know how much we can assign to X31. Let: X31 = theta θ Theta means the amount we will ship through the new route. Conditions for theta if route (3, 1) ships 𝑢 units (i.e., 𝑥31=Ɵ), then the maximum value of Ɵ is determined based on two conditions:

  1. Supply limits and demand requirements remain satisfied.
  2. Shipments through all routes remain nonnegative. These two conditions determine the maximum value of Ɵ and the leaving variable in the following manner. First, construct a closed loop that starts and ends at the entering variable cell (3, 1). The loop consists of connected horizontal and vertical segments only (no diagonals are allowed) whose corner elements (excluding the entering variable cell) must coincide with a current basic variable. Closed Loop Rule
  1. Build the loop Starting from X31 (entering cell) We form a closed loop using only basic cells Signs alternate: + , − , + , − ...
  2. Assign θ (theta) Let: X31 = θ Now adjust loop cells:
    • Add θ to (+) cells
    • Subtract θ from (−) cells
  3. Find θ value Look only at cells with (−) sign:
    • X11 = 5 → 5 − θ ≥ 0 → θ ≤ 5
    • X22 = 5 → 5 − θ ≥ 0 → θ ≤ 5
    • X34 = 10 → 10 − θ ≥ 0 → θ ≤ 10 Take smallest value: θ = 5
  4. Leaving variable

Cells that become zero:

  • X11 = 5 − 5 = 0
  • X22 = 5 − 5 = 0 Tie case → choose higher cost: c11 = 10 > c22 = 7 Leaving variable = X
  1. Update solution Apply θ = 5:
  • X31 = 0 + 5 = 5
  • X11 = 5 − 5 = 0 (leave)
  • X12 = 10 + 5 = 15
  • X22 = 5 − 5 = 0
  • X34 = 10 − 5 = 5
  1. Cost improvement Each unit in X31 reduces cost by: C'31 = 9 Total improvement: = 5 × 9 = 45
  2. Recompute u and v (new values) Same rule: 𝒖𝒊 + 𝒗𝒋 = 𝒄_𝒊𝒋 (𝒇𝒐𝒓 𝒃𝒂𝒔𝒊𝒄 𝒄𝒆𝒍𝒍𝒔) Start again with: u1 = 0 Solve step by step: From X12 (cost = 2): u1 + v2 = 2 → v2 = 2 From X22 (cost = 7): u2 + v2 = 7 → u2 = 5 From X23 (cost = 9): u2 + v3 = 9 → v3 = 4 From X24 (cost = 20): u2 + v4 = 20 → v4 = 15 From X34 (cost = 18): u3 + v4 = 18 → u3 = 3 From X31 (cost = 4): u3 + v1 = 4 → v1 = 1 Final (u, v): u1 = 0, u2 = 5, u3 = 3 v1 = 1, v2 = 2, v3 = 4, v4 = 15
  3. Choose entering variable → Compute C'ij = ui + vj – cij → Largest positive → X Final Cost Old cost = 520 New cost = 520 − 45 = 475

Final values

  1. Calculate C'ij for non-basic cells
  2. Optimality decision So there is no positive value. Therefore, the solution is optimal. Optimal Cost
  • u1 = 0, u2 = 5, u3 =
  • v1 = - 3 , v2 = 2, v3 = 4, v4 =
    • X Formula: C'ij = ui + vj - cij
    • C'11 = u1 + v1 - c
    • = 0 + (-3) -
    • = - - X - C'13 = u1 + v3 - c - = 0 + 4 - - = - - X - C'21 = u2 + v1 - c - = 5 + (-3) - - = - - X - C'24 = u2 + v4 - c - = 5 + 11 - - = - - X - C'32 = u3 + v2 - c - = 7 + 2 - - = - - X - C'33 = u3 + v3 - c - = 7 + 4 - - = -
      • • X11 = - All C'ij values are negative:
      • • X13 = -
      • • X21 = -
      • • X24 = -
      • • X32 = -
      • • X33 = -
  • X12 = Final Optimal Solution
  • X14 =
  • X22 =
  • X23 =
  • X31 =
  • X34 = - Cost = 10 + 110 + 70 + 135 + 20 + Cost = (5 x 2) + (10 x 11) + (10 x 7) + (15 x 9) + (5 x 4) + (5 x 18) - Optimal cost =