15.082J and 6.855J and ESD.78J Network Simplex Animations.

Slides:



Advertisements
Similar presentations
and 6.855J Modified Label Correcting Algorithm.
Advertisements

Outline LP formulation of minimal cost flow problem
Transportation Problem (TP) and Assignment Problem (AP)
Chapter 5 Shortest Paths: Label-Correcting Algorithms
MINIMUM COST FLOWS: NETWORK SIMPLEX ALGORITHM A talk by: Lior Teller 1.
15.082J, 6.855J, and ESD.78J Sept 16, 2010 Lecture 3. Graph Search Breadth First Search Depth First Search Intro to program verification Topological Sort.
Trees and BFSs Page 1 The Network Simplex Method Spanning Trees and Basic Feasible Solutions.
Network Optimization Models: Maximum Flow Problems
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
15.082J/6.855J/ESD.78J September 14, 2010 Data Structures.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
15.082J and 6.855J and ESD.78J November 4, 2010 The Network Simplex Algorithm.
& 6.855J & ESD.78J Algorithm visualizations Modified Label Correcting Algorithm.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
and 6.855J The Capacity Scaling Algorithm.
15.082J and 6.855J and ESD.78J November 30, 2010 The Multicommodity Flow Problem.
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
Lecture 10 The Label Correcting Algorithm.
EMIS 8374 Optimal Trees updated 25 April slide 1 Minimum Spanning Tree (MST) Input –A (simple) graph G = (V,E) –Edge cost c ij for each edge e 
15.082J & 6.855J & ESD.78J September 23, 2010 Dijkstra’s Algorithm for the Shortest Path Problem.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
& 6.855J & ESD.78J Algorithm Visualization The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem.
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem.
15.082J & 6.855J & ESD.78J October 7, 2010 Introduction to Maximum Flows.
Chapter 8 Maximum Flows: Additional Topics All-Pairs Minimum Value Cut Problem  Given an undirected network G, find minimum value cut for all.
Lagrangean Relaxation
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Network Simplex Animations Network Simplex Animations.
15.082J and 6.855J and ESD.78J The Successive Shortest Path Algorithm and the Capacity Scaling Algorithm for the Minimum Cost Flow Problem.
15.082J & 6.855J & ESD.78J September 30, 2010 The Label Correcting Algorithm.
The minimum cost flow problem. Solving the minimum cost flow problem.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
::Network Optimization:: Minimum Spanning Trees and Clustering Taufik Djatna, Dr.Eng. 1.
1 1 Slide © 2005 Thomson/South-Western Chapter 9 Network Models n Shortest-Route Problem n Minimal Spanning Tree Problem n Maximal Flow Problem.
Cycle Canceling Algorithm
Part 3 Linear Programming
St. Edward’s University
The minimum cost flow problem
Network Simplex Animations
Dijkstra’s Algorithm with two levels of buckets
The Network Simplex Method
James B. Orlin Presented by Tal Kaminker
Part 3 Linear Programming
15.082J & 6.855J & ESD.78J Visualizations
Dijkstra’s Algorithm for the Shortest Path Problem
15.082J & 6.855J & ESD.78J Visualizations
Breadth first search animation
Lecture 4 Graph Search.
Successive Shortest Path Algorithm
Successive Shortest Path Algorithm
Flow Feasibility Problems
15.082J & 6.855J & ESD.78J Radix Heap Animation
Network Optimization Depth First Search
Introduction to Algorithms
Network Optimization Flow Decomposition.
Network Optimization Topological Ordering
Visualizations Dijkstra’s Algorithm
Network Simplex Animations
Eulerian Cycles in directed graphs
15.082J & 6.855J & ESD.78J Visualizations
and 6.855J Depth First Search
Part 3 Linear Programming
The Network Simplex Method
Introduction to Minimum Cost Flows
The network simplex method
15.082J & 6.855J & ESD.78J Visualizations
Presentation transcript:

15.082J and 6.855J and ESD.78J Network Simplex Animations

2 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)?

3 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)? 2

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

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

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

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

8 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?

9 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 c ij - π i + π j

One can set π 1 arbitrarily. We will let π i = 0. What is the simplex multiplier for node 2? There is a redundant constraint in the minimum cost flow problem. 0 Calculating Simplex Multipliers for a Spanning Tree

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

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

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

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

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

16 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 Algorithm , $4 4, $2 1, $4 5, $5 3, $5 4, $1 4, $2 3, $4 5-3 The minimum Cost Flow Problem TLUTLU

18 Spanning tree flows An Initial Spanning Tree Solution TLUTLU

19 Simplex Multipliers and Reduced Costs ? The initial simplex multipliers and reduced costs TLUTLU c 45 = 2 What arcs are violating? 3

20 Add a violating arc to the spanning tree, creating a cycle ,2 4,0 4,1 3,3 Arc (2,1) is added to the tree TLUTLU What is the cycle, and how much flow can be sent? 2, 1 4, 0 1, 0 5, 3 u 14, x 14

21 Send Flow Around the Cycle ,0 4,2 4,3 3,3 2 units of flow were sent along the cycle. TLUTLU What is the next spanning tree? 2, 1 4, 0 1, 0 5, 3 u 14, x 14

22 After a pivot ,0 4,2 4,3 3,3 The Updated Spanning Tree TLUTLU In a pivot, an arc is added to T and an arc is dropped from T. 2, 1 4, 0 1, 0 5, 3 u 14, x 14

23 Updating the Multipliers The current multipliers and reduced costs TLUTLU How can we make c  21 = 0 and have other tree arcs have a 0 reduced cost?

24 Deleting (2,1) from T splits T into two parts Adding Δ to multipliers on one side of the tree does not effect the reduced costs of any tree arc except (2,1). Why? TLUTLU Δ3+Δ -2+Δ 3 What value of Δ should be chosen to make the reduced cost of (2,1) = 0?

25 The updated multipliers and reduced costs TLUTLU Is this tree solution optimal?

26 Add a violating arc to the spanning tree, creating a cycle Add arc (3,4) to the spanning tree TLUTLU 3,0 4,2 4,3 3,3 2, 1 4, 0 1, 0 5, 3 What is the cycle, and how much flow can be sent?

27 Send Flow Around the Cycle unit of flow was sent around the cycle. TLUTLU 3,0 4,2 3,2 2, 2 4, 0 1, 0 5, 3 What is the next spanning tree solution?

28 The next spanning tree solution Here is the updated spanning tree solution TLUTLU 3,0 4,2 3,2 2, 2 4, 0 1, 0 5, 3

29 Updated the multipliers Here are the current multipliers TLUTLU How should we modify the multipliers?

30 Updated the multipliers Here are the current multipliers TLUTLU Δ What value should Δ be ?

31 The updated multipliers Here are the updated multipliers. TLUTLU Is the current spanning tree solution optimal?

32 The Optimal Solution Here is the optimal solution. TLUTLU No arc violates the optimality conditions.

33 Finding the Cycle

34 Use Depth and Predecessor depth(5) = 4; depth(3) = 2; replace node 5 by pred(5)

35 Use Depth and Predecessor depth(9) = 3; depth(3) = 2; replace node 9 by pred(9)

36 Use Depth and Predecessor depth(2) = 2; depth(3) = 2; replace node 2 by pred(2); replace node 3 by pred(3)

37 Use Depth and Predecessor depth(8) = 1; depth(7) = 1; replace node 8 by pred(8); replace node 7 by pred(1)

38 Use Depth and Predecessor The least common ancestor of nodes 3 and 5 has been found.

39 Updating the multipliers: use the thread and depth Suppose that arc (1,8) will drop out of the tree. What is the subtree rooted at node 8?

40 Follow the thread starting with node What is thread(8)?

41 Follow the thread starting with node What is thread(3)?

42 Follow the thread starting with node What is thread(10)?

43 Follow the thread starting with node What is thread(11)?

44 Follow the thread starting with node What is thread(6)?

45 The stopping rule Stopping rule: stop when depth(current node) ≤ depth(8) depth = 1

MITOpenCourseWare J / 6.855J / ESD.78J Network Optimization Fall 2010 For information about citing these materials or our Terms of Use, visit: