Home > Operation Research calculators > Heuristic method-1 example

8. Heuristic method-2 example ( Enter your problem )
Algorithm and examples
  1. Algorithm & Example-1
  2. Example-2
  3. Unbalanced supply and demand example
Other related methods
  1. north-west corner method
  2. least cost method
  3. vogel's approximation method
  4. Row minima method
  5. Column minima method
  6. Russell's approximation method
  7. Heuristic method-1
  8. Heuristic method-2
  9. modi method (optimal solution)
  10. stepping stone method (optimal solution)

2. Example-2
(Previous example)
9. modi method (optimal solution)
(Next method)

3. Unbalanced supply and demand example





Unbalanced supply and demand
If the total supply is not equal to the total demand then the problem is called unbalanced transportation problem.

It's solution :
1. If the total supply is more than the total demand, then we add a new column, with transportation cost 0
2. If the total demand is more than the total supply, then we add a new row, with transportation cost 0
Example
Find Solution using Heuristic method-2
D1D2D3Supply
S148876
S216241682
S38162477
Demand7210241


Solution:
TOTAL number of supply constraints : 3
TOTAL number of demand constraints : 3
Problem Table is
`D_1``D_2``D_3`Supply
`S_1`48876
`S_2`16241682
`S_3`8162477
Demand7210241


Here Total Demand = 215 is less than Total Supply = 235. So We add a dummy demand constraint with 0 unit cost and with allocation 20.
Now, The modified table is
`D_1``D_2``D_3``D_(dummy)`Supply
`S_1`488076
`S_2`162416082
`S_3`81624077
Demand721024120


Table-1
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`488076`8=8-0`
`S_2`162416082`24=24-0`
`S_3`81624077`24=24-0`
Demand721024120
Column
Penalty
`12=16-4``16=24-8``16=24-8``0=0-0`


The maximum penalty, 24, occurs in row `S_2`.

The minimum `c_(ij)` in this row is `c_24` = 0.

The maximum allocation in this cell is min(82,20) = 20.
It satisfy demand of `D_(dummy)` and adjust the supply of `S_2` from 82 to 62 (82 - 20 = 62).

Table-2
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`488076`4=8-4`
`S_2`1624160(20)62`8=24-16`
`S_3`81624077`16=24-8`
Demand72102410
Column
Penalty
`12=16-4``16=24-8``16=24-8`--


The maximum penalty, 16, occurs in column `D_2`.

The minimum `c_(ij)` in this column is `c_12` = 8.

The maximum allocation in this cell is min(76,102) = 76.
It satisfy supply of `S_1` and adjust the demand of `D_2` from 102 to 26 (102 - 76 = 26).

Table-3
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`48(76)800--
`S_2`1624160(20)62`8=24-16`
`S_3`81624077`16=24-8`
Demand7226410
Column
Penalty
`8=16-8``8=24-16``8=24-16`--


The maximum penalty, 16, occurs in row `S_3`.

The minimum `c_(ij)` in this row is `c_31` = 8.

The maximum allocation in this cell is min(77,72) = 72.
It satisfy demand of `D_1` and adjust the supply of `S_3` from 77 to 5 (77 - 72 = 5).

Table-4
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`48(76)800--
`S_2`1624160(20)62`8=24-16`
`S_3`8(72)162405`8=24-16`
Demand026410
Column
Penalty
--`8=24-16``8=24-16`--


The maximum penalty, 8, occurs in row `S_2`.

The minimum `c_(ij)` in this row is `c_23` = 16.

The maximum allocation in this cell is min(62,41) = 41.
It satisfy demand of `D_3` and adjust the supply of `S_2` from 62 to 21 (62 - 41 = 21).

Table-5
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`48(76)800--
`S_2`162416(41)0(20)21`0=24-24`
`S_3`8(72)162405`0=16-16`
Demand02600
Column
Penalty
--`8=24-16`----


The maximum penalty, 8, occurs in column `D_2`.

The minimum `c_(ij)` in this column is `c_32` = 16.

The maximum allocation in this cell is min(5,26) = 5.
It satisfy supply of `S_3` and adjust the demand of `D_2` from 26 to 21 (26 - 5 = 21).

Table-6
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`48(76)800--
`S_2`162416(41)0(20)21`0=24-24`
`S_3`8(72)16(5)2400--
Demand02100
Column
Penalty
--`0=24-24`----


The maximum penalty, 0, occurs in row `S_2`.

The minimum `c_(ij)` in this row is `c_22` = 24.

The maximum allocation in this cell is min(21,21) = 21.
It satisfy supply of `S_2` and demand of `D_2`.


Initial feasible solution is
`D_1``D_2``D_3``D_(dummy)`SupplyRow Penalty
`S_1`48(76)8076 8 |  4 | -- | -- | -- | -- |
`S_2`1624(21)16(41)0(20)8224 |  8 |  8 |  8 |  0 |  0 |
`S_3`8(72)16(5)2407724 | 16 | 16 |  8 |  0 | -- |
Demand721024120
Column
Penalty
12
12
8
--
--
--
16
16
8
8
8
0
16
16
8
8
--
--
0
--
--
--
--
--


The minimum total transportation cost `= 8 xx 76 + 24 xx 21 + 16 xx 41 + 0 xx 20 + 8 xx 72 + 16 xx 5 = 2424`

Here, the number of allocated cells = 6 is equal to m + n - 1 = 3 + 4 - 1 = 6
`:.` This solution is non-degenerate


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



2. Example-2
(Previous example)
9. modi method (optimal solution)
(Next method)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.