15.082 and 6.855J The Capacity Scaling Algorithm.

Slides:



Advertisements
Similar presentations
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Advertisements

Min Cost Flow: Polynomial Algorithms. Overview Recap: Min Cost Flow, Residual Network Potential and Reduced Cost Polynomial Algorithms Approach Capacity.
Outline LP formulation of minimal cost flow problem
Max Flow Problem Given network N=(V,A), two nodes s,t of V, and capacities on the arcs: uij is the capacity on arc (i,j). Find non-negative flow fij for.
Max Flows 2: The Excess Scaling Algorithm and Variants. James Orlin.
ENGM 732 Formalization of Network Flows Network Flow Models.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Network Optimization Models: Maximum Flow Problems
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
1 Maximum Flow Networks Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘capacity’ u ij. Goal: Determine the maximum amount.
The Out of Kilter Algorithm in Introduction The out of kilter algorithm is an example of a primal-dual algorithm. It works on both the primal.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
1 Routing Algorithms. 2 Outline zBellaman-Ford Algorithm zDijkstra Algorithm.
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, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
Shortest Route, Minimal Spanning Tree and Maximal Flow Models
1 Minimum Cost Flows Goal: Minimize costs to meet all demands in a network subject to capacities (combines elements of both shortest path and max flow.
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.
15.082J and 6.855J and ESD.78J October 19, 2010 Max Flows 3 Preflow-Push Algorithms.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
& 6.855J & ESD.78J Algorithm Visualization The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem.
The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem Thanks to Jim Orlin & MIT OCW.
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem.
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.
and 6.855J March 6, 2003 Maximum Flows 2. 2 Network Reliability u Communication Network u What is the maximum number of arc disjoint paths from.
EMIS 8374 The Ford-Fulkerson Algorithm (aka the labeling algorithm) Updated 4 March 2008.
15.082J and 6.855J and ESD.78J Network Simplex Animations.
15.082J and 6.855J and ESD.78J October 21, 2010 Max Flows 4.
1 Maximum Flows CONTENTS Introduction to Maximum Flows (Section 6.1) Introduction to Minimum Cuts (Section 6.1) Applications of Maximum Flows (Section.
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.
Routing algorithms. D(v): the cost from the source node to destination that has currently the least cost. p(v): previous node along current least.
Cycle Canceling Algorithm
Network Simplex Animations
Dijkstra’s Algorithm with two levels of buckets
Network Flow 2016/04/12.
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Introduction to Maximum Flows
15.082J & 6.855J & ESD.78J Visualizations
Introduction Basic formulations Applications
Introduction to Minimum Cost Flows
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Augmenting Path Algorithm
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Successive Shortest Path Algorithm
Successive Shortest Path Algorithm
and 6.855J March 6, 2003 Maximum Flows 2
Network Optimization Flow Decomposition.
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Ford-Fulkerson Algorithm
Augmenting Path Algorithm
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
and 6.855J Dijkstra’s Algorithm
Visualizations Dijkstra’s Algorithm
Introduction to Maximum Flows
Network Simplex Animations
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
Introduction to Minimum Cost Flows
Introduction to Maximum Flows
The Successive Shortest Path Algorithm
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Max Flows 3 Preflow-Push Algorithms
Class 11 Max Flows Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow.
15.082J & 6.855J & ESD.78J Visualizations
Excess Scaling Approach Algorithm
Presentation transcript:

and 6.855J The Capacity Scaling Algorithm

2 The Original Costs and Node Potentials

3 The Original Capacities and Supplies/Demands

4 Set  = 16. This begins the  -scaling phase We send flow from nodes with excess   to nodes with deficit  . We ignore arcs with capacity  .

5 Select a supply node and find the shortest paths shortest path distance The shortest path tree is marked in bold and blue.

6 Update the Node Potentials and the Reduced Costs To update a node potential, subtract the shortest path distance.

7 Send Flow Along a Shortest Path in G(x, 16) Send flow from node 1 to node How much flow should be sent? 10

8 Update the Residual Network units of flow were sent from node 1 to node

9 This ends the 16-scaling phase The  -scaling phase continues when e(i)   for some i. e(j)  -  for some j. There is a path from i to j

10 This begins and ends the 8-scaling phase The  -scaling phase continues when e(i)   for some i. e(j)  -  for some j. There is a path from i to j

11 This begins 4-scaling phase What would we do if there were arcs with capacity at least 4 and negative reduced cost?

12 Select a “large excess” node and find shortest paths The shortest path tree is marked in bold and blue. 0

13 Update the Node Potentials and the Reduced Costs To update a node potential, subtract the shortest path distance. Note: low capacity arcs may have a negative reduced cost

14 Send Flow Along a Shortest Path in G(x, 4) Send flow from node 1 to node 7 How much flow should be sent?

15 Update the Residual Network units of flow were sent from node 1 to node

16 This ends the 4-scaling phase There is no node j with e(j) 

17 Begin the 2-scaling phase There is no node j with e(j)  What would we do if there were arcs with capacity at least 4 and negative reduced cost?

18 Send flow along a shortest path Send flow from node 2 to node 4 How much flow should be sent?

19 Update the Residual Network units of flow were sent from node 2 to node 4 30

20 Send Flow Along a Shortest Path Send flow from node 2 to node How much flow should be sent?

21 Update the Residual Network units of flow were sent from node 2 to node

22 This ends the 2-scaling phase Are we optimal? 0 0 0

23 Begin the 1-scaling phase Saturate any arc whose capacity is at least 1 and with negative reduced cost reduced cost is negative

24 Update the Residual Network Send flow from node 3 to node Note: Node 1 is now a node with deficit

25 Update the Residual Network unit of flow was sent from node 3 to node Is this flow optimal?

26 The Final Optimal Flow ,8 20, , ,20 30,

27 The Final Optimal Node Potentials and the Reduced Costs Flow is at upper bound Flow is at lower bound.