This Study Resource Was: Final Examination
This Study Resource Was: Final Examination
This Study Resource Was: Final Examination
FINAL EXAMINATION
m
er as
co
eH w
Surname
o.
rs e
ou urc
Legal Given Name(s)
UW Student ID Number
o
aC s
vi y re
Instruction:
ed d
2. This is a written, open-book exam (only unannotated lecture slides are allowed). Please turn
o↵ all electronic media and store them under your desk.
3. Be neat. Poor presentation will be penalized.
sh is
4. No questions will be answered during the exam. If in doubt, state your assumption(s)
Th
and continue.
5. Do not leave during the examination period without permission.
6. Do not stand up until all the exams have been picked up.
Do well!
https://www.coursehero.com/file/58351395/exam2017pdf/
1
Question 1 (15 points)
Consider the non-linear optimization problem
m
d) Derive the KKT conditions for the given problem.
er as
co
eH w
Question 2 (15 points)
o.
rs e
You have to design a 3-D block as a water storage. The volume of the block has to be at least
ou urc
9 cubic meters. The base area of the block is at most 6 square meters, while the height of the
block is at least 1 and at most 2 meters. Your task is to design the block that satisfies the above
conditions and the di↵erence between the base area and the height of the block is maximal.
o
aC s
vi y re
ed d
ar stu
not convex.
Th
a) f (x) = 3x2 + 4x
b) f (x) = log x + 2
https://www.coursehero.com/file/58351395/exam2017pdf/
2
Question 4 (20 points)
Consider the function f (x) = f (x1 , x2 ) = (x1 + x2 )2 .
m
Question 5 (15 points)
er as
co
The null space of a matrix A 2 Rm⇥n (with m < n) is defined to be the set of all x 2 Rn such
eH w
that Ax = 0. The projection of a point z onto a convex set S is defined as the point x⇤ 2 S which
o.
is closest in Euclidean distance to z. Find a closed form solution for the projection of z onto the
rs e
convex set {x | Ax = 0}. (You can assume A is full rank, i.e., rank A = m.) To solve the problem,
ou urc
set it up as a constrained optimization, write out the Lagrangian, and derive the KKT conditions.
o
You are the manager of a large company where you face the decision of selecting the right projects
to maximize the total returns. There are n possible projects {Pk }nk=1 . Each project Pk runs for 3
years and has an overall return of ck dollars. The financial constraints are that, in year t, there
are only a total of ft dollars available for these projects, whereas project Pk requires at least ak,t
ed d
dollars (for t = 1, 2, 3 and k = 1, . . . , n). Formulate this problem as an integer program (i.e., a
ar stu
min x1 + 2x2
s.t. x1 + x2 1, x1 x2 1, x1 0, x2 0
https://www.coursehero.com/file/58351395/exam2017pdf/
3
Solutions to Final Exam Winter 2017
Solutions to Question 1
m
er as
a) Yes, the objective function and all the constraints are convex, and the
co
equality constraint is linear.
eH w
b) (0.5, 0.5)T is an ideal Slater point because none of the inequality con-
o.
straints are active.
rs e
ou urc
c) The Lagrangian is
k
X
L(x, , µ) =f (x) + j gj (x) + µT (b Ax)
o
j=1
aC s
2x1 2x2
=e + e + 1 (x21 + x22 3x1 4x2 )
vi y re
+ 3 ( x1 ) + 4 ( x2 ) + µ(x1 + x2 1) .
Denote g( , µ) = inf x {L(x, , µ)}.
ed d
sup g( , µ)
,µ
s.t. 0.
sh is
g(x) 0
Ax = b
x 0
0
rx L(x, , µ) = 0
j gj (x) = 0, j = 1, · · · , k ,
https://www.coursehero.com/file/58351395/exam2017pdf/
where
2e2x1 + 1 (2x1 3) 3 +µ
rx L(x, , µ) = .
2e 2x2 + 1 (2x2 4) 4+µ
Solutions to Question 2
a) The problem can be formulated as follows
max |d · l h|
l,d,h
m
s.t. h·d·l 9
er as
d·l 6
co
eH w
h 1
o.
h2
rs e l 0
ou urc
d 0.
2 3
0 h d
r2 g1 (l, d, h) = 4 h 0 l 5.
d l 0
ed d
g1 (l, d, h) is not convex. So, the first constraint is not convex and this is
not a convex optimization problem.
sh is
https://www.coursehero.com/file/58351395/exam2017pdf/
Consequently, the KKT conditions of the NLO formulation are:
9 h·d·l 0
d·l 60
1 h0
h 20
l0
d0
d y1 (h · d) + y2 d y5 = 0
m
er as
l y1 (h · l) + y2 l y6 = 0
co
1 y1 (l · d) y3 + y4 = 0
eH w
y1 (9 h · d · l) = 0
o.
y2 (d · l 6) = 0
rs e
ou urc
y3 (1 h) = 0
y4 (h 2) = 0
y5 l = 0
o
y6 d = 0
aC s
y 0.
vi y re
the objective function value is smaller than for h = 1.5. So, h = 1.5 and
ar stu
Solutions to Question 3
sh is
y 4
a) f ⇤ (y) = maxx x · y (3x2 + 4x). By stationarity y 6x 4 = 0 ) x = 6
.
Th
2
Thus f ⇤ (y) = (y 124) .
https://www.coursehero.com/file/58351395/exam2017pdf/
Solutions to Question 4
1.
2(x1 + x2 )
rf (x) = .
2(x1 + x2 )
4.
2 2
m
2
r f (x) = .
er as
2 2
co
eH w
5. r2 f (x) is not invertible. No Newton steps are defined.
o.
rs e
Solutions to Question 5
ou urc
minx 12 kx zk22 such that Ax = 0. Lagrangian L(x, ) = 12 kx zk22 + T Ax.
KKT conditions give Ax⇤ = 0 and x⇤ z + AT ⇤ = 0. The second condition
(on multiplying by A) yields Az = AAT ⇤ , implying ⇤ = (AAT ) 1 Az,
o
Solutions to Question 6
The problem can be formulated as follows
ed d
X
ar stu
max ck · xk
x
k
X
s.t. akt · xk ft , t = 1, 2, 3
sh is
k
xk 2 {0, 1}, k = 1, · · · , n .
Th
Solutions to Question 7
a) Clear.
b) (0, 0)T is the optimal point, which can be verified by the Rockafellar-
Pshenichnyi condition.
https://www.coursehero.com/file/58351395/exam2017pdf/