MATH 445/545 Test 1 Spring 2016

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

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

AM 121: Intro to Optimization

IE 400: Principles of Engineering Management. Simplex Method Continued

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

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

Systems Analysis in Construction

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Lecture 2: The Simplex method

1 Review Session. 1.1 Lecture 2

3 The Simplex Method. 3.1 Basic Solutions

Understanding the Simplex algorithm. Standard Optimization Problems.

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

AM 121: Intro to Optimization Models and Methods

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

Linear Programming, Lecture 4

Special cases of linear programming

Chapter 4 The Simplex Algorithm Part I

The Simplex Algorithm and Goal Programming

MATH2070 Optimisation

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

MATH 445/545 Homework 1: Due February 11th, 2016

Review Solutions, Exam 2, Operations Research

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

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

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

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

15-780: LinearProgramming

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

Lesson 27 Linear Programming; The Simplex Method

Simplex Algorithm Using Canonical Tableaus

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)

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

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

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

Chapter 4 The Simplex Algorithm Part II

Chap6 Duality Theory and Sensitivity Analysis

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

Farkas Lemma, Dual Simplex and Sensitivity Analysis

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

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

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

Linear Programming: Chapter 5 Duality

CO350 Linear Programming Chapter 6: The Simplex Method

Chapter 1: Linear Programming

1 Answer Key for exam2162sp07 vl

February 17, Simplex Method Continued

ORF 522. Linear Programming and Convex Analysis

Linear programs Optimization Geoff Gordon Ryan Tibshirani

Solutions to Review Questions, Exam 1

Introduce the idea of a nondegenerate tableau and its analogy with nondenegerate vertices.

F 1 F 2 Daily Requirement Cost N N N

Summary of the simplex method

Optimization (168) Lecture 7-8-9

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

9.1 Linear Programs in canonical form

MAT016: Optimization

Section 4.1 Solving Systems of Linear Inequalities

Simplex Method for LP (II)

The Simplex Algorithm

TIM 206 Lecture 3: The Simplex Method

Summary of the simplex method

OPERATIONS RESEARCH. Linear Programming Problem

Part 1. The Review of Linear Programming

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

Chapter 1 Linear Programming. Paragraph 5 Duality

OPRE 6201 : 3. Special Cases

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

UNIT-4 Chapter6 Linear Programming

MATH 4211/6211 Optimization Linear Programming

Sensitivity Analysis

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

Math Models of OR: Handling Upper Bounds in Simplex

Lecture 4: Algebra, Geometry, and Complexity of the Simplex Method. Reading: Sections 2.6.4, 3.5,

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

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

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Optimization Methods in Management Science

Sensitivity Analysis and Duality in LP

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

Part 1. The Review of Linear Programming

OPTIMISATION 2007/8 EXAM PREPARATION GUIDELINES

IE 5531: Engineering Optimization I

The Simplex Algorithm

ECE 307 Techniques for Engineering Decisions

Linear Algebra Solutions 1

4.6 Linear Programming duality

Math Models of OR: Sensitivity Analysis

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

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

"SYMMETRIC" PRIMAL-DUAL PAIR

In Chapters 3 and 4 we introduced linear programming

CO 250 Final Exam Guide

Introduction. Very efficient solution procedure: simplex method.

December 2014 MATH 340 Name Page 2 of 10 pages

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

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

Optimization Methods in Management Science

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

Transcription:

MATH 445/545 Test Spring 06 Note the problems are separated into two sections a set for all students and an additional set for those taking the course at the 545 level. Please read and follow all of these directions. Answer all the questions appropriate to level at which you are taking the course. You may use any calculator you have at your disposal (please not your phone). Show all of your work to get full credit. Answer all questions neatly. Work alone! If the described problem has multiple optimal solutions be sure two write them as a convex set. If the described problem is unbounded be sure and give a direction unboundedness in terms of all variables (including slack, excess, and artificial). If the direction of unboundedness comes from a simplex tableau use the tableau to state an ending feasible point and then use the tableau to establish the direction of unboundedness. NAME:

All Students. (5 pts) Solve the following linear program graphically, prior to stating the solution write the feasible region as a convex set. maximize z = x + x subject to x + x 4 x + x 5 x, x 0. Soltuion: We plot the feasible region to the given expressions in the Figure below. Make note that the feasible region is given by the convex combination of the points: A = (4, 0), B = (, 3), and C = (.5, 0) Thus, letting σ, σ, and σ 3 [0, ] such that 3 i= σ i = then any point in the feasible region, D = (x f, y f ) may be written as (x f, y f ) = ((σ (4) + σ () + σ 3 (.5)), (σ (0) + σ (3) + σ 3 (0))) = ((σ (4) + σ () + σ 3 (.5)), σ (3)) By increasing the countours of the objective function the maximal value of z can be seen as the convex combination of the points A and B. Thus, the optimal solution of z = 4 occurs for any point 0 in the convex set: O = { (x, y) (α4 + ( α), α(0) + ( α)3) } = { (x, y) (3α +, 3 3α) } where α [0, ].

. (0 pts) Solve the following linear program using the simplex method. maximize z = x + 3x subject to x + x 4 x x x, x 0. Solution: Write the program in a more standardized form: maximize z = x + 3x Ma subject to x + x e + a = 4 x + x + s = x, x, e, s, a 0. We can now write out a starting simplex tableau: Row z x x e s a RHS Basis 0 - -3 0 0 M 0 z 0-0 4 a 0-0 0 s We adjust the first tableau so that the basic variable a has an identity column. Row z x x e s a RHS Basis 0 M M 3 M 0 0 4M z 0-0 4 a 0-0 0 s Pivot x into the basis in place of a. Row z x x e s a RHS Basis 0 0 - - 0 M+ 4 z 0-0 x 0 0 3 Pivot x into the basis. Ratio test and s leaves the basis giving: Take minimum of = min { 3 s = 4, 3 } = Row z x x e s a RHS Basis 5 4 0 0 0 M + 5 8 z 3 3 3 0 0 x 3 3 3 0 0 x 3 3 3 3

The above given tableau has a direction of unboundedness (Look at the column for e ), and there is no maximum value for our linear program. From the tableau we see that the point X = 0 0 0 is feasible. We also have the constraints: x 3 e = x 3 e = Here if x and x are increased by and e is increased by 3 the constraints will remain satisfied, and the direction of unboundedness is d = 3 0. 0 Solutions of the form X un = X + αd for α > 0 will be feasible, and increasing the value of α increases the solution without bound. 4

3. (5 pts) Give a brief description for each of the following: (a) Explain in words the ratio test in the simplex algorithm and what the ratio test is doing. Solution: Ratio test: Once a non-basic variable is chosen to enter the basis, the ratio of the right hand side value for each constraint over the positive coefficient in the entering variables column is examined. The winner of the test is the constraint corresponding to the minimum outcome in this test. The ratio allows us to see how large we can make the entering variable. Specifically picking the minimum in the test keeps the all of the current basic variable from becoming negative during a pivot of the simplex algorithm. (b) How can you determine if a linear program using the simplex method is infeasible? Assume you have written the problem in standard form including slack, excess, and artificial variables. Solution: Linear programs will be infeasible if we can not find an initial basic feasible solution for the simplex algorithm. This occurs if we have an artificial variable variable as a Basic variable once the simplex algorithm has reached an optimal tableau. (c) Assuming a maximization problem: State Bland s rule and explain why it is used. Solution: Bland s rule is used to keep the simplex algorithm from cycling. Assume that slack and excess variables are numbered x n+, x n+,.... For a maximization problem choose the entering variable with a negative row 0 coefficient that has the smallest index. For ties in the ratio test, break the tie by choosing the winner of the ratio test to be the variable with the smallest subscript or index. 5

4. (0 pts) Change the following to a maximization problem, and put in all the slack, excess, and artificial variables. Write the first tableau for the problem. Don t solve. minimize z = x + 3x + x 3 + 3x 4 subject to x + 3x + 5x 3 + x 4 5 x + 3x 3 6 5x + 3x + x 4 = 7 x 0, x 0, x 4 Solution: Adding slack, excess and artificial variables gives: minimize z = x + 3x + x 3 + 3x 4 + Ma + Ma subject to x + 3x + 5x 3 + x 4 + s = 5 x + 3x 3 e + a = 6 5x + 3x + x 4 + a = 7 x 0, x 0, x 4, s 0, a 0, a 0 Doing two change of variables: x 3 = x 3 x 3 and x 4 = x 4 + x 4 = x 4 minimize z + 6 = x + 3x + x 3 x 3 + 3x 4 + Ma + Ma subject to x + 3x + 5x 3 5x 3 + x 4 + s = 9 x + 3x 3 3x 3 e + a = 6 5x + 3x + x 4 + a = 9 x, x, x 3, x 3, x 4, s, a, a 0 Change the minimization constraint to a maximization by considering the objective function maximize z 6 = x 3x x 3 + x 3 3x 4 Ma Ma Thus the first tableau for the problem is given by: Row z x x x 3 x 3 x 4 s e a a RHS Basic 0-3 - 3 0 0 M M 6 z 0 3 5-5 0 0 0 9 s 0 0 3-3 0 0-0 6 a 3 0 5 3 0 0 0 0 0 9 a Here the next step becomes to make the top row reflect that a and a are basic variables. 6

5. (0 pts) A canning company is contracted to receive 60,000 pounds of ripe grade A tomatoes at 9 cents per pound from which it produces both canned tomato juice and tomato paste. They also will get 50,000 pounds of grade B tomatoes at 6 cents per pound. The canned products are packaged in 4 can cases. A can of juice requires pound of fresh tomatoes, and a can of paste requires /3 pound only. Juice must use at least 60% grade A tomatoes and the paste must use at least 50% grade A tomatoes. The company s share of the market is limited to 0,000 cans of juice and 60,000 cans of paste. The wholesale price per can of juice is $ and for paste it is $0.50. The cost of processing a can of juice is $0.0 and the cost of processing a can of tomato paste is $0.0. Determine the optimum daily production mix. (Maximize the profit.) Again Set up Don t Solve! Solution: Start by defining some decision variables: Let A J be the pounds of grade A tomatoes used in Juice. Let A P be the pounds of grade A tomatoes used in Paste. Let B J be the pounds of grade B tomatoes used in Juice. Let B P be the pounds of grade B tomatoes used in Paste. where each of the decision variables is non-negative. Note we can determine the number of cans of Juice and cans of paste produced using: Cans of Juice := A J + B J 0, 000 Market Share Juice Cans of Paste := 3(A P + B P ) 60, 000 Market Share Paste The company s profit z is defined by: z = (.00 0.0)(A J +B J )+(0.50 0.0)(3(A P +B P )) 0.09(A J +A P ) 0.06(B J +B P ) In addition to the previously defined constraints we have: A J + A P 60, 000 B J + B P 50, 000 pounds of grade A tomatoes available pounds of grade B tomatoes available The juice and the paste must satisfy the desired ratios of grade A tomatoes. A J A J + B J 0.60 and 7 A P A P + B P 0.5

Putting it all together gives: maximize z = 0.9(A J + B J ) + 0.3(3(A P + B P )) 0.09(A J + A P ) 0.06(B J + B P ) subject to A J + B J 0, 000 3(A P + B P ) 60, 000 A J + A P 60, 000 B J + B P 50, 000 0.4A J 0.6B J 0 0.5A P 0.5B P 0 A J, A P, B J, B P 0 8

545 Additional Problems. (0 pts) Show that for any two matrices A and B, (AB) T = B T A T. Assume that A is an m n matrix and B is an n q matrix so that there product is defined. Thus, AB is an m q matrix, and its transpose is a q m matrix. We can also note that B T A T is the product q n matrix and a n m matrix resulting in again a q m. So each side of the equality is of the same size. We now only need to show that the arbitrary element in row i and column j of (AB) T is the same as the row i column j element in B T A T. Denoting the entry in row i column j in a matrix M as M i,j we can consider the following algebra: (AB) T i,j = (AB) j,i n = A j,k B k,i = = k= n k= n k= A T k,jb T i,k B T i,ka T k,j which concludes the proof. = (B T A T ) i,j. (0 pts) For a linear program written in standard form with constraints Ax = b and x 0 show that d is a direction of unboundedness if and only if Ad = 0 and d 0. Solution: First lets recall what a direction of unboundedness is. An n by vector d is a direction of unboundedness if for all x in S (an LP s feasible region), and c 0 then x + cd S. (= ) Assume here that d is a direction of unboundedness, and that c is a positive constant (c = 0 is trivial). Then we know that for any x S that x + cd is in S. This gives A(x + cd) = b Ax + cad = b b + cad = b cad = 0 Ad = 0. We also know that x + cd 0 for all x 0 S. Thus, cd 0, and d 0. 9

( =) Assume that Ad = 0, and d 0, and consider any point x in the feasible region of our linear program. As x is in the feasible region we know that Ax = b. Thus, for c > 0 consider the point x + cd A(x + cd) = Ax + cad = Ax + 0 = Ax = b. Note we also need our new point x + cd to be non-negative which is true as x S, and d 0. Thus, x + cd S, and d is a direction of unboundedness. 0