1 5.6 No-Standard Formulations  What do you do if your problem formulation doeshave the Standard Form?  What do you do if your problem formulation does.

Slides:



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

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
Lecture 3 Linear Programming: Tutorial Simplex Method
Operation Research Chapter 3 Simplex Method.
SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Chapter 6 Linear Programming: The Simplex Method
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Degeneracy and the Convergence of the Simplex Algorithm LI Xiao-lei.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Linear Inequalities and Linear Programming Chapter 5
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
Minimization by Dr. Arshad zaheer
5.5 Solution Possibilities
Linear Programming (LP)
5.2 Iteration  We are at an extreme point of the feasible region  We want to move to an adjacent extreme point.  We want to move to a better extreme.
The Simplex Method.
5.6 Maximization and Minimization with Mixed Problem Constraints
D Nagesh Kumar, IIScOptimization Methods: M3L1 1 Linear Programming Preliminaries.
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.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
1. The Simplex Method.
1 Chapter 8 Sensitivity Analysis  Bottom line:   How does the optimal solution change as some of the elements of the model change?  For obvious reasons.
Chapter 6 Linear Programming: The Simplex Method
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.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Simplex method (algebraic interpretation)
Simplex Algorithm.Big M Method
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.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
The big M method LI Xiao-lei.
Solving Linear Programming Problems: The Simplex Method
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.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
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
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
1 1 Slide © 2005 Thomson/South-Western Simplex-Based Sensitivity Analysis and Duality n Sensitivity Analysis with the Simplex Tableau n Duality.
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
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.
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.
(i) Preliminaries D Nagesh Kumar, IISc Water Resources Planning and Management: M3L1 Linear Programming and Applications.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
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.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
Artificial Variable Technique (The Big-M Method) ATISH KHADSE.
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.
Chap 10. Sensitivity Analysis
Perturbation method, lexicographic method
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chapter 8. General LP Problems
Chapter 8. General LP Problems
Chapter 4 The Simplex Algorithm
Simplex method (algebraic interpretation)
Chapter 8. General LP Problems
Presentation transcript:

1 5.6 No-Standard Formulations  What do you do if your problem formulation doeshave the Standard Form?  What do you do if your problem formulation does not have the Standard Form?  This is an important issue because the simplex procedure we described on the standard form, eg  This is an important issue because the simplex procedure we described relies very much on the standard form, eg – the RHS coefficients are non-negative – availability of m slack variables – opt=max – and so on.

2 Standard Form opt=max ~  b i ≥ 0, for all i.

3 Violation # 1 Minimization  Observe that the problem z*:= min x Œ X f(x) z*:= min x Œ X f(x) is equivalent to the problem z’:= max x Œ X  f(x) z’:= max x Œ X  f(x) in that both have the. Also, z’=  z*. in that both have the same set of optimal solutions. Also, z’=  z*.

4 RemediesRemedies  1. Multiply the coefficients of the objective function by -1 and maximize the new objective function.  2. Change the simplex algorithm a bit.  :  Remark:  Australia is a country so in principle you can use either of these two approaches.  Australia is a free country so in principle you can use either of these two approaches.  In his notes, Moshe prefers the approach. I prefer the first.  In his notes, Moshe prefers the second approach. I prefer the first.

Example

6 The coefficients of the objective function are c 1 =1 ; c 2 =-1 ; c 3 = -2 c 1 =1 ; c 2 =-1 ; c 3 = -2 so using the first appraoch, we multiply them by -1 to obtain c’ 1 = -1 ; c’ 2 = 1 ; c’ 3 = 2 c’ 1 = -1 ; c’ 2 = 1 ; c’ 3 = 2 We now use these new coefficients with opt=max. Thus the form is: We now use these new coefficients with opt=max. Thus the equivalent form is:

7

8 After setting the simplex tableau and conducting two pivot operations we obtain the above final tableau. The optimal solution is thus: x*=(10/3,0,70/3,30,0,0) x*=(10/3,0,70/3,30,0,0) The optimal value of the modified objective function is: Z’ = 130/3 Thus the optimal value of the original objective function is equal to Z* = - Z’ = - 130/3. Z* = - Z’ = - 130/3.

9  Thus the optimal value of the original objective function is equal to Z* = - Z’ = - 130/3. Z* = - Z’ = - 130/3.

10 The Second Approach  Modification in the Simplex Algorithm for opt=min:  1.:  1. Optimality Test: – Stop if all the reduced costs are. – Stop if all the reduced costs are nonpositive.  2. :  2. Greedy Rule: – Select the variable with the most reduced cost. – Select the variable with the most positive reduced cost.

11 Example (Continued)

12  We do not change the data, only modify theand. Thus, the initial tableau is the same for opt=max and opt=min.  We do not change the data, only modify the optimality test and greedy rule. Thus, the initial tableau is the same for opt=max and opt=min.  Step 2 (Optimality Test): Since there are reduced costs, we continue. Since there are positive reduced costs, we continue.  Step 3 (Variable in): We select x 3 as the new basic variable because its reduced costs is the. We select x 3 as the new basic variable because its reduced costs is the largest.

13  Step 4 (Variable out):  The (usual) Ratio Test identifies x 5 as the leaving basic variable.  Step 5 (Pivoting):  As usual  New tableau:

14  All the reduced costs are, so we stop.  All the reduced costs are nonpositive, so we stop.  Optimal solution: x=(10/3,0,70/3,30,0,0)  Optimal value of the objective function: Z* = -130/3.

15 Violation #2 Varaibles allowed to be negative  Use the following fact:  Any number (positive or negative) can be expressed as the  Any number (positive or negative) can be expressed as the difference of two positive numbers.  Thus, if say x j is not required to be nonnegative, we can introduce two additional variables, say x’ j and x” j and set  x j = x’ j -x” j  with x’ j,x” j >= 0.

16  Clearly, if x’ j > x” j then x j >0, whereas if x’ j x” j then x j >0, whereas if x’ j <x” j then x j <0. And if x’ j =x” j then x j =0.  Thus, x j is indeed unrestricted in sign ()  Thus, x j is indeed unrestricted in sign (URS)

17 Example 5.6.3

18 where

19 Violation #3 Negative RHS  This is handled by multiplying the respective constraint by and taking care of the inequality sign if necessary (changing = and >= to = and >= to <=).

20 Example  Observe that in fixing this violation we created another one!

21 Violation # 4 <= constraint  We convert a “>=“ constraint to a “=“ constraint by introducing a.  We convert a “>=“ constraint to a “=“ constraint by introducing a surplus variable.  In many respects surplus variables are similar to.  In many respects surplus variables are similar to slack variables.

22 Example  Convince yourself that (a) is equivalent to (b). (a) } (b) = Correction (old notes)

23 Violation #5 = constraint  There are two strategies to handle this violation:  1. Use the “=“ constraint to one of the variables (Assignment # 2 !!!!)  1. Use the “=“ constraint to eliminate one of the variables (Assignment # 2 !!!!)  2. Use.  2. Use artificial variables.  In we prefer the.  In we prefer the second approach.

24  These variables are called “artificial” because they are used temporarily, and ultimately will disappear from the model (be set to zero).  Their sole purpose in life is to facilitate the construction of a.  Their sole purpose in life is to facilitate the construction of a basic feasible solution.

25 Example  Convince yourself that the first is equivalent to the second provided the artificial variable (x 3 ) is equal to zero!!!!!  If you are not convinced see your ophthalmologist!  How do we force x 3 to be equal to ??  How do we force x 3 to be equal to zero ??  This is a that will be addressed shortly.  This is a good question that will be addressed shortly.

26 An Overall Example 5.6.7

27  There are a number of violations here!  Opt = min  An equality constraint  A >= constraint  A negative RHS

28  To fix the “min” violation, we consider a modified objective function, namely  Z’ = - Z = -3x x 2 so the objective now is: so the objective now is: max -3x x 2 max -3x x 2 : Constraints: The first is in standard form (x 1 <= 4). To bring it to the canonical form we simply use a, say x 3, and write The first is in standard form (x 1 <= 4). To bring it to the canonical form we simply use a slack variable, say x 3, and write x 1 + x 3 = 4 x 1 + x 3 = 4

29 The second constraints (-2x 2 = -12) has two violations. The negative RHS is handled by a multiplication by -1 to produce 2x 2 = 12. So we just have to deal with the “=“ violation.

30  The “=“ violation is handled by an artificial variable, say x 4. The resulting canonical form of the constraint is thus 2x 2 + x 4 = 12 2x 2 + x 4 = 12 The third constraint (3x 1 + 2x 2 >= 18) violates the “ = 18) violates the “<=“ condition. It is handled by a surplus variable and an artificial variable. The surplus variable, say x 5, will produce an “=“ constraint: 3x 1 + 2x 2 - x 5 = 18 3x 1 + 2x 2 - x 5 = 18

31 The “=“ violation” is then handled by an artificial variable, say x 6. This yields the following canonical form: 3x 1 + 2x 2 - x 5 + x 6 = 18 3x 1 + 2x 2 - x 5 + x 6 = 18

32 Complete Reformulation

33 Important Remark  Moshe wrote “We (all of us!) shall adopt the convention that the auxiliary variables (slack, surplus, artificial) are “named” in such a way that the initial basis appears in the last m columns of the “LHS”.”  I don’t like this and would prefer that the variables kept their original names.

34 _ In any case, observe that the initial basis consists of: Slack variables Artificial variables Artificial variables