Solutions to Review Questions, Exam 1

Similar documents
Review Solutions, Exam 2, Operations Research

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

Review Questions, Final Exam

The Simplex Algorithm and Goal Programming

MATH 445/545 Test 1 Spring 2016

Operations Research I: Deterministic Models

Section 4.1 Solving Systems of Linear Inequalities

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

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

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

1 Review Session. 1.1 Lecture 2

CO 250 Final Exam Guide

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

Review Questions, Final Exam

Chapter 4 The Simplex Algorithm Part I

MATH 4211/6211 Optimization Linear Programming

Advanced Linear Programming: The Exercises

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

Lecture 2: The Simplex method

MAT016: Optimization

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

OPERATIONS RESEARCH. Linear Programming Problem

Math Models of OR: Extreme Points and Basic Feasible Solutions

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

1. Consider the following polyhedron of an LP problem: 2x 1 x 2 + 5x 3 = 1 (1) 3x 2 + x 4 5 (2) 7x 1 4x 3 + x 4 4 (3) x 1, x 2, x 4 0

Introduction to linear programming

3 The Simplex Method. 3.1 Basic Solutions

CSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming

Optimization Methods in Management Science

Name: Section Registered In:

Math Models of OR: Some Definitions

February 17, Simplex Method Continued

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Introduction to Optimization (Spring 2004) Midterm Solutions

Spring 2017 CO 250 Course Notes TABLE OF CONTENTS. richardwu.ca. CO 250 Course Notes. Introduction to Optimization

Graphical and Computer Methods

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

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

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

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

Theory of Linear Programming

Chapter 3 Introduction to Linear Programming PART 1. Assoc. Prof. Dr. Arslan M. Örnek

February 22, Introduction to the Simplex Algorithm

MS-E2140. Lecture 1. (course book chapters )

3. Linear Programming and Polyhedral Combinatorics

LINEAR PROGRAMMING: A GEOMETRIC APPROACH. Copyright Cengage Learning. All rights reserved.

Review Solutions for Exam 1

Exam 3 Review Math 118 Sections 1 and 2

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

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

1. Determine by inspection which of the following sets of vectors is linearly independent. 3 3.

MS-E2140. Lecture 1. (course book chapters )

Review Problems Solutions MATH 3300A (01) Optimization Fall Graphically, the optimal solution is found to be x 1 = 36/7, x 2 = 66/7, z = 69/7.

The Simplex Algorithm

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

IE 400: Principles of Engineering Management. Simplex Method Continued

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

3. Linear Programming and Polyhedral Combinatorics

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

Simplex Algorithm Using Canonical Tableaus

Variants of Simplex Method

A Review of Linear Programming

CHAPTER 2. The Simplex Method

CLASS NOTES: 2 1 thru 2 3 and 1 1 Solving Inequalities and Graphing

Farkas Lemma, Dual Simplex and Sensitivity Analysis

IE 400 Principles of Engineering Management. Graphical Solution of 2-variable LP Problems

Understanding the Simplex algorithm. Standard Optimization Problems.

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

(b) For the change in c 1, use the row corresponding to x 1. The new Row 0 is therefore: 5 + 6

TIM 206 Lecture 3: The Simplex Method

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

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

Systems Analysis in Construction

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

DEPARTMENT OF MATHEMATICS

Lecture 2: The Simplex method. 1. Repetition of the geometrical simplex method. 2. Linear programming problems on standard form.

AMS341 HW1. Graphically solving this LP we find the optimal solution to be z = $10,000, W = C = 20 acres.

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

MATH 300, Second Exam REVIEW SOLUTIONS. NOTE: You may use a calculator for this exam- You only need something that will perform basic arithmetic.

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

Lecture slides by Kevin Wayne

UNIT-4 Chapter6 Linear Programming

THE UNIVERSITY OF HONG KONG DEPARTMENT OF MATHEMATICS. Operations Research I

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

The Simplex Algorithm

Graphing Systems of Linear Equations

ORF 522. Linear Programming and Convex Analysis

Optimization methods NOPT048

Summary of the simplex method

Simplex Method in different guises

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

Solutions to Math 51 First Exam October 13, 2015

Chapter 2: Linear Programming Basics. (Bertsimas & Tsitsiklis, Chapter 1)

1.5 F15 O Brien. 1.5: Linear Equations and Inequalities

AM 121: Intro to Optimization

Signature: Name (PRINT CLEARLY) and ID number:

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

7.1 Solving Systems of Equations

Part III: A Simplex pivot

Special cases of linear programming

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

Transcription:

Solutions to Review Questions, Exam. What are the four possible outcomes when solving a linear program? Hint: The first is that there is a unique solution to the LP. SOLUTION: No solution - The feasible set is empty. A unique solution (either with or without an unbounded feasible set). An unbounded solution - The feasible set is unbounded. An infinite number of solutions - Either by an unbounded set or the isoprofit lines are coincident with a boundary at the optimum.. The following are to be sure you understand the process of constructing a linear program: (a) Draw a production process diagram and set up the LP for Exercise 6, p. 98 (Sect..9) SOLUTION: See the figure below.

(b) Exercise, Chapter review SOLUTIONS: Be sure you can do these graphically. Solution to exercise : The optimal value is 69/7, where we have 6/7 chocolate cake and 66/7 vanilla (yes, the divisibility assumption is violated here). Solution to exercise : The LP is unbounded (no solution). (c) Exercise 6, 8 Chapter review (A ton is lbs) SOLUTIONS: Be sure you introduce your variables! 6. Let x be the pounds of Alloy used to produce one ton of steel and x be the pounds of Alloy. Then the objective function is: With: Carbon constraints: min z = 9/x + /x.x +.4x (.)().x +.4x (.5)() Silicon:.x +.5x (.8)().x +.5x (.5)() Lastly, nickel: Tensile strength:.x +.5x 8.x +.5x 4 4, x + 5, x, 45, Relationship between variables: x + x = Non-negative: x,. An interesting application of blending - The solution is in the back of the text. (d) Exercise, Chapter review. Hint: Consider using a triple index on your variables. SOLUTION: Let x ijk is the units of product, machine i, month j, for sale in month k. Let y ijk is the units of product, machine i, month j, for sale in month k. In order to simplify things, we note some quantities that are useful: Amount of Product for sale in Month : x + x Amount of Product for sale in Month : y + y Amount of Product for sale in Month : x + x + x + x Amount of Product for sale in Month : y + y + y + y

Then we have the objective function to maximize: 55(x +x )+(x +x +x +x )+65(y +y )+(y +y +y +y ) For constraints, here are Machine hour constraints (for Months, ): 4(x + x ) + 7(y + y ) 5 4x + 7y 5 Similarly, for Machine : (x + x ) + 4(y + y ) 5 x + 4y 5 Sales constraints (Month, then Month ): x + x y + y 4 x + x + x + x 9 y + y + y + y Also, all variables are non-negative. (e) Exercise 47, 5 in Chapter review. SOLUTIONS: For Exercise 47, see the back of the book. SOLUTION, Exercise 5: Here is a list of the variables: T, : Number of Type and Turkeys that are purchased D, : Pounds of dark meat used in Cutlet, (resp) W, : Pounds of white meat used in Cutlet, (resp) The objective function is to maximize: 4(W + D ) + (W + D ) T 8T Here are the constraints: (Cutlet demand) W + D 5 (Cutlet demand) W + D (Don t use more white meat than you have) W + W 5T + T (Don t use more dark meat than you have) D + D T + T (7% white meat) W /(W + D ).7 (6% white meat) W /((W + D ).6 T,, D,, and W, are all non-negative.. Convert the following LP to one in standard form. Write the result in matrix-vector form, giving x, c, A, b (from our formulation). with x, y is URS, z. min z = x 4y + z st x 4y 4 x + z 5 y + z x + y + z = SOLUTUION: Let x = [x, y +, y, z, e, s, s T. Then c = [, 4, 4,,,, T A = 4 4 b = 4 5

4. Consider again the Wyndoor company example we looked at in class: with x, x both non-negative. min z = x + 5x st x 4 x x + x 8 (a) Rewrite so that it is in standard form. SOLUTION: Define the extra variables x, x 4, x 5. Using the extra variables in order, the constraints become: x + x = 4 x + x 4 = x + x + x 5 = 8 And from this, it is easy to read off the coefficient matrix A. (b) Let s, s, s be the extra variables introduced in the last answer. Is the following a basic solution? Is it a basic feasible solution? x =, x = 6, s = 4, s =, s = 6 Which variables are BV, and which are NBV? SOLUTION: The matrix A has rank. If the solution has n m = 5 = zeros (and it is a solution), then it is a basic solution: Yes, this is a basic solution. It is also a basic feasible solution since every entry of the basic solution is non-negative. The variables x, x and x 5 are the basic variables (BV) and the variables x and x 4 are NBV. (c) Find the basic feasible solution obtained by taking s, s as the non-basic variables. In this case, we can row reduce the augmented matrix (remove columns and 5 from the original): 4 8 In this case, we have the (full) solution: 4 6 x = 4, x =, x =, x 4 = 6, x 5 = 5. Consider Figure, with points A(, ), B(, 4) and C(6, ), D(4, ) and E(4, ). Write the point E as a convex combination of points A, B and C. SOLUTION: First we ll find the point of intersection between line AE and BC. Call it E. We found it to be E ( 58, 4 ) (Sorry about the fractions!). By the time we re done, you should have: [ 4 = [ + 5 5 4 ( 4 [ 4 + 9 [ 6 )

Can E be written as a convex combination of A, B and D? If so, construct it. SOLUTION: No. The point E is above the convex hull of A, B and D (which is the triangle whose vertices are at A, B, D). Can A be written as a linear combination of A, B and D? If so, construct it. SOLUTION: Obvious typo there- I meant to say E can be written... Using E, we can set up the matrix and solve: [ 4 4 4 If the coefficients for the linear combination are c, c, c, we find them to be: C = 4 C C = + C C = C Therefore, there are an infinite number of ways to make this linear combination (which was expected, since three vectors in IR are not linearly independent). 6. Draw the feasible set corresponding to the following inequalities: with x, x non-negative. x + x 6, x x x, x 6 (a) Find the set of extreme points. SOLUTION: (, ), (, 6), (, ), (, ), (, ). (b) Write the vector [, T as a convex combination of the extreme points. SOLUTION: Since I get to choose, let s make it easy: [ = [ + [ [ [ [ + + + 6 Or, a little more complex: [ = [ + 6 6 [ + [ [ + [ + Figure : Figure for the convex combinations, Exercise 5. 5

Figure : Figure for Question (c) True or False: The extreme points of the region can be found by making exactly two of the constraints binding, then solve. SOLUTION: If we follow this recipe, we will get extreme points, but we ll also get non-feasible points (for example, the point (, 6)). Therefore, FALSE. (d) If the objective function is to maximize x + x, then (a) how might I change that into a minimization problem, and (b) solve it. SOLUTION: For part (a), we convert it by minimizing z, or min x x. For part (b), solve it graphically to get that the maximum occurs at (, ) and the maximum is 9. 7. Consider the unbounded feasible region defined by x x 4, x + x with x, x non-negative. Consider the vector p = [5,. (a) Show that p is in the feasible region. SOLUTION: Substitute the values into the constraints to see that they are both valid. (b) Set up the system you would solve in order to write p in the form given in Theorem (provide a specific vector d). SOLUTION: Directions of unboundedness can have slopes between / and, so we could choose d = [, T. But then [5, T [, T is not in the convex hull of the vertices, so we can make d = [, T. Therefore, [ 5 = [ [ [ [ 4 + σ + σ + σ And we could go ahead and solve by inspection, getting σ = /4, σ = and σ = /4. 8. Finish the definition: Two basic feasible solutions are said to be adjacent if: SOLUTION: Two basic feasible solutions are adjacent if they share all but one basic variable. 6

9. Let d be a direction of unboundedness. Using the definition, prove that this means that rd is also a direction of unboundedness, for any constant r. SOLUTION: We assume an LP in standard form, so our set S = {x Ax = b}. Then, d is a direction of unboundedness for S if x + λd S for all x S and λ. Therefore, in what is given, we can let u = rd and show that u is a direction of unboundedness: Let x be any point of S and λ. Then: x + λu = x + (λr) d which must be in S since d was a direction of unboundedness.. If C is a convex set, then d is a direction of unboundedness for C iff x + d C for all x C (Use the definition of unboundedness). SOLUTION: We have two directions- d is a direction of unboundedness for C implies x + d C is trivially true, since we can just make λ =. We now show that, if x+d C for all x C, then d is a direction of unboundedness for C: Let x be any point in S, and λ. Then show that x + λd S. Let λ = N + α, where N is a non-negative integer, and α <. Then x + λd = x + (N + α)d = (x + d) + ((N ) + α)d Now, since x = x + d, then x C, we can write this as: x + d + ((N ) + α)d and so on. Therefore, we have that x + Nd S Finally, since x + Nd + d C, then because C is convex, so will the vector x + Nd + αd C.. For an LP in standard form (see above), prove that the vector d is a direction of unboundedness iff Ad = and d. Solution: Show that if Ad =, with d, then d is a direction of unboundedness. Note that this means we have to show that y = x + λd S for every λ. Let x be in the feasible set, x S so that x. Now, Ay = A (x + λd) = Ax + λad = b + = b Wait! We re not done- Check that y (it is since λ, x, d ). Now go in the reverse: Suppose that we know that d is a direction of unboundedness. We show that Ad = and d. 7

Let x be in the feasible set. One path we could take is to suppose that, by way of contradiction, that Ad. Then A (x + λd) = Ax + λad = b + λk b But then x + λd is not an element of S (contradiction). The other part: Is d? If not, then at least one coordinate d i <. But then it is possible to find λ so that the i th coordinate of x + λd is negative (contradiction).. Show that the set of optimal solutions to an LP (assume in standard form) is convex. SOLUTION: Define S = { x Ax = b, c T x = L } Now, let y, y S. We show that all points on the line segment between them is also in S. Let y be a point between- Then there is a t so that: y = ty + ( t)y Now, y is also feasible, since And y will give the same optimal value, Ay = tay + ( t)ay = tb + ( t)b = b c T y = tc T y + ( t)c T y = tl + ( t)l = L. Let a feasible region be defined by the system of inequalities below: x + x 6 x + x x x, x The point (4, ) is in the feasible region. Find vectors d and b, b k and constants σ i so that the Representation Theorem is satisfied (NOTE: Your vector x from that theorem is more than two dimensional). SOLUTION: Graphing the region in -d, we see that the extreme points are: [ [ [ b =, b =, b = 4 And d can be any vector pointing outwards with a slope between and /. The easiest method to get the representation is to aim backwards at an extreme point, but using a vector that will be an allowable d. In this case, we can write: [ 4 = [ Using the matrix A from the LP in standard form (with variables in order: x, x, s, s, e ), we have: A = 8 + [ 4

From this, it is easy to solve for the remaining dimensions: Ax = b s = 6 + x x s = + x x e = + x And for the vector in the null space, replace (6,, ) by (,, ). Therefore, 4 4 4 = + 4. Let a feasible region be defined by the system of inequalities below: x + x x x x + x 5 x, x The point (, ) is in the feasible region. Find vectors d and b, b k and constants σ i so that the Representation Theorem is satisfied (NOTE: Your vector x from that theorem is more than two dimensional). SOLUTION: The point given is between two extreme points, [, T and [, T. Therefore, in two dimensions we have [ [ [ = t + ( t) t = We also get the matrix A in standard form, with column variables (in order): x, x, s, s, s, and s = x x + A = s = x + x + s = x x + 5 From which we get: = + 5. Suppose that λ λ λ n, and let σ,, σ n be non-negative constants so that n σ i =. Show that i= SOLUTION: λ σ λ + σ λ + σ n λ n λ n σ λ + σ λ + σ n λ n σ λ n + σ λ n + σ n λ n = (λ n ) i σ i = λ n (A similar proof works the other way, too) 9

6. Show that, if x is in the convex hull of vectors b, b k, then for any constant vector c, { } c T x max c T b i i SOLUTION: If x is in the convex hull of the vectors b i, then we can write x as a convex combination of them: x = α b + + α k b k Taking the dot product of both sides with c, we have: c T x = α (c T b ) + α k (c T b k ) which is the set up to the previous problem with λ j = c T b j. By that exercise, we know that c T x = α (c T b ) + α k (c T b k ) max i { c T b i } SIDE REMARK: Notice that this is a key element of the fundamental theorem of linear programming- The maximum and minimum of the objective function are attained at extreme points. 7. True or False, and explain: The Simplex Method will always choose a basic feasible solution that is adjacent to the current BFS. SOLUTION: That is true. It is because we will only replace one of the current basic variables with a new variable, therefore, the new BFS will keep all but one of the current set of basic variables. 8. Given the current tableau (with variables labeled above the respective columns), answer the questions below. x x s s rhs 4 / / / / 4 (a) Is the tableau optimal (and did your answer depend on whether we are maximizing or minimizing)? For the remaining questions, you may assume we are maximizing. ANSWER: This tableau is not optimal for either. If we were minimizing, we could still pivot using s. If we were maximizing, we could still pivot in x. (b) Give the current BFS. ANSWER: The current BFS is x = 4, x =, s = and s =. (c) Directly from the tableau, can I increase x from to and remain feasible? Can I increase it to 4? ANSWER: From the ratio test, x can be increased to in the first, and 6 in the second. However, increasing it to 4 would violate the first constraint. Summary: I can increase x from to, but not to 4. (d) If x is increased from to, compute the new value of z, x, s (assuming s stays zero). SOLUTION: z = 5 x = s =

(e) Write the objective function and all variables in terms of the non-basic (or free) variables, and then put them in vector form. SOLUTION: For the current tableau, z = 4 + x s, with x = 4 /x /s x = x x = s = /x + /s s = s 4 + x + s