What happens to Klee-Minty examples if maximum increase rule is used?

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
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 +
Chapter 5: Linear Programming: The Simplex Method
In a previous lecture, this dictionary resulted after the first phase 1 pivot: X0 = X1 - 1 X2 + 1 X3 X4 = X1 + 3 X2 + 1 X
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Operation Research Chapter 3 Simplex Method.
SIMPLEX METHOD FOR LP LP Model.
Linear Programming Simplex Method
Assignment (6) Simplex Method for solving LP problems with two variables.
Enter question text... 1.Enter answer text.... Enter question text... 1.Enter answer text...
Chapter 6 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
Enter question text... 1.Enter answer text.... Enter question text... 1.Enter answer text...
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Linear Inequalities and Linear Programming Chapter 5
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
5.4 Simplex method: maximization with problem constraints of the form
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Design and Analysis of Algorithms
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Use complementary slackness to check the solution: ( 20/3, 0, 16/3, 0) Maximize 9 x 1 -3 x x 3 -7 x 4 subject to 2 x x x x 4 ≤
The Simplex algorithm.
OR Chapter 3. Pitfalls OR  Selection of leaving variable: a)No restriction in minimum ratio test : can increase the value of the entering.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
EE/Econ 458 The Simplex Method using the Tableau Method
THE SIMPLEX METHOD.
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
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.
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.
After one pivot: HNT= [4 2 3]
Solving Linear Programming Problems: The Simplex Method
OR Perturbation Method (tableau form) (after two iterations, optimal solution obtained) (0+2  1 ) (0+2  2 ) (1+  3 )
1. 2 Computing the Adjoint matrix: 3 Assignment #3 is available. Due: Monday Nov. 5, beginning of class.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Mechanical Engineering Department 1 سورة النحل (78)
Simplex Method Continued …
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.
Linear Programming Implementation. Linear Programming
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ 5.5 Dual problem: minimization.
Simplex Method for solving LP problems with two variables.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
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.
OR  Now, we look for other basic feasible solutions which gives better objective values than the current solution. Such solutions can be examined.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
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.
OR Chapter 4. How fast is the simplex method  Efficiency of an algorithm : measured by running time (number of unit operations) with respect to.
Use duality theory to check if the solution implied by the dictionary is correct. Maximize x x x 3 subject to 1 x x x 3 ≤ 5 1 x.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
GOOD MORNING CLASS! In Operation Research Class, WE MEET AGAIN WITH A TOPIC OF :
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
5.5 Dual problem: minimization with problem constraints of the form Associated with each minimization problem with constraints is a maximization problem.
Solving Linear Program by Simplex Method The Concept
Stat 261 Two phase method.
Systems of Multivariable Equations
The minimum cost flow problem
Perturbation method, lexicographic method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
The Simplex Method: Standard Minimization Problems
The Simplex Method: Nonstandard Problems
Associate Professor of Computers & Informatics - Benha University
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
You only have 5 minutes left to finish your first test.
LINEAR PROGRAMMING Example 1 Maximise I = x + 0.8y
Practical Issues Finding an initial feasible solution Cycling
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Presentation transcript:

What happens to Klee-Minty examples if maximum increase rule is used? Klee-Minty, n=2 Maximize 10 X1 + 1 X2 subject to 1 X1 + 0 X2 ≤ 1 20 X1 + 1 X2 ≤ 100 X1 , X2 ≥ 0

The initial dictionary: X3 = 1 - 1 X1 + 0 X2 X4 = 100 -20 X1 - 1 X2 ------------------------- z = 0 +10 X1 + 1 X2 If X1 enters, how much will z increase? If X2 enters, how much will z increase?

X1 enters and X3 leaves: the increase to z is: 10.00 X2 enters and X4 leaves: the increase to z is: 100.00 X2 enters. X4 leaves. After 1 pivot: (Before 3 pivots) X3 = 1.00- 1.00 X1 + 0.00 X4 X2 =100.00- 20.00 X1 - 1.00 X4 --------------------------------- z =100.00- 10.00 X1 - 1.00 X4 The optimal solution: 100.000000

Klee-Minty, n=3 Maximize 100 X1 +10 X2 + 1 X3 subject to 1 X1 + 0 X2 + 0 X3 ≤ 1 20 X1 + 1 X2 + 0 X3 ≤ 100 200 X1 +20 X2 + 1 X3 ≤ 10000 X1 , X2 , X3 ≥ 0

The initial dictionary: X4 = 1 - 1 X1 + 0 X2 + 0 X3 X5 = 100 - 20 X1 - 1 X2 + 0 X3 X6 = 10000 -200 X1 -20 X2 - 1 X3 ---------------------------------- z = 0 + 100 X1 +10 X2 + 1 X3 If X1 enters, how much will z increase? If X2 enters, how much will z increase? If X3 enters, how much will z increase?

The initial dictionary: X4 = 1 - 1 X1 + 0 X2 + 0 X3 X5 = 100 - 20 X1 - 1 X2 + 0 X3 X6 = 10000 -200 X1 -20 X2 - 1 X3 ---------------------------------- z = 0 + 100 X1 +10 X2 + 1 X3 X1: the increase to z is: 100 X2: the increase to z is: 1000 X3: the increase to z is: 10000 X3 enters. X6 leaves. z = 0.00

After 1 pivot: (Before 7 pivots) X4 = 1- 1 X1 + 0 X2 + 0 X6 X5 = 100- 20 X1 - 1 X2 + 0 X6 X3 =10000-200 X1 -20 X2 - 1 X6 -------------------------------- z =10000-100 X1 -10 X2 – 1 X6 The optimal solution: 10000

Theorem [Klee-Minty, 1972] The Klee-Minty examples take 2n - 1 iterations when the variable to enter is chosen using the Maximum Coefficient rule. Proof: Problems 4.2 and 4.3. Similar examples exist for Largest Increase rule [Jeroslow, 1973].

So why is the Simplex Method useful So why is the Simplex Method useful? In practice, it usually takes less than 3m/2 iterations, and only rarely 3m, for m < 50, and m+n < 200 [Dantzig, 1963]. Monte Carlo studies of larger random problems- similar results, see table in text [Kuhn and Quandt, 1963]. The Largest Increase rule may require fewer iterations but it requires more work per iteration. Thus, the Maximum Coefficient rule may be faster.

Application of Maximum Increase Rule: Dictionary: xi = bi - s * xj + .... If xj enters and xi leaves: s xj= bi - xi + ... So xj = bi/s - xi/s + ... Looking at the z row: z= v + r xj

So xj = bi/s - xi/s + ... Looking at the z row: z= z ' + r xj + … Replacing xj in the z row: z= z ' + r (bi / s ) + ... Change to z is (r/s) * bi where r is the coefficient of the entering variable in the z row, bi is the constant term in the pivot row, and -s is the coefficient of xj in the pivot row of the dictionary Largest Increase Rule: Choose the entering variable to maximize this.

Maximize 5 X1 + 2 X2 + 4 X3 + 3 X4 subject to -1 X1 + 1 X2 + 1 X3 + 2 X4 ≤ 2 1 X1 + 2 X2 + 0 X3 + 3 X4 ≤ 8 X1 , X2 , X3, X4 ≥ 0 If I told you the answer had X1 and X3 in the basis, how can you more directly find the final dictionary?

-1 X1 + 1 X2 + 1 X3 + 2 X4 ≤ 2 1 X1 + 2 X2 + 0 X3 + 3 X4 ≤ 8 In matrix format with the slacks: −1 1 1 2 1 0 1 2 0 3 0 1 𝑥1 𝑥2 𝑥3 𝑥4 𝑥5 𝑥6 = 2 8

When we are done we need to have x1 and x3 in the basis: 1 ∗ 0 ∗ ∗ ∗ 0 ∗ 1 ∗ ∗ ∗ 𝑥1 𝑥2 𝑥3 𝑥4 𝑥5 𝑥6 = ∗ ∗

−1 1 1 2 1 0 1 2 0 3 0 1 𝑥 = 2 8 1 ∗ 0 ∗ ∗ ∗ 0 ∗ 1 ∗ ∗ ∗ 𝑥 = ∗ ∗ To get here, multiply by B-1 where B= −1 1 1 0

To get here, multiply by B-1 where B= −1 1 1 0 0 1 1 1 −1 1 1 0 = 1 0 0 1 B-1

0 1 1 1 −1 1 1 2 1 0 1 2 0 3 0 1 = 1 2 0 3 0 1 0 3 1 5 1 1 0 1 1 1 2 8 = 8 10

1 2 0 3 0 1 0 3 1 5 1 1 x= 8 10 Recall that B-1 = 0 1 1 1 Last dictionary(reordered by subscript): X1 = 8- 2 X2 - 3 X4 + 0 X5 - 1 X6 X3 = 10- 3 X2 - 5 X4 - 1 X5 - 1 X6 --------------------------------------- z = 80-20 X2 -32 X4 - 4 X5 - 9 X6 -1 * B-1 is hiding in the dictionary (slack coefficients).

Recall that one way given a matrix B to find B-1 is to transform: B | I into I | B−1 . The slack portion of the matrix starts out as I and so it ends up as B-1. Because we rearrange the equations so that the non-basic variables are on the other side of the equation, we see -1 times the inverse in the dictionary.