C&O 355 Mathematical Programming Fall 2010 Lecture 18. N. Harvey

Similar documents
Mathematical Programs Linear Program (LP)

Lecture 5 January 16, 2013

1 Integer Decomposition Property

Minimum cost transportation problem

Discrete Optimization 23

Week 4. (1) 0 f ij u ij.

Multicommodity Flows and Column Generation

directed weighted graphs as flow networks the Ford-Fulkerson algorithm termination and running time

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

Discrete Optimization

Integer Programming, Part 1

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi

Lecture #21. c T x Ax b. maximize subject to

3.3 Easy ILP problems and totally unimodular matrices

CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi

3. Linear Programming and Polyhedral Combinatorics

Relation of Pure Minimum Cost Flow Model to Linear Programming

Lectures 6, 7 and part of 8

Topic: Primal-Dual Algorithms Date: We finished our discussion of randomized rounding and began talking about LP Duality.

The maximum flow problem

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi

6.854 Advanced Algorithms

Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik. Combinatorial Optimization (MA 4502)

The min cost flow problem Course notes for Optimization Spring 2007

Mathematics for Decision Making: An Introduction. Lecture 13

Linear Programming. Scheduling problems

CS 6820 Fall 2014 Lectures, October 3-20, 2014

Maximum flow problem (part I)

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

Max Flow: Algorithms and Applications

Week 8. 1 LP is easy: the Ellipsoid Method

A primal-simplex based Tardos algorithm

princeton univ. F 13 cos 521: Advanced Algorithm Design Lecture 17: Duality and MinMax Theorem Lecturer: Sanjeev Arora

Maximum flow problem

3. Linear Programming and Polyhedral Combinatorics

The min cost flow problem Course notes for Search and Optimization Spring 2004

Flows. Chapter Circulations

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

A bad example for the iterative rounding method for mincost k-connected spanning subgraphs

Lecture 8 Network Optimization Algorithms

LINEAR PROGRAMMING III

Optimization (2MMD10/2DME20), lecture 1b. Gerhard Woeginger. Technische Universiteit Eindhoven

Integer Linear Programs

Theory and Internet Protocols

10 Max-Flow Min-Cut Flows and Capacitated Graphs 10 MAX-FLOW MIN-CUT

6.046 Recitation 11 Handout

Linear Programming. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Linear Programming 1 / 47

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

Topics in Theoretical Computer Science April 08, Lecture 8

A Bound for the Number of Different Basic Solutions Generated by the Simplex Method

Acyclic Digraphs arising from Complete Intersections

Two Applications of Maximum Flow

CMPSCI 611: Advanced Algorithms

1 Perfect Matching and Matching Polytopes

Network Flows. CTU FEE Department of control engineering. March 28, 2017

Graphs and Network Flows IE411. Lecture 12. Dr. Ted Ralphs

Representations of All Solutions of Boolean Programming Problems

Network Flow Problems Luis Goddyn, Math 408

Maximum flow problem CE 377K. February 26, 2015

Discrete Optimization 2010 Lecture 3 Maximum Flows

7. Lecture notes on the ellipsoid algorithm

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

ACYCLIC DIGRAPHS GIVING RISE TO COMPLETE INTERSECTIONS

Topics in Graph Theory

Duality of LPs and Applications

Introduction to Integer Linear Programming

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

Cutting Plane Methods II

Lecture 10 February 4, 2013

On Column-restricted and Priority Covering Integer Programs

1 Primals and Duals: Zero Sum Games

Introduction to Integer Programming

2.13 Maximum flow with a strictly positive initial feasible flow

Contents. Introduction

BBM402-Lecture 20: LP Duality

15-850: Advanced Algorithms CMU, Fall 2018 HW #4 (out October 17, 2018) Due: October 28, 2018

Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P

Running Time. Assumption. All capacities are integers between 1 and C.

EXERCISES SHORTEST PATHS: APPLICATIONS, OPTIMIZATION, VARIATIONS, AND SOLVING THE CONSTRAINED SHORTEST PATH PROBLEM. 1 Applications and Modelling

Agenda. Soviet Rail Network, We ve done Greedy Method Divide and Conquer Dynamic Programming

Optimization - Examples Sheet 1

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Lecture notes on the ellipsoid algorithm

Flows and Cuts. 1 Concepts. CS 787: Advanced Algorithms. Instructor: Dieter van Melkebeek

CS261: A Second Course in Algorithms Lecture #8: Linear Programming Duality (Part 1)

Written Exam Linear and Integer Programming (DM545)

Algorithm Design and Analysis

Optimization methods NOPT048

IE 5531: Engineering Optimization I

We say that a flow is feasible for G (or just feasible if the graph and capacity function in question are obvious) if

5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Advanced Linear Programming: The Exercises

Linear and Integer Programming - ideas

A New Approximation Algorithm for the Asymmetric TSP with Triangle Inequality By Markus Bläser

Topic: Balanced Cut, Sparsest Cut, and Metric Embeddings Date: 3/21/2007

Algorithm Design and Analysis

Types of Networks. Internet Telephone Cell Highways Rail Electrical Power Water Sewer Gas

5 Flows and cuts in digraphs

The Steiner Network Problem

Transcription:

C&O 355 Mathematical Programming Fall 2010 Lecture 18 N. Harvey

Network Flow Topics Max Flow / Min Cut Theorem Total Unimodularity Directed Graphs & Incidence Matrices Proof of Max Flow / Min Cut Theorem

Network Flow Let D=(N,A) be a directed graph. Every arc a has a capacity c a 0. (Think of it as an oil pipeline) Want to send oil from node s to node t through pipelines Oil must not leak at any node, except s and t: flow in = flow out. How much oil can we send? For simplicity, assume no arc enters s and no arc leaves t. s 1 3 5 1 2 7 1 8 4 1 2 3 2 2 2 t

Max Flow & Min Cut Harris and Ross [1955] Schematic diagram of the railway network of the Western Soviet Union and Eastern European countries, with a maximum flow of value 163,000 tons from Russia to Eastern Europe, and a cut of capacity 163,000 tons indicated as The bottleneck. [Schrijver, 2005]

Max Flow & Min Cut Let D=(N,A) be a digraph, where arc a has capacity c a. Definition: For any UµN, the cut ± + (U) is: The capacity of the cut is: Delbert Ray Fulkerson Theorem: [Ford & Fulkerson 1956] The maximum amount of flow from s to t equals the minimum capacity of a cut ± + (U), where s2u and t2u Furthermore, if c is integral then there is an integral flow that achieves the maximum flow.

LP Formulation of Max Flow Variables: x a = amount of flow to send on arc a Constraints: For every node except s & t, flow in = flow out. Flow through each arc can not exceed its capacity. Objective value: Total amount of flow sent by s. Notation: ± + (v) = arcs with tail at v ± - (v) = arcs with head at v The LP is:

Incidence Matrix of a Directed Graph What is the matrix M defining the constraints of this LP? Row for every node (except s or t) Column for every arc M v,a = +1 if node v is the head of arc a -1 if node v is the tail of arc a 0 otherwise Goal: Analyze extreme points of this LP. Plan: Show M is totally unimodular.

Let M be a real mxn matrix Total Unimodularity Definition: Suppose that every square submatrix of M has determinant in {0, +1, -1}. Then M is totally unimodular (TUM). In particular, every entry of M must be in {0, +1, -1} Key point: Polytopes defined by TUM matrices have integral extreme points. For example, last time we showed: Lemma: Suppose M is TUM. Let b be any integer vector. Then every basic feasible solution of P = { x : Mx b } is integral.

Let M be a real mxn matrix Definition: Suppose that every square submatrix of M has determinant in {0, +1, -1}. Then M is totally unimodular (TUM). Lemma: Suppose A is TUM. Let b be any integer vector. Then every extreme point of P = { x : Mx b } is integral. Claim: Suppose M is TUM. Then is also TUM. Proof: Exercise? Total Unimodularity Corollary: Suppose M is TUM. Let b and c be integer vectors. Then every extreme point of P = { x : Mx=b, 0 x c } is integral.

Incidence Matrices are TUM Let D=(N, A) be a directed graph. Define M by: M u,a = Lemma: M is TUM. Proof: Let Q be a kxk submatrix of M. Argue by induction on k. If k=1 then Q is a single entry of M, so det(q) is either 0 or 1. So assume k>1. +1 if node u is the head of arc a -1 if node u is the tail of arc a 0 otherwise

Lemma: M is TUM. Proof: Let Q be a kxk submatrix of M. Assume k>1. Case 1: If some column of Q has no non-zero entries, then det(q)=0. Case 2: Suppose j th column of Q has exactly one non-zero entry, say Q t,j 0 Use Column Expansion of determinant:, where t is the unique non-zero entry in column j. By induction, det Q del(t,j) in {0,+1,-1} ) det Q in {0,+1,-1}. Case 3: Suppose every column of Q has exactly two non-zero entries. For each column, one non-zero is a +1 and the other is a -1. So summing all rows in Q gives the vector [0,0,,0]. Thus Q is singular, and det Q = 0.

The Max Flow LP Observations: The LP is feasible (assume the capacities are all non-negative) The LP is bounded (because the feasible region is bounded) It has an optimal solution, i.e., a maximum flow. (by FTLP) The feasible region is where M is TUM. Corollary: If c is integral, then every extreme point is integral, and so there is a maximum flow that is integral. Q: Why does P have any extreme points? A: It contains no line.

Max Flow LP & Its Dual Dual variables: A variable y v for every v 2 N \ {s,t} A variable z uv for every arc uv The dual is Let s simplify: Set y s = 1 and y t = 0

The Dual where y s and y t are not variables: y s = 1 and y t = 0 We will show: Given an optimal solution (y,z), we can construct a cut ± + (U) such that Rounding In other words, the capacity of the cut ± + (U) equals the optimal value of the dual LP. By strong LP duality, this equals the optimal value of the primal LP, which is the maximum flow value. Every cut has capacity at least the max flow value, so this must be a minimum cut.

a U 3 = U 5 ¾= t c d s 0 1 Let (y,z) be an optimal dual solution Every node u lies at some position y u on the real line Number the nodes 1,,n so that y 1 y n Suppose node t numbered and node s numbered ¾ U 4 1 2 3 4 5 6 Let U i = { i, i+1,, n }, for < i ¾ Pick cut U i with probability y i - y i-1 b (Here n= N, the total # nodes) Arc jk contributes 0 if j<k, and at most (y j -y k )c jk if j>k So

a U 3 U 4 = U 5 ¾= t c d s 1 2 3 4 5 6 0 1 Let U i = { i, i+1,, n }, for < i ¾ Pick cut U i with probability y i - y i-1 b By dual feasibility = Optimum value of Dual LP So the average capacity of the U i s is Dual Opt. Value ) minimum capacity of a U i is Dual Opt. Value, and so it is a minimum cut.

We have proven: Summary Theorem: [Ford & Fulkerson 1956] The maximum amount of flow from s to t equals the minimum capacity of a cut ± + (U), where s2u and t2u Furthermore, if c is integral then there is an integral flow that achieves the maximum flow. We also get an algorithm for finding max flow & min cut Solve Max Flow LP by the ellipsoid method. Get an extreme point solution. It is an integral max flow. Solve Dual LP by the ellipsoid method. Use rounding method to get a min cut. This algorithm runs in polynomial time