Network Optimization Network optimization models: Special cases of linear programming models Important to identify problems that can be modeled as networks.

Slides:



Advertisements
Similar presentations
Outline LP formulation of minimal cost flow problem
Advertisements

1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
1 Lecture 2 Shortest-Path Problems Assignment Problems Transportation Problems.
Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.
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.
1 1 Slides by John Loucks St. Edward’s University Modifications by A. Asef-Vaziri.
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
1Transportation ModelsLesson 4 LECTURE FOUR Transportation Models.
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
MAXIMUM FLOW Max-Flow Min-Cut Theorem (Ford Fukerson’s Algorithm)
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
1 Maximum Flow Networks Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘capacity’ u ij. Goal: Determine the maximum amount.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
Chapter 7 Transportation, Assignment & Transshipment Problems Part 1 ISE204/IE252 Prof. Dr. Arslan M. ÖRNEK.
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.
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.
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.
Two Discrete Optimization Problems Problem: The Transportation Problem.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
Lecture 4 – Network Flow Programming
Lecture 3 Transshipment Problems Minimum Cost Flow Problems
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.
Network Flow Programming Models
Chapter 5 Network Models. Thomson/South-Western 2007 © South-Western/Cengage Learning © 2012 Practical Management Science, 4e Winston/Albright Introduction.
Introduction to Operations Research
The Supply Chain Customer Supplier Manufacturer Distributor
ENGM 732 Network Flow Programming Network Flow Models.
Section 2.9 Maximum Flow Problems Minimum Cost Network Flows Shortest Path Problems.
Modeling and Evaluation with Graph Mohammad Khalily Dermany Islamic Azad University, Khomein branch.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
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.
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.
Chapter 7 Transportation, Assignment, and Transshipment Problems
Maximization of Network Survivability against Intelligent and Malicious Attacks (Cont’d) Presented by Erion Lin.
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
Network Optimization Problems
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Kramer’s (a.k.a Cramer’s) Rule Component j of x = A -1 b is Form B j by replacing column j of A with b.
DISTRIBUTION AND NETWORK MODELS (1/2)
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chapter 4 Minimum Cost Flow Problems (MCF)
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
EMIS 8374 Network Flow Models updated 29 January 2008.
Lecture 5 – Integration of Network Flow Programming Models Topics Min-cost flow problem (general model) Mathematical formulation and problem characteristics.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
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:
1 Chapter 2 Notation and Definitions Data Structures Transformations.
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.
Problems in Combinatorial Optimization. Linear Programming.
Lecture 4 – Network Flow Programming Topics Terminology and Notation Network diagrams Generic problems (TP, AP, SPP, STP, MF) LP formulations Finding solutions.
Approximation Algorithms Duality My T. UF.
1 Maximum Flows CONTENTS Introduction to Maximum Flows (Section 6.1) Introduction to Minimum Cuts (Section 6.1) Applications of Maximum Flows (Section.
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
Introduction Basic formulations Applications
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 5 Network Modeling.
Flow Feasibility Problems
Kramer’s (a.k.a Cramer’s) Rule
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Lecture 12 Network Models.
Presentation transcript:

Network Optimization Network optimization models: Special cases of linear programming models Important to identify problems that can be modeled as networks because: (1) network representations make optimization models easier to visualize and explain (2) very efficient algorithms are available

Example of (Distribution) Network

Terminology Nodes and arcs Arc flow Upper and lower bounds Cost Gains and losses External flow Optimal flow

Network Flow Problems

Transportation Problem We wish to ship goods (a single commodity) from m sources to n destinations at minimum cost. Warehouse i has s i units available i = 1,..., m and destination j has a demand of d j, j = 1,..., n. Goal - Ship the goods from sources to destinations at minimum cost. Example PlantsSupplyMarketsDemand San Francisco 350 New York 325 Los Angeles 600 Chicago 300 Austin 275 Unit Shipping Costs From/ToNYChiAus SF LA

Total supply = 950, total demand = 900 Transportation problem is defined on a bipartite network Arcs only go from supply nodes to destination nodes To handle excess supply create a dummy destination with a demand of 50. The min-cost flow network for this transportation problem is given by: SF LA NY CHI AUS DUM [350] [600] [-50] [-275] [-300] [-325] (2.5) (1.7) (1.8) (0) (M) (1.8) (1.4) (0)

 Costs on arcs to dummy destination = 0 (In some settings it would be necessary to include a nonzero warehousing cost.)  The objective coefficient on the LA  NY arc is M. This denotes a large value and effectively prohibits use of this arc (could eliminate arc).  We are assured of integer solutions because technological matrix A is totally unimodular. (important in some applications)

The LP formulation of the transportation problem with m sources and n destinations is given by: Min m  i=1 n  j=1 c ij x s.t. n  j=1 x ij = s i i = 1,…,m m  i=1 x ij = d j j = 1,…,n x ij  0i = 1,…,m; j = 1,…,n

Shortest Path Problem Given a network with “distances” on the arcs our goal is to find the shortest path from the origin to the destination. These distances might be length, time, cost, etc, and the values can be positive or negative. (A negative c ij can arise if we earn revenue by traversing an arc.) The shortest path problem may be formulated as a special case of the pure min-cost flow problem.

Example [1] [-1] (1) (3) (6) (4) (2) (1) (7) (c ij ) cost or length We wish to find the shortest path from node 1 to node 6. To do so we place one unit of supply at node 1 and push it through the network to node 6 where there is one unit of demand. All other nodes in the network have external flows of zero.

Network Notation A = set of Arcs, N = set of nodes Forward Star for node i: FS(i) = { (i,j) : (i,j)  A } Reverse Star for node i: RS(i) = { (j,i) : (j,i)  A } i i FS(i) RS(i)

In general, if node s is the source node and node t is the termination node then the shortest path problem may be written as follows. Min  c ij x (i,j)  A s.t.  x ij   x ji = (i,j)  FS(i)(j,i)  RS(i) x ij  0,  (i,j)  A 1, i = s – 1, i = t 0, i  N \ {s,t} {

Maximum Flow Problem In the maximum flow problem our goal is to send the largest amount of flow possible from a specified source node to a specified destination node subject to arc capacities. This is a pure network flow problem (i.e., g ij = 1) in which all the (real) arc costs are zero (c ij = 0) and at least some of the arc capacities are finite (6) (1) (2) (4) (2) (1) (3) (7) 1 (u ij ) arc capacities Example

[x ij ] (u ij ) flow capacities Maximum flow = 5 Goal for Max Flow Problem Send as much flow as possible from node 1 to node 6 [2] (2) [3] (7) [2] (3) [2] (2) [1] (1) [3] (4) [2] (6) Solution

Examples of cuts in the network above are: S1S1 = {1} T1T1 = {2,3,4,5,6} = {1,2,3} T2T2 = {4,5,6} = {1,3,5} T3T3 = {2,4,6} The value of a cut V(S,T) is the sum of all the arc capacities that have their tails in S and their heads in T. V(S 1,T 1 ) = 10 V(S 3,T 3 ) = 12 Cut : A partition of the nodes into two sets S and T. The origin node must be in S and the destination node must be in T. S2S2 S3S3 V(S 2,T 2 ) = 5

Max-Flow Min-Cut Theorem The value of the maximum flow is equal to the value of the minimum cut. In our problem, S = {1,2,3} / T = {4,5,6} is a minimum cut. The arcs that go from S to T are (2,4), (2,5) and (3,5). Note that the flow on each of these arcs is at its capacity. As such, they may be viewed as the bottlenecks of the system.

Max Flow Problem Formulation There are several different linear programming formulations. We will use one based on the idea of a “circulation”. We suppose an artificial return arc from the destination to the origin with u ts = +  and c ts = 1. External flows (supplies and demands) are zero at all nodes. s t

Maximum Flow Model Max x ts s.t.  x ij   x ji = 0,   i  N (i,j)  FS(i) (j,i)  RS(i) 0  x ij  u ij   (i,j)  A Identify minimum cut from sensitivity report: (i)If the reduced cost for x ij has value 1 then arc (i,j) has its tail (i) in S and its head (j) in T. (ii)Reduced costs are the shadow prices on the simple bound constraint x ij  u ij. (iii)Value of another unit of capacity is 1 or 0 depending on whether or not the arc is part of the bottleneck Note that the sum of the arc capacities with reduced costs of 1 equals the max flow value.

Sensitivity Report for Max Flow Problem Adjustable Cells FinalReducedObjectiveAllowable CellNameValueCostCoefficientIncreaseDecrease $E$9Arc1 Flow3001E+300 $E$10Arc2 Flow20001 $E$11Arc3 Flow00001E+30 $E$12Arc4 Flow2101E+301 $E$13Arc5 Flow1101E+301 $E$14Arc6 Flow2101E+301 $E$15Arc7 Flow00001E+30 $E$16Arc8 Flow20001 $E$17Arc9 Flow3001E+300 $E$18Arc10 Flow5011E+301 Constraints FinalShadowConstraintAllowable CellNameValuePriceR.H. SideIncreaseDecrease $N$9Node1 Balance00003 $N$10Node2 Balance0001E+300 $N$11Node3 Balance00003 $N$12Node4 Balance01002 $N$13Node5 Balance01003 $N$14Node6 Balance01003

Minimum Cost Flow Problem Warehouses store a particular commodity in Phoenix, Austin and Gainesville. Customers - Chicago, LA, Dallas, Atlanta, & New York Supply [ s i ] at each warehouse i Demand [  d j ] of each customer j Shipping links depicted by arcs, flow on each arc is limited to 200 units. Dallas and Atlanta - transshipment hubs Per unit transportation cost ( c ij ) for each arc Problem - determine optimal shipping plan that minimizes transportation costs Example: Distribution problem

GAINS 8 ATL 5 NY 6 DAL 4 CHIC 2 AUS 7 LA 3 PHOE 1 (6) (3) (5) (7) (4) (2) (4) (5) (6) (4) (7) (6) (3) [–150] [200] [–300] [200] [–200] (2) (7) [–250] [700] [supply / demand] (shipping cost) arc lower bounds = 0 arc upper bounds = 200 Distribution Problem

GAINS ATL NY DAL CHIC AUS LA PHOE (200) (50) (200) [-150] [200] [-300] [200] [-200] (50) (100) [-250] [700] [supply / demand] (flow) Solution to Distribution Problem

This network flow problem is based on:  Conservation of flow at nodes. At each node flow in = flow out. At supply nodes there is an external inflow ( positive ) At demand nodes there is an external outflow ( negative ).  Flows on arcs must obey the arc’s bounds. lower bound & upper bound ( capacity )  Each arc has a per unit cost & the goal is to minimize total cost.

Distribution Network (6) (3) (5) (7) (4) (2) (4) (5) (6) (4) (7) (6) (3) [-150] [200] [-300] [200] [-200] (2) (7) [-250] [700] [external flow] (cost) lower = 0, upper = 200

Linear Program Model for Distribution Problem Minimize z = 6x x x x 15 + … + 7x 86 Subject to conservation of flow constraints at each node: Node 1: x 12 + x 13 + x 14 + x 15 = 700 Node 2: –x 12 – x 62 – x 52 = –200 Node 3: –x 13 – x 43 – x 73 = –200 Node 4: x 42 + x 43 + x 45 + x 46 – x 14 – x 54 – x 74 = – Node 8: x 84 + x 85 + x 86 = 200 Bounds: 0 ≤ x ij ≤ 200 for all (i,j)  A