The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.

Slides:



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

Artificial Variables, 2-Phase and Big M Methods
The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
Chapter 5: Linear Programming: The Simplex Method
Operation Research Chapter 3 Simplex Method.
Linear Programming – Simplex Method
Variables that are unrestricted in sign LI Xiao-lei.
SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Dr. Sana’a Wafa Al-Sayegh
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Degeneracy and the Convergence of the Simplex Algorithm LI Xiao-lei.
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. 1 Chapter 4 The Simplex Algorithm and Goal Programming to accompany Introduction to.
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
Minimization by Dr. Arshad zaheer
Linear Programming (LP)
5.6 Maximization and Minimization with Mixed Problem Constraints
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING SIMPLEX METHOD.
Linear Programming - Standard Form
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Presentation: H. Sarper
Chapter 6 Linear Programming: The Simplex Method
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Simplex method (algebraic interpretation)
Chapter 6 Sensitivity Analysis & Duality
Simplex Algorithm.Big M Method
Duality Theory LI Xiaolei.
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
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.
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.
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.
The big M method LI Xiao-lei.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
Simplex Method Adapting to Other Forms.  Until now, we have dealt with the standard form of the Simplex method  What if the model has a non-standard.
The Simplex Algorithm The Simplex Algorithm LI Xiao-lei.
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
1 5.7 Initialization Revisited  :  Motivation: a solution for the transformed system is feasible for the original system if and only if all the. a solution.
Mechanical Engineering Department 1 سورة النحل (78)
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
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Sensitivity analysis LI Xiao-lei. A graphical introduction to sensitivity analysis Sensitivity analysis is concerned with how changes in an LP’s parameters.
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
1 Simplex Method (created by George Dantzig in late 1940s) A systematic way of searching for an optimal LP solution BMGT 434, Spring 2002 Instructor: Chien-Yu.
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.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
Simplex Method Meeting 5 Course: D Deterministic Optimization Year: 2009.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
Chapter 4 The Simplex Algorithm and Goal Programming
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
1 Two-Phase Simplex Method file Simplex3_AMII_05b_gr Rev. 1.4 by M. Miccio on December 17, 2014 from a presentation at the Fuqua School of Business MIT.
Chap 10. Sensitivity Analysis
Perturbation method, lexicographic method
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Starting Solutions and Convergence
Simplex method (algebraic interpretation)
Presentation transcript:

The Two-Phase Simplex Method LI Xiao-lei

Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as an alternative to the big M method. In the two-phase simplex method, we add artificial variables to the same constraints as we did in big M method. Then we find a bfs to the original LP by solving the Phase I LP. In the Phase I LP, the objective function is to minimize the sum of all artificial variables. At the completion of Phase I, we reintroduce the original LP’s objective function and determine the optimal solution to the original LP.

The two-phase simplex method Step 1 Modify the constraints so that the right-hand side of each constraint is nonnegative. This requires that each constraint with a negative right-hand side be multiplied through by -1. Step 1’ Identify each constraint that is now an = or ≥ constraint. In step 3, we will add an the artificial variable to each of these constraints. Step 2 Convert each inequality constraint to standard form. For ≤ constraint i, we add a slack variable s i ; For ≥ constraint i, we add an excess variable e i ;

The two-phase simplex method Step 4 For now, ignore the original LP’s objective function. Instead solve an LP whose objective function is min w’ =(sum of all the artificial variables). This is called the Phase I LP. The act of solving the phase I LP will force the artificial variables to be zero.

The two-phase simplex method Since each a i ≥0, solving the Phase I LP will result in one of the following three cases: Case 1 The optimal value of w’ is greater than zero. In this case, the original LP has no feasible solution. Case 2 The optimal value of w’ is equal to zero, and no artificial variables are in the optimal Phase I basis. In this case, we drop all columns in the optimal Phase I tableau that correspond to the artificial variables. We now combine the original objective function with the constraints from the optimal Phase I tableau. This yields the Phase II LP. The optimal solution to the Phase II LP is the optimal solution to the original LP.

The two-phase simplex method Case 3 The optimal value of w’ is equal to zero and at least one artificial variable is in the optimal Phase I basis. In this case, we can find the optimal solution to the original LP if at the end of Phase I we drop from the optimal Phase I tableau all nonbasic artificial variables and any variable from the original problem that has a negative coefficient in row 0 of the optimal Phase I tableau.

Phase I and II feasible solutions Suppose the original LP is infeasible. Then the only way to obtain a feasible solution to the Phase I LP is to let at least one artificial variable be positive. In this situation, w’>0 will result. On the other hand, if the original LP has a feasible solution, this feasible solution is feasible in the Phase I LP and yields w’=0. This means that if the original LP has a feasible solution, the optimal Phase I solution will have w’=0.

Example 5 The Bevco problem min z=2x 1 +3x 2 s.t. 1/2x 1 +1/4x 2 ≤4 (sugar constraint) x 1 + 3x 2 ≥20 (vitamin C constraint) x 1 + x 2 =10 (10 oz in bottle of Oranj) x 1,x 2 ≥0

Example 5 Solution As in the Big M method, step 1-3 transform the constraints into 1/2 x 1 +1/4x 2 +s 1 =4 x 1 + 3x 2 -e 2 +a 2 =20 x 1 + x 2 +a 3 =10

Example 5 Step 4 yields the following Phase I LP: min w’= a 2 +a 3 s.t. 1/2 x 1 +1/4x 2 +s 1 =4 x 1 + 3x 2 -e 2 +a 2 =20 x 1 + x 2 +a 3 =10 This set of equations yields a starting bfs for Phase I(s 1 =4,a 2 =20,a 3 =10).

Example 5 Note: The row 0 for this tableau (w’-a 2 -a 3 =0) contains the basic variables a 2 and a 3.as in the Big M method, a 2 and a 3 must be eliminated from row 0 before we can solve Phase I. To eliminate a 2 and a 3 from row 0, Row 0: w’ -a 2 -a 3 =0 +Row 2: x 1 +3x 2 -e 2 +a 2 =20 +Row 3: x 1 + x 2 +a 3 =10 =New row 0: w’ +2x 1 +4x 2 -e 2 =30

Example 5 Combining the new row 0 with the Phase I constraints yields the initial Phase I tableau: W’x1x1 x2x2 s1s1 e2e2 a2a2 a3a3 rhs Basic variable ratio W’=30 0½¼10004s 1 = ③ 01020a 2 =2020/3* a 3 =1010 Initial Phase I tableau for Bevco Note: Phase I problem is always a min problem, even if the original LP is a max problem.

Example 5 After performing the necessary ero’s, we obtain the second tableau. W’x1x1 x2x2 s1s1 e2e2 a2a2 a3a3 rhs Basic variable ratio 12/3001/3-4/3010/3W’=10/3 05/12011/12-1/1207/3s 1 =7/328/5 01/310-1/31/3020/3x 2 =20/320 02/3001/3-1/3110/3a 3 =10/35* Phase I tableau for Bevco after one iteration

Example 5 After performing the necessary ero’s, we obtain the third tableau. W’x1x1 x2x2 s1s1 e2e2 a2a2 a3a3 rhs Basic variable W’= /81/8-5/8¼s 1 =1/ /2½ 5x 2 = /2-1/23/25x 1 =5 Phase I tableau for Bevco after two iteration

Example 5 Since w’=0, Phase I has been concluded. The basic feasible solution s 1 =1/4,x 2 =5,x 1 =5 has been found. Since no artificial variables are in the optimal Phase I basis, the problem is an example of Case 2. We now drop the columns for the artificial variables a 2 and a 3 and reintroduce the original objective function. min z=2x 1 +3x 2 or z-2x 1 -3x 2 =0

Example 5 Since x 1 and x 2 are both in the optimal Phase I basis, they must be eliminated from the Phase II row 0. Phase II row 0: z-2x 1 -3x 2 =0 +3(row 2): 3x 2 -3/2e 2 =15 +2(row 3): 2x 1 +e 2 =10 = New Phase II row 0: z -1/2e 2 =25 We now begin Phase II with the following set of equations: min z -1/2e 2 =25 s.t s 1 -1/8e 2 =1/4 x 2 -1/2e 2 =5 x 1 +1/2e 2 =5 This is optimal. The optimal solution is z=25 x 1 =5 x 2 =5 s 1 =1/4 e 2 =0.

Example 6 We modify Bevco’s problem that 36 mg of vitamin C are required. Then, we know that this problem is infeasible. We begin with the original problem: min z=2x 1 +3x 2 s.t. 1/2x 1 +1/4x 2 ≤4 (sugar constraint) x 1 + 3x 2 ≥36 (vitamin C constraint) x 1 + x 2 =10 (10 oz in bottle of Oranj) x 1,x 2 ≥0

Example 6 Solution After completing steps 1-4 of the two-phase simplex, we obtain the following Phase I problem: min w’= a 2 +a 3 s.t. 1/2 x 1 +1/4x 2 +s 1 =4 x 1 + 3x 2 -e 2 +a 2 =36 x 1 + x 2 +a 3 =10 From this set of equations, we see that the initial Phase I bfs is s1=4,a2=36 and a3=10.

Example 6 Since the basic variables a2 and a3 occur in the Phase I objective function, they must be eliminated from the Phase I row 0. Row 0: w’ -a 2 -a 3 =0 +Row 2: x 1 +3x 2 -e 2 +a 2 =36 +Row 3: x 1 + x 2 +a 3 =10 =New row 0: w’ +2x 1 +4x 2 -e 2 =46

Example 6 With the new row 0, the initial Phase I tableau is: W’x1x1 x2x2 s1s1 e2e2 a2a2 a3a3 rhs Basic variable ratio W’=46 0½¼10004s 1 = a 2 = ① a 3 =1010* W’x1x1 x2x2 s1s1 e2e2 a2a2 a3a3 rhs Basic variable W’=6 0¼0100-1/43/2s 1 =3/ a 2 = x 2 =10 x 2 to enter, a 3 to leave the basis, the new tableau is:

Example 6 Since no variable in row 0 has a positive coefficient, this is an optimal Phase I tableau. Since the optimal value of w’ is 6>0, the original LP must have no feasible solution.

Remarks As with the Big M method, the column for any artificial variable may be dropped from future tableaus as soon as the artificial variable leaves the basis. The Big M method and Phase I of the twp- phase method make the same sequence of pivots. The two-phase method does not cause roundoff errors and other computational difficulties.