EE5121: Convex Optimization: Assignment 5
EE5121: Convex Optimization: Assignment 5
EE5121: Convex Optimization: Assignment 5
Assignment 5
1. Show that the following functions are convex using properties that preserve convexity:
(a) f (x1 , x2 ) = (x1 − 4x2 )4 + 2e2x1 +3x2 −9
(b) KL Divergence: g(x, y) = y log y − y log x on R2++
2. Here are some of the commonly used objective functions in Neural Networks. Determine whether they are
convex or not? A Neural Network model takes in N input samples, where xi ∈ Rd is the feature vector of the
ith input sample. w ∈ Rd is the weight associated with each sample and ri = < w, xi >∈ R; yi is the output
for the ith input sample.
6. (a) Give a visual meaning of computing the Legendre-Frenchel conjugate in 1-D case when f is a convex
function from R to R
(b) Find the Legendre-Frenchel conjugate for the convex function f (x) = |x|
(c) Sketch roughly the Legendre-Frenchel conjugate of the general piecewise-linear convex function sketched
below in Figure 1.
f (x) = max{a1 x + b1 , a2 x + b2 , a3 x + b3 }
where
a1 < a2 < a3
1
y
a1 ≤ a2 ≤ a3
f3(x) = a3x + b3
g(x) = yx
f2(x) = a2x + b2 x
f1(x) = a1x + b1
(HINTS: Use the visual meaning in (a). f (x) = |x| = max{x, −x}. So, use that intuition for extending
it to the general case here. Consider various regions for evaluating the Legendre-Frenchel conjugate
f ∗ (y) as y < a1 , a1 < y < a2 ,a2 < y < a3 ,a3 < y)
7. (a) In the last tutorial, we proved that a differentiable convex function defined on whole of Rn cannot be
bounded. What about quasiconvex functions?
(b) In the last tutorial, we saw that convex functions are continuous in the interior of their domains. What
about quasiconvex functions?
(c) For a differentiable convex function, using first order conditions, it was shown that when the derivative
or gradient vanishes, then that point is the global minimum. Is it true for quasiconvex functions?
Hint: Think of simple one dimensional counter examples by imagining how all can the graphs of
quasiconvex functions look like.
EXTRA QUESTIONS:
8. If fi : Rn →
− (−∞, ∞] be given functions for i ∈ I, where I is an arbitrary index set, and let f : Rn →
− (−∞, ∞]
be the function given by
If fi , i ∈ I, are convex, then f is also convex, while if fi , i ∈ I, are closed, then f is also closed.
(Definition: A functions f is define to be closed, if the epigraph epi( f ) is closed)
Show that Γ is log-convex. You can use the Holder’s inequality: for any two functions f , g : R → R, if
p, q ≥ 1 and 1p + 1q = 1, then
Z +∞ Z +∞
1/p Z +∞
1/q
| f (t)g(t)|dt ≤ | f (t)| p dt |g(t)|q dt .
−∞ −∞ −∞