Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.

Slides:



Advertisements
Similar presentations
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
Advertisements

Maximum Flow and Minimum Cut Problems In this handout: Duality theory Upper bounds for maximum flow value Minimum Cut Problem Relationship between Maximum.
Outline LP formulation of minimal cost flow problem
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
Linear Programming (LP) (Chap.29)
1 Lecture 2 Shortest-Path Problems Assignment Problems Transportation Problems.
BU BU Decision Models Networks 1 Networks Models Summer 2013.
Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.
Transportation Problem (TP) and Assignment Problem (AP)
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Introduction to Algorithms
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
Chapter 7 Network Flow Models.
Routing algorithms, all distinct routes, ksp, max-flow, and network flow LPs W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 E.
Linear Programming Applications
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
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.
Transportation Model (Powerco) Send electric power from power plants to cities where power is needed at minimum cost Transportation between supply and.
Computational Methods for Management and Economics Carla Gomes Module 9d Network Models Maximum Flow Problem (Slides adapted from J.Orlin’s and Hillier’s)
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Lecture 4 – Network Flow Programming
Lecture 3 Transshipment Problems Minimum Cost Flow Problems
Network Optimization Models
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
Network Optimization Problem
Spreadsheet Modeling & Decision Analysis:
Modeling and Evaluation with Graph Mohammad Khalily Dermany Islamic Azad University, Khomein branch.
Chapter 7 Transportation, Assignment & Transshipment Problems
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.
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
Network Optimization Problems
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
DISTRIBUTION AND NETWORK MODELS (1/2)
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
EMIS 8374 Network Flow Models updated 29 January 2008.
Network Optimization Network optimization models: Special cases of linear programming models Important to identify problems that can be modeled as networks.
Lecture 5 – Integration of Network Flow Programming Models Topics Min-cost flow problem (general model) Mathematical formulation and problem characteristics.
8/14/04J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 5 – Integration of Network Flow Programming.
Network Flow Problems Example of Network Flow problems:
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Supplementary: Feasible Labels and Linear Programming  Consider the LP formulation of the shortest s-t path problem: (P) Minimize  (i, j)  A c ij x.
Network Analysis Maxflow. What is a Network? Directed connected graph Source node Sink (destination node) Arcs are weighted (costs) Represent a system.
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
The minimum cost flow problem. Solving the minimum cost flow problem.
Lecture 4 – Network Flow Programming Topics Terminology and Notation Network diagrams Generic problems (TP, AP, SPP, STP, MF) LP formulations Finding solutions.
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.
1 Chapter 13 Mathematical models of networks give us algorithms so computationally efficient that we can employ them to evaluate problems too big to be.
St. Edward’s University
Integer Programming An integer linear program (ILP) is defined exactly as a linear program except that values of variables in a feasible solution have.
The minimum cost flow problem
The assignment problem
ENGM 535 Optimization Networks
Lecture 5 – Integration of Network Flow Programming Models
Lecture 5 – Integration of Network Flow Programming Models
Transportation, Assignment and Network Models
MATS Quantitative Methods Dr Huw Owens
Introduction Basic formulations Applications
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 5 Network Modeling.
Chapter 6 Network Flow Models.
Flow Feasibility Problems
Kramer’s (a.k.a Cramer’s) Rule
Network Flow Problems – Maximal Flow Problems
Maximum Flow Problems in 2005.
Lecture 12 Network Models.
Presentation transcript:

Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal cut of this network. Intuition: – Maximal flow is determined by the bottleneck of the sysetm of pipes. – Minimal cut is a kind of a distributed bottleneck for the whole network.

Max flow and min cut Min cut for the network has a value of paths B-E, D-E, F-E and F-G is a bottleneck of the network and they should be widened first – But it is possible that you don’t get 1 unit flow increase per 1 unit of increased capacity for the selected paths. – It is because an increased flow may activate a new bottleneck down or up the „river”. Flow capacities may denote costs. Then minimal cut is a minimal cost of blocking the flow in the whole river.

Network flow programming Formulating and solving network problems by linear programming is called network flow programming. Every network flow program may be presented as minimum-cost network flow program: Variables: unknown flows for every arc in the network Flow conservation constraint: Source Sink :

Network flow programming Flow bounds for each arc: may be lower (minimal prodction level in a factory) {default value is 0} or upper bounds (maximal flow through a pipe) {default value +∞} – Flows should not be negative (we lose transparency) Cost per unit of flow {default value 0}: (if it is negative, then it is revenue) Objective function: Three parameters for each arc: [l, u, c] – Lower bound l – Upper bound u – Cost per unit of flow c

Diagram vs linear program 1: 1 relation We will henceforth think of a properly marked diagram equivalently as of a linear program formulation.

Properties Coefficients on the LHS of the constraints take values -1,0 or 1 All pivot operations in the simplex algorithm consist therefore of addition and subtraction (no need for multiplication or division) Even better: addition and subtraction operations may be replaced by logical opeartions (based on Boolean algebra) in the Network simplex algorithm If there are only integer values on the RHS of all the constraints and all pivot operations are addition and subtraction operations, then the decision variables in the optimal solution will all be integers as well – unimodularity property – This property is very useful in case of solving many integer programs, e.g. assignment problems

Transportation problem Simple, yet very useful in practice Consists of product sources (e.g. factories), which are directly connected with destination points (e.g. markets in different cities). For each connection there is a unit flow cost. – Supply not greater than capacity of a given factory – Demand is equal to the supplied products – Each arc has a default value for upper and lower bound and a unit flow cost (in brackets)

Assignment problem It also appears as an integer program. Assigning elmenets of the set of people to the elments of the set of tasks so that the total completion time for all the tasks is minimized. – Each person needs certain amount of time for the task or cannot complete a task at all. – Each person should be assigned with exactly one task.

Assignment problem may be formulated as a transportation problem: – Each person is a source node, which introduces exactly one unit of flow into the network (if there are more persons than tasks: not more than one unit) – Each task is a destaintion node, which removes exactly one unit of flow from the network – The cost of flow on each arc is the time for each person to complete a given task The optimal flow on the arcs will be equal to 0 or 1 – Due to the unimodularity property, the solution will be integer-valued, – Since sources and destination points have inflows and outflows equal to exactly 1. Assignment problem

Transshipment problem The same as transportation problem, but additionally: – There are nodes which conserve flow [flow conserving nodes] – the transshipment points – The source and destination points may serve as transshipment points as well. – B is a source and a transshipment point – G is a destanation and a transshipment point – D and E are transshipments point

The shortest route problem Instead of applying Dijkstra algorithm we can solve it by network programming program The procedure is as follows: – Draw network diagram – Arc labels: lower bound 0, upper bound +∞, cost = arc length, e.g. [0, ∞,12] – Starting point is a source node with exactly one unit of flow without a cost [1,1,0] – Final point is a destination node with exactly one unit of flow without a cost [1,1,0] Arcs with positive flow will be on the shortest route. Due to the unimodularity property the optimal flow on each arc will be either 0 or 1.

The shortest route tree problem The same as the shortest route problem, but there may be many (if not all) destination nodes. Problem is to find the shortest path from the starting point to each of the final points We could solve many shortest route problems, changing the final point. It is easire however to do it in one problem. Assume there are many destaintion nodes. Procedure: – Draw network diagram – Arc labels: lower bound 0, upper bound +∞, cost = arc length, e.g. [0, ∞,12] – Starting point is a source node with exactly n unit of flow without a cost [n,n,0] – Final point is a destination node with exactly one unit of flow without a cost [1,1,0] In the optimum, ther will be only integer values (unimodularity). One should mark all arcs which have positive flow. The shortest path is found backwards.

Max flow/ Min cut problem Instead of applying Ford-Fulkerson algorithm, we can apply minimum cost network flow program Procedure: – Draw network diagram – Arc labels: lower bound 0, upper bound maximal flow on this arc, cost = 0, e.g. [0, 25,0] – Starting point is a source node with a very big upper bound without a cost: [0,M,0], where M is very big – Final point is a destination node with a very big upper bound with a cost of -1: [0,M,-1], where M is very big In the optimum: Consider destination node. Cost per unit of flow is -1. Objective is to minimize cost, hence the program will try to let as many units of flow through this node. In the source node it will try to let as many units of flow as well. Upper bounds for the flow on each arc will be the only limit.

The solution will provide us with the following information: – The outflow in the destination node. Is equal to the maximal flow of the network. – The flows on each arc will give the flow pattern of the maximum flow problem The minimum cut is found the same way, as after termination of the Ford-Fulkerson algorithm. What is a good value for M? – Not too small – has to be not smaller than the maximum flow which we search for – Not too large – to avoid numerical problems – Good suggestion – a random cut value in the network; we know from the max flow/min cut theorem, that the cut value will be not smaller than tha maximum flow in the network Max flow / Min cut problem

Generalized networks, network with side constraints, processing networks In a generalized network, arcs have gain factors: these are the numbers by which we multiply the entering flow to get the outflow: – E.g. the increase/decrease coefficient 0.9 may denote the leaking pipeline – E.g. the increase coefficient of 1.1 may denote value inrease of the object Networks with side constraints – it may be necessary to introduce additional constraints which are not network constraints, e.g. – Specialized algorithms which solve the network part via network simplex algorithms and the rest with a normal simplex and then the solutions are combined. Processing networks – very useful to model engineering systems: additional processing nodes, in which flows in the neighbouring nodes should appear in a specified proportions