3 t 4 1 2 s2s2 s1s1 2 1 4 23 3 1 3 3 3 1 the black number next to an arc is its capacity.

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.
Bioinformatics III1 We will present an algorithm that originated by Ford and Fulkerson (1962). Idea: increase the flow in a network iteratively until it.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
MS&E 211 Minimum Cost Flow LP Ashish Goel. Minimum Cost Flow (MCF) Need to ship some good from “supply” nodes to “demand” nodes over a network – Example:
Hierarchical Decompositions for Congestion Minimization in Networks Harald Räcke 1.
Trees and BFSs Page 1 The Network Simplex Method Spanning Trees and Basic Feasible Solutions.
Network Optimization Models: Maximum Flow Problems
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
Applications of Maximum Flow and Minimum Cut Problems In this handout Transshipment problem Assignment Problem.
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.
3 t s the black numbers next to an arc is its capacity.
© K. Cuthbertson and D. Nitzsche Figures for Chapter 17 ASSET PRICE DYNAMICS (Financial Engineering : Derivatives and Risk Management)
Network Flow & Linear Programming Jeff Edmonds York University Adapted from NetworkFlow.ppt.
A B C D The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they.
1 The Min Cost Flow Problem. 2 Flow Networks with Costs Flow networks with costs are the problem instances of the min cost flow problem. A flow network.
Network Simplex Method Fatme Elmoukaddem Jignesh Patel Martin Porcelli.
1 Ford-Fulkerson method Ford-Fulkerson(G) f = 0 while( 9 simple path p from s to t in G f ) f := f + f p output f Runs in time O(|f max | |E|) where f.
1 The Min Cost Flow Problem. 2 The Min Cost Flow problem We want to talk about multi-source, multi-sink flows than just “flows from s to t”. We want to.
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.
Shortest Route, Minimal Spanning Tree and Maximal Flow Models
and 6.855J The Capacity Scaling Algorithm.
Network Flow How to solve maximal flow and minimal cut problems.
The minimum cost flow problem. Simplifying assumptions Network is connected (as an undirected graph). – We can consider each connected component separately.
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 
Chapter 4 Minimum Cost Flow Problems (MCF)
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.
Acceleration- Change in Velocity occurs when an object _____________________ occurs when an object ______________ in speed. occurs when an object __________.
Maximum Flow Chapter 26. Flow Concepts Source vertex s – where material is produced Sink vertex t – where material is consumed For all other vertices.
Flow in Network. Graph, oriented graph, network A graph G =(V, E) is specified by a non empty set of nodes V and a set of edges E such that each edge.
Network Simplex Animations Network Simplex Animations.
Class Plan 2-1.Minimum Spanning Tree 最小木
Data Structures & Algorithms Network Flow Richard Newman based on book by R. Sedgewick.
Graph Concepts Elif Tosun 252a-aa (All graphics created by using demo/graphwin/gw*)
The minimum cost flow problem. Solving the minimum cost flow problem.
Introduction to NP Instructor: Neelima Gupta 1.
Meanings of the Derivatives. I. The Derivative at the Point as the Slope of the Tangent to the Graph of the Function at the Point.
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.
Ford-Fulkerson Recap.
Cycle Canceling Algorithm
Part 3 Linear Programming
The minimum cost flow problem
Lecture 22 Network Flow, Part 2
'. \s\s I. '.. '... · \ \ \,, I.
Min Cost Network Flow C.Gebotys, ECE 602.
Edmunds-Karp Algorithm: Choosing Good Augmenting Paths
The Network Simplex Method
Spanning Trees Discrete Mathematics.
James B. Orlin Presented by Tal Kaminker
Part 3 Linear Programming
Network Flows – Labelling procedure
Lecture 19-Problem Solving 4 Incremental Method
Correctness of Edmonds-Karp
Analysis of Algorithms
' '· \ ·' ,,,,
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.
Successive Shortest Path Algorithm
7. Edmonds-karp Demo.
Part 3 Linear Programming
The Network Simplex Method
Lecture 22 Network Flow, Part 2
Network Optimization Models: Maximum Flow Problems
Network Flow Problems – Maximal Flow Problems
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
The Residual Network Given a flow x, the residual capacity rij of arc (i, j) is the maximum additional flow that can be sent from i to j using arcs (i,
Presentation transcript:

3 t s2s2 s1s the black number next to an arc is its capacity

3 t s2s2 s1s the red number next to an arc is its unit flow cost

3 t s2s2 s1s b s 1 = 2 b s 2 = 2 b t =-4

3 t s2s2 s1s b s 1 = 2 b s 2 = 2 b t = the black number next to an arc is its capacity the red number next to an arc is its unit flow cost the green number next to an arc is its current flow

3 t s2s2 s1s Cycle C={1,2,4,1}

3 t s2s2 s1s Cycle C={1,2,4,1} On C in the order given: {1,2} and {2,4} are forward arcs {1,4} is a backward arc

3 t s2s2 s1s For Cycle C={1,2,4,1} define +1 for all forward arcs on C h(C)= -1 for all backward arcs on C 0 for all arcs not on C

3 t s2s2 s1s For Cycle C={1,2,4,1} define +1 for all forward arcs on C h(C)= -1 for all backward arcs on C 0 for all arcs not on C Ah(C)=0

3 t s2s2 s1s For Cycle C={1,2,4,1} define +1 for all forward arcs on C h(C)= -1 for all backward arcs on C 0 for all arcs not on C Ah(C)=0  f+ өh(C) is feasible for all ө small enough: i.e., such that 0 ≤ f+ өh(C) ≤ u

3 t s2s2 s1s For Cycle C={1,2,4,1} define +1 for all forward arcs on C h(C)= -1 for all backward arcs on C 0 for all arcs not on C Ah(C)=0  f+ өh(C) is feasible for all ө such that 0 ≤ f+ өh(C) ≤ u h(C) is called a simple circulation

3 t s2s2 s1s Cycle C={1,2,4,1} Push ө unit of flow over C: Δf 12 = өh 12 = +ө, Δf 24 = өh 24 = +ө, Δf 14 = өh 14 = -ө

3 t s2s2 s1s Cycle C={1,2,4,1} Push ө unit of flow over C: Δf 12 = өh 12 = +ө, Δf 24 = өh 24 = +ө, Δf 14 = өh 14 = -ө f 12 + ө ≤ 1, hence (f 12 =0) ө ≤ 1 f 24 + ө ≤ 4, hence (f 24 =2) ө ≤ 2 Thus, ө ≤ 1 f 14 - ө ≥ 0, hence (f 14 =1) ө ≤

3 t s2s2 s1s Cycle C={1,2,4,1} Push ө unit of flow over C: Δf 12 = өh 12 = +ө, Δf 24 = өh 24 = +ө, Δf 14 = өh 14 = -ө Total change in cost: ө(5 + 2 – 6) = ө

3 t s2s2 s1s Cycle C={1,2,4,1} Push ө unit of flow over C: Δf 12 = өh 12 = +ө, Δf 24 = өh 24 = +ө, Δf 14 = өh 14 = -ө Total change in cost: ө(5 + 2 – 6) = ө Not a good change!

3 t s2s2 s1s Cycle C={1,3,4,1} Push Ө unit of flow over C: h 13 =+1, h 43 =-1, h 14 =

3 t s2s2 s1s Cycle C={1,3,4,1} Push Ө unit of flow over C: h 13 =+1, h 43 =-1, h 14 = unit cost change: c 13 – c 43 – c 14 = 1 – 1 – 6 = – 6  negative cost cycle Ө ≤ 1

3 t 4 1 s2s2 s1s b s 1 =2 b s 2 =2 b t = the instance slightly changed and omitting capacities The Network Simplex Method

A basic (feasible) solution related to the Tree T 3 t 4 1 s2s2 s1s

3 t 4 1 s2s2 s1s A basic feasible solution related to the Tree T C 14 = – 1 = 6

3 t 4 1 s2s2 s1s A basic feasible solution related to the Tree T C 14 = – 1 = 6 C 34 = = 2

3 t 4 1 s2s2 s1s A basic feasible solution related to the Tree T C 14 = – 1 = 6 C 34 = = 2 C 4t = 1 – 5 – 1 = – 5

3 t 4 1 s2s2 s1s A basic feasible solution related to the Tree T C 14 = – 1 = 6 C 34 = = 2 C 4t = 1 – 5 – 1 = – 5 negative reduced cost

3 t 4 1 s2s2 s1s A basic feasible solution related to the Tree T C 14 = – 1 = 6 C 34 = = 2 C 4t = 1 – 5 – 1 = – 5 negative reduced cost The cycle is unsaturated, hence will really decrease cost. Θ*=1

3 t 4 1 s2s2 s1s The residual graph 3 t 4 1 s2s2 s1s

3 t 4 1 s2s2 s1s t 4 1 s2s2 s1s directed cycle in the residual graph = undirected unsaturated cycle in the graph

3 t 4 1 s2s2 s1s directed negative cycle in the residual graph = undirected unsaturated negative cost cycle in the graph 3 t 4 1 s2s2 s1s