Name:

MATP6640/ISYE6770
Linear Programming
Spring 2022

Midterm Exam, Friday, March 18, 2022.
Solutions

Please do all four problems. Show all work. No books or calculators allowed. You may use any result from class, the homeworks, or the texts, except where stated. You may use one sheet of handwritten notes. The exam lasts 110 minutes.

Q1       /25



Q2       /25



Q3       /30



Q4       /20






Total      /100
  1. (25 points) The linear program min{cT x : Ax = b,x 0} has
         ⌊                  ⌋          ⌊     ⌋
         1  3  - 2   1                10
A =  ⌈   2  0    3  - 4 ⌉,     b = ⌈   2 ⌉

       - 1  2    1   4                 5

    and the point x* = (3,2,0,1)T is an optimal solution.

    1. (5 points) Show x* is not a basic feasible solution.
    2. (10 points) Find a nonzero direction d 4 satisfying Ad = 0 with d j = 0 if xj* = 0.
    3. (10 points) What can you say about cT d? Justify your answer.

    Solution:

    1. Row reduce the 3 columns of A used by x*:
           ⌊             ⌋     ⌊              ⌋     ⌊          ⌋
         1  3    1          1    3   1           1  3  1
A =  ⌈   2  0  - 4 ⌉ -→  ⌈  0  - 6  - 6 ⌉ -→  ⌈  0  1  1 ⌉
       - 1  2    4          0    5   5           0  0  0

      so the set of columns used by x* gives a submatrix of A of rank only 2.

    2. We have
                            ⌊     ⌋
⌊                  ⌋      2      ⌊    ⌋
     1  3  - 2   1    | - 1 |       0
⌈    2  0    3  - 4 ⌉ |⌈   0 |⌉  = ⌈  0 ⌉
   - 1  2    1   4                  0
                          1

      so we can take d = (2,-1, 0, 1)T .

    3. We must have cT d = 0, since both x* + 2d and x*- d are feasible, so if cT d0 then one of these two feasible points would be better than x*, contradicting the optimality of x*.
  2. (25 points)

    A primal LP is

    minf∈ℝ4    15f1  +   25f2  +   13f3  +   14f4
subject to    f1 +     f2                      =   25
                                 f3  +     f4  =   20

              f1                               ≤   20
                       f2                      ≤   15
              f1           +     f3            ≤   35
                       f2            +     f4  ≤   25
                                            f  ≥   0

    The corresponding dual problem is

    max σ∈ℝ2,y∈ℝ6  25σA   +20 σB  - 20w1   - 15w2  - 35w3   - 25w4
subject to       σA             - w1             - w3           ≤   15

                σA                      - w2             - w4  ≤   25
                         σB                     - w3           ≤   13
                         σB                              - w4  ≤   14
                     σ free,                               w   ≥    0

    Find optimal solutions to the primal and dual problems.

    Solution:

    Variable f1 has far smaller cost than f2, so we try to make f1 as large as possible. Similarly, if we have a choice between f3 and f4, we would pick f3. This gives a primal feasible solution:

    f1 = 20, f2 = 5,f3 = 15,f4 = 5

    with value

    15 × 20 + 25 × 5 + 13 × 15 + 14 × 5 = 300 +  125 + 195 + 70 = 690.

    If we can find a dual feasible solution that satisfies complementary slackness then we have an optimal solution.

    All the primal variables are positive, so we need all four dual constraints to hold at equality. The 2nd and 4th primal inequality constraints are strictly satisfied, so we need w2 = w4 = 0. This implies we need

    σA  = 25,σB =  14,w3 =  1,w1 = 9,w2 =  w4 = 0.

    Since we are primal and dual feasible and we satisfy complementary slackness, we are optimal.

    Check: dual objective function value is

    25 × 25 + 20 × 14 - 20 × 9 - 35 × 1 =  625 + 280 - 180 - 35 = 690.✓

  3. (30 points; each part is worth 5 points) We have a primal-dual pair of linear programs
    minx ∈ℝn  cTx                     maxy ∈ℝm,s∈ℝn   bTy
s.t.       Ax   =  b  (P )        s.t.            AT y  +   s  =  c  (D )

            x   ≥  0                               y free,  s  ≥  0

    where the dual slack variables have been included explicitly. Assume both problems are feasible. We let ej n denote the jth unit vector. We also work with the related primal-dual pair of problems

    mind ∈ℝn  - eTj d                     maxp ∈ℝm,q∈ ℝn     0
s.t.        Ad   =   0  (Pj )        s.t.            AT p  +  q  =   - ej (Dj )
              d  ≥   0                               p free, q  ≥   0

    1. Show that problem (Pj) is always feasible.
    2. Assume (Pj) has an unbounded optimal value. Show xj is unbounded in the feasible region of (P).
    3. Assume (Pj) has a finite optimal value. What is that optimal value? Can xj be unbounded in the feasible region of (P)? Why or why not?
    4. Assume (Dj) is feasible. Can sj be unbounded in the feasible region of (D)? Why or why not?
    5. Assume (Dj) is infeasible. Can sj be unbounded in the feasible region of (D)? Why or why not?
    6. Show exactly one of the following two statements is true:
      • xj is unbounded in the feasible region of (P).
      • sj is unbounded in the feasible region of (D).

    Solution:

    1. Note that d = 0 is always feasible in (Pj).
    2. Since (Pj) has an unbounded optimal value, there must exist a ray d 0 with -ejT d < 0, Ad = 0. Let x be feasible in (P). Then x + αd is feasible in (P) for all α 0, and we have (x + αd)j →∞ as α →∞.
    3. (Pj) is a homogeneous problem, so the only possible finite optimal value is 0. For xj to be unbounded in (P), there must exist a direction d 0 with dj > 0, Ad = 0. But no such d exists since (Pj) has optimal value 0.
    4. Let y,s be feasible in (D) and let p,q be feasible in (Dj). Then y = y + αp, s = s + αq + αej is feasible in (D) for any α 0. Note that sj →∞ as α →∞.
    5. For sj to be unbounded, we need to find a direction ˆp ,ˆq with AT ˆp+ qˆ = 0, ˆq0, ˆqj > 0. We can scale this direction so that ˆq j 1. Then pˆ , (ˆq- ej) is feasible in (Dj). If (Dj) is infeasible then no such direction exists, so sj must be bounded.
    6. There are 2 possible cases for (Pj) since it is always feasible:
      • (Pj) has unbounded optimal value, so (Dj) is infeasible, so in this case we have xj is unbounded and sj is bounded.
      • (Pj) has zero optimal value, so (Dj) is feasible, so in this case we have xj is bounded and sj is unbounded.
  4. (20 points) Consider the semi-infinite linear program
    maxy ∈ℝ2     b1y1 + b2y2
subject to  w  y +  w y   ≤   1    for all w ∈ Q  ⊆ ℝ2       (SILP  )
             1 1    2 2
                  y1,y2      free

    where we have a constraint for each w Q, and we define

         (                       w  + 3w  ≤  9   )
     {        2                1     2       }
Q =  (  w ∈  ℝ ,w  free  :     w1 + w2 ≤ 5    )  .
                           - 3 ≤ w1 - w2 ≤ 5

    Derive an equivalent linear program to (SILP) with the same variables y1, y2 and with a finite number of constraints.

    Solution:

    We can sketch Q:

    Any point in Q can be represented as a convex combination of the extreme points plus a nonnegative multiple of the ray:

    [     ]      [   ]      [   ]      [    ]     [     ]
  w1           0          3          5          - 1
  w     = λ1   3   +  λ2  2   +  λ3  0    + μ   - 1  ,
    2

    with λ1 + λ2 + λ3 = 1,λj 0 for j = 1, 2, 3,μ 0.

    So (SILP) is equivalent to the LP with 4 constraints:

    maxy ∈ℝ2    b1y1  +    b2y2
subject to             3y2  ≤   1
            3y1  +     2y2  ≤   1         (LP  )

            5y1             ≤   1
            - y1 -      y2  ≤   0
                     y1,y2      free

    The feasible region for this LP is as follows:

    Note that we have

     T
w  y = 3y2λ1 + (3y1 + 2y2)λ2 + 5y1λ3 + (- y1 - y2)μ ≤ 1   if y feasible in (LP ).

    So if y is feasible in (LP) then it is feasible in (SILP).

    Conversely, if y is not feasible in (LP) then either wT y > 1 for one of the extreme points of Q, or y1 + y2 < 0, which implies wT y > 1 for w = -t(1, 1)T Q for large enough t. So y is not feasible in (SILP).

    Thus the two problems are equivalent.