Cycle Canceling 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

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.
15.082J & 6.855J & ESD.78J October 14, 2010 Maximum Flows 2.
15.082J & 6.855J & ESD.78J Shortest Paths 2: Bucket implementations of Dijkstra’s Algorithm R-Heaps.
Network Optimization Models: Maximum Flow Problems
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
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.
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.
& 6.855J & ESD.78J Algorithm visualizations Modified Label Correcting Algorithm.
15.082J and 6.855J and ESD.78J November 2, 2010 Network Flow Duality and Applications of Network Flows.
and 6.855J The Capacity Scaling Algorithm.
15.082J and 6.855J and ESD.78J Lagrangian Relaxation 2 Applications Algorithms Theory.
15.082J and 6.855J and ESD.78J October 19, 2010 Max Flows 3 Preflow-Push Algorithms.
15.082J & 6.855J & ESD.78J September 23, 2010 Dijkstra’s Algorithm for the Shortest Path Problem.
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.
15.082J & 6.855J & ESD.78J October 7, 2010 Introduction to Maximum Flows.
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.
15.082J & 6.855J & ESD.78J September 30, 2010 The Label Correcting Algorithm.
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.
Ford-Fulkerson Recap.
Network Optimization J.B. Orlin
Network Simplex Animations
EMIS 8374 Dijkstra’s Algorithm Updated 18 February 2008
Dijkstra’s Algorithm with two levels of buckets
Edmonds-Karp Algorithm
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Introduction to Maximum Flows
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
Introduction to Minimum Cost Flows
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Shortest-Path Property 4.1
Augmenting Path Algorithm
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Algorithms (2IL15) – Lecture 7
Successive Shortest Path Algorithm
Successive Shortest Path Algorithm
15.082J & 6.855J & ESD.78J Radix Heap Animation
Network Optimization Depth First Search
Min Global Cut Animation
Network Optimization Flow Decomposition.
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Augmenting Path Algorithm
Network Optimization Topological Ordering
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.
Eulerian Cycles in directed graphs
15.082J & 6.855J & ESD.78J Visualizations
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
15.082J & 6.855J & ESD.78J Visualizations
Presentation transcript:

Cycle Canceling Algorithm 15.082J and 6.855J and ESD.78J Cycle Canceling Algorithm

A minimum cost flow problem 10, $4 2 4 30, $7 25, $5 25 1 20, $2 20, $6 20, $1 3 5 25, $2 -25

The Original Capacities and Feasible Flow 10,10 2 4 30,25 25,15 25 1 20,10 20,20 20,0 The feasible flow can be found by solving a max flow. 3 5 25,5 -25

Capacities on the Residual Network 10 2 4 5 10 25 1 15 10 20 10 20 20 3 5 5

Costs on the Residual Network 2 4 -4 7 -7 1 2 5 -2 -5 -1 6 2 3 5 -2 Find a negative cost cycle, if there is one.

Send flow around the cycle 2 4 Send flow around the negative cost cycle 25 1 15 20 The capacity of this cycle is 15. 3 5 Form the next residual network.

Capacities on the residual network 10 2 4 20 10 10 1 25 20 10 15 5 20 3 5 5

Costs on the residual network -4 2 4 7 -7 2 1 5 -2 -6 -1 6 2 3 5 -2 Find a negative cost cycle, if there is one.

Send flow around the cycle 2 4 Send flow around the negative cost cycle 1 10 20 The capacity of this cycle is 10. 3 5 20 Form the next residual network.

Capacities on the residual network 10 2 4 20 20 10 1 25 10 10 15 5 10 3 5 15

Costs in the residual network -4 2 4 7 -7 1 2 5 1 -1 -6 6 2 3 5 -2 Find a negative cost cycle, if there is one.

Send Flow Around the Cycle 10 2 4 Send flow around the negative cost cycle 20 10 1 5 The capacity of this cycle is 5. 3 5 Form the next residual network.

Capacities on the residual network 5 2 4 25 5 15 5 1 25 10 10 20 5 10 3 5 15

Costs in the residual network 4 2 4 7 -4 -7 1 2 5 -1 1 -2 -6 2 3 5 -2 Find a negative cost cycle, if there is one.

Send Flow Around the Cycle 2 4 Send flow around the negative cost cycle 1 10 5 10 The capacity of this cycle is 5. 3 5 Form the next residual network.

Capacities on the residual network 5 2 4 25 5 20 5 1 25 5 15 20 5 3 5 20

Costs in the residual network 4 2 4 7 -4 -7 1 2 5 -1 1 -6 Find a negative cost cycle, if there is one. 2 3 5 -2 There is no negative cost cycle. But what is the proof?

Compute shortest distances in the residual network 7 11 4 2 4 7 -4 -7 1 2 5 -1 1 -6 Let d(j) be the shortest path distance from node 1 to node j. 2 3 5 -2 10 12 Next let p(j) = -d(j) And compute cp

Reduced costs in the residual network 7 11 2 4 -0 1 2 1 4 The reduced costs in G(x*) for the optimal flow x* are all non-negative. 3 5 10 12

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