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