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

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

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

Math Models of OR: Some Definitions

Part III: A Simplex pivot

TIM 206 Lecture 3: The Simplex Method

Lesson 27 Linear Programming; The Simplex Method

Slide 1 Math 1520, Lecture 10

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

9.1 Linear Programs in canonical form

AM 121: Intro to Optimization Models and Methods Fall 2018

Linear programs Optimization Geoff Gordon Ryan Tibshirani

Worked Examples for Chapter 5

IE 5531: Engineering Optimization I

Chap6 Duality Theory and Sensitivity Analysis

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

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

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Notes on Simplex Algorithm

Introduction to the Simplex Algorithm Active Learning Module 3

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

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

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

4.3 Minimizing & Mixed Constraints

IE 400: Principles of Engineering Management. Simplex Method Continued

Simplex Algorithm Using Canonical Tableaus

Professor Alan H. Stein October 31, 2007

Systems Analysis in Construction

CO350 Linear Programming Chapter 6: The Simplex Method

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

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

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

Math Models of OR: Sensitivity Analysis

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

Part 1. The Review of Linear Programming

Review Solutions, Exam 2, Operations Research

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

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

CPS 616 ITERATIVE IMPROVEMENTS 10-1

CS Algorithms and Complexity

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Non-Standard Constraints. Setting up Phase 1 Phase 2

CO350 Linear Programming Chapter 6: The Simplex Method

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

Math 273a: Optimization The Simplex method

The Simplex Algorithm

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Lecture 2: The Simplex method

Simplex Method in different guises

Part 1. The Review of Linear Programming

A Review of Linear Programming

Lecture Simplex Issues: Number of Pivots. ORIE 6300 Mathematical Programming I October 9, 2014

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

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

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

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

AM 121: Intro to Optimization

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

3 The Simplex Method. 3.1 Basic Solutions

MATH 4211/6211 Optimization Linear Programming

LINEAR PROGRAMMING I. a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm

4.4 The Simplex Method and the Standard Minimization Problem

Optimisation and Operations Research

The simplex algorithm

Lecture slides by Kevin Wayne

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

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

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

OPRE 6201 : 3. Special Cases

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

Today s class. Constrained optimization Linear programming. Prof. Jinbo Bi CSE, UConn. Numerical Methods, Fall 2011 Lecture 12

CO350 Linear Programming Chapter 5: Basic Solutions

Week_4: simplex method II

Math Models of OR: Handling Upper Bounds in Simplex

ECE 307 Techniques for Engineering Decisions

Chapter 5 Linear Programming (LP)

3. THE SIMPLEX ALGORITHM

Simplex tableau CE 377K. April 2, 2015

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

Linear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

Optimization 4. GAME THEORY

Lecture 5 Simplex Method. September 2, 2009

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

MA 162: Finite Mathematics - Section 3.3/4.1

Solving Linear Systems Using Gaussian Elimination

6.2: The Simplex Method: Maximization (with problem constraints of the form )

x 1 2x 2 +x 3 = 0 2x 2 8x 3 = 8 4x 1 +5x 2 +9x 3 = 9

CO 602/CM 740: Fundamentals of Optimization Problem Set 4

Simplex method(s) for solving LPs in standard form

Section 4.1 Solving Systems of Linear Inequalities

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Introduction. Very efficient solution procedure: simplex method.

1 Simplex and Matrices

Simplex Method for LP (II)

Operations Research Lecture 2: Linear Programming Simplex Method

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

Note 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)

Transcription:

1 Consider the following LP given in standard form: max z = 5 x_1 + 2 x_2 Subject to 3 x_1 + 2 x_2 2400 x_2 800 2 x_1 1200 x_1, x_2 >= 0 The augmented form of this LP is the following linear system of equations: along with 3 x_1 + 2 x_2 + x_3 = 2400 x_2 + x_4 = 800 2 x_1 + x_5 = 1200 z - 5 x_1-2 x_2 = 0 REMARK: The constraints give a system of 3 equations but with 5 unknowns. If we give particular values to any 2 of the unknowns x_1, x_2, x_3, x_4, x_5, then (generally speaking), we will then need to solve a system of 3 equations in now exactly 3 unknowns and we can find that single solution (of, course there are exceptions, but generally speaking). Initialization of the Simplex Method When all the b_i 0, pick the original variables to be the first set of non-basic variables and the slack variables to be the basic variables to get the starting basic feasible solution. TABLEAU 1 A tableau shows the coefficients in the current system of equations that represents the LP. This is just the augmented matrix of the system above also noting which variables will be the basic variables that we must solve for. x_3 (1) 0 3 2 1 0 0 2400 x_5 (3) 0 2 0 0 0 1 1200 This tableau indicates that the non-basic variables x_1 and x_2 are set to zero. We find the corresponding value of the basic variables by solving the system of equations when x_1 = x_2 = 0. Therefore, the basic feasible solution associated with this tableau is (x_1, x_2, x_3, x_4, x_5) = (0, 0, 2400, 800, 1200) and the corresponding value of z is 0. This is associated with the CPF (x_1, x_2) = (0,0).

2 Optimality Test: The equation z 5 x_1 2 x_2 = 0 or z = 5 x_1 + 2 x_2 indicates that: if you were to increase x_1 above zero and keep x_2 fixed at 0, then z would increase; if you were to increase x_2 above zero and keep x_1 fixed at 0, then z would increase. We will get the greatest increase rate in z if we increase x_1 since the coefficient magnitude of x_1 is higher than that of x_2. So, we will make x_1 basic and move it beyond 0 but keep x_2 non-basic (x_2 still equal to 0). Geometrically speaking, we slide along the edge x_2=0 by increasing x_1 and moving away from the vertex (0,0). We have determined our direction of movement the edge along which we will slide. We can increase x_1 while still holding x_2 non-basic 0 but change the values of the other variables so that we solve the linear system of equations -- only until we are about to violate the non-negativity of a variable, i.e. until we make a new variable equal to 0. That new variable would now be non-basic and set equal to zero and x_1 would be basic. Geometrically speaking, we increase x_1 until we hit another equality/constraint boundary. Remember, each constraint boundary corresponds to a variable (original or slack) being equal to zero. Therefore, holding x_2 = 0, must have 3x_1 + x_3 = 2400 and x_3 0, so we can send x_1 no higher than 2400/3 = 800; must have x_4 = 800 - this puts no constraint on x_1; must have 2x_1 + x_5 = 1200 and still x_5 0, so we can send x_1 no higher than 1200/2 = 600. What is important is the value of the RHS/(positive coefficient of x_1) which we call Ratio in the tableau. Ratio x_3 (1) 0 3 2 1 0 0 2400 2400/3 x_5 (3) 0 2 0 0 0 1 1200 1200/2

3 We pick the smallest of these ratios as we can increase x_1 to 600 without violating any constraints. Geometrically speaking, we have determined where to stop on our edge. So we trade in x_1 for x_5 in our basis. That is to say, we make x_1 basic and the variable that becomes zero and non-basic is x_5; x_1 enters the basis and x_5 leaves the basic as x_5 gets pushed to zero. We solve for a new Basic Feasible Solution by constructing a new tableau in proper form using Gaussian elimination: i. Divide the pivot row by the pivot entry; ii. Clear to zero all the other pivot column entries by adding/subtracting multiples of the pivot row. The pivot row is the row in the tableau associated with the leaving variable (which is x_5). The pivot column is the column associated with the entering variable (which is x_1). The pivot is the coefficient of the entering variable in the pivot row. x_3 (1) 0 3 2 1 0 0 2400 x_5 (3) 0 2 0 0 0 1 1200 x_3 (1) 0 3 2 1 0 0 2400 Eqn (0) gets replaced by Eqn(0) + 5*Eqn(3); Eqn (1) gets replaced by Eqn(1) 3*Eqn(3); Eqn (2) stays the same as there is already a zero in the pivot column. We arrive at a new tableau to describe the original LP. TABLEAU 2: x_3 (1) 0 0 2 1 0-3/2 600

4 Setting the non-basic variables x_2 and x_5 to zero and solving the system of equations for the basic variables gives x_3 = 600, x_4 = 800, and x_1 = 600. Therefore the basic solution associated with this tableau is (x_1, x_2, x_3, x_4, x_5) = (600, 0, 600, 800, 0) and the corresponding value of z is 3000. Optimality Test: The equation z - 2 x_2 + 5/2 x_5 = 3000 or z = 3000-2 x_2-5/2 x_5 indicates that: if you were to increase x_2 above zero and keep x_5 fixed at 0, then z would increase. So, we will make x_2 basic and move it beyond 0. Geometrically speaking, we slide along the edge x_5=0 by increasing x_2 and moving away from the CPF(600,0). We have determined our direction of movement the edge along which we will slide. We can increase x_2 -- keeping x_5 non-basic equal to 0 but change the values of the other variables so that we solve the linear system of equations -- only until we are about to violate the non-negativity of a variable, i.e. until we make a new variable equal to 0. That new variable would now be non-basic and set equal to zero and x_2 would be basic. Geometrically speaking, we increase x_2 until we hit another equality/constraint boundary. Remember, each constraint boundary corresponds to a variable (original or slack) being equal to zero. Therefore, holding x_5= 0, we must have 2x_2 + x_3 = 600 and x_3 0, so we can send x_2 no higher than 600/2; we must have x_2 + x_4 = 800 and x_4 0, so we can send x_2 no higher than 800/1; we must have x_1 = 600 and this puts no constraint on x_2. We pick the smallest of these ratios as we can increase x_2 to 300 without violating any constraints. Geometrically speaking, we have determined where to stop on our edge.

5 So we trade in x_2 for x_3 in our basis. That is to say, we make x_2 basic and the variable that becomes non-basic is x_3; x_2 enters the basis and x_3 leaves it as x_3 gets pushed to 0. Geometrically speaking, we have determined where to stop on our edge. Ratios x_3 (1) 0 0 2 1 0-3/2 600 600/2 800/1 We solve for a new Basic Feasible Solution by constructing a new tableau in proper form using Gaussian elimination: i. Divide the pivot row by the pivot entry; ii. Clear to zero all the other entries in the pivot column by adding/subtracting multiples of the pivot row. x_3 (1) 0 0 1 1/2 0-3/4 300 x_2 (1) 0 0 1 1/2 0-3/4 300 Eqn (0) gets replaced by Eqn(0) + 2*Eqn(1); Eqn (2) gets replaced by Eqn(2) Eqn(1); Eqn (3) stays the same as there is already a zero in the pivot column. TABLEAU 3: z (0) 1 0 0 1 0 1 3600 x_2 (1) 0 0 1 1/2 0-3/4 300 x_4 (2) 0 0 0-1/2 1 3/4 500

6 Therefore the basic feasible solution associated with this tableau is (x_1, x_2, x_3, x_4, x_5) = (600, 300, 0, 500, 0) and the value of z is 3600. Optimality Test: The equation z + x_3 + x_5 = 3600 or z = 3600 x_3 x_5 says that there are no nonnegative values of x_3 and x_5 that will make the objective function larger than the current value of 3600. That is to say, the coefficients of equation (0) in the tableau are all non-negative, thus this tableau is optimal and the current BFS is the optimal solution and the optimal objective value is 3600. Note: one should check that the BFS at each stage solves the tableaux of the prior stages because each tableau is a system of linear equations that should have the same solution sets.