19fall Mid Sol
19fall Mid Sol
MAT 3007
Nov 6, 2019
INSTRUCTIONS
d) There are 6 questions and 100 points in total. Except the true or false
questions, write down the reasonings for your answers.
NAME (signed)
NAME (printed)
MAT3007 Midterm - Nov 2019 Page 2 of 9
State whether each of the following statements is True or False. For each part, only your answer,
which should be one of True or False, will be graded. Explanations will not be read.
(a) For a linear optimization problem in the standard form, suppose it has a finite optimal solution,
then if one increases an objective coefficient (e.g., from 1 to 2), the optimal value will not
decrease. True
(b) In a linear optimization problem, two different basis must correspond to two different vertices.
False
(c) For linear optimization, if a primal problem is feasible, then the dual problem must be feasible
too. False
(d) Let x be an optimal solution to a linear optimization problem. Now we add another constraint.
If x satisfies the additional constraint, then it must still be optimal. True
(e) Let x and y be feasible solutions to a linear optimization problem and its dual, respectively.
Then if they satisfy all the complementarity conditions, they must both be optimal solutions.
True
(f) In the simplex method for linear optimization problem, degeneracy happens when there are
multiple optimal solutions. False
MAT3007 Midterm - Nov 2019 Page 3 of 9
Use two-phase simplex method to solve the following linear optimization problem:
minimize x5 +x6
s.t. x1 +x2 +x3 +x5 = 7
2x1 −2x2 +x3 −x4 +x6 = 10
x1 , x2 , x3 , x4 , x5 , x6 ≥ 0.
We write down the initial tableau for the phase-one problem (the top row worths 2 points)
B -3 1 -2 1 0 0 -17
5 1 1 1 0 1 0 7
6 2 -2 1 -1 0 1 10
Then in the first iteration, we choose the number 2 to be the pivot element, the next table becomes
(1pt):
We choose the second column to be the incoming column, and the number 2 to be the pivot element,
the next table becomes (1pt)
B 0 0 0 0 1 1 0
2 0 1 1/4 1/4 1/2 -1/4 1
1 1 0 3/4 -1/4 1/2 1/4 6
Now we construct the initial tableau for the original problem (phase two problem). We need to
calculate the reduced cost for x3 and x4 . We have (note that the order of B is (2,1))
B 0 0 1/4 1/4 8
2 0 1 1/4 1/4 1
1 1 0 3/4 -1/4 6
The reduced costs are all non-negative, thus the solution is already optimal. Thus the optimal
solution to the original problem is x1 = 6, x2 = 1, x3 = 0, x4 = 0. And the optimal value is 8
(4pts).
MAT3007 Midterm - Nov 2019 Page 5 of 9
Answer. The complementarity conditions include (each wrong equation costs 2 points)
x1 · (y1 + 2y2 − 1) = 0
x2 · (y1 − 2y2 − 2) = 0
x3 · (y1 + y2 − 1) = 0
y2 · (2x1 − 2x2 + x3 − 10) = 0
(c) Use the complementarity conditions and the answer to the previous question to find out the dual
optimal solution. (5pts)
Answer. From the previous question, we know that the optimal solution is x1 = 6, x2 = 1,
x3 = 0. Thus by the complementarity condition, we must have at optimal solution y1 +2y2 −1 =
0 and y1 − 2y2 − 2 = 0. Solve these equations, we have y1 = 3/2, y2 = −1/4. (5pts)
If one solves problem 2 incorrectly but uses the right idea here, then one can get as much
as 3 points.
MAT3007 Midterm - Nov 2019 Page 6 of 9
The following table gives the final simplex tableau when solving the standard form of the above
problem:
(a) What is the optimal solution and the optimal value to the original problem? (4pts)
(c) In what range can we change the second right hand side number 7 so that the current optimal
basis is still the optimal basis? (7pts)
Answer. Consider we change the current b to b + ∆b with ∆b = [0; λ; 0]. We need to ensure
that A−1
B (b + ∆b) ≥ 0. (2pts)
Thus we have
11 1 1 −1/2 0 11 1
A−1
B (b+∆b) =
4 + 0 2/5 1/10 · λ = 4 +λ 2/5 ≥ 0 (2pts) ,
5 0 1/5 3/10 0 5 1/5
which implies
λ ≥ −11, λ ≥ −10, λ ≥ −25.
Thus overall λ ≥ −10 (1pt), i.e., the range is [−3, ∞) (2pts).
MAT3007 Midterm - Nov 2019 Page 7 of 9
(d) In what range can we change the second objective coefficient 1 so that the current optimal basis
is still the optimal basis? (7pts)
c̄new
N = c̄N − ∆cTB A−1
B AN
10 1/2 1 −1/2
= [12/5, 7/5, 1/5, 4/5] − [0, λ, 0]T · 4/5 3/10 2/5 1/10
2/5 −1/10 1/5 3/10
= [12/5, 7/5, 1/5, 4/5] − λ · [4/5, 3/10, 2/5, 1/10] ≥ 0 (3pts)
Solving from the above, we have λ ≤ 3, λ ≤ 14/3, λ ≤ 1/2, λ ≤ 8. Thus overall λ ≤ 1/2 and
the range for the coefficient is (−∞, 3/2]. (2pts)
MAT3007 Midterm - Nov 2019 Page 8 of 9
Consider a factory that produces certain lengths of tubes. The raw materials are tubes of W meters
and there are I types of products each with length wi (i = 1, ..., I). The demand of product type i
is di . The objective is to use the minimal number of raw materials to meet the demand.
To solve this question, we consider a set of P cutting patterns (we consider the set of cutting pat-
terns as given). A cutting pattern p can cut a raw material into api number of product i. For
example, if W = 20, w1 = 5, w2 = 7, then there are 3 patterns which are {a11 = 4, a12 = 0},
{a21 = 2, a22 = 1} and {a31 = 1, a32 = 2} (other patterns are not efficient in using materials).
In the following, please write an optimization formulation to determine the best way of producing.
That is, to write an optimization problem to determine how many each patterns to use in order to
use the minimal number of materials to meet the demand.
Answer. Let xp ∈ Z be the decision variable indicating the number of pattern p used in the produc-
tion. (3pts)
The objective is then to minimize x1 + · · · + xP (3pts).
PP
The constraint is that for each type of product, we satisfy the demand, that is p=1 xp api ≥ di
(4pts).
Therefore, the optimization problem is (4pts):
PP
minimize p=1 xp
PP
subject to p=1 xp api ≥ di , ∀i = 1, ..., I
xp ≥ 0, xp ∈ Z
Remark. If one didn’t write the integer constraint, then 2 points will be deducted.
MAT3007 Midterm - Nov 2019 Page 9 of 9
maximizex cT x
subject to aT x ≤ b + uT x; ∀u ∈ {v : Av ≤ w}
x≥0
Answer. For the constraint, basically it means that aT x ≤ b + minv :Av ≤w v T x. (2pts)
Now we apply the dual to the inside optimization problem
minimize xT v
subject to Av ≤ w
maximize wT η
subject to AT η = x
η≤0
maximizex,η cT x
subject to aT x ≤ b + wT η
AT η = x
x ≥ 0, η ≤ 0
Solving the above problem will give the optimal solution to the original problem.