The Minimum Cost Network Flow (MCNF) Problem Extremely useful model in IEOR Important Special Cases of the MCNF Problem –Transportation and Assignment.

Slides:



Advertisements
Similar presentations
Thursday, March 14 Introduction to Network Flows
Advertisements

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.
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.
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
The minimum cost flow problem
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
Linear Programming OPIM 310-Lecture 2 Instructor: Jose Cruz.
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.
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.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Chapter 8 Network Models
Table 1. Shipping costs, Supply, and Demand for Powerco Example
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 Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
Introduction to Operations Research
Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
ENGM 732 Network Flow Programming Network Flow Models.
Spreadsheet Modeling & Decision Analysis:
Section 2.9 Maximum Flow Problems Minimum Cost Network Flows Shortest Path Problems.
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.
. 1 Transportation and Assignment Problems. . 2 Applications Physical analog of nodes Physical analog of arcs Flow Communication systems phone exchanges,
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
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.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
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,
Date/TimeFooter Page 1 Comic Sans MS size 44 First level bullet (size 32) –Second level bullet (size 28) »Third level bullet (size 24) 3/4”
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.
St. Edward’s University
The assignment problem
ENGM 535 Optimization Networks
Lecture 5 – Integration of Network Flow Programming Models
Comic Sans MS size 44 First level bullet (size 32)
Lecture 5 – Integration of Network Flow Programming Models
Generalized Network Flow (GNF) Problem
Transportation, Assignment and Network Models
Introduction Basic formulations Applications
Network Models Robert Zimmer Room 6, 25 St James.
Spreadsheet Modeling & Decision Analysis
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 5 Network Modeling.
Flow Feasibility Problems
Minimum Cost Network Flow Problems
Kramer’s (a.k.a Cramer’s) Rule
Network Optimization Models: Maximum Flow Problems
Network Flow Problems – Maximal Flow Problems
“Easy” Integer Programming Problems: Network Flow Problems
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Lecture 12 Network Models.
Presentation transcript:

The Minimum Cost Network Flow (MCNF) Problem Extremely useful model in IEOR Important Special Cases of the MCNF Problem –Transportation and Assignment Problems –Maximum Flow Problem –Minimum Cut Problem –Shortest Path Problem Network Structure –BFS for MCNF LPs always have integer values !!! –Problems can be formulated graphically

General Form of the MCNF Problem Defined on a network N = (V,A) V is a set of vertices (nodes) –Each node i has an assoicated value b i b i node i is a demand node with a demand of -b i b i = 0 => node i is a transshipment node b i > 0 => node i is a supply node with a supply of b i A is a set of arcs –arc (i,j) from node i to node j has cost c ij per unit of flow on arc (i,j) upper bound on flow of u ij (capacity) lower bound on flow of l ij (usually 0)

General Form of the MCNF Problem Continued A flow is feasible if –Flow on all arcs is within the allowable bounds –Flow is balanced (conserved) total flow going out of node i - total flow coming into node i = b i We want to find a minimum cost feasible flow LP Formulation –Let x ij be the units of flow on arc (i,j)

Example: Medley Relay Team Supply Nodes 1, 2, 3 and 4 for John, Paul, George and Ringo Each has a supply of one swimmer, so b i = 1 Demand Nodes 5, 6, 7 and 8 for Freestyle, Butterfly, Backstroke and Breaststroke Each even needs a swimmer, so b i = -1 for i=6,7,8,9 Arcs from each supply node to each demand node c ij = swimmer i’s time in event j u ij = 1, only one swimmer can be in any event l ij = 0

John Paul George Ringo Freestyle Butterfly Backstroke Breaststorke ,

LP Formulation Let xij = 1 if swimmer i swims event j and 0 otherwise MIN 5.88 X X X X X X X X X X X X X X X X48 SUBJECT TO 2) X15 + X16 + X17 + X18 = 1 ! John = swimmer 1 3) X25 + X26 + X27 + X28 = 1! Paul = swimmer 2 4) X35 + X36 + X37 + X38 = 1! George = swimmer 3 5) X45 + X46 + X47 + X48 = 1! Ringo = swimmer 3 6) - X15 - X25 - X35 - X45 = - 1! Freestyle = event 1 7) - X16 - X26 - X36 - X46 = - 1! Butterfly = event 2 8) - X17 - X27 - X37 - X47 = - 1! Backstroke = event 3 9) - X18 - X28 - X38 - X48 = - 1! Breaststroke = event 4 0 <= Xij <= 1 for all (i,j)

LP Solution X15 = X28 = X36 = X47 = 1 all other variables = 0 John swims Freestyle, Paul swims Breaststroke, George swims Butterfly and Ring swims Backstroke. The total time is minutes. Observe that the LP solution is integer valued.

Example 2 (From Bazarra and Jarvis) Transport 20,000,000 barrels of oil from Dhahran, Saudi Arabia to Rotterdam (4 Mil.), Marseilles (12 Mil) and Naples (4 Mil.) in Europe Routes –Ship oil around Africa to Rotterdam$1.20/barrel Marseilles$1.40/barrel Naples$1.40/barrel –Dhahran -> Suez -> Suez Canal -> Port Said $0.30/barrel from Dhahran to Suez $0.20/barrel through Suez Canal Port Said to –Rotterdam$0.25 –Marseilles$0.20 –Naples$0.15

Example 2 Continued –Dhahran to Suez then pipeline to Alexandria $0.15/barrel through pipeline Alexandria to –Rotterdam $0.22 –Marseilles $0.20 –Naples $ % of oil in Dhahran shipped in large tankers that can’t go through the Suez Canal Pipeline from Suez to Alexandria has a capacity of 10 million barrels of oil Formulate as a MCNF Problem

Network Formulation S A M N D PS R

Network Formulation Continued Supply Node –Dharhan has a supply of 20 M Demand Nodes –Rotterdam, Marseilles and Naples have demands of 4 M, 12 M and 4M, respectively Transshipment Nodes – Suez, Alexandria and Port Said

Arcs Lower bound = 0 for all arcs Upper bound = infinity for all arcs except (S,A) = 10 million (S,PS) = 14 million

LP Formulation minimize 1.2 XDR XDM XDN XDS XSPS XSA XPSR XPSM XPSN XAR XAM XAN subject to XDR + XDM + XDN + XDS = ! D XSPS + XSA - XDS = 0! S XPSR + XPSM + XPSN - XSPS = 0! PS XAR + XAM + XAN - XSA = 0! PA -XPSR - XAR - XDR = ! R -XPSM - XAM - XDM = ! M -XPSN - XAN - XDN = ! N XSPS <= ! At most 70% through canal XSA <= ! Pipeline capacity end

Solution OBJECTIVE FUNCTION VALUE Cost $13,500,000 VARIABLE VALUE XDS 20,000,000 XSPS 10,000,000 XSA 10,000,000 XPSR 4,000,000 XPSM 6,000,000 XAM 6,000,000 XAN 4,000,000