15 053 Network Simplex Animations Calculating A Spanning

  • Slides: 33
Download presentation
15. 053 Network Simplex Animations

15. 053 Network Simplex Animations

Calculating A Spanning Tree Flow A tree with supplies and demands. (Assume that all

Calculating A Spanning Tree Flow A tree with supplies and demands. (Assume that all other arcs have a flow of 0) What is the flow in arc (4, 3)? 2 Network Simplex Animations

Calculating A Spanning Tree Flow To calculate flows, iterate up the tree, and find

Calculating A Spanning Tree Flow To calculate flows, iterate up the tree, and find an arc whose flow is uniquely determined. What is the flow in arc (5, 3)? 3 Network Simplex Animations

Calculating A Spanning Tree Flow What is the flow in arc (3, 2)? 4

Calculating A Spanning Tree Flow What is the flow in arc (3, 2)? 4 Network Simplex Animations

Calculating A Spanning Tree Flow What is the flow in arc (2, 6)? 5

Calculating A Spanning Tree Flow What is the flow in arc (2, 6)? 5 Network Simplex Animations

Calculating A Spanning Tree Flow What is the flow in arc (7, 1)? 6

Calculating A Spanning Tree Flow What is the flow in arc (7, 1)? 6 Network Simplex Animations

Calculating A Spanning Tree Flow What is the flow in arc (1, 2)? 7

Calculating A Spanning Tree Flow What is the flow in arc (1, 2)? 7 Network Simplex Animations

Calculating A Spanning Tree Flow Note: there are two different ways of calculating the

Calculating A Spanning Tree Flow Note: there are two different ways of calculating the flow on (1, 2), and both ways give a flow of 4. Is this a coincidence? 8 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree Here is a spanning tree with arc

Calculating Simplex Multipliers for a Spanning Tree Here is a spanning tree with arc costs. How can one choose node potentials so that reduced costs of tree arcs is 0? Recall: the reduced cost of (i, j) is cij - πi + πj 9 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree Here is a spanning tree with arc

Calculating Simplex Multipliers for a Spanning Tree Here is a spanning tree with arc costs. How can one choose node potentials so that reduced costs of tree arcs is 0? Recall: the reduced cost of (i, j) is cij - πi + πj 10 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree Here is a spanning tree with arc

Calculating Simplex Multipliers for a Spanning Tree Here is a spanning tree with arc costs. How can one choose node potentials so that reduced costs of tree arcs is 0? Recall: the reduced cost of (i, j) is cij - πi + πj 11 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree The reduced cost of (1, 2) is

Calculating Simplex Multipliers for a Spanning Tree The reduced cost of (1, 2) is c 12 - π1 + π2 = 0. Thus 5 - 0 + π2 = 0. What is the simplex multiplier for node 7? 12 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree The reduced cost of (1, 2) is

Calculating Simplex Multipliers for a Spanning Tree The reduced cost of (1, 2) is c 71 – π7 + π1 = 0. Thus -6 -π2 + 0 = 0. What is the simplex multiplier for node 3? 13 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree What is the simplex multiplier for node

Calculating Simplex Multipliers for a Spanning Tree What is the simplex multiplier for node 6? 14 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree What is the simplex multiplier for node

Calculating Simplex Multipliers for a Spanning Tree What is the simplex multiplier for node 5? 15 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree What is the simplex multiplier for node

Calculating Simplex Multipliers for a Spanning Tree What is the simplex multiplier for node 4? 16 Network Simplex Animations

Calculating Simplex Multipliers for a Spanning Tree These are the simplex multipliers associated with

Calculating Simplex Multipliers for a Spanning Tree These are the simplex multipliers associated with this tree. They do not depend on arc flows, nor on costs of non-tree arcs. 17 Network Simplex Animations

Network Simplex Algorithm The minimum Cost Flow Problem 18 Network Simplex Animations

Network Simplex Algorithm The minimum Cost Flow Problem 18 Network Simplex Animations

Network Simplex Algorithm An Initial Spanning Tree Solution 19 Network Simplex Animations

Network Simplex Algorithm An Initial Spanning Tree Solution 19 Network Simplex Animations

Simplex Multipliers and Reduced Costs The initial simplex multipliers and reduced costs 20 What

Simplex Multipliers and Reduced Costs The initial simplex multipliers and reduced costs 20 What arcs are violating? Network Simplex Animations

Add a violating arc to the spanning tree, creating a cycle Arc (2, 1)

Add a violating arc to the spanning tree, creating a cycle Arc (2, 1) is added to the tree 21 What is the cycle, and how much flow can be sent? Network Simplex Animations

Send Flow Around the Cycle 2 units of flow were sent along the cycle.

Send Flow Around the Cycle 2 units of flow were sent along the cycle. 22 What is the next spanning tree? Network Simplex Animations

After a pivot The Updated Spanning Tree 23 In a pivot, an arc is

After a pivot The Updated Spanning Tree 23 In a pivot, an arc is added to T and an arc is dropped from T. Network Simplex Animations

Updating the Multipliers The current multipliers and reduced costs 24 How can we make

Updating the Multipliers The current multipliers and reduced costs 24 How can we make cπ21 = 0 and have other tree arcs have a 0 reduced cost? Network Simplex Animations

Deleting (2, 1) from T splits T into two parts Adding ∆ to nodes

Deleting (2, 1) from T splits T into two parts Adding ∆ to nodes on one side of the tree does not effect the reduced costs of any tree arc except (2, 1). Why? 25 What value of ∆ should be chosen to make the reduced cost of (2, 1) = 0? Network Simplex Animations

The updated multipliers and reduced costs The current multipliers and reduced costs 26 Is

The updated multipliers and reduced costs The current multipliers and reduced costs 26 Is this tree solution optimal? Network Simplex Animations

Send Flow Around the Cycle 1 unit of flow was sent around the cycle.

Send Flow Around the Cycle 1 unit of flow was sent around the cycle. 27 What is the next spanning tree solution? Network Simplex Animations

The updated multipliers and reduced costs The current multipliers and reduced costs 28 What

The updated multipliers and reduced costs The current multipliers and reduced costs 28 What is the next spanning tree solution? Network Simplex Animations

The next spanning tree solution Here is the updated spanning tree solution 29 Network

The next spanning tree solution Here is the updated spanning tree solution 29 Network Simplex Animations

Updated the multipliers Here are the current multipliers 30 How should we modify the

Updated the multipliers Here are the current multipliers 30 How should we modify the multipliers? Network Simplex Animations

Updated the multipliers What value should ∆ be? Here are the current multipliers 31

Updated the multipliers What value should ∆ be? Here are the current multipliers 31 Network Simplex Animations

The updated multipliers Here are the updated multipliers. 32 Is the current spanning tree

The updated multipliers Here are the updated multipliers. 32 Is the current spanning tree solution optimal? Network Simplex Animations

The Optimal Solution Here is the optimal solution. 33 No arc violates the optimality

The Optimal Solution Here is the optimal solution. 33 No arc violates the optimality conditions. Network Simplex Animations