15.053 network simplex animations network simplex animations

33
15.053 Network Simplex Animations Network Simplex Animations

Upload: ezra-small

Post on 08-Jan-2018

272 views

Category:

Documents


1 download

DESCRIPTION

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

TRANSCRIPT

Page 1: 15.053 Network Simplex Animations Network Simplex Animations

15.053

Network SimplexAnimations

Network Simplex Animations

Page 2: 15.053 Network Simplex Animations Network Simplex Animations

2

Calculating A Spanning Tree Flow

Network Simplex Animations

A tree with suppliesand demands.(Assume that allother arcs have aflow of 0)

What is the flow inarc (4,3)?

Page 3: 15.053 Network Simplex Animations Network Simplex Animations

3

Calculating A Spanning Tree Flow

Network Simplex Animations

To calculate flows,iterate up the tree,and find an arcwhose flow isuniquelydetermined.

What is the flow inarc (5,3)?

Page 4: 15.053 Network Simplex Animations Network Simplex Animations

4

Calculating A Spanning Tree Flow

Network Simplex Animations

What is the flow inarc (3,2)?

Page 5: 15.053 Network Simplex Animations Network Simplex Animations

5

Calculating A Spanning Tree Flow

Network Simplex Animations

What is the flow inarc (2,6)?

Page 6: 15.053 Network Simplex Animations Network Simplex Animations

6

Calculating A Spanning Tree Flow

Network Simplex Animations

What is the flow inarc (7,1)?

Page 7: 15.053 Network Simplex Animations Network Simplex Animations

7

Calculating A Spanning Tree Flow

Network Simplex Animations

What is the flow inarc (1,2)?

Page 8: 15.053 Network Simplex Animations Network Simplex Animations

8

Calculating A Spanning Tree Flow

Network Simplex Animations

Note: there are twodifferent ways ofcalculating the flow on(1,2), and both waysgive a flow of 4. Is thisa coincidence?

Page 9: 15.053 Network Simplex Animations Network Simplex Animations

9

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

Here is a spanningtree with arc costs.How can one choosenode potentials sothat reduced costs oftree arcs is 0?

Recall: the reducedcost of (i,j) iscij - πi + πj

Page 10: 15.053 Network Simplex Animations Network Simplex Animations

10

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

Here is a spanningtree with arc costs.How can one choosenode potentials sothat reduced costs oftree arcs is 0?

Recall: the reducedcost of (i,j) iscij - πi + πj

Page 11: 15.053 Network Simplex Animations Network Simplex Animations

11

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

Here is a spanningtree with arc costs.How can one choosenode potentials sothat reduced costs oftree arcs is 0?

Recall: the reducedcost of (i,j) iscij - πi + πj

Page 12: 15.053 Network Simplex Animations Network Simplex Animations

12

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

The reduced cost of(1,2) isc12 - π1 + π2 = 0.

Thus 5 - 0 + π2 = 0.

What is the simplexmultiplier for node7?

Page 13: 15.053 Network Simplex Animations Network Simplex Animations

13

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

The reduced cost of(1,2) isc71 – π7 + π1 = 0.

Thus -6 -π2 + 0 = 0.

What is the simplexmultiplier for node3?

Page 14: 15.053 Network Simplex Animations Network Simplex Animations

14

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

What is the simplexmultiplier for node6?

Page 15: 15.053 Network Simplex Animations Network Simplex Animations

15

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

What is the simplexmultiplier for node5?

Page 16: 15.053 Network Simplex Animations Network Simplex Animations

16

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

What is the simplexmultiplier for node4?

Page 17: 15.053 Network Simplex Animations Network Simplex Animations

17

Calculating Simplex Multipliers for a Spanning Tree

Network Simplex Animations

These are thesimplex multipliersassociated with thistree. They do notdepend on arc flows,nor on costs of non-tree arcs.

Page 18: 15.053 Network Simplex Animations Network Simplex Animations

18

Network Simplex Algorithm

Network Simplex Animations

The minimum Cost Flow Problem

Page 19: 15.053 Network Simplex Animations Network Simplex Animations

19

Network Simplex Algorithm

Network Simplex Animations

An Initial Spanning Tree Solution

Page 20: 15.053 Network Simplex Animations Network Simplex Animations

20

Simplex Multipliers and Reduced Costs

Network Simplex Animations

The initial simplex multipliers andreduced costs

What arcs areviolating?

Page 21: 15.053 Network Simplex Animations Network Simplex Animations

21

Add a violating arc to the spanning tree, creating a cycle

Network Simplex Animations

Arc (2,1) is added to the tree

What is thecycle, andhow muchflow can besent?

Page 22: 15.053 Network Simplex Animations Network Simplex Animations

22

Send Flow Around the Cycle

Network Simplex Animations

2 units of flow were sent along thecycle.

What is thenext spanningtree?

Page 23: 15.053 Network Simplex Animations Network Simplex Animations

23

After a pivot

Network Simplex Animations

The Updated Spanning Tree

In a pivot, an arcis added to T andan arc is droppedfrom T.

Page 24: 15.053 Network Simplex Animations Network Simplex Animations

24

Updating the Multipliers

Network Simplex Animations

The current multipliers andreduced costs

How can wemake cπ

21 = 0and have othertree arcs have a0 reduced cost?

Page 25: 15.053 Network Simplex Animations Network Simplex Animations

25

Deleting (2,1) from T splits T into two parts

Network Simplex Animations

What value of∆ should bechosen to makethe reduced costof (2,1) = 0?

Adding ∆ to nodes on one side ofthe tree does not effect the reducedcosts of any tree arc except (2,1).Why?

Page 26: 15.053 Network Simplex Animations Network Simplex Animations

26

The updated multipliers and reduced costs

Network Simplex Animations

The current multipliers andreduced costs

Is this treesolutionoptimal?

Page 27: 15.053 Network Simplex Animations Network Simplex Animations

27

Send Flow Around the Cycle

Network Simplex Animations

1 unit of flow was sent around thecycle.

What is thenext spanningtree solution?

Page 28: 15.053 Network Simplex Animations Network Simplex Animations

28

The updated multipliers and reduced costs

Network Simplex Animations

The current multipliers andreduced costs

What is thenext spanningtree solution?

Page 29: 15.053 Network Simplex Animations Network Simplex Animations

29

The next spanning tree solution

Network Simplex Animations

Here is the updated spanning treesolution

Page 30: 15.053 Network Simplex Animations Network Simplex Animations

30

Updated the multipliers

Network Simplex Animations

Here are the current multipliers

How shouldwe modify themultipliers?

Page 31: 15.053 Network Simplex Animations Network Simplex Animations

31

Updated the multipliers

Network Simplex Animations

Here are the current multipliers

What valueshould ∆ be?

Page 32: 15.053 Network Simplex Animations Network Simplex Animations

32

The updated multipliers

Network Simplex Animations

Here are the updated multipliers.

Is the currentspanning treesolutionoptimal?

Page 33: 15.053 Network Simplex Animations Network Simplex Animations

33

The Optimal Solution

Network Simplex Animations

Here is the optimal solution.

No arcviolates theoptimalityconditions.