Week_4: simplex method II

Similar documents
Week 3: Simplex Method I

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

Lecture 5 Simplex Method. September 2, 2009

Simplex Method for LP (II)

Systems Analysis in Construction

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

Dr. S. Bourazza Math-473 Jazan University Department of Mathematics

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

Lesson 27 Linear Programming; The Simplex Method

(includes both Phases I & II)

(includes both Phases I & II)

Math Models of OR: Some Definitions

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

Gauss-Jordan Elimination for Solving Linear Equations Example: 1. Solve the following equations: (3)

Slide 1 Math 1520, Lecture 10

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

ECE 307 Techniques for Engineering Decisions

Linear Programming, Lecture 4

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

The Big M Method. Modify the LP

Ω R n is called the constraint set or feasible set. x 1

Lecture 11 Linear programming : The Revised Simplex Method

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

MATH 445/545 Homework 2: Due March 3rd, 2016

Special cases of linear programming

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

IE 400: Principles of Engineering Management. Simplex Method Continued

AM 121: Intro to Optimization Models and Methods Fall 2018

9.1 Linear Programs in canonical form

CPS 616 ITERATIVE IMPROVEMENTS 10-1

The Simplex Method of Linear Programming

Simplex Algorithm Using Canonical Tableaus

Linear Programming and the Simplex method

Lecture 11: Post-Optimal Analysis. September 23, 2009

In Chapters 3 and 4 we introduced linear programming

Part 1. The Review of Linear Programming

Variants of Simplex Method

AM 121: Intro to Optimization

IE 5531: Engineering Optimization I

56:270 Final Exam - May

OPERATIONS RESEARCH. Linear Programming Problem

Civil Engineering Systems Analysis Lecture XII. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

Review Solutions, Exam 2, Operations Research

February 17, Simplex Method Continued

The Dual Simplex Algorithm

M.SC. MATHEMATICS - II YEAR

Simplex tableau CE 377K. April 2, 2015

4.4 The Simplex Method and the Standard Minimization Problem

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

Summary of the simplex method

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

TIM 206 Lecture 3: The Simplex Method

1 Simplex and Matrices

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

New Artificial-Free Phase 1 Simplex Method

Linear Programming: Simplex Algorithm. A function of several variables, f(x) issaidtobelinear if it satisþes the two

Sensitivity Analysis

Chapter 5 Linear Programming (LP)

Chapter 4 The Simplex Algorithm Part I

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

maxz = 3x 1 +4x 2 2x 1 +x 2 6 2x 1 +3x 2 9 x 1,x 2

Part 1. The Review of Linear Programming

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

Non-Standard Constraints. Setting up Phase 1 Phase 2

The simplex algorithm

min3x 1 + 4x 2 + 5x 3 2x 1 + 2x 2 + x 3 6 x 1 + 2x 2 + 3x 3 5 x 1, x 2, x 3 0.

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

The augmented form of this LP is the following linear system of equations:

Lecture 2: The Simplex method

Farkas Lemma, Dual Simplex and Sensitivity Analysis

OPRE 6201 : 3. Special Cases

Supplementary lecture notes on linear programming. We will present an algorithm to solve linear programs of the form. maximize.

1 Review Session. 1.1 Lecture 2

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

Relation of Pure Minimum Cost Flow Model to Linear Programming

Chap6 Duality Theory and Sensitivity Analysis

4.5 Simplex method. min z = c T x s.v. Ax = b. LP in standard form

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

The Simplex Method for Solving a Linear Program Prof. Stephen Graves

Understanding the Simplex algorithm. Standard Optimization Problems.

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

Developing an Algorithm for LP Preamble to Section 3 (Simplex Method)

CHAPTER 2. The Simplex Method

F 1 F 2 Daily Requirement Cost N N N

THE STEPS OF THE SIMPLEX ALGORITHM

Summary of the simplex method

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

0.1 O. R. Katta G. Murty, IOE 510 Lecture slides Introductory Lecture. is any organization, large or small.

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Math Models of OR: Sensitivity Analysis

CO350 Linear Programming Chapter 6: The Simplex Method

IE 400 Principles of Engineering Management. The Simplex Algorithm-I: Set 3

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

A Review of Linear Programming

Part III: A Simplex pivot

Transcription:

Week_4: simplex method II 1

1.introduction LPs in which all the constraints are ( ) with nonnegative right-hand sides offer a convenient all-slack starting basic feasible solution. Models involving (=) and/or ( ) constraints do not. The procedure for starting "ill-behaved" LPs with (=) and ( ) constraints is to use artificial variables that play the role of slacks at the first iteration, and then dispose of them legitimately at a later iteration. Two closely related methods are introduced here: the M-method and the two-phase method. 2.M-method The M-method starts with the LP in equation form, If equation i does not have a slack (or a variable that can play the role of a slack), an artificial variable, Ri, is added to form a starting solution similar to the convenient all-slack basic solution, However, because the artificial variables are not part of the original LP model, they are assigned a very high penalty in the objective function, thus forcing them (eventually) to equal zero in the optimum solution, This will always be the case if the problem has a feasible solution, The following rule shows how the penalty is assigned in the cases of maximization and minimization: Penalty Rule for Artificial Variables. Given M, a sufficiently large positive value (mathematically, M ), the objective coefficient of an artificial variable represents an appropriate penalty if: Example: artificial variable object cofficient = M in maximization problems M in minimization problems Minimize z=4x1+x2 Subject to 3x1+x2=3 4x1+3x2 6 x1+2x2 4 x1,x2 0 Using x3 as a surplus in the second constraint and X4 as a slack in the third constraint, the equation form of the problem is given as: subject to minimize z=4x1+x2 2

3x1+x2 =3 4x1+3x2 -x3 =6 x1+2x2 +x4 =4 X1,x2,x3,x4 0 The third equation has its slack variable, X4, but the first and second equations do not. Thus, we add the artificial variables RI and Rz in the first two equations and penalize them in the objective function with M R1 + M R2 (because we are minimizing). The resulting LP is given as minimize z=4x1+x2+mr1+mr2 subject to 3x1+x2 +R1 =3 4x1+3x2-x3 +R2=6 x1+2x2 +x4 =4 x1, x2, x3, x4, R1, R2 0 The associated starting basic solution is now given by (R1, R2, x4) = (3,6,4). M must assume a numeric value, M must be sufficiently large relative to the original objective coefficients so it will act as a penalty that forces the artificial variables to zero level in the optimal solution. Using M = 100, the starting simplex tableau is given as follows (for convenience, the z- column is eliminated because it does not change in ai1 the iterations): First objective function written as And then simplex table as: Minimize z-4x1-x2-0x3-100r1-100r2 basic X1 X2 X3 R1 R2 X4 solution Z -4-1 0-100 -100 0 0 R1 3 1 0 1 0 0 3 R2 4 3-1 0 1 0 6 X4 1 2 0 0 0 1 4 Before proceeding with the simplex method computations, we need to make the z-row consistent with the rest of the tableau. Specifically, in the tableau, X1=X2=X3= 0, which yields the starting basic solution Rl =3, R2=6, and X4 = 4. This solution yields z = 100 x 3 + 100 x 6 = 900 (instead of 0, as the right-hand side of the z-row currently shows). This inconsistency stems from the fact that R1 and R2 have nonzero coefficients (-100, -100) in the z-row (compare with the all-slack starting solution in example, where the z-row coefficients of the slacks are zero). We can eliminate this inconsistency by substituting out Rj and R2 in the z-row using the appropriate constraint equations. In particular, notice the highlighted elements (= 1) in the R1-row and the Rz-row. Multiplying each of R1-row and R2-row by 100 and adding the sum to the z-row will substitute out R1 and R2 in the objective row-that is, 3

tableau thus becomes New z-row = Old z-row + (100 X R1-row + 100 x R2-row) The modified inter basic X1 X2 X3 R1 R2 X4 solution Z 696 399-100 0 0 0 900 leave R1 3 1 0 1 0 0 3 Pivot row R2 4 3-1 0 1 0 6 X4 1 2 0 0 0 1 4 Pivot column Because we are minimizing the objective function, the variable x1 having the most positive coefficient in the z-row (= 696) enters the solution To determine leave variable we compute ratio of solution on coefficient of pivot column and choose minimize ratio. Basic Inter variable Solution ratio x1 R1 3 3 X1=3/3=1 minimize R2 4 6 X1=6/4=3/2=1.5 X4 1 4 X1=4/1=4 Conclusion: inter x1 variable and leave R1 variable the new tableau can be computed by using the familiar Gauss-Jordan operations. 1. Replace Sl in the Basic column with XI: New xl-row = Current R1-row 3 = (1/3)(3 1 0 1 0 0 3) = (1 1/3 0 1/3 0 0 1) 2. new z-row=current z-row-(696)*new x1-row =(696 399-100 0 0 0 900)-(696)*( 1 1/3 0 1/3 0 0 1) =(0 399-232 -100-232 0 0 900-696)=(0 167-100 -232 0 0 204) 3.new R2-row =current R2-row (4)*new x1-row =(4 3-1 0 1 0 6)-(4)*( 1 1/3 0 1/3 0 0 1) =(0 3-4/3-1 -4/3 1 0 2 )=(0 5/3-1 -4/3 1 0 2) 4-new x4-row=current x4-row (1)*new x1- row =(1 2 0 0 0 1 4)-(1)( 1 1/3 0 1/3 0 0 1) =(0 2-1/3 0-1/3 0 1 3)=(0 5/3 0-1/3 0 1 3 ) 4

inter basic X1 X2 X3 R1 R2 X4 solution Z 0 167-100 -232 0 0 204 x1 1 1/3 0 1/3 0 0 1 leave R2 0 5/3-1 -4/3 1 0 2 Pivot row X4 0 5/3 0-1/3 0 1 3 Pivot column Because we are minimizing the objective function, the variable x2 having the most positive coefficient in the z-row (=167) enters the solution To determine leave variable we compute ratio of solution on coefficient of pivot column and choose minimize ratio. Basic Inter variable Solution ratio x2 X1 1/3 1 X2=1/(1/3)=3 R2 5/3 2 X2=2/(5/3)=6/5 minimize X4 5/3 3 X2=3/(5/3)=9/5 Conclusion: inter x2 variable and leave R2 variable The last tableau shows that x2 and R2 are the entering and leaving variables, respectively. Continuing with the simplex computations, two more iterations are needed to reach the optimum: X1=2/5 X2=9/5 Z=17/5 3. Alternative Optima the objective function can assume the same optimal value at more than one solution point, thus giving rise to alternative optima. The next example shows that there is an infinite number of such solutions. It also demonstrates the practical significance of encountering such solutions. Example: Maximize z=2x1+4x2 Subject to x1+2x2 5 5

x1+x2 4 x1,x2 0 solution: step 1: convert inequality to equality form. maximize z-2x1-4x2=0 subject to x1+2x2+x3 =5 x1+x2+ x4=4 x1,x2,x3,x4x 0 step 2: determine start basic feasible solution by set x1,x2=0 (nonbasic variable) x3=5 x4=4 Basic Z X1 X2 X3 X4 solution variable inter 1-2 -4 0 0 0 leave X3 0 1 2 1 0 5 Pivot -row X4 0 1 1 0 1 4 Pivot column Step 3: Select an entering variable (which represent large negative value of objective function ), here x2=-4 Step 4: leave variable (which represent minimum ratio value of solution on coefficient of pivot column ) Basic Entering X2 Solution Ratio (or intercept) X3 2 5 X3=5/2=2.5 Minimum X4 1 4 X1=4/1=4 Conclusion: x2 enters and x3 leaves 6

Step 5: Determine the new basic solution by using the appropriate Gauss-Jordan Computations These computations are applied to the preceding tableau in the following manner: 1. Replace x2 in the Basic column with x3: New x2-row = Current x3-row 2 = (1/2)( 0 1 2 1 0 5) = (0 1/2 1 1/2 0 2.5) 2. new z-row=current z-row-(-4)*new x2-row =(1-2 -4 0 0 0 )-(-4)*( 0 1/2 1 1/2 0 2.5 ) =( 1 0 0 2 0 10) 3.new x4-row =current x4-row (1)*new x2-row =( 0 1 1 0 1 4) -(1)*( 0 1/2 1 1/2 0 2.5) =( 0 1/2 0-1/2 1 1.5) Basic Z X1 X2 X3 X4 solution variable inter 1 0 0 2 0 10 X2 0 1/2 1 1/2 0 2.5 leave X4 0 1/2 0-1/2 1 1.5 Pivot row Pivot column and then applied same steps Basic variable Z X1 X2 X3 X4 solution Z 1 0 0 2 0 10 X2 0 0 1 1-1 1 X1 0 1 0-1 2 3 Final result 1- At point B (x1=0, x2=1/2) 2- At point C (x1=3, x2=1) 7

8