Optimization Mechanics of the Simplex Method

Slides:



Advertisements
Similar presentations
Lecture 3 Linear Programming: Tutorial Simplex Method
Advertisements

SIMPLEX METHOD FOR LP LP Model.
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
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Lecture 15 Special cases by Dr. Arshad Zaheer
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
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Operation Research Chapter 3 Simplex Method.
DMOR Linear Programming.
1 Optimization Simplex Method (Exercise). 2 Problem How many kilogram of each product to produce in order to maximize weekly profit? Product 1Product.
Optimization Methods One-Dimensional Unconstrained Optimization
Solving Linear Programs: The Simplex Method
Chapter 10: Iterative Improvement
Simplex Method LP problem in standard form. Canonical (slack) form : basic variables : nonbasic variables.
Optimization Linear Programming and Simplex Method
Linear Programming (LP)
Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING SIMPLEX METHOD.
Learning Objectives for Section 6.2
1. The Simplex Method.
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.
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)
EE/Econ 458 The Simplex Method using the Tableau Method
Simplex Algorithm.Big M Method
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
This presentation shows how the tableau method is used to solve a simple linear programming problem in two variables: Maximising subject to two  constraints.
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
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.
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.
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.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
1 Optimization Multi-Dimensional Unconstrained Optimization Part II: Gradient Methods.
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
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
Simplex method : Tableau Form
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.
Business Mathematics MTH-367 Lecture 16. Chapter 11 The Simplex and Computer Solutions Methods continued.
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.
1 Optimization Linear Programming and Simplex Method.
MTH374: Optimization For Master of Mathematics By Dr. M. Fazeel Anwar Assistant Professor Department of Mathematics, CIIT Islamabad 1.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
Solving Linear Program by Simplex Method The Concept
Chap 10. Sensitivity Analysis
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.
Chapter 4 Linear Programming: The Simplex Method
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Chapter 3 The Simplex Method and Sensitivity Analysis
Well, just how many basic
Presentation transcript:

Optimization Mechanics of the Simplex Method

Simplex Method Find initial corner point (basic) feasible solution. Usually, the origin is a basic feasible solution. Iterate until the stopping conditions are met. Are we optimal yet? Look at the current version of the objective function to see if an entering basic variable is available. If not, then the current basic feasible solution is the optimum solution. Select the entering variable: choose the non-basic variable that gives the fastest rate of increase in the objective function value. Select the leaving variable by applying the Minimum Ratio Test. Update the equations to reflect new basic feasible solution. Go to step (a).

Tableau Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 First, we create a "tableau" out of the augmented system of equations and pick the origin as the starting point.

Tableau (Proper Form) Characteristics of a tableau in proper form: Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 Characteristics of a tableau in proper form: Exactly 1 basic variable per equation. The coefficient of the basic variable is always exactly +1, and the coefficients above and below the basic variable in the same column are all 0. Z is treated as the basic variable for the objective function row.

Tableau (Proper Form) When a tableau is in the proper form Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 When a tableau is in the proper form The RHS values are the value of the basic variables. What is the value of x1? x1 is a non-basic variable, so its value is 0. What is the value of Z? 0. (Z is a basic variable, so look at the RHS column)

Are we optimal yet? Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 We are optimal if no entering basic variable is available (i.e., no basic variable, if introduced, can increase the value of Z). If there is any negative coefficient in the objective function row, then the current basic solution is not optimal.

Select the entering basic variable Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 Select the variable with the most negative coefficient in the objective function row as the entering variable. We won't accidentally select a basic variable. Why? The column corresponds to the entering basic variable becomes the pivot column.

Select the leaving basic variable Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 77/11=7 10 8 80 80/8=10 9 no limit 6 6/1=6 Perform Minimum Ratio Test (MRT) Special cases: If the coefficient of the entering basic variable is not a positive number, enter "no limit". Select the variable corresponding to the smallest MRT value as the leaving basic variable. Call the corresponding row the pivot row.

Updating the tableau Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 Step 1: Replace the leaving basic variable in the "Basic" column by the entering basic variable. Step 2: Turn the tableau into a proper form How?

Updating the tableau Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 -175 never 7 11 77 10 8 80 9 6 The coefficient of all the basic variables must be +1. Divide the row corresponds to the entering basic variable by its coefficient. The coefficients above and below the basic variable in the same column must be turned into 0. Apply (Gaussian) elimination steps

End of iteration #1 When x1 = 0, x2 = 6, Z = 1050. Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 175 1050 never 7 -11 11 10 -8 32 9 6 When x1 = 0, x2 = 6, Z = 1050. Note: The columns correspond to the "old" basic variables do not change. (Why?) Are we optimal yet?

Iteration #2 Select the entering basic variable: x1 Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 175 1050 never 7 -11 11 11/7=1.571 10 -8 32 32/10=3.2 9 6 no limit Select the entering basic variable: x1 Perform MRT test and select the leaving basic variable: S1

Iteration #2 Updating tableau Replace S1 by x1 in the "Basic" column Z x1 x2 S1 S2 S3 S4 RHS MRT 1 -150 175 1050 never 1/7 -11/7 11/7 10 -8 32 9 6 Updating tableau Replace S1 by x1 in the "Basic" column Divide pivot row by coefficient of x1 (=7)

Iteration #2 Updating tableau (continue) (End of iteration #2) Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 150/7 -425/7 9000/7 never 1/7 -11/7 11/7 -10/7 54/7 114/7 -1/7 52/7 6 Updating tableau (continue) Apply elimination steps. (End of iteration #2) Are we optimal yet?

Iteration #3 Select the entering basic variable: S4 Z x1 x2 S1 S2 S3 S4 RHS MRT 1 150/7 -425/7 9000/7 never 1/7 -11/7 11/7 no limit -10/7 54/7 114/7 114/54 -1/7 52/7 52/11 6 Select the entering basic variable: S4 Perform MRT test and select the leaving basic variable: S2

Iteration #3 Updating tableau Replace S2 by S4 in the "Basic" column Z x1 x2 S1 S2 S3 S4 RHS MRT 1 150/7 -425/7 9000/7 never 1/7 -11/7 11/7 -10/54 7/54 114/54 -1/7 52/7 6 Updating tableau Replace S2 by S4 in the "Basic" column Divide pivot row by coefficient of S4 (=54/7)

Iteration #3 Updating tableau (continue) (End of iteration #3) Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 10.185 7.870 1413.889 never -0.148 0.204 4.889 -0.185 0.130 2.111 0.148 -0.204 4.111 0.185 -0.130 3.889 Updating tableau (continue) Apply elimination steps. (End of iteration #3) Are we optimal yet?

Iteration #3 Basic Z x1 x2 S1 S2 S3 S4 RHS MRT 1 10.185 7.870 1413.889 never -0.148 0.204 4.889 -0.185 0.130 2.111 0.148 -0.204 4.111 0.185 -0.130 3.889 Because there is no more negative coefficient in the objective function row, we cannot further improve the value of the objective function. The optimal value of the objective function is 1413.889 when x1 = 4.889 and x2 = 3.889.

Special Cases in Tableau Manipulation In case of tie for the entering basic variable, select any of the tying variables. When will a tie occur for the entering variable? In case of tie for the leaving basic variable, select any of the tying variables. When will a tie occur for the leaving variable? What does it mean when all MRT yield "No limit"? Increasing the value of the entering variable does not affect any variable. i.e., the problem is unbounded.

Special Cases in Tableau Manipulation Note: Here the coefficient is referring to the coefficient of a variable in the objective function row in the tableau. At the optimum, what's the coefficient of a non-basic variable? At the optimum, what's the coefficient of a basic variable? What does it mean when the coefficient of a non-basic variable is zero at the optimum? We have alternate optimal solutions. i.e., increasing the value of that non-basic variable does not increase or decrease the value of Z.

Directions & References Solving non-standard linear programming. Equality and greater-than-or-equal-to (≥) constraints Variables that can be negative or unrestricted variables Sensitivity Analysis LP in practice: Revised Simplex method, interior point methods. Ref: http://www.sce.carleton.ca/faculty/chinneck/po.html

Summary Simplex Method for solving "Standard Form" LP problems Algorithm Understand the characteristics of the slack variables Understand how to select entering/leaving variables Performing simplex method in tableau form Understand the characteristics of the tableau (which can give you additional info of the problem).

Summary – Optimization One dimensional unconstrained optimization – function with one variable Newton's Method for finding x s.t. f'(x) = 0. Bracketing methods (Iterative) Golden Section Search Quadratic Interpolation Hybrid methods

Summary – Optimization Multi-dimensional unconstrained optimization – function with 2 or more variables Random Search Its advantages and disadvantages The "General Iterative Algorithm" for finding optimal point using either non-gradient and gradient methods. Non-gradient Methods Univariate Search and Powell's Method Gradient Methods Evaluate partial derivative Derive gradients and Hessian matrix Determine if a point is a maximum, minimum, or saddle point using Hessian matrix Finding optimal point in a given direction Steepest Ascent and Newton's Method