Name:

TakeHome Midterm Exam, Thursday, March 26, 2020.
Due: Noon, Monday, March 30, 2020.
Solutions

Please do all four problems. Show all work. You may use any result from class, the homeworks, or the texts, except where stated.

I will have WebEx office hours on Thursday from 1-2pm and on Friday from 11am-1pm.

 Q1 /20 Q2 /20 Q3 /20 Q4 /40 Total /100
1. (20 points; each point is worth 5 points) Let g n, h m, and H m×n. Assume rank(H) = m. We look at the LP
 (1)

1. Is the LP feasible?
2. Express the LP in an equivalent form min{cT x : Ax = b,x 0}. Show that if this problem has a finite optimal value then it has an unbounded set of optimal solutions.
3. The dual problem is then max{bT y : AT y c}. Does there exist a feasible dual solution y with (AT y) i < ci for some component i?
4. What must g, h, and H satisfy for (1) to have a finite optimal value? What can you say about the set of optimal solutions to (1) in this case?

Solution:

1. Yes, since H has full row rank, so the system of equations Hx = h is consistent.
2. Assume x* is optimal. Let

where e is the vector of ones in n. Then x(λ) is feasible in the modified LP for any λ 0, and cT x(λ) = cT x*. So the modified problem has an unbounded set of optimal solutions.

3. Dual problem:

The dual constraints imply HT y = g, so NO, no dual feasible solution satisfying the given condition exists.

4. The primal problem is always feasible. So either it is unbounded or has a finite optimal value. It has a finite optimal value if and only if the dual is feasible, that is, if and only if there exists y with HT y = g, that is, if and only if g is in the row space of H. In this case, every feasible solution has exactly the same value.
2. (20 points) The stochastic program
 (2)

has second stage cost

 (3)

Assume all matrices and vectors are dimensioned appropriately. In class, we discussed solving (2) using the L-shaped decomposition method. In class, we only considered the case where the problem has complete recourse, so the second stage problem (3) is feasible for any x feasible in (2).

How can the method be modified if the assumption of complete recourse does not hold? (Assume the dual LP to the subproblem (3) is feasible.)

Solution:

In the L-shaped method, we choose a first stage decision x then solve the dual of the second stage problem in each scenario to find πs, and then add the constraint

If the first stage decision is infeasible then there exists a scenario ξs where the dual is unbounded. The dual is

Hence there exists a dual ray π with WT π 0 and T π > 0. This π is always a ray, and the dual subproblem will be unbounded for any x satisfying T π > 0. In other words, any x satisfying T π > 0 will be infeasible in scenario ξs. Thus, if we determine that x is infeasible in some scenario ξs with dual ray π, we add the constraint

to the Master Problem. Equivalently,

3. (20 points) The ampl model file midterm20q3.mod and run file midterm20q3.run generate a random feasible linear program of the form
 (4)

with m = 10 and n = 30. The seed is contained in the data file, so choose a random seed and generate an LP. Note that cj = 1 for all j, and bi = j=1n(A ij - 1) for all i. We consider the robust LP model

 (5)

where âij = 1 for all i, j, and Γi = 15 for all i = 1,, 10. Solve (5). In addition to your optimal x and optimal value, submit your seed, and also submit a data file containing A.

Note: You don’t need to use AMPL to solve the robust problem, you’re welcome to use a different LP solver. You will need to run AMPL to generate the data file using the command

ampl: model midterm20q3.run;

This command will display the A matrix, which you could copy and paste into another solver. The run command also generates a data file containing A, which you can email to me: please put your name in the title of the file.

(If you don’t even want to use AMPL to generate the data, ensure you generate an instance in the same way, and submit your A matrix using exactly the formatting indicated in the run file.)

Solution:

Solve the LP

where each âij = 1. The optimal value is probably in the mid-20s. The non-robust version probably has an optimal value in the high teens. The ampl model and run files can be found on LMS and the course webpage.

4. (40 points. Parts (a)–(f) are worth 5 points each, part (g) is worth 10 points.) Consider the standard form linear program
 (6)

where A m×n and rank(A) = m, and b and c are dimensioned appropriately and c has at least one nonzero component. For any nonnegative scalar parameters μ and ν, we can set up a relaxation of (6):

 (7)

1. Show that the optimal value of (7) provides a lower bound for the optimal value of (6).
2. Let be an optimal solution to (7). Show that cT < z, the optimal value for (6).
3. The function f(x) is convex and differentiable with gradient
 (8)

where

Any minimizer of f(x) must satisfy f(x) = 0. Show that if x is a minimizer of f(x) then x is infeasible in (6).

4. Let x satisfy f(x) = 0. Construct a dual feasible solution y to (6), and hence find a lower bound z(y) on the optimal value of (6).
5. Let x be a solution to (6). Express z(μ,ν) in terms of cT x and z(y) from part 4d.
6. Let x minimize f(x). We have constructed three lower bounds on the optimal value of 6, namely cT x, f(x), and z(y). Which one of these is largest?
7. Solve 7 for the LP

for a generic μ > 0, ν > 0. What is the dual solution you obtain using the construction of part 4d? (Hint: the optimal solution has x1 < 0, x2 > 0.)

Solution:

1. We have three cases:
• (6) is infeasible: Then z = +, so z(μ,nu) must be a lower bound.
• (6) is unbounded: Then there exists a ray d with Ad = 0, d 0, and cT d < 0, and a feasible point x. Then for any α 0, we have

as α →∞. Hence, we get z(μ,ν) = -∞ for any μν 0.

• (6) has an optimal solution x: Then

as required.

2. We have

We need to show this is a strict inequality. We assume it is an equality and derive a contradiction.

Note that we have equality in the first inequality only if A = b and 0. Pick a component j with cj0. Let ej denote the jth unit vector and let aj denote the jth column of A. Define

for ϵ 0. Note that

Hence does not minimize (7), a contradiction.

3. Let x be a minimizer of (7). Assume x is feasible in (6), so Ax = b and x 0. Then f(x) = c0, so x is not a minimizer.
4. Let y = μ(b - AT x). Since f(x) = 0, we have dual slacks

from the definition of t. Hence, the constructed y is dual feasible. We get a lower bound of

5. We have

6. From the proof of part (b), we have cT x z(μ,ν). Thus we have

7. The point x solves (7) if and only if f(x) = 0. From the hint and from (8), we must have
 (9)

From the second line, we have

 (10)

and so from the first line we have

 (11)

It follows from (10) that

 (12)

It follows from (10) that

 (13)

Note that the dual problem is

which has optimal solution y = .