10CS661 OPERATION RESEARCH Engineered for Tomorrow.

Slides:



Advertisements
Similar presentations
Hillier and Lieberman Chapter 4.
Advertisements

Lecture 3 Linear Programming: Tutorial Simplex Method
Linear Programming – Simplex Method
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.
Solving Linear Programming Problems: The Simplex Method
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)
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
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
Operation Research Chapter 3 Simplex Method.
Solving Linear Programs: The Simplex Method
Linear Programming (LP)
The Simplex Method.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 25, 2013.
LINEAR PROGRAMMING SIMPLEX METHOD.
Learning Objectives for Section 6.2
Some Key Facts About Optimal Solutions (Section 14.1) 14.2–14.16
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.
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.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Linear Programming: The Simplex Method.
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.
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
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents CD Chapter 14 (Solution Concepts for Linear Programming) Some Key Facts.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
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.
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.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
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
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
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.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Linear programming Simplex method.
SOLVING LINEAR PROGRAMMING PROBLEMS: The Simplex Method
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
Dual simplex method for solving the primal
Linear Programming SIMPLEX METHOD.
Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli
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.
Chapter 8. General LP Problems
Chapter 8. General LP Problems
Chapter 4 The Simplex Algorithm
Chapter 8. General LP Problems
Presentation transcript:

10CS661 OPERATION RESEARCH Engineered for Tomorrow

UNIT 2 LINEAR PROGRAMMING 2 SIMPLEX METHOD 1 Engineered for Tomorrow

Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves generating a series of solutions in tabular form, called tableaus. By inspecting the bottom row of each tableau, one can immediately tell if it represents the optimal solution. Each tableau corresponds to a corner point of the feasible solution space. The first tableau corresponds to the origin. Subsequent tableaus are developed by shifting to an adjacent corner point in the direction that yields the highest (smallest) rate of profit (cost). This process continues as long as a positive (negative) rate of profit (cost) exists. Subject Name: OPERATION RESEARCH Subject Code:10CS661 Prepared By: Mrs.G.Annapoorani,Mrs.Prameladevi,Mrs.Sindhuja Department: CSE Date:23.02.2015

Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves generating a series of solutions in tabular form, called tableaus. By inspecting the bottom row of each tableau, one can immediately tell if it represents the optimal solution. Each tableau corresponds to a corner point of the feasible solution space. The first tableau corresponds to the origin. Subsequent tableaus are developed by shifting to an adjacent corner point in the direction that yields the highest (smallest) rate of profit (cost). This process continues as long as a positive (negative) rate of profit (cost) exists. TOPICS COVERED Assumptions in Linear Programming 1 Characteristics of LPP Basic Terms/Definitions The Essence of Simplex Method The setting up and Algebra of Simplex Method Tie breaking in Simplex Method

1.BASIC ASSUMPTIONS OF A LP MODEL Conditions of certainty exist. Proportionality in objective function and constraints Additivity (total of all activities equals sum of individual activities). Divisibility assumption that solutions need not necessarily be in whole numbers (integers); ie.decision variables can take on any fractional value.

2.CHARACTERSTICS OF LPP Decision variables - mathematical symbols representing levels of activity of a firm. Objective function - a linear mathematical relationship describing an objective of the firm, in terms of decision variables, that is to be maximized or minimized Constraints - restrictions placed on the firm by the operating environment stated in linear relationships of the decision variables. Parameters - numerical coefficients and constants used in the objective function and constraint equations.

3.BASIC TERMS/DEFINITIONS A basic solution is an augmented corner point solution. A basic solution has the following properties: Each variable is designated as either a nonbasic variable or a basic variable. The number of basic variables equals the number of functional constraints. Therefore, the number of nonbasic variables equals the total number of variables minus the number of functional constraints. The nonbasic variables are set equal to zero. The values of the basic variables are obtained as simultaneous solution of the system of equations (functional constraints in augmented form). The set of basic variables are called “basis” If the basic variables satisfy the nonnegativity constraints, the basic solution is a Basic Feasible (BF) solution The key solution concepts

4.THE ESSENCE OF SIMPLEX METHOD The key solution concepts Solution Concept 1: the simplex method focuses on CPF solutions. Solution concept 2: the simplex method is an iterative algorithm (a systematic solution procedure that keeps repeating a fixed series of steps, called, an iteration, until a desired result has been obtained) with the following structure: Initialization: setup to start iterations, including finding an initial CPF solution Optimality test: is the current CPF solution optimal? if no if yes stop Iteration: Perform an iteration to find a better CFP solution

Contd… Solution concept 3: whenever possible, the initialization of the simplex method chooses the origin point (all decision variables equal zero) to be the initial CPF solution. Solution concept 4: given a CPF solution, it is much quicker computationally to gather information about its adjacent CPF solutions than about other CPF solutions. Therefore, each time the simplex method performs an iteration to move from the current CPF solution to a better one, it always chooses a CPF solution that is adjacent to the current one. Solution concept 5: After the current CPF solution is identified, the simplex method examines each of the edges of the feasible region that emanate from this CPF solution. Each of these edges leads to an adjacent CPF solution at the other end, but the simplex method doesn’t even take the time to solve for the adjacent CPF solution. Instead it simply identifies the rate of improvement in Z that would be obtained by moving along the edge. And then chooses to move along the one with largest positive rate of improvement.

Contd…. Solution concept 6: A positive rate of improvement in Z implies that the adjacent CPF solution is better than the current one, whereas a negative rate of improvement in Z implies that the adjacent CPF solution is worse. Therefore, the optimality test consists simply of checking whether any of the edges give a positive rate of improvement in Z. if none do, then the current CPF solution is optimal.

5.THE SETTING UP OF SIMPLEX METHOD Steps: 1. Initialization: a. transform all the constraints to equality by introducing slack, surplus, and artificial variables as follows: Constraint type Variable to be added ≥ + slack (s) ≤ - Surplus (s) + artificial (A) = + Artificial (A)

Contd… b. Construct the initial simplex tableau Basic variable X1 … Xn …... Sn A1 …. An RHS S Coefficient of the constraints b1 A bm Z Objective function coefficient In different signs Z value

Contd… 2. Test for optimality: Case 1: Maximization problem the current BF solution is optimal if every coefficient in the objective function row is nonnegative Case 2: Minimization problem the current BF solution is optimal if every coefficient in the objective function row is non positive 3. Iteration Step 1: determine the entering basic variable by selecting the variable (automatically a non basic variable) with the most negative value (in case of maximization) or with the most positive (in case of minimization) in the last row (Z-row). Put a box around the column below this variable, and call it the “pivot column”

Contd… Step 2: Determine the leaving basic variable by applying the minimum ratio test as following: 1. Pick out each coefficient in the pivot column that is strictly positive (>0) 2. Divide each of these coefficients into the right hand side entry for the same row 3. Identify the row that has the smallest of these ratios 4. The basic variable for that row is the leaving variable, so replace that variable by the entering variable in the basic variable column of the next simplex tableau. Put a box around this row and call it the “pivot row” Step 3: Solve for the new BF solution by using elementary row operations (multiply or divide a row by a nonzero constant; add or subtract a multiple of one row to another row) to construct a new simplex tableau, and then return to the optimality test. The specific elementary row operations are:

Contd… Divide the pivot row by the “pivot number” (the number in the intersection of the pivot row and pivot column) For each other row that has a negative coefficient in the pivot column, add to this row the product of the absolute value of this coefficient and the new pivot row. For each other row that has a positive coefficient in the pivot column, subtract from this row the product of the absolute value of this coefficient and the new pivot row.

5.1 Example Example (All constraints are ) Solve the following problem using the simplex method Maximize Z = 3X1+ 5X2 Subject to X1  4 2 X2  12 3X1 +2X2  18 X1 , X2  0

Contd… Solution Initialization Standard form Maximize Z, Subject to Z - 3X1- 5X2 = 0 X1 + S1 = 4 2 X2 + S2 = 12 3X1 +2X2 + S3 = 18 X1 , X2, S1, S2, S3  0 Sometimes it is called the augmented form of the problem because the original form has been augmented by some supplementary variables needed to apply the simplex method

Contd… 2. Initial tableau Basic variable X1 X2 S1 S2 S3 RHS 1 4 2 12 3 Entering variable 2. Initial tableau Basic variable X1 X2 S1 S2 S3 RHS 1 4 2 12 3 18 Z -3 -5 Pivot row Leaving variable Pivot column Pivot number

Contd… The basic feasible solution at the initial tableau is (0, 0, 4, 12, 18) where: X1 = 0, X2 = 0, S1 = 4, S2 = 12, S3 = 18, and Z = 0 Where S1, S2, and S3 are basic variables X1 and X2 are nonbasic variables The solution at the initial tableau is associated to the origin point at which all the decision variables are zero. Step 1: Determine the entering variable by selecting the variable with the most negative in the last row. From the initial tableau, in the last row (Z row), the coefficient of X1 is -3 and the coefficient of X2 is -5; therefore, the most negative is -5. consequently, X2 is the entering variable. X2 is surrounded by a box and it is called the pivot column

Contd… Step 2: Determining the leaving variable by using the minimum ratio test as following: Basic variable Entering variable X2 (1) RHS (2) Ratio (2)(1) S1 4 None S2 Leaving 2 12 6 Smallest ratio S3 18 9

Contd… Step 3: solving for the new BF solution by using the eliminatory row operations as following: New pivot row = old pivot row  pivot number Basic variable X1 X2 S1 S2 S3 RHS 1 1/2 6 Z Note that X2 becomes in the basic variables list instead of S2

Substitute this values in the table Contd… 2. For the other row apply this rule: New row = old row – the coefficient of this row in the pivot column (new pivot row). For S1 1 0 1 0 0 4 - 0 (0 1 0 1/2 0 6) 1 0 1 0 0 4 For S3 3 2 0 0 1 18 2 (0 1 0 1/2 0 6) 3 0 0 -1 1 6 for Z -3 -5 0 0 0 0 -5(0 1 0 1/2 0 6) -3 0 0 5/2 0 30 Substitute this values in the table

Contd… Basic variable X1 X2 S1 S2 S3 RHS 1 4 1/2 6 3 -1 Z -3 5/2 30 This solution is not optimal, since there is a negative numbers in the last row Basic variable X1 X2 S1 S2 S3 RHS 1 4 1/2 6 3 -1 Z -3 5/2 30 The smallest ratio is 6/3 =2; therefore, S3 is the leaving variable The most negative value; therefore, X1 is the entering variable

6.TIE BREAKING IN SIMPLEX METHOD In the final tableau, if one or more artificial variables (A1, A2, …) still basic and has a nonzero value, then the problem has an infeasible solution If there is a zero under one or more nonbasic variables in the last tableau (optimal solution tableau), then there is a multiple optimal solution. When determining the leaving variable of any tableau, if there is no positive ratio (all the entries in the pivot column are negative and zeroes), then the solution is unbounded. Tie for entering variable: If two variables are tied for largest negative value in obj row, pick one arbitrarily. No problems should result. Tie for leaving basic variable (degeneracy). This is a tie for the minimum ratio. Whichever variable is picked to leave, the other variable will also be driven to zero in the pivot. Problems may ensue.

6.2 DEGENERACY If one of the degenerate basic variables (basic variables with a value of zero) retains its zero value until it is chosen at a subsequent iteration to be the leaving basic variable, the corresponding entering variable will be stuck at zero since it can’t be increased without making the degenerate leaving variable negative, so the value of Z won’t change. Simplex may go around in a loop, repeating the same sequence without advancing. Perpetual loops are rare. When they do occur, you can get out of it by picking a different leaving basic variable from the tie. Special rules have been developed for tie breaking so that the loops are avoided.

Assignment-2 Explain assumptions required in Linear Programming models. Solve it by using simplex method Maximize Z= 4x1+3x2+6x3 STC 2x1+3x2+2x3<=440 4x1+3x3<=470 2x1+5x2<=430 x1,x2,x3 >=0 Find all the basic solution to the following system of equations, identifying in each case the basic and non- basic variable. 2x1+x2+4x3 =11 3x1+x2+5x3=14 TYOCO assembles three types of toys- trains, trucks and cars using three operations. The daily limits on the available times for the three operation are 430, 460,420 minutes respectively and revenues per unit of toy train truck and car are Rs.3,Rs2, Rs.5 respectively. The assembly times per train at three operations are (1,3,1) respectively . The corresponding times per truck and per car are (2,0,4) and (1,2,0) minutes. Formulate the problem and solve using simplex method

Write six key solution concepts of simplex method. Solve the following LPP using simplex Maximize Z= 5x1+4x2 STC 6x1+4x2<=24 x1+2x2<=6 -x1+x2<=1 x2<=2 x1,x2 >=0   Work through the simplex method step by step to solve the following problem: Minimize Z=x1 - 3x2+3x3 STC 3x1-x2+2x3<=7 2x1+4x2 >=-12 -4x1+3x2 + 8x3<=10 x1,x2,x3 >=0 Explain the special cases that arise in the use of simplex method. Solve the following LPP using simplex Maximize Z= 5x1+3x2 STC 3x1+5x2<=15 5x1+2x2<=10 x1,x2>=0

. Solve the following LPP using simplex Maximize Z= 3x1+5x2 STC x1<=4 2x2<=12 3x1+2x2<=18 x1,x2>=0   Why the simplex method is better than graphical method?