Lecture8- Transportataion-SPP.ppsx

30
Transportation (Cont.)

Transcript of Lecture8- Transportataion-SPP.ppsx

Page 1: Lecture8- Transportataion-SPP.ppsx

Transportation(Cont.)

Page 2: Lecture8- Transportataion-SPP.ppsx

Transportation

1. Find a starting solution

Solving Procedure:

•North-west corner method•Least cost method•Vogel’s approximation method

2. Improve the solution by an entering

variable, and a leaving variable.

Page 3: Lecture8- Transportataion-SPP.ppsx

Stepping stone method

10 0 20 11

5 10

12 7 9 20

5 15 5

0 14 16 18

5

Improving the north-west corner solution

+18 -2

-5

-15 +9 +9

+0-10+0-7+20-18 = - 15

Page 4: Lecture8- Transportataion-SPP.ppsx

Multipliers Method (U-V method)

10 0 20 11

5 10

12 7 9 20

5 15 5

0 14 16 18

5

Table 1Improving the north-west corner solution

u1

u2

u3

v1v2 v3 v4

= 0

= 7

= 5

= 10 = 0 = 2 = 13

jiij vuc For all cells of basic variables

Page 5: Lecture8- Transportataion-SPP.ppsx

Multipliers Method (U-V method)

10 0 20 11

5 10

12 7 9 20

5 15 5

0 14 16 18

5

Table 1Improving the north-west corner solution

+18 -2

-5

-15 +9 +9

u1

u2

u3

v1v2 v3 v4

= 0

= 7

= 5

= 10 = 0 = 2 = 13

jiijij vucc For all cells of non- basic variables

Page 6: Lecture8- Transportataion-SPP.ppsx

U-V method

10 0 20 11

5 10

12 7 9 20

5 15 5

0 14 16 18

5

Table 2

Improving the north-west corner solution

• The number of variables should be kept 6.

5

0 15

0 10

• Re-evaluate u and v to calculate c at each cell. And so on

Page 7: Lecture8- Transportataion-SPP.ppsx

Destination1 2 3 4

Source

110 0 20 11

212 7 9 20

30 14 16 18

Demand 5 15 15 10

Table 3

Sum (Supply) = Sum (Demand)

Non-Standard transportation problems

45

/

/55

45

Add a dummy destination (D).

Supply

15

25

515

Page 8: Lecture8- Transportataion-SPP.ppsx

Table 3

Transportation table

55

Add a dummy destination (D).

DestinationSupply

1 2 3 4

Source

110 0 20 11

15

212 7 9 20

25

30 14 16 18

15

Demand 5 15 15 10

D

0

0

0

10

Page 9: Lecture8- Transportataion-SPP.ppsx

Questions on Transportation

Page 10: Lecture8- Transportataion-SPP.ppsx

Assignment

Page 11: Lecture8- Transportataion-SPP.ppsx

1 2 3

2 3 41

Workers (i) i = 1,2,…,m

Machines (j) j = 1,2,…,n

Problem Definition

c1,1

c1,2

c2,1 c3,4

Cost (ci,j )

4

c4,3

m

Page 12: Lecture8- Transportataion-SPP.ppsx

Given Data

1 2 3 41 1 4 6 3 12 9 7 10 9 13 4 5 11 7 14 8 7 8 5 1

1 1 1 1

Wor

kers

Machines

Page 13: Lecture8- Transportataion-SPP.ppsx

Solved Example

M1 M2 M3W1 5 7 9W2 14 10 12W3 15 13 16

-5

-10

-13

1- Subtract from each row the minimum value

M1 M2 M3W1 0 2 4W2 4 0 2W3 2 0 3

2- Subtract from selected column the minimum value

M1 M2 M3W1 0 2 2W2 4 0 0W3 2 0 1

-2

W1 M1W2 M3

W3 M2

Page 14: Lecture8- Transportataion-SPP.ppsx

Special cases for assignment problems1 2 3 4

1 1 4 6 32 9 7 10 93 4 5 11 74 8 7 8 5

-1

-7

-4

-5

1 2 3 41 0 3 5 22 2 0 3 23 0 1 7 34 3 2 3 0

-3

Page 15: Lecture8- Transportataion-SPP.ppsx

Special cases for assignment problems

1 2 3 41 0 3 2 22 2 0 0 23 0 1 4 34 3 2 0 0

- Connect all the zeros with the minimum number of lines;- Each zero should be crossed out only ONCE

- Subtract smallest uncrossed value from uncrossed elements- Add it at all intersections

Page 16: Lecture8- Transportataion-SPP.ppsx

Special cases for assignment problems

1 2 3 41 0 3 2 22 2 0 0 23 0 1 4 34 3 2 0 0

1 2 3 41234

2 1 1

0 3 23

4

00 0 2

02 0 0

Page 17: Lecture8- Transportataion-SPP.ppsx

Special cases for assignment problems

1 2 3 41 0 2 1 12 3 0 0 23 0 0 3 24 4 2 0 0

W1 M1W2 M3

W3 M2

W4 M4

Page 18: Lecture8- Transportataion-SPP.ppsx

- The procedure of connecting zeros should be repeated until a feasible solution is reached.

Special cases for assignment problems

NOTE:

Page 19: Lecture8- Transportataion-SPP.ppsx

Shortest path problems

Page 20: Lecture8- Transportataion-SPP.ppsx

Problem definition

- Given n nodes in a network that are denoted by

(1, 2, 3…n), it is required to find the shortest path

from the source node to the sink node.

Page 21: Lecture8- Transportataion-SPP.ppsx

Illustrative example

- Determine the shortest path from the source (1) to the sink (6), and the length of the path.

1

2

3

4 5

63

7

4

9

3

6

33

Source

Sink

1

2

Page 22: Lecture8- Transportataion-SPP.ppsx

Steps to solve

1

2

3

4 5

63

7

4

9

3

6

33

Source

Sink

- Start at node (1). Its distance is zero.- Distances to neighboring nodes are written.- Distances to non-neighboring nodes are infinity.

L(0) = [ 0 , 3 , 7 , 4 , ∞ , ∞ ]

1

2

Page 23: Lecture8- Transportataion-SPP.ppsx

Steps to solve

1

2

3

4 5

63

7

4

9

3

6

33

Source

Sink

L(0) = [ 0 , 3 , 7 , 4 , ∞ , ∞ ]

1

2

* .- Give the zero a permanent label (*).- Give the minimum value a temporary label (.)- Calculate the distances from the temporary label.

Page 24: Lecture8- Transportataion-SPP.ppsx

Steps to solve1 2 3 4 5 6

L(0) = [ 0 , 3 , 7 , 4 , ∞ , ∞ ]

L(1) = [ 0 , 3 , 5 , 4 , ∞ , 12 ]

From To Current New

2 3 7 3 + 2

2 4 4 3 + ∞

2 5 ∞ 3 + ∞

2 6 ∞ 3 + 9

1

2

3

4 5

63

7

4

9

3

6

33

1

2

Node of Temporary label

Nodes with no labels

Their current values

New values starting the temporary nodeCompare and choose the minimum

* .*

* .

- Temp. labels are permanent.- Choose new temp. label

Page 25: Lecture8- Transportataion-SPP.ppsx

Steps to solve1 2 3 4 5 6

L(1) = [ 0 , 3 , 5 , 4 , ∞ , 12 ]

L(2) = [ 0 , 3 , 5 , 4 , 7 , 12 ]

From To Current New

4 3 5 4+ 1

4 5 ∞ 4+ 3

4 6 12 4+ ∞1

2

3

4 5

63

7

4

9

3

6

33

1

2

Node of Temporary label

Nodes with no labels

Their current values

New values starting the temporary node

Compare and choose the minimum

* .*

* .

- Temp. labels are permanent.- Choose new temp. label

*

*

Page 26: Lecture8- Transportataion-SPP.ppsx

Steps to solve1 2 3 4 5 6

L(2) = [ 0 , 3 , 5 , 4 , 7 , 12 ]

L(3) = [ 0 , 3 , 5 , 4 , 7 , 11 ]

From To Current New

3 5 7 5+ 3

3 6 12 5+ 6

1

2

3

4 5

63

7

4

9

3

6

33

1

2

* .*

* .

- Temp. labels are permanent.- Choose new temp. label

*

*

*

*

Page 27: Lecture8- Transportataion-SPP.ppsx

Steps to solve1 2 3 4 5 6

L(3) = [ 0 , 3 , 5 , 4 , 7 , 11 ]

L(4) = [ 0 , 3 , 5 , 4 , 7 , 10 ]

From To Current New

5 6 11 7+ 3

1

2

3

4 5

63

7

4

9

3

6

33

1

2

**

* .*

*

*

*

*

* *- Shortest route distance is 10- Shortest path is ???

Page 28: Lecture8- Transportataion-SPP.ppsx

Solved Problem1 2 3 4 5 6

L(0) = [ 0 , 3 , 7 , 4 , ∞ , ∞ ]

L(1) = [ 0 , 3 , 5 , 4 , ∞ , 12 ]

L(2) = [ 0 , 3 , 5 , 4 , 7 , 12 ]

L(3) = [ 0 , 3 , 5 , 4 , 7 , 11 ]

L(4) = [ 0 , 3 , 5 , 4 , 7 , 10 ]* * * * * *

* * * * .

* * . *

* * .

* .

Path: 1 , 4 , 5 , 6

Page 29: Lecture8- Transportataion-SPP.ppsx

Illustrative example

1

2

3

4 5

63

7

4

9

3

6

33

Source

Sink

1

2

Path: 1 , 4 , 5 , 6

Page 30: Lecture8- Transportataion-SPP.ppsx

Another example

1

2

3

4

7

8

5

1

78

9 6

Source

Sink

2

45

63

10

93

5

- Given the roads of the city, go from (1) to (8) by the shortest route.