The Network Simplex Method Reduced Costs and Node

  • Slides: 29
Download presentation
The Network Simplex Method Reduced Costs and Node Potentials Network Simplex: Part 2 1

The Network Simplex Method Reduced Costs and Node Potentials Network Simplex: Part 2 1

MCNFP Example 4 (0, 4, 5) 10 1 (0, 10, 4) 2 -3 3

MCNFP Example 4 (0, 4, 5) 10 1 (0, 10, 4) 2 -3 3 (0, 5, 10) (0, 4, 7) 4 Network Simplex: Part 2 -4 (l, u, c) (0, 10, 2) (0, 5, 8) 5 -7 (0, 5, 5) 2

An initial BFS (Solution 1) • Basic arcs (variables) B = {(1, 3), (2,

An initial BFS (Solution 1) • Basic arcs (variables) B = {(1, 3), (2, 5), (3, 5), (4, 5)} • Non-basic arcs at their lower bounds L = {(1, 2), (1, 4)} • Non-basic arcs at their upper bounds. U = {(3, 4)} Network Simplex: Part 2 3

Solving for the Basic Arcs 4 L = {(1, 2), (1, 4)} 0 10

Solving for the Basic Arcs 4 L = {(1, 2), (1, 4)} 0 10 10 1 0 Network Simplex: Part 2 U = {(3, 4)} 4 2 -3 3 2 5 -7 5 4 -4 1 Cost = 119 4

Flow on B and U 4 L = {(1, 2), (1, 4)} 10 1

Flow on B and U 4 L = {(1, 2), (1, 4)} 10 1 10 U = {(3, 4)} 4 2 -3 3 2 5 -7 5 4 Network Simplex: Part 2 -4 1 Cost = 119 5

Increasing the flow on (1, 2) 4 0+ 10 1 10 - 2 -3

Increasing the flow on (1, 2) 4 0+ 10 1 10 - 2 -3 3 4+ 2 - 5 -7 5 4 Network Simplex: Part 2 -4 1 6

Increasing flow on (1, 2) • Consider increasing the flow on (1, 2) by

Increasing flow on (1, 2) • Consider increasing the flow on (1, 2) by • Cost = 119+(c 12 + c 25 – c 13 – c 35) =119 + (5+2 -4 -8) = 119 + (-5) • Maximum possible increase is = 2. – Flow on arc (3, 5) will go to zero. Network Simplex: Part 2 7

New BFS (Solution 2) • Basic arcs (variables) B = {(1, 2), (1, 3),

New BFS (Solution 2) • Basic arcs (variables) B = {(1, 2), (1, 3), (2, 5), (4, 5)} • Non-basic arcs at their lower bounds L = {(1, 4), (3, 5)} • Non-basic arcs at their upper bounds. U = {(3, 4)} Network Simplex: Part 2 8

Increasing the flow on (1, 2) by 2 4 0+2 10 1 10 -2

Increasing the flow on (1, 2) by 2 4 0+2 10 1 10 -2 2 -3 3 4+2 2 -2 5 -7 5 4 Network Simplex: Part 2 -4 1 9

New Solution 4 L = {(1, 4), (3, 5)} 2 10 1 8 2

New Solution 4 L = {(1, 4), (3, 5)} 2 10 1 8 2 -3 U = {(3, 4)} 6 3 5 -7 5 4 Network Simplex: Part 2 -4 1 Cost = 109 10

Increasing the flow on (1, 4) 4 2 2 - 10 8 1 0+

Increasing the flow on (1, 4) 4 2 2 - 10 8 1 0+ Network Simplex: Part 2 6 - -3 3 5 -7 5 4 -4 1+ 11

Increasing the flow on (1, 4) • Consider increasing the flow on (1, 4)

Increasing the flow on (1, 4) • Consider increasing the flow on (1, 4) by • Cost = 109+(c 14 + c 45 – c 12 – c 25) =109 + (7+5 -5 -2) = 109 + 5 • Increasing the flow on (1, 4) will make the solution worse. Network Simplex: Part 2 12

Decreasing the flow on (3, 4) 4 2 2+ 10 1 8 - 6+

Decreasing the flow on (3, 4) 4 2 2+ 10 1 8 - 6+ -3 3 5 -7 5 - 4 Network Simplex: Part 2 -4 1 - 13

Decreasing the flow on (3, 4) • Consider decreasing the flow on (d, 4)

Decreasing the flow on (3, 4) • Consider decreasing the flow on (d, 4) by • Cost = 109 + (-c 13 -c 34 - c 45 + c 12 + c 25) =109 + (-4 -10 -5+5+2) = 109 - 12 • Maximum decrease is = 1. Flow on (4, 5) goes to 0. Network Simplex: Part 2 14

Reduced Costs: Generic Simplex Method • The row 0 coefficients of the Simplex Tableau

Reduced Costs: Generic Simplex Method • The row 0 coefficients of the Simplex Tableau are known as reduced costs. • The reduced cost of a basic variable is zero. • Non-basic variables with negative reduced cost are eligible to enter the basis. – If all the reduced costs are non-negative, then the Simplex method terminates. Network Simplex: Part 2 15

Formula to Compute Reduced Costs • Let B be the set of basic variables.

Formula to Compute Reduced Costs • Let B be the set of basic variables. • Let AB be the submatrix of A comprised of the columns corresponding to the basic variables. • Let c’ be the vector of reduced costs (i. e. row 0 of the tableau). • c’ = c – A where = c. B(AB)-1. • are referred to as the dual multipliers. Network Simplex: Part 2 16

Formula in the Network Context Network Simplex: Part 2 17

Formula in the Network Context Network Simplex: Part 2 17

Formula in the Network Context Network Simplex: Part 2 18

Formula in the Network Context Network Simplex: Part 2 18

Reduced Costs: Network Simplex • • • Let c’ij be the reduced cost of

Reduced Costs: Network Simplex • • • Let c’ij be the reduced cost of arc (i, j) and i be the potential at node i. c’ij = cij - i + j where 1. 1 = 0 2. c’ij = 0 for all basic arcs Eligible non-basic arcs – – Arcs in L are eligible if c’ij < 0 Arcs in U are eligible if c’ij > 0 Network Simplex: Part 2 19

Calculating Node Potentials c'12 = c 12 - 1 + 2 c'12 = 5

Calculating Node Potentials c'12 = c 12 - 1 + 2 c'12 = 5 - 0 + 2 5 0 = 5 + 2 1=0 1 Network Simplex: Part 2 4 2 = -5 2 3 = -4 2 j 5 5 = -7 3 4 4 = -2 i (cij) 5 20

Calculating Reduced Costs c'34=10+4 -2 c'14=7+0 -2 c'35=8+4 -7 0 1=0 0 1 5

Calculating Reduced Costs c'34=10+4 -2 c'14=7+0 -2 c'35=8+4 -7 0 1=0 0 1 5 Network Simplex: Part 2 2 = -5 2 3 = -4 3 0 5 i (c’ij) j 5 5 = -7 12 4 4 = -2 0 21

New Solution (BFS 3) i (xij) 10 j 1 3 7 4 L =

New Solution (BFS 3) i (xij) 10 j 1 3 7 4 L = {(1, 4), (3, 5), (4, 5)} 2 7 -3 3 5 -7 4 4 Network Simplex: Part 2 -4 Cost = 97 22

Recalculate Node Potentials 2 = -5 5 1=0 1 4 2 3 = -4

Recalculate Node Potentials 2 = -5 5 1=0 1 4 2 3 = -4 3 2 i (cij) j 5 5 = -7 10 Network Simplex: Part 2 4 4 = -14 23

Recalculate Reduced Costs c'14=7 -14 c'35=5+4 -7 c'45=5+14 -7 1=0 0 0 1 -7

Recalculate Reduced Costs c'14=7 -14 c'35=5+4 -7 c'45=5+14 -7 1=0 0 0 1 -7 (1, 4) becomes basic. It is in L and c' < 0. Network Simplex: Part 2 2 = -5 2 3 = -4 3 0 4 4 = -14 0 2 i (c’ij) j 5 5 = -7 12 24

Increasing the Flow on (1, 4) i 4 (xij) 10 j 1 2 3

Increasing the Flow on (1, 4) i 4 (xij) 10 j 1 2 3 7 - -3 3 7 5 -7 4 - 0+ Network Simplex: Part 2 4 -4 Cost = 97 25

New Solution (BFS 4) 4 L = {(3, 4), (3, 5), (4, 5)} 2

New Solution (BFS 4) 4 L = {(3, 4), (3, 5), (4, 5)} 2 3 -3 3 10 1 3 7 i 5 (xij) j -7 4 4 Network Simplex: Part 2 -4 Cost = 69 26

Recalculate Node Potentials 2 = -5 5 1=0 1 4 7 Network Simplex: Part

Recalculate Node Potentials 2 = -5 5 1=0 1 4 7 Network Simplex: Part 2 2 3 = -4 3 4 4 = -7 2 i ( cij) j 5 5 = -7 27

Recalculate Reduced Costs c'34 =10+4 -7=7 c'35 = 8+4 -7=5 c'45 = 5+7 -7=5

Recalculate Reduced Costs c'34 =10+4 -7=7 c'35 = 8+4 -7=5 c'45 = 5+7 -7=5 0 1=0 1 0 0 Network Simplex: Part 2 2 = -5 2 3 = -4 3 4 4 = -7 0 i ( c’ij) j 5 5 = -7 28

Outline of Network Simplex 1. 2. 3. 4. 5. Determine a starting BFS. The

Outline of Network Simplex 1. 2. 3. 4. 5. Determine a starting BFS. The n-1 basic variables correspond to a spanning tree. Compute the node potentials. Compute the reduced costs for the non-basic arcs. – The current solution is optimal if all arcs in L have non-negative reduced cost and all arcs in U have non-positive reduced cost. Select a non-basic arc (i, j) to enter the basis. Identify the cycle created by adding (i, j) to the tree. Use flow conservation to determine the new flows on the arcs in the cycle. The arc that first hits lower or upper limit leaves the basis. Network Simplex: Part 2 29