The minimum cost flow problem. Solving the minimum cost flow problem.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
IEOR 4004 Midterm Review (part I)
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Linear Programming (LP) (Chap.29)
Operation Research Chapter 3 Simplex Method.
Transportation Problem (TP) and Assignment Problem (AP)
Introduction to Algorithms
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
Chapter 10: Iterative Improvement
Computational Methods for Management and Economics Carla Gomes
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
Network Simplex Method Fatme Elmoukaddem Jignesh Patel Martin Porcelli.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
15.082J and 6.855J and ESD.78J November 4, 2010 The Network Simplex Algorithm.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Duality Theory LI Xiaolei.
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
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.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
The minimum cost flow problem. Simplifying assumptions Network is connected (as an undirected graph). – We can consider each connected component separately.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
Part 4 Nonlinear Programming 4.5 Quadratic Programming (QP)
Discrete Optimization Lecture #3 2008/3/41Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Algorithms and Complexity » Problems, algorithms, and complexity.
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
CSC 445/545 is done at 4:30 so I did NOT fill in the box for 4:30 for our class. Please put your name here. Please put your as well. 1.
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.
1 Chapter 2 Notation and Definitions Data Structures Transformations.
Simplex Method Review. Canonical Form A is m x n Theorem 7.5: If an LP has an optimal solution, then at least one such solution exists at a basic feasible.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
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.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Solving Linear Program by Simplex Method The Concept
Chap 10. Sensitivity Analysis
The minimum cost flow problem
Perturbation method, lexicographic method
Chapter 5. Optimal Matchings
The Network Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chap 9. General LP problems: Duality and Infeasibility
Chap 3. The simplex method
Analysis of Algorithms
Introduction Basic formulations Applications
Chapter 8. General LP Problems
2.2 Shortest Paths Def: directed graph or digraph
Chapter 8. General LP Problems
DUALITY THEORY Reference: Chapter 6 in Bazaraa, Jarvis and Sherali.
Chapter 10: Iterative Improvement
Chapter 8. General LP Problems
Practical Issues Finding an initial feasible solution Cycling
Presentation transcript:

The minimum cost flow problem

Solving the minimum cost flow problem

Simplifying assumptions Network is connected (as an undirected graph). – We can consider each connected component separately. Network is uncapacitated (no arc constraints). – We can transform any network to an equivalent uncapacitated network. – Alternatively: The network simplex algorithm can be extended to handle upper and lower bounds. The network has no 2-cycles – Only simplifies the exposition. The algorithm works also with 2-cycles.

LP formulation Minimize Subject to Following the book we negate both sides of equality constraints – this is done to change the sign of the dual variables.

LP formulation and the dual Minimize Subject to Primal: Dual: Maximize Subject to

Introducing dual slack variables Minimize Subject to Primal: Dual: Maximize Subject to

Complementary slackness

Primal and dual network simplex Both algorithms work with both a primal and a dual solution. The (primal) network simplex algorithm is used when we have a feasible primal solution. The dual network simplex algorithm is used when we have a feasible dual solution.

Spanning trees and bases

The primal solution T Start at the leaves of T working towards root, assign flow to satisfy balance constraints. T – The edges in T are basic variables. T Assign flow 0 to edges not in T. T – The edges not in T are non-basic variables.

The dual solution

Understanding dual solution

Minimize Subject to Primal: Dual: Maximize Subject to

Observation

(Primal) network simplex algorithm

Updating the dual solution T Removing leaving arc splits T into two trees. Updating dual variables: – If entering arc point to root-containing tree then increase all dual variables in non-root-containing tree by old dual slack of entering arc. – Otherwise, decrease all dual variables in non-root- containing tree by old dual slack of entering arc.

Updating the dual solution Updating dual slack variables: Subtract old dual slack of entering arc to arcs bridging in same direction as entering arc, and add old dual slack of entering arc to arcs bridging in the opposite direction of entering arc.

The dual network simplex algorithm

Finding the entering arc T Removing leaving arc splits T into two trees. Consider all arcs that bridge the two trees in opposite direction as leaving arc. When such an arc enters the basis all these gets decreased by the dual slack of the chosen arc. Hence we must select one with minimum dual slack.

Initialization We can use the dual network simplex algorithm to find the first feasible solution for the (primal) network simplex algorithm. Temporarily set all costs to 0. Then the the dual solution is automatically feasible. Running the dual network simplex algorithm results in a feasible primal solution (i.e. a feasible flow). We can then revert to the original costs and proceed with the (primal) network simplex algorithm.

Termination As with the normal simplex algorithm we may have degenerate pivot operations and cycling. We can apply the usual anti-cycling rules. We can still have stalling: long sequences of pivot operations that do not improve the solutions. Specialized pivot operations exists that prevent stalling as well.

Complexity In practice the general simplex algorithm very efficient. In practice the network simplex algorithm is much faster than the general simplex algorithm. In worst case the network simplex algorithm can still make exponentially many pivot operations.