The Network Simplex Method

Slides:



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

1. Set up the phase 1 dictionary for this problem and make the first pivot: Maximize X 1 + X X 3 + X 4 subject to -X 1 + X X 4 ≤ -3 -X 1 +
Transportation Problem (TP) and Assignment Problem (AP)
ENGM 732 Formalization of Network Flows Network Flow Models.
MINIMUM COST FLOWS: NETWORK SIMPLEX ALGORITHM A talk by: Lior Teller 1.
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
Trees and BFSs Page 1 The Network Simplex Method Spanning Trees and Basic Feasible Solutions.
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
Network Simplex Method Fatme Elmoukaddem Jignesh Patel Martin Porcelli.
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.
15.082J and 6.855J and ESD.78J November 4, 2010 The Network Simplex Algorithm.
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
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.
The Simplex Method Updated 15 February Main Steps of the Simplex Method 1.Put the problem in Row-Zero Form. 2.Construct the Simplex tableau. 3.Obtain.
Chapter 6 Simplex-Based Sensitivity Analysis and Duality
1 Simplex Method for Bounded Variables Linear programming problems with lower and upper bounds Generalizing simplex algorithm for bounded variables Reference:
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
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
Linear Programming Implementation. Linear Programming
1 1 Slide © 2005 Thomson/South-Western Simplex-Based Sensitivity Analysis and Duality n Sensitivity Analysis with the Simplex Tableau n Duality.
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 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
Flow in Network. Graph, oriented graph, network A graph G =(V, E) is specified by a non empty set of nodes V and a set of edges E such that each edge.
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Network Simplex Animations Network Simplex Animations.
The minimum cost flow problem. Solving the minimum cost flow problem.
15.082J and 6.855J and ESD.78J Network Simplex Animations.
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.
SENSITIVITY ANALYSIS. 2 Sensitivity Analysis Sensitivity analysis is carried out after optimal solution is found. Hence called as post optimality analysis.
Solving Linear Program by Simplex Method The Concept
Part 3 Linear Programming
St. Edward’s University
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Chap 10. Sensitivity Analysis
The minimum cost flow problem
Network Simplex Animations
Flow in Network.
EMIS 8373: Integer Programming
Lecture 5 – Integration of Network Flow Programming Models
Chapter 5 Simplex-Based Sensitivity Analysis and Duality
Lecture 5 – Integration of Network Flow Programming Models
Gomory Cuts Updated 25 March 2009.
The Network Simplex Method
James B. Orlin Presented by Tal Kaminker
Chapter 4 Linear Programming: The Simplex Method
Chap 9. General LP problems: Duality and Infeasibility
Part 3 Linear Programming
St. Edward’s University
Well, just how many basic
Introduction Basic formulations Applications
Transportation Problems
Kramer’s (a.k.a Cramer’s) Rule
Chapter 5 Transportation, Assignment, and Transshipment Problems
Flow Feasibility Problems
Minimum Cost Network Flow Problems
Network Simplex Animations
Part 3 Linear Programming
Simplex Transportation (skip)
Network Optimization Models: Maximum Flow Problems
Prepared by Po-Chuan on 2016/05/24
The network simplex method
Lecture 12 Network Models.
Presentation transcript:

The Network Simplex Method Reduced Costs and Node Potentials Network Simplex: Part 2

MCNFP Example 5 1 4 2 3 (0,4,5) (0,10,2) (0,5,5) (0,4,7) (0,10,4) (0,5,8) (0,5,10) 10 -4 -3 -7 (l, u, c) Network Simplex: Part 2

An initial BFS (Solution 1) Basic arcs (variables) B = {(1,3), (2,5), (3,5), (4,5)} Non-basic arcs at their lower bounds L = {(1,2), (1,4)} Non-basic arcs at their upper bounds. U = {(3,4)} Network Simplex: Part 2

Solving for the Basic Arcs 4 L = {(1,2),(1,4)} U = {(3,4)} 2 4 -3 10 2 1 3 5 10 -7 5 4 1 Cost = 119 -4 Network Simplex: Part 2

Flow on B and U 4 L = {(1,2),(1,4)} U = {(3,4)} 2 4 -3 10 2 1 3 5 10 -7 5 4 1 Cost = 119 -4 Network Simplex: Part 2

Increasing the flow on (1,2) 4 2 0+ 4+ -3 10- 2- 1 3 5 10 -7 5 4 1 -4 Network Simplex: Part 2

Increasing flow on (1,2) Consider increasing the flow on (1,2) by  Cost = 119+(c12 + c25 – c13 – c35)  =119 + (5+2-4-8)  = 119 + (-5)  Maximum possible increase is  = 2. Flow on arc (3,5) will go to zero. Network Simplex: Part 2

New BFS (Solution 2) Basic arcs (variables) Non-basic arcs at their lower bounds L = {(1,4), (3,5)} Non-basic arcs at their upper bounds. U = {(3,4)} Network Simplex: Part 2

Increasing the flow on (1,2) by 2 4 2 0+2 4+2 -3 10-2 2-2 1 3 5 10 -7 5 4 1 -4 Network Simplex: Part 2

New Solution 4 L = {(1,4),(3,5)} U = {(3,4)} 2 2 6 -3 8 1 3 5 10 -7 5 Cost = 109 -4 Network Simplex: Part 2

Increasing the flow on (1,4) 2 2- 6- -3 8 1 3 5 10 -7 5 0+ 1+ 4 -4 Network Simplex: Part 2

Increasing the flow on (1,4) Consider increasing the flow on (1,4) by  Cost = 109+(c14 + c45 – c12 – c25)  =109 + (7+5-5-2)  = 109 + 5 Increasing the flow on (1,4) will make the solution worse. Network Simplex: Part 2

Decreasing the flow on (3,4) 2 2+ 6+ -3 8- 1 3 5 10 -7 5- 1- 4 -4 Network Simplex: Part 2

Decreasing the flow on (3,4) Consider decreasing the flow on (d,4) by  Cost = 109 + (-c13 -c34 - c45 + c12 + c25)  =109 + (-4-10-5+5+2)  = 109 - 12  Maximum decrease is  = 1. Flow on (4,5) goes to 0. Network Simplex: Part 2

Reduced Costs: Generic Simplex Method The row 0 coefficients of the Simplex Tableau are known as reduced costs. The reduced cost of a basic variable is zero. Non-basic variables with negative reduced cost are eligible to enter the basis. If all the reduced costs are non-negative, then the Simplex method terminates. Network Simplex: Part 2

Formula to Compute Reduced Costs Let B be the set of basic variables. Let AB be the submatrix of A comprised of the columns corresponding to the basic variables. Let c’ be the vector of reduced costs (i.e. row 0 of the tableau). c’ = c – A where  = cB(AB)-1.  are referred to as the dual multipliers. Network Simplex: Part 2

Formula in the Network Context Network Simplex: Part 2

Formula in the Network Context Network Simplex: Part 2

Reduced Costs: Network Simplex Let c’ij be the reduced cost of arc (i,j) and i be the potential at node i. c’ij = cij - i + j where 1 = 0 c’ij = 0 for all basic arcs Eligible non-basic arcs Arcs in L are eligible if c’ij < 0 Arcs in U are eligible if c’ij > 0 Network Simplex: Part 2

Calculating Node Potentials c'12 = c12 - 1 + 2 c'12 = 5 - 0 + 2 0 = 5 + 2 2 = -5 (cij) i j 2 5 2 3 = -4 4 1 3 5 5 = -7 1=0 5 4 4 = -2 Network Simplex: Part 2

Calculating Reduced Costs 2 = -5 c'34=10+4-2 (c’ij) i j c'14=7+0-2 2 c'35=8+4-7 3 = -4 5 1 3 5 5 = -7 1=0 12 5 4 4 = -2 Network Simplex: Part 2

New Solution (BFS 3) 4 L = {(1,4), (3,5),(4,5)} (xij) i j 2 3 7 -3 7 1 10 -7 4 4 Cost = 97 -4 Network Simplex: Part 2

Recalculate Node Potentials 2 = -5 (cij) i j 2 5 2 3 = -4 4 1 3 5 5 = -7 1=0 10 4 4 = -14 Network Simplex: Part 2

Recalculate Reduced Costs 2 = -5 c'14=7-14 (c’ij) i j 2 c'35=5+4-7 c'45=5+14-7 3 = -4 2 1 3 5 5 = -7 1=0 -7 12 4 (1,4) becomes basic. It is in L and c' < 0. 4 = -14 Network Simplex: Part 2

Increasing the Flow on (1,4) (xij) i j 2 3 7 -3 7- 1 3 5 10 -7 4- 0+ 4 Cost = 97 -4 Network Simplex: Part 2

New Solution (BFS 4) 4 L = {(3,4), (3,5),(4,5)} (xij) i j 2 3 7 -3 3 1 10 -7 4 4 Cost = 69 -4 Network Simplex: Part 2

Recalculate Node Potentials 2 = -5 ( cij) i j 2 5 2 3 = -4 4 1 3 5 5 = -7 1=0 7 4 4 = -7 Network Simplex: Part 2

Recalculate Reduced Costs 2 = -5 c'34 =10+4-7=7 ( c’ij) i j 2 c'35 = 8+4-7=5 c'45 = 5+7-7=5 3 = -4 1 3 5 5 = -7 1=0 4 4 = -7 Network Simplex: Part 2

Outline of Network Simplex Determine a starting BFS. The n-1 basic variables correspond to a spanning tree. Compute the node potentials. Compute the reduced costs for the non-basic arcs. The current solution is optimal if all arcs in L have non-negative reduced cost and all arcs in U have non-positive reduced cost. Select a non-basic arc (i,j) to enter the basis. Identify the cycle created by adding (i,j) to the tree. Use flow conservation to determine the new flows on the arcs in the cycle. The arc that first hits its lower or upper limit leaves the basis. Network Simplex: Part 2