8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.

Slides:



Advertisements
Similar presentations
Chapter 5: Linear Programming: The Simplex Method
Advertisements

SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
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.
Dr. Sana’a Wafa Al-Sayegh
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)
Sections 4.1 and 4.2 The Simplex Method: Solving Maximization and Minimization Problems.
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Chapter 6 Linear Programming: The Simplex Method
Linear Inequalities and Linear Programming Chapter 5
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.
Operation Research Chapter 3 Simplex Method.
Design and Analysis of Algorithms
Chapter 10: Iterative Improvement
Optimization Mechanics of the Simplex Method
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.
5.6 Maximization and Minimization with Mixed Problem Constraints
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
LINEAR PROGRAMMING SIMPLEX METHOD.
Learning Objectives for Section 6.2
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.
Simplex method (algebraic interpretation)
Simplex Algorithm.Big M Method
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
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.
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.
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
1. 2 Computing the Adjoint matrix: 3 Assignment #3 is available. Due: Monday Nov. 5, beginning of class.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
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.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Simplex Method for solving LP problems with two variables.
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.
 LP graphical solution is always associated with a corner point of the solution space.  The transition from the geometric corner point solution to the.
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.
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 :
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.
7. Linear Programming (Simplex Method)
Solving Linear Program by Simplex Method The Concept
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear programming Simplex method.
Chapter 4 Linear Programming: The Simplex Method
Chapter 3 The Simplex Method and Sensitivity Analysis
The Simplex Method: Nonstandard Problems
Well, just how many basic
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear programming Simplex method.
Simplex Tableau Method
Presentation transcript:

8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation 3. Geometric interpretation Refs: B&Z 5.4.

Recall from last lecture that we saw that the number of basic solutions for small L.P. problems grows rapidly. Most of these solutions will not be feasible. The Simplex Method computes less than 2m (m= number of consraints) basic solutions and these will all be basic feasible solutions. So for a problem with 4 decision variables and 5 constraints there are 126 basic solutions, but the Simplex Method would compute less than 10.

The basic principle behind the Simplex Method is as follows: We treat the objective function as a constraint and P as a decision variable. We move from one feasible corner point to another, increasing the value of P as we go. We stop when there are no more such corner points; that is, we have the optimal solution. We will now return to the previous example and solve it using the Simplex Method.

max P = 4x 1 + 5x 2 subj to 2x 1 + 3x 2 ≤ 600 5x 1 + 2x 2 ≤ 1,200 x 1 ≥ 0 x 2 ≥ 0 Example 1 (revisited). To initiate the Simplex Method we first rewrite the inequalities as equalities by adding slack variables. So our constraints become: 2x 1 + 3x 2 + s 1 = 600 5x 1 + 2x 2 + s 2 = 1,200 x 1 ≥ 0x 2 ≥ 0s 1 ≥ 0s 2 ≥ 0

We also rewrite the objective function so that all variables are on the left and the constants are on the right: P - 4x 1 - 5x 2 = 0. **Remember we are treating P as a variable. Thus our new system is: 2x 1 + 3x 2 + s 1 = 600 5x 1 + 2x 2 + s 2 = 1, x 1 - 5x 2 + P = 0 Now we can start to set up a Simplex Tableau.

2x 1 + 3x 2 + s 1 = 600 5x 1 + 2x 2 + s 2 = 1, x 1 - 5x 2 + P = 0 Remember, if an optimal solution exists, it will be one of the basic solutions. Since we have 2 constraints and 4 variables, to find the basic solutions, we must set 2 variables at a time to zero. These variables are called non-basic variables, the other variables are called basic variables.

In the tableau we see that the columns corresponding to the B.V.’s have a particular structure - the entries are all zeroes except for a single “1” and each of these 1’s is in a different row. If we initially set x 1 = x 2 = 0 (non-basic) then s 1 = 600, s 2 = 1200 are basic variables. Now P = 0 is also a basic variable (it has value zero, we have not set it to zero).

This structure indicates that these variables are basic - we indicate this by writing the appropriate label in the left column in the same row as the 1. The value of that variable is given in the same row, in the RHS column. So our initial basic feasible solution is: s 1 = 600, s 2 = 1200, P = 0 (these are the basic variables) x 1 = x 2 = 0 (non-basic variables).

Since we are trying to maximize P we want to find a basic feasible solution which increases the value of P. This means we need to set a different pair of variables to zero. But which ones do we choose to ensure that we increase the value of P? If x 1 is increased from 0 and we leave x 2 = 0, the rate of increase is 4. If x 2 is increased from 0 and we leave x 1 = 0, the rate of increase is 5. P = 4x 1 + 5x 2 increasing either of x 1 or x 2 will increase P.

We would like our method to be efficient. So we always choose the variable which will increase P at the largest rate. This is called the Greedy Rule. It is a process which selects the new basic variable. How is this reflected in the Simplex tableau? The Greedy Rule chooses the most negative value in the bottom row of the tableau. Initial tableau So x 2 will enter the basis.

Set x 1 = 0 Example 2x 1 + 3x 2 + s 1 = 600 5x 1 + 2x 2 + s 2 = x 2 + s 1 = 600 2x 2 + s 2 = 1200 As x 2 increases, the values of s 1 and s 2 will decrease according to s 1 = x 2 s 2 = x 2. So to ensure s 1 ≥ 0 we need x 2 ≤ 200, and to ensure s 2 ≥ 0 we need x 2 ≤ 600. We now need to choose a basic variable to become non-basic (since we must have 2 non-basic variables at a time). We choose this variable by determining how much we can increase the new basic variable without causing any other basic variable to become negative.

The first constraint is the most restrictive and so we choose the variable s 1 to become non-basic. So if we increase x 2 to 200 we force s 1 to 0. This process is called the Ratio Test. It determines which basic variable leaves the basis. To satisfy both of these conditions, we must have x 2 ≤ 200. Initial tableau So x 2 will enter the basis. s 1 will leave the basis

When dealing with the Simplex tableau we perform the Ratio Test as follows: 1.Divide each entry in the RHS column by the corresponding entry in the column of the new basic variable (provided the entry is positive, otherwise ignore it). 2.Select the smallest ratio. 3. The basic variable associated with this row leaves the basis. 600/3= /2=600

Remember, for our initial tableau, the basic variables are s 1 and s 2. To choose the new basic variable, we apply the Greedy Rule which chooses the most negative value in the bottom row of the tableau. So x 2 will enter the basis. We now perform the ratio test to see which variable leaves the basis. 600/3= /2=600 s 1 will leave the basis

To update the Simplex tableau, we perform a Pivot Operation. We start with the entry in the column of the entering variable and the row of the exiting variable. 3 Step 1: Divide the entire row by the circled value, so that in the next tableau there is a “1” in this position.

Step 2: We use the updated pivot row and operation “C” to obtain zeroes above and below the pivot element. Note that we are using the updated Row 1. R 2 -2R 1 R 2 R 3 +5R 1 R 3 (partial initial tableau) 1 R 1 ÷3R1R1 (partial updated tableau)

What are our new basic variables? s2s2 x2x2 P x 2 = 200,s 2 = 800P=1000 We have now moved from one corner position to another and increased the value of P along the way. Our new non-basic variables are x 1 = s 1 = 0

Our next step is to check the bottom row for negative values. We are applying the Greedy Rule again. x 1 will enter the basis. Now we perform the ratio test: The smallest ratio is in Row 2. s 2 will leave the basis Row 1:Row 2:

The pivot entry is 11/3. We can now perform the Pivot Operation. Our new Row 2 will be our old Row 2 multiplied by 3/11. BVx 1 x 2 s 1 s 2 PRHS x s  P  We use the new Row 2 to obtain zeroes above and below the “1” in the x 1 column R 1 -2/3 R 2 R 1 R 3 +2/3 R 2 R 3

We have no further negative entries in the bottom row so we are finished. The variables x 1 and x 2 are basic variables. x 1 = x 2 = P is also basic P= 12, And s 1 and s 2 are non- basic variables, so s 1 = s 2 =0.

You should now check your solution. P(2400/11, 600/11)= 4(2400/11) + 5 (600/11) = 12,600/11 2x 1 + 3x 2 = 2(2400/11)+3(600/11) =600 (≤ 600) 5x 1 + 2x 2 = 5(2400/11)+2(600/11) =1200 (≤ 1200) And clearly, x 1, x 2, s 1, s 2 ≥ 0 So the optimal solution is: (x 1, x 2, s 1, s 2 ) = (2400/11, 600/11,0,0) and P*=12,600/11.

You should now be able to complete Q’s 1(a), (b), (c) and (d) and Q 3 on Example Sheet 3 from the Orange Book.