Successive Shortest Path 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
15.082J & 6.855J & ESD.78J October 14, 2010 Maximum Flows 2.
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.
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.
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.
Shortest Route, Minimal Spanning Tree and Maximal Flow Models
and 6.855J The Capacity Scaling Algorithm.
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.
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.
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.
15.082J and 6.855J and ESD.78J Network Simplex Animations.
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.
Cycle Canceling Algorithm
Network Simplex Animations
Dijkstra’s Algorithm with two levels of buckets
James B. Orlin Presented by Tal Kaminker
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 Basic formulations Applications
Introduction to Minimum Cost Flows
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Successive Shortest Path Algorithm
and 6.855J March 6, 2003 Maximum Flows 2
15.082J & 6.855J & ESD.78J Radix Heap Animation
Network Optimization Depth First Search
Network Optimization Flow Decomposition.
Dijkstra’s Algorithm for Shortest Paths
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
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
Prim’s algorithm for minimum spanning trees
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.
Network Optimization Models: Maximum Flow Problems
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
Presentation transcript:

Successive Shortest Path Algorithm 15.082J and 6.855J and ESD.78J Successive Shortest Path Algorithm

The Original Costs and Node Potentials 4 2 4 7 5 2 1 1 6 2 3 5

The Original Capacities and Supplies/Demands 5 -2 10 2 4 30 25 23 20 1 20 20 3 25 5 -7 -19

Select a supply node and find the shortest paths shortest path distance 7 8 4 2 4 7 5 The shortest path tree is marked in bold and blue. 2 1 1 6 2 3 5 8 6

Update the Node Potentials and the Reduced Costs -7 -8 4 3 2 4 7 5 2 6 1 1 6 2 3 5 -6 -8

Send Flow From a Supply Node to a Demand Node Along Shortest Paths (along arcs with reduced costs of 0) 5 -2 Arc numbers are residual capacities. Red arcs have a reduced cost of 0 10 2 4 30 25 23 20 1 20 send 7 units from node 1 to node 3 20 3 25 5 -7 -19

Update the Residual Network 5 -2 If an arc is added to G(x), then it has a reduced cost of 0, and it is red. 10 2 4 30 25 23 20 1 16 20 Arcs in the residual network will always have a non-negative reduced cost 7 13 3 25 5 Arc (3,1) has a reduced cost of 0 -7 -19

A comment At this point, one would choose a source node, and then find the shortest path from the source node to all other nodes, and then update the residual network. However, there are still paths of 0 reduced cost in the residual network, and it makes sense to use them. This heuristic is quite useful in practice.

Send Flow From a Supply Node to a Demand Node Along Shortest Paths 5 -2 10 2 4 Recall that red arcs have a reduced cost of 0 30 25 20 1 16 20 7 Send 2 units of flow from node 1 to node 4 13 3 25 5 -19

Update the Residual Network 5 -2 10 2 4 30 2 units of flow were sent from node 1 to node 4 on 1-3-4 25 18 1 16 20 2 9 14 11 3 25 5 -19

Send Flow From a Supply Node to a Demand Node Along Shortest Paths 5 10 2 4 Send flow from node 1 to node 5 30 25 18 14 1 20 2 How much flow should be sent? 9 11 3 25 5 -19

Update the Residual Network 5 10 2 4 30 11 units of flow were sent from node 1 to node 5 25 18 14 1 20 3 2 20 3 14 5 -8 11 -19

Select a supply node and find the shortest paths -7 -8 3 2 4 The shortest path tree is marked in bold and blue. 6 1 1 The values on the nodes are the current node potentials 3 5 -6 -8

Update the node potentials and the reduced costs -11 -7 -8 3 2 4 To obtain new node potentials, subtract the shortest path distances from the old potentials. 3 1 1 3 3 5 -11 -6 -9 -8

Send Flow From a Supply Node to a Demand Node Along Shortest Paths 5 10 2 4 30 Send flow from node 1 to node 5 25 18 1 3 20 2 20 How much flow will be sent? 3 14 5 -8 11

Update the Residual Network 5 8 2 4 2 28 25 2 units of flow were sent from node 1 to node 5 3 2 20 1 1 20 20 3 12 5 -8 13 -6

Select a supply node and find the shortest paths -7 -11 2 4 The shortest path tree is marked in bold and blue. 3 1 1 3 3 5 -9 -11

Update the Node Potentials and the Reduced Costs -7 -11 2 4 To obtain the new node potential, subtract the shortest path distance from the old potential. 1 2 1 4 3 5 -11 -9 -12 -10

Send Flow From a Supply Node to a Demand Node Along Shortest Paths 5 8 2 4 2 28 Send flow from node 2 to node 5 25 2 20 1 1 20 20 How much flow can be sent? 3 12 5 13 -6

Update the Residual Network 5 3 2 4 7 28 5 units of flow were sent from node 2 to node 6. 25 2 20 1 1 15 5 20 3 12 5 -1 13 -6

Send Flow From a Supply Node to a Demand Node 3 2 4 7 28 Send flow from node 1 to node 5 25 2 20 1 1 15 5 20 3 12 5 -1 13

Update the Residual Network 2 2 4 8 1 unit of flow was sent from node 1 to node 5. 27 25 3 20 1 1 14 6 The resulting flow is feasible, and also optimal. 20 3 12 5 -1 13

The Final Optimal Flow 5 -2 10,8 2 4 30,3 25 23 20 1 20,6 20,20 3 25,13 5 -7 -19

The Final Optimal Node Potentials and the Reduced Costs -7 -11 2 4 Flow is at lower bound. 1 2 1 -4 3 5 Flow is at upper bound -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.