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
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Network Optimization Models: Maximum Flow Problems
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.
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.
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.
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.
::Network Optimization:: Minimum Spanning Trees and Clustering Taufik Djatna, Dr.Eng. 1.
Cycle Canceling Algorithm
The minimum cost flow problem
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
Introduction to Maximum Flows
15.082J & 6.855J & ESD.78J Visualizations
15.082J & 6.855J & ESD.78J Visualizations
Lecture 6 Shortest Path Problem.
Dijkstra’s Algorithm for the Shortest Path Problem
Breadth first search animation
Introduction Basic formulations Applications
Lecture 4 Graph Search.
Introduction to Minimum Cost Flows
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Spanning Tree Algorithms
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
Introduction to Algorithms
Min Global Cut Animation
Dijkstra’s Algorithm for Shortest Paths
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Reading before Lecture 13
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
and 6.855J Topological Ordering
15.082J & 6.855J & ESD.78J Visualizations
The Minimum Cost Spanning Tree Problem
and 6.855J Depth First Search
Breadth first search animation
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.
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 Successive Shortest Path Algorithm Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow problem, the minimum cost flow problem, and the multicommodity flow problem. This will be a very efficient way of introducing the four problems. (Perhaps under 10 minutes of class time.)

The Original Costs and Node Potentials 4 2 4 7 5 2 1 1 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 6 2 3 5

The Original Capacities and Supplies/Demands 5 -2 10 2 4 30 25 23 20 1 20 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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? Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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? Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 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 Introduce myself and the Tas. It is critical that students sign up for the virtual campus web site. Hand out instructions on how to use it. Make sure that everyone signs up on the list. Also, create a class list that is separate from the web site. Ask for a show of where students come from. There should be four major contingencies: Grad EECS, ORC, Transportation, Rest 3 5 Flow is at upper bound -10 -12