Midterm 18s Sol
Midterm 18s Sol
Midterm 18s Sol
Pathak
July 12, 2018
(b) True. Since φ0 > 0, φ is increasing, so φ(f (x)) is convex by the composition rules.
√
(c) True. The function h(x, y) = xy is concave on R2++ and increasing in each
argument. Since f and g are concave and positive, h(f (x), g(x)) is concave by the
composition rules.
2. DCP rules. The function f (x, y) = −1/(xy) with dom f = R2++ is concave. Briefly
explain how√
to represent
√ it, using disciplined convex programming (DCP), limited to the
atoms 1/u, uv, v, u2 , u2 /v, addition, subtraction, and scalar multiplication. Justify
any statement about the curvature, monotonicity, or other properties
√ of the functions
you use. Assume these atoms take their usual domains (e.g., u has domain u ≥ 0),
and that DCP is sign-sensitive (e.g., u2 /v is increasing in u when u ≥ 0).
Solution.
√
Since f (x, y) = −(1/ xy)2 , it can be seen as the
√composition, f (x, y) = −g3 (g2 (g1 (x, y))),
2 2
where g3 (u) = u , g2 (u) = 1/u, and g1 (u, v) = uv. Note that g1 is concave on R++ and
positive, g2 is convex and decreasing on R++ , and g3 is convex and increasing. Thus,
g2 (g1 (x, y)) is DCP convex, and hence g3 (g2 (g1 (x, y))) is also DCP convex, so f is DCP
concave.
1
(c) the ‘exponential barrier’ of polyhedral constraints
m
X 1
f (x) = exp ,
i=1
bi − aTi x
(b) Concave. The function xT x/u is jointly convex in x and u. Hence, v − xT x/u is
concave, and also positive on the given domain. The result follows as log is concave
and increasing.
(c) Convex. The function 1/u is convex on R++ and on the given domain, bi − aTi x > 0,
so 1/(bi − aTi x) is convex in x. The result follows since exp(1/(bi − aTi x)) is the
composition of a convex increasing function with a convex function and because
sum of convex functions is convex.
(The second set is also the ball of radius π/2 centered about the origin in R2 .) The
intersection of a slab with a sublevel set of a convex function is convex.
2
(c) Convex. The function f (x) = xT A−1 x is concave, since its Hessian is 2A−1 which
is negative semidefinite since A ≺ 0. This set is the 0-superlevel set of a concave
function, hence convex. Another valid argument would be that if A ≺ 0, then
A−1 ≺ 0, so xT A−1 x < 0 for all nonzero x ∈ Rn . In particular, this means that the
set is just {0}, which is convex.
(b) DCP concave. The minimum of two concave functions is concave, and the maximum
of two affine functions is convex, so the given function is concave and also complies
with the DCP rules.
(c) Not compliant. Although the function log(exp(2x + 3) + exp(2y + 5)) is convex,
the given composition violates the DCP ruleset, since log is concave and increasing
(in particular, any precomposition could only result in a concave function, under the
DCP rules). One way to reformulate this function is log_sum_exp(2 * x + 3, 4 * y + 5),
which is the precomposition of the (convex) function log-sum-exp with affine func-
tions.