Professor Alan H. Stein October 31, 2007

Similar documents
Slide 1 Math 1520, Lecture 10

4.3 Minimizing & Mixed Constraints

Lesson 27 Linear Programming; The Simplex Method

Section 4.1 Solving Systems of Linear Inequalities

1. Introduce slack variables for each inequaility to make them equations and rewrite the objective function in the form ax by cz... + P = 0.

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

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

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

4.4 The Simplex Method and the Standard Minimization Problem

Chapter 5 Linear Programming (LP)

Math Models of OR: Some Definitions

Math 354 Summer 2004 Solutions to review problems for Midterm #1

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

Part III: A Simplex pivot

Non-Standard Constraints. Setting up Phase 1 Phase 2

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

Simplex Method in different guises

Math Homework 3: solutions. 1. Consider the region defined by the following constraints: x 1 + x 2 2 x 1 + 2x 2 6

MA 162: Finite Mathematics - Section 3.3/4.1

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

SECTION 3.2: Graphing Linear Inequalities

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

OPRE 6201 : 3. Special Cases

Introduction to the Simplex Algorithm Active Learning Module 3

CHAPTER 2. The Simplex Method

CPS 616 ITERATIVE IMPROVEMENTS 10-1

The Simplex Algorithm

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

Systems Analysis in Construction

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

Math 210 Finite Mathematics Chapter 4.2 Linear Programming Problems Minimization - The Dual Problem

IE 5531: Engineering Optimization I

Linear Programming, Lecture 4

Chapter 1: Linear Programming

Review Solutions, Exam 2, Operations Research

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

A = Chapter 6. Linear Programming: The Simplex Method. + 21x 3 x x 2. C = 16x 1. + x x x 1. + x 3. 16,x 2.

Lecture 5 Simplex Method. September 2, 2009

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

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

Week_4: simplex method II

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

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

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

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Understanding the Simplex algorithm. Standard Optimization Problems.

Review Exercise 2. 1 a Chemical A 5x+ Chemical B 2x+ 2y12 [ x+ Chemical C [ 4 12]

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

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

TIM 206 Lecture 3: The Simplex Method

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

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

Optimum Solution of Linear Programming Problem by Simplex Method

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

MATH 445/545 Test 1 Spring 2016

Part 1. The Review of Linear Programming

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.

The Big M Method. Modify the LP

Week 3: Simplex Method I

Finite Mathematics MAT 141: Chapter 4 Notes

1 Simplex and Matrices

The simplex algorithm

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

9.1 Linear Programs in canonical form

The Graphical Method & Algebraic Technique for Solving LP s. Métodos Cuantitativos M. En C. Eduardo Bustos Farías 1

Simplex tableau CE 377K. April 2, 2015

3 The Simplex Method. 3.1 Basic Solutions

Chapter 4 The Simplex Algorithm Part I

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

M340(921) Solutions Problem Set 6 (c) 2013, Philip D Loewen. g = 35y y y 3.

Math Models of OR: Sensitivity Analysis

Lecture 11 Linear programming : The Revised Simplex Method

Notes on Simplex Algorithm

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

Linear Programming: Chapter 5 Duality

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

Linear Programming. (Com S 477/577 Notes) Yan-Bin Jia. Nov 28, 2017

The Avis-Kalunzy Algorithm is designed to find a basic feasible solution (BFS) of a given set of constraints. Its input: A R m n and b R m such that

February 22, Introduction to the Simplex Algorithm

2 3 x = 6 4. (x 1) 6

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

UNIT-4 Chapter6 Linear Programming

Summary of the simplex method

Exam. Name. Use the indicated region of feasible solutions to find the maximum and minimum values of the given objective function.

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

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

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Chap6 Duality Theory and Sensitivity Analysis

The Simplex Algorithm and Goal Programming

The Simplex Method of Linear Programming

MATH 4211/6211 Optimization Linear Programming

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

AM 121: Intro to Optimization

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

CO350 Linear Programming Chapter 6: The Simplex Method

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

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

Transcription:

Mathematics 05 Professor Alan H. Stein October 3, 2007 SOLUTIONS. For most maximum problems, the contraints are in the form l(x) k, where l(x) is a linear polynomial and k is a positive constant. Explain how one modifies setting up the initial simplex tableau to deal with constraints of the form l(x) k. Solution: One multiplies both sides of the inequality by to get l(x) k, which is in the form. One then introduces a slack variable just as if the inequality started out in that form. 2. Explain how, in the Simplex Method, one chooses where to pivot when the simplex tablaux has no negative entries in the right hand column but does have negative entries in the bottom row, other than in the lower right hand corner. Solution: From among the negative entries in the bottom row, one chooses the smallest entry, that is, the negative entry whose absolute value is largest. The column containing that entry is the pivot column. For each row where it can be calculated and the quotient is positive, one then checks the quotient of the entry in the last column divided by the entry in the pivot column. The row for which that quotient is the smallest is the pivot row. Page of 6

Page 2 of 6 3. Suppose a pound of meat contains one unit of carbohydrates, three units of vitamins, twelve units of proteins and costs $6.50, while a pound of delicious cabbage contains three units of carbohydrates, four units of vitamins and just one unit of protein while costing a mere $.50. You are allergic to all other foods but must consume at least eight units of carbohydrates, nineteen units of vitamins and seven units of protein each day. You are also strapped for cash and need to spend as little as possible on food. Clearly and unambiguously define appropriate variables and set up the necessary contraints, non-negativity conditions and objective function. Solution: Let: x be the number of pounds of meat consumed daily and let y be the number of pounds of cabbage. Let C be the total cost. The number of units of carbohydrates will equal the number of units of carbohydrates per pound of meat times the number of pounds of meat plus the number of units of carbohydrates of per pound of cabbage times the number of pounds of carbohydrates. Thus the number of units of carbohydrates is x + 3y. Since we need at least 8 units of carbohydrates, we have the constraint x + 3y 8. Similarly, since we need at least 9 units of vitamins, we get a constraint 3x + 4y 9 and since we need at least 7 units of protein we have a constraint 2x + y 7. Since we cannot eat a negative amount of either meat or cabbage, no matter how much we might like to, we have the non-negativity conditions x 0, y 0. The cost of x pounds of meat is obviously 6.5x while the cost of y pounds of cabbage is.5y, so we have C = 6.5x +.5y. We thus get the following set of constraints, along with the non-negativity conditions and formula for the objective function: x + 3y 8 3x + 4y 9 2x + y 7 x 0, y 0 C = 6.5x +.5y

Page 3 of 6 4. Consider the linear programming problem with the following set of contraints and objective function. Find both the minimum and maximum values of the objective function subject to the constraints and non-negativity. 5x + 2y 40 x + 2y 20 x 0 y 3 p = 2x + 0y Solution: There clearly is no maximum, since any point (x, y) where x 0 and y 20 is clearly in the feasible set and 2x + 0y can be made arbitrarily large by making y arbitrarily large. The minimum must occur at one of the vertices of the feasible set. The vertices are the following: (0, 20), where the line 5x + 2y = 40 intersects the y-axis. The point where 5x + 2y = 40 and x + 2y = 20 intersect. Using elimination, we immediately get 4x = 20, x = 5, so 2y = 5 and y = 5. 2 (5, 5/2). So we have the vertex The point where x + 2y = 20 meets y = 3. We have x + 6 = 20, x = 4, so we have the vertex (4, 3). At (0, 20), p = 2 0 + 0 20 = 200. At (5, 5/2), p = 2 5 + 0 5/2 = 85. At (4, 3), p = 2 4 + 0 3 = 58. The minimum value is obviously 58 and it occurs when x = 4 and y = 3. 5. Consider the linear programming problem with the following set of contraints, nonnegativity conditions and objective function, which is to be maximized. Set up the initial simplex tableau. 5x + 3y + 8z 0 9x 2y + 4z 5 x 0, y 0 p = 4x + 3y + 2z Solution: The initial simplex tableau is: 5 3 8 0 0 9 2 4 0 5 4 3 2 0 0 0

Page 4 of 6 6. Consider the linear programming problem with the following set of contraints, nonnegativity conditions and objective function, which is to be minimized. Set up the initial simplex tableau. 5x + 3y + 8z 0 9x 2y + 4z 5 x 0, y 0 p = 4x + 3y + 2z Solution: We multiply both sides of each constraint by to get: 5x 3y 8z 0 9x + 2y 4z 5 We also let M = p = 4x 3y 2z, so 4x + 3y + 2z + M = 0 and we can then write down the initial simplex tableau: 5 3 8 0 0 9 2 4 0 5. 4 3 2 0 0 0 7. Explain how one begins using the Simplex Method when there are negative entries in the rightmost column, excluding the lower righthand corner. Solution: We pick a row with a negative entry in the rightmost column and then choose another column in that row which contains a negative entry. The column containing that negative entry becomes the pivot column. We then choose the pivot row in the usual way and pivot. We keep doing this until there are no more negative entries in the rightmost column.

8. Consider the following initial simplex tableau. 5 2 0 0 8 2 4 0 0 0 8 0 0 3 2 0 0 0 0 Do the necessary pivoting to eliminate the negative entry from the last column. Page 5 of 6 Solution: Since there s a negative entry in the last column of the second row, we look for another negative entry in that row. Either the first or second column could be used. We ll choose the second column. Looking at the quotients of entries in the last column divided by entries in the second (pivot) column, the smallest comes from the second row, so we pivot about the second row, second column. Since the pivot entry is 4, we start by dividing the second row by 4: 5 2 0 0 8 R 2 R 2 /( 4): 0 0 5 2 4 2 8 0 0 3 2 0 0 0 0 We now get 0 s elsewhere in the second column: 4 0 0 3 2 R R 2R 2 : 0 0 5 2 4 2 8 0 0 3 2 0 0 0 0 4 0 0 3 2 R 3 R 3 R 2 : 0 0 5 2 4 2 5 0 0 4 2 2 0 0 0 0 4 0 0 3 2 R 4 R 4 + R 2 : 0 0 5 2 4 2 5 0 0 2 4 2 5 0 0 0 5 2 4 2 If one chooses to first pivot using the first column, one first pivots about the third row, first column and then must pivot a second time, about the second row, second column. One winds up with the following tableau. 0 0 8 3 30 5 0 0 0 4 5 5 5 2 0 0 30 5 0 0 0 0 4 2 3 3

Page 6 of 6 9. Consider the linear programming problem with the following initial simplex tableau. 3 0 5 4 0 6 3 4 0 0 0 Use the Simplex Method to find the maximum value for the objective function. Assuming the variables are x, y and the objective function is p, find the given the maximum value for p along with the feasible values of x and y which yield that value for p. Solution: Since the only negative entry in the bottom row is in the first column, we pivot on the first column. Looking at the quotients of the entries in the last column divided by the corresponding entries in the first column, the smallest is 6 = 4, so we 4 pivot about the second row. We proceed as follows: 3 0 5 R 2 R 2 /4: 0 4 4 3 4 0 0 0 0 R R R 2 : 0 4 4 3 4 0 0 0 0 R 3 R 3 + 3R 2 : 0 4 0 9 3 0 2 There are no negative entries in the bottom row, so we are finished pivoting. y is still a Group variable, so we have y = 0, but x is a Group 2 variable and, from the second row, we get x = 4. The entry in the bottom right hand corner is 2, so we conclude the maximum value of the objective function is 2 and it occurs when x = 4 and y = 0.