



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




We say a vector g ∈ Rn^ is a subgradient of f : Rn^ → R at x ∈ dom f if for all z ∈ dom f ,
f (z) ≥ f (x) + gT^ (z − x). (1)
If f is convex and differentiable, then its gradient at x is a subgradient. But a subgradient can exist even when f is not differentiable at x, as illustrated in figure 1. The same example shows that there can be more than one subgradient of a function f at a point x. There are several ways to interpret a subgradient. A vector g is a subgradient of f at x if the affine function (of z) f (x) + gT^ (z − x) is a global underestimator of f. Geometrically, g is a subgradient of f at x if (g, −1) supports epi f at (x, f (x)), as illustrated in figure 2. A function f is called subdifferentiable at x if there exists at least one subgradient at x. The set of subgradients of f at the point x is called the subdifferential of f at x, and is denoted ∂f (x). A function f is called subdifferentiable if it is subdifferentiable at all x ∈ dom f.
Example. Absolute value. Consider f (z) = |z|. For x < 0 the subgradient is unique: ∂f (x) = {− 1 }. Similarly, for x > 0 we have ∂f (x) = { 1 }. At x = 0 the subdifferential is defined by the inequality |z| ≥ gz for all z, which is satisfied if and only if g ∈ [− 1 , 1]. Therefore we have ∂f (0) = [− 1 , 1]. This is illustrated in figure 3.
The subdifferential ∂f (x) is always a closed convex set, even if f is not convex. This follows from the fact that it is the intersection of an infinite set of halfspaces:
∂f (x) =
⋂
z∈dom f
{g | f (z) ≥ f (x) + gT^ (z − x)}.
x 1 x 2
f (x 1 ) + gT 1 (z − x 1 )
f (x 2 ) + gT 2 (z − x 2 )
f (x 2 ) + gT 3 (z − x 2 )
f (z)
Figure 1: At x 1 , the convex function f is differentiable, and g 1 (which is the derivative of f at x 1 ) is the unique subgradient at x 1. At the point x 2 , f is not differentiable. At this point, f has many subgradients: two subgradients, g 2 and g 3 , are shown.
epi f
(g, −1)
Figure 2: A vector g ∈ Rn^ is a subgradient of f at x if and only if (g, −1) defines a supporting hyperplane to epi f at (x, f (x)).
f (z) = |z| ∂f^ (x)
z
x
Figure 3: The absolute value function (left), and its subdifferential ∂f (x) as a function of x (right).
3 Calculus of subgradients
In this section we describe rules for constructing subgradients of convex functions. We will distinguish two levels of detail. In the ‘weak’ calculus of subgradients the goal is to produce one subgradient, even if more subgradients exist. This is sufficient in practice, since subgradient, localization, and cutting-plane methods require only a subgradient at any point. A second and much more difficult task is to describe the complete set of subgradients ∂f (x) as a function of x. We will call this the ‘strong’ calculus of subgradients. It is useful in theoretical investigations, for example, when describing the precise optimality conditions.
For α ≥ 0, ∂(αf )(x) = α∂f (x).
Suppose f = f 1 + · · · + fm, where f 1 ,... , fm are convex functions. Then we have
∂f (x) = ∂f 1 (x) + · · · + ∂fm(x).
This property extends to infinite sums, integrals, and expectations (provided they exist).
Suppose f is convex, and let h(x) = f (Ax + b). Then ∂h(x) = AT^ ∂f (Ax + b).
Suppose f is the pointwise maximum of convex functions f 1 ,... , fm, i.e.,
f (x) = max i=1,...,m fi(x),
where the functions fi are subdifferentiable. We first show how to construct a subgradient of f at x. Let k be any index for which fk(x) = f (x), and let g ∈ ∂fk(x). Then g ∈ ∂f (x). In other words, to find a subgradient of the maximum of functions, we can choose one of the functions that achieves the maximum at the point, and choose any subgradient of that function at the point. This follows from
f (z) ≥ fk(z) ≥ fk(x) + gT^ (z − x) = f (x) + gT^ (y − x).
More generally, we have
∂f (x) = Co ∪ {∂fi(x) | fi(x) = f (x)},
i.e., the subdifferential of the maximum of functions is the convex hull of the union of subdifferentials of the ‘active’ functions at x.
Example. Maximum of differentiable functions. Suppose f (x) = maxi=1,...,m fi(x), where fi are convex and differentiable. Then we have
∂f (x) = Co{∇fi(x) | fi(x) = f (x)}.
At a point x where only one of the functions, say fk, is active, f is differentiable and has gradient ∇fk(x). At a point x where several of the functions are active, ∂f (x) is a polyhedron.
Example. ℓ 1 -norm. The ℓ 1 -norm
f (x) = ‖x‖ 1 = |x 1 | + · · · + |xn|
is a nondifferentiable convex function of x. To find its subgradients, we note that f can expressed as the maximum of 2n^ linear functions:
‖x‖ 1 = max{sT^ x | si ∈ {− 1 , 1 }},
so we can apply the rules for the subgradient of the maximum. The first step is to identify an active function sT^ x, i.e., find an s ∈ {− 1 , +1}n^ such that sT^ x = ‖x‖ 1. We can choose si = +1 if xi > 0, and si = −1 if xi < 0. If xi = 0, more than one function is active, and both si = +1, and si = −1 work. The function sT^ x is differentiable and has a unique subgradient s. We can therefore take
gi =
+1 xi > 0 − 1 xi < 0 −1 or + 1 xi = 0.
The subdifferential is the convex hull of all subgradients that can be generated this way: ∂f (x) = {g | ‖g‖∞ ≤ 1 , gT^ x = ‖x‖ 1 }.
Next we consider the extension to the supremum over an infinite number of functions, i.e., we consider f (x) = sup α∈A
fα(x),
where the functions fα are subdifferentiable. We only discuss the weak property. Suppose the supremum in the definition of f (x) is attained. Let β ∈ A be an index for which fβ (x) = f (x), and let g ∈ ∂fβ (x). Then g ∈ ∂f (x). If the supremum in the definition is not attained, the function may or may not be subdifferentiable at x, depending on the index set A. Assume however that A is compact (in some metric), and that the function α 7 → fα(x) is upper semi-continuous for each x. Then
∂f (x) = Co ∪ {∂fα(x) | fα(x) = f (x)}.
In other words, f (x, y) = infz F (x, y, z) where
F (x, y, z) =
{ f 0 (z) fi(z) ≤ xi, i = 1,... , m, Az = y +∞ otherwise,
which is jointly convex in x, y, z. Subgradients of f can be related to the dual problem of (2) as follows. Suppose we are interested in subdifferentiating f at (ˆx, yˆ). We can express the dual problem of (2) as maximize g(λ) − xT^ λ − yT^ ν subject to λ 0.
where
g(λ) = infz
( f 0 (z) +
∑^ m
i=
λifi(z) + νT^ Az
) .
Suppose strong duality holds for problems (2) and (3) at x = ˆx and y = ˆy, and that the dual optimum is attained at λ⋆, ν⋆^ (for example, because Slater’s condition holds). From the global perturbation inequalities we know that
f (x, y) ≥ f (ˆx, yˆ) − λ⋆T^ (x − ˆx) − ν⋆T^ (y − ˆy)
In other words, the dual optimal solution provides a subgradient:
−(λ⋆, ν⋆) ∈ ∂f (ˆx, yˆ).
4 Quasigradients
If f (x) is quasiconvex, then g is a quasigradient at x 0 if
gT^ (x − x 0 ) ≥ 0 ⇒ f (x) ≥ f (x 0 ),
Geometrically, g defines a supporting hyperplane to the sublevel set {x | f (x) ≤ f (x 0 )}. Note that the set of quasigradients at x 0 form a cone.
Example. Linear fractional function. f (x) = a T (^) x+b cT^ x+d.^ Let^ c
T (^) x 0 + d > 0. Then g = a − f (x 0 )c is a quasigradient at x 0. If cT^ x + d > 0, we have aT^ (x − x 0 ) ≥ f (x 0 )cT^ (x − x 0 ) =⇒ f (x) ≥ f (x 0 ).
Example. Degree of a polynomial. Define f : Rn^ → R by f (a) = min{i | ai+2 = · · · = an = 0}, i.e., the degree of the polynomial a 1 + a 2 t + · · · + antn−^1. Let a 6 = 0, and k = f (a), then g = sign(ak+1)ek+1 is a quasigradient at a To see this, we note that gT^ (b − a) = sign(ak+1)bk+1 − |ak+1| ≥ 0 implies bk+1 6 = 0.