Convex Optimization
Solutions Manual
Stephen Boyd
Lieven Vandenberghe
January 4, 2006
Convex Optimization
Solutions Manual
Stephen Boyd
Lieven Vandenberghe
January 4, 2006
Chapter 2
Convex sets
Exercises
Definition of convexity
2.1 Let $C \subseteq \mathbf { R } ^ { n }$ be a convex set, with $x _ { 1 } , \ldots , x _ { k } \in C$ , and let $\theta _ { 1 } , \ldots , \theta _ { k } \in \mathbf { R }$ satisfy $\theta _ { i } \geq 0 ,$ $\theta _ { 1 } + \cdot \cdot \cdot + \theta _ { k } = 1$ . Show that $\theta _ { 1 } x _ { 1 } + \cdot \cdot \cdot + \theta _ { k } x _ { k } \in C$ . (The definition of convexity is that this holds for $k = 2 ;$ you must show it for arbitrary $k . )$ Hint. Use induction on k. Solution. This is readily shown by induction from the definition of convex set. We illustrate the idea for $k = 3$ , leaving the general case to the reader. Suppose that $x _ { 1 } , x _ { 2 } , x _ { 3 } \in C .$ and $\theta _ { 1 } + \theta _ { 2 } + \theta _ { 3 } = 1$ with $\theta _ { 1 } , \theta _ { 2 } , \theta _ { 3 } \geq 0 .$ . We will show that $y = \theta _ { 1 } x _ { 1 } + \theta _ { 2 } x _ { 2 } + \theta _ { 3 } x _ { 3 } \in C .$ At least one of the $\theta _ { i }$ is not equal to one; without loss of generality we can assume that $\theta _ { 1 } \neq 1$ . Then we can write
$$ y = \theta _ { 1 } x _ { 1 } + ( 1 - \theta _ { 1 } ) ( \mu _ { 2 } x _ { 2 } + \mu _ { 3 } x _ { 3 } ) $$
where $\mu _ { 2 } = \theta _ { 2 } / ( 1 - \theta _ { 1 } )$ and $\mu _ { 2 } = \theta _ { 3 } / ( 1 - \theta _ { 1 } )$ . Note that $\mu _ { 2 } , \mu _ { 3 } \geq 0$ and
$$ \mu _ { 1 } + \mu _ { 2 } = \frac { \theta _ { 2 } + \theta _ { 3 } } { 1 - \theta _ { 1 } } = \frac { 1 - \theta _ { 1 } } { 1 - \theta _ { 1 } } = 1 . $$
Since $C$ is convex and $x _ { 2 } , x _ { 3 } \in C .$ , we conclude that $\mu _ { 2 } x _ { 2 } + \mu _ { 3 } x _ { 3 } \in C$ . Since this point and x1 are in $C , y \in C$
2.2 Show that a set is convex if and only if its intersection with any line is convex. Show that a set is afine if and only if its intersection with any line is afine.
Solution. We prove the first part. The intersection of two convex sets is convex. Therefore if S is a convex set, the intersection of S with a line is convex.
Conversely, suppose the intersection of S with any line is convex. Take any two distinct points x and $x _ { 2 } \in S$ . The intersection of S with the line through x and x is convex. Therefore convex combinations of x and $x _ { 2 }$ belong to the intersection, hence also to S.
2.3 Midpoint convexity. A set C is midpoint convex if whenever two points a, b are in $C ,$ the average or midpoint $( a + b ) / 2$ is in ${ \mathrm { \bar { C } } } .$ . Obviously a convex set is midpoint convex. It can be proved that under mild conditions midpoint convexity implies convexity. As a simple case, prove that if C is closed and midpoint convex, then C is convex. Solution. We have to show that $\theta x + ( 1 - \theta ) y \in C$ for all $\theta \in [ 0 , 1 ]$ and $x , y \in C .$ . Let $\theta ^ { ( k ) }$ be the binary number of length $k , i . e . ,$ a number of the form
$$ \theta ^ { ( k ) } = c _ { 1 } 2 ^ { - 1 } + c _ { 2 } 2 ^ { - 2 } + \cdot \cdot \cdot + c _ { k } 2 ^ { - k } $$
with $c _ { i } ~ \in ~ { 0 , 1 }$ , closest to θ. By midpoint convexity (applied k times, recursively), $\theta ^ { ( k ) } x + ( 1 - \theta ^ { ( k ) } ) y \in C$ . Because C is closed,
$$ \operatorname* { l i m } _ { k \to \infty } ( \theta ^ { ( k ) } x + ( 1 - \theta ^ { ( k ) } ) y ) = \theta x + ( 1 - \theta ) y \in C . $$
2.4 Show that the convex hull of a set S is the intersection of all convex sets that contain S. (The same method can be used to show that the conic, or afine, or linear hull of a set S is the intersection of all conic sets, or afine sets, or subspaces that contain S.) Solution. Let H be the convex hull of S and let be the intersection of all convex sets that contain S, i.e.,
$$ { \mathcal { D } } = \bigcap { D \mid D { \mathrm { ~ c o n v e x , ~ } } D \supseteq S } . $$
We will show that $H = \mathcal { D }$ by showing that $H \subseteq { \mathcal { D } }$ and $\mathcal { D } \subseteq H$
First we show that $H \subseteq { \mathcal { D } }$ Suppose $x \in H , i . e . , x$ is a convex combination of some points $x _ { 1 } , \ldots , x _ { n } \in S$ . Now let D be any convex set such that $D \supseteq S$ . Evidently, we have $x _ { 1 } , \ldots , x _ { n } \in D$ . Since D is convex, and x is a convex combination of $x _ { 1 } , \ldots , x _ { n } .$ it follows that $x \in D$ . We have shown that for any convex set D that contains $S ,$ we have $x \in D$ This means that x is in the intersection of all convex sets that contain $S , i . e . , x \in \mathcal { D }$ Now let us show that $\mathcal { D } \subseteq H$ . Since H is convex (by definition) and contains $S ,$ , we must have $H = D$ for some D in the construction of ${ \mathcal { D } } ,$ proving the claim.
Exercises
Examples
2.5 What is the distance between two parallel hyperplanes ${ x \in \mathbf { R } ^ { n } \mid a ^ { T } x = b _ { 1 } }$ and ${ x \in$ $\mathbf { R } ^ { n } \mid a ^ { T } x = b _ { 2 } } ?$
Solution. The distance between the two hyperplanes is $\left| \boldsymbol b _ { 1 } - \boldsymbol b _ { 2 } \right| / \left| \boldsymbol a \right| _ { 2 }$ . To see this, consider the construction in the figure below.
The distance between the two hyperplanes is also the distance between the two points $x _ { 1 }$ and $x _ { 2 }$ where the hyperplane intersects the line through the origin and parallel to the normal vector a. These points are given by
$$ \begin{array} { r } { x _ { 1 } = ( b _ { 1 } / | a | _ { 2 } ^ { 2 } ) a , \qquad x _ { 2 } = ( b _ { 2 } / | a | _ { 2 } ^ { 2 } ) a , } \end{array} $$
and the distance is
$$ \lVert x _ { 1 } - x _ { 2 } \rVert _ { 2 } = | b _ { 1 } - b _ { 2 } | / \lVert a \rVert _ { 2 } . $$
2.6 When does one halfspace contain another? Give conditions under which
$$ { x \mid a ^ { T } x \leq b } \subseteq { x \mid \tilde { a } ^ { T } x \leq \tilde { b } } $$
(where $a \neq 0 , \tilde { a } \neq 0 )$ . Also find the conditions under which the two halfspaces are equal. Solution. Let $\mathcal { H } = { x \mid a ^ { T } x \leq b }$ and $\tilde { \mathcal { H } } = { x \mid \tilde { a } ^ { T } x \leq \tilde { b } }$ . The conditions are:
$\mathcal { H } \subseteq \tilde { \mathcal { H } }$ if and only if there exists a $\lambda > 0$ such that a˜ = λa and $\tilde { b } \geq \lambda b$
$\mathcal { H } = \tilde { \mathcal { H } }$ if and only if there exists a $\lambda > 0$ such that $\tilde { a } = \lambda a$ and $\tilde { b } = \lambda b$
Let us prove the first condition. The condition is clearly suficient: if $\tilde { a } = \lambda a$ and $\tilde { b } \geq \lambda b$ for some $\lambda > 0$ , then
$$ a ^ { T } x \leq b \implies \lambda a ^ { T } x \leq \lambda b \implies \tilde { a } ^ { T } x \leq \tilde { b } , $$
i.e., $\mathcal { H } \subseteq \tilde { \mathcal { H } } .$
To prove necessity, we distinguish three cases. First suppose a and a˜ are not parallel. This means we can find a v with $\overset { \smile } { \tilde { a } } { } ^ { T } \boldsymbol { v } = 0$ and $a ^ { T } v \neq 0$ . Let xˆ be any point in the intersection of and ˜, $i . e . , a ^ { T } \hat { x } \leq b$ and $\tilde { a } ^ { T } x \leq \tilde { b }$ . We have $\boldsymbol { a } ^ { T } ( \hat { \boldsymbol { x } } + t \boldsymbol { v } ) = \boldsymbol { a } ^ { T } \hat { \boldsymbol { x } } \leq \boldsymbol { b }$ for all $t \in \mathbf { R }$ However $\tilde { a } ^ { T } ( \hat { x } + t v ) = \tilde { a } ^ { T } \hat { x } + t \tilde { a } ^ { T } v$ , and since $\widetilde { \boldsymbol { a } } ^ { T } \boldsymbol { v } \neq \boldsymbol { 0 } ,$ , we will have $\tilde { a } ^ { T } ( \hat { x } + t v ) > \tilde { b }$ for suficiently large $t > 0$ or suficiently small $t < 0$ . In other words, if a and a˜ are not parallel, we can find a point ${ \hat { x } } + t v \in \mathcal H$ that is not in $\tilde { \mathcal { H } } , i . e . , \mathcal { H } \not \subseteq \tilde { \mathcal { H } }$
Next suppose a and a˜ are parallel, but point in opposite directions, $i . e . , \tilde { a } = \lambda a$ for some $\lambda < 0$ . Let xˆ be any point in . Then $\hat { x } - t a \in \mathcal { H }$ for all $t \geq 0$ . However for t large enough we will have $\tilde { \ b { a } } ^ { T } ( \hat { \ b { x } } - t { \ b { a } } ) = \tilde { \ b { a } } ^ { T } \hat { \ b { x } } + t \lambda | { \ b { a } } | _ { 2 } ^ { 2 } > \tilde { \ b { b } } ,$ so ${ \hat { x } } - t a \not \in { \tilde { \mathcal { H } } } .$ . Again, this shows ˜.
2 Convex sets
Finally, we assume $\tilde { a } = \lambda a$ for some $\lambda > 0$ but $\tilde { b } < \lambda b$ . Consider any point $\hat { x }$ that satisfies $\boldsymbol { a } ^ { T } \boldsymbol { \hat { x } } = \boldsymbol { b } .$ . Then $\tilde { a } ^ { T } \hat { x } = \lambda a ^ { T } \hat { x } = \lambda b > \tilde { b } .$ , so xˆ $\colon \notin \tilde { \mathcal { H } } .$
The proof for the second part of the problem is similar.
2.7 Voronoi description of halfspace. Let a and b be distinct points in $\mathbf { R } ^ { n }$ . Show that the set of all points that are closer (in Euclidean norm) to a than b, i.e., ${ x \mid | x - a | _ { 2 } \leq | x - b | _ { 2 } }$ , is a halfspace. Describe it explicitly as an inequality of the form $c ^ { T } x \leq d .$ Draw a picture. Solution. Since a norm is always nonnegative, we have $| x - a | _ { 2 } \leq | x - b | _ { 2 }$ if and only if $| x - a | _ { 2 } ^ { 2 } \leq | x - b | _ { 2 } ^ { 2 }$ , so
$$ \begin{array} { r } { \begin{array} { l l l } { | x - a | _ { 2 } ^ { 2 } \leq | x - b | _ { 2 } ^ { 2 } } & { \iff } & { ( x - a ) ^ { T } ( x - a ) \leq ( x - b ) ^ { T } ( x - b ) } \ & { \iff } & { x ^ { T } x - 2 a ^ { T } x + a ^ { T } a \leq x ^ { T } x - 2 b ^ { T } x + b ^ { T } b } \ & { \iff } & { 2 ( b - a ) ^ { T } x \leq b ^ { T } b - a ^ { T } a . } \end{array} } \end{array} $$
Therefore, the set is indeed a halfspace. We can take $c = 2 ( b - a )$ and $d = b ^ { T } b - a ^ { T } a$ This makes good geometric sense: the points that are equidistant to a and b are given by a hyperplane whose normal is in the direction $b - a$
2.8 Which of the following sets $S$ are polyhedra? If possible, express $S$ in the form $S =$ {x $\mid A x \preceq b , F x = g }$
(a) $S = { y _ { 1 } a _ { 1 } + y _ { 2 } a _ { 2 } \mid - 1 \leq y _ { 1 } \leq 1 , - 1 \leq y _ { 2 } \leq 1 }$ , where $a _ { 1 } , a _ { 2 } \in \mathbf { R } ^ { n }$
(b) $\begin{array} { r } { S ~ = ~ { x ~ \in ~ { \bf R } ^ { n } ~ \vert ~ x ~ \succeq ~ 0 , ~ { \bf 1 } ^ { T } x ~ = ~ 1 , ~ \sum _ { i = 1 } ^ { n } x _ { i } a _ { i } ~ = ~ b _ { 1 } , ~ \sum _ { i = 1 } ^ { n } x _ { i } a _ { i } ^ { 2 } ~ = ~ b _ { 2 } } } \end{array}$ , where $a _ { 1 } , \ldots , a _ { n } \in \mathbf { R } { \mathrm { ~ a n d ~ } } b _ { 1 } , b _ { 2 } \in \mathbf { R }$
(c) $S = { x \in \mathbf { R } ^ { n } \mid x \succeq 0 , \ x ^ { T } y \leq 1$ for all y with $| y | _ { 2 } = 1 }$
(d) $S = { x \in \mathbf { R } ^ { n } \mid x \succeq 0 , \ x ^ { T } y \leq 1$ for all y with $\textstyle \sum _ { i = 1 } ^ { n } | y _ { i } | = 1 }$
Solution.
(a) S is a polyhedron. It is the parallelogram with corners $a _ { 1 } + a _ { 2 } , a _ { 1 } - a _ { 2 } , - a _ { 1 } + a _ { 2 }$ $- a _ { 1 } - a _ { 2 }$ , as shown below for an example in $\mathbf { R } ^ { 2 }$
For simplicity we assume that $a _ { 1 }$ and $a _ { 2 }$ are independent. We can express $S$ as the intersection of three sets:
$S _ { 1 } \colon$ the plane defined by $a _ { 1 }$ and a2
$S _ { 2 } = { z + y _ { 1 } a _ { 1 } + y _ { 2 } a _ { 2 } \mid a _ { 1 } ^ { T } z = a _ { 2 } ^ { T } z = 0 , - 1 \leq y _ { 1 } \leq 1 }$ . This is a slab parallel to a2 and orthogonal to S1
$S _ { 3 } = { z + y _ { 1 } a _ { 1 } + y _ { 2 } a _ { 2 } \mid a _ { 1 } ^ { T } z = a _ { 2 } ^ { T } z = 0 , - 1 \le y _ { 2 } \le 1 }$ . This is a slab parallel to $a _ { 1 }$ and orthogonal to $S _ { 1 }$
Each of these sets can be described with linear inequalities.
$S _ { 1 }$ can be described as
$$ v _ { k } ^ { T } x = 0 , k = 1 , \dots , n - 2 $$
where $v _ { k }$ are $n - 2$ independent vectors that are orthogonal to $a _ { 1 }$ and $a _ { 2 }$ (which form a basis for the nullspace of the matrix $[ a _ { 1 } \ a _ { 2 } ] ^ { T } )$ .
Exercises
Let $c _ { 1 }$ be a vector in the plane defined by $a _ { 1 }$ and $a _ { 2 } .$ , and orthogonal to $a _ { 2 }$ . For example, we can take
$$ c _ { 1 } = a _ { 1 } - \frac { a _ { 1 } ^ { T } a _ { 2 } } { | a _ { 2 } | _ { 2 } ^ { 2 } } a _ { 2 } . $$
Then $x \in S _ { 2 }$ if and only if
$$
Similarly, let $c _ { 2 }$ be a vector in the plane defined by $a _ { 1 }$ and $a _ { 2 }$ , and orthogonal to $a _ { 1 } , e . g .$
$$ c _ { 2 } = a _ { 2 } - \frac { a _ { 2 } ^ { T } a _ { 1 } } { | a _ { 1 } | _ { 2 } ^ { 2 } } a _ { 1 } . $$
Then $x \in S _ { 3 }$ if and only if
$$
Putting it all together, we can describe $S$ as the solution set of 2n linear inequalities
$$ \begin{array} { r c l } { v _ { k } ^ { T } x } & { \leq } & { 0 , \ k = 1 , \dots , n - 2 } \ { - v _ { k } ^ { T } x } & { \leq } & { 0 , \ k = 1 , \dots , n - 2 } \ { c _ { 1 } ^ { T } x } & { \leq } & { \left| c _ { 1 } ^ { T } a _ { 1 } \right| } \ { - c _ { 1 } ^ { T } x } & { \leq } & { \left| c _ { 1 } ^ { T } a _ { 1 } \right| } \ { c _ { 2 } ^ { T } x } & { \leq } & { \left| c _ { 2 } ^ { T } a _ { 2 } \right| } \ { - c _ { 2 } ^ { T } x } & { \leq } & { \left| c _ { 2 } ^ { T } a _ { 2 } \right| . } \end{array} $$
(b) $S$ is a polyhedron, defined by linear inequalities $x _ { k } \geq 0$ and three equality constraints.
(c) S is not a polyhedron. It is the intersection of the unit ball ${ x \mid | x | _ { 2 } \leq 1 }$ and the nonnegative orthant $\mathbf { R } _ { + } ^ { n }$ . This follows from the following fact, which follows from the Cauchy-Schwarz inequality:
$$ x ^ { T } y \leq 1 { \mathrm { ~ f o r ~ a l l ~ } } y { \mathrm { ~ w i t h ~ } } | y | _ { 2 } = 1 \iff | x | _ { 2 } \leq 1 . $$
Although in this example we define $S$ as an intersection of halfspaces, it is not a polyhedron, because the definition requires infinitely many halfspaces.
(d) S is a polyhedron. S is the intersection of the set ${ x \mid \left| x _ { k } \right| \leq 1 , k = 1 , \ldots , n }$ and the nonnegative orthant $\mathbf { R } _ { + } ^ { n }$ . This follows from the following fact:
$$ x ^ { T } y \leq 1 { \mathrm { ~ f o r ~ a l l ~ } } y { \mathrm { ~ w i t h ~ } } \sum _ { i = 1 } ^ { n } | y _ { i } | = 1 \iff | x _ { i } | \leq 1 , \quad i = 1 , \ldots , n . $$
We can prove this as follows. First suppose that $| x _ { i } | \leq 1$ for all i. Then
$$ x ^ { T } y = \sum _ { i } x _ { i } y _ { i } \leq \sum _ { i } | x _ { i } | | y _ { i } | \leq \sum _ { i } | y _ { i } | = 1 $$
if $\begin{array} { r } { \sum _ { i } | y _ { i } | = 1 . } \end{array}$
Conversely, suppose that x is a nonzero vector that satisfies $x ^ { T } y \leq 1$ for all y with $\textstyle \sum _ { i } | y _ { i } | = { \bar { 1 } }$ . In particular we can make the following choice for y: let k be an index for which $\left| x _ { k } \right| = \operatorname* { m a x } _ { i } \left| x _ { i } \right|$ , and take $y _ { k } = 1$ if $x _ { k } > 0$ , y = 1 if $x _ { k } < 0$ , and $y _ { i } = 0$ for $i \neq k$ . With this choice of $_ y$ we have
$$ x ^ { T } y = \sum _ { i } x _ { i } y _ { i } = y _ { k } x _ { k } = | x _ { k } | = \operatorname* { m a x } _ { i } | x _ { i } | . $$
2 Convex sets
Therefore we must have maxi $| x _ { i } | \leq 1$
All this implies that we can describe $S$ by a finite number of linear inequalities: it is the intersection of the nonnegative orthant with the set ${ x \mid - 1 \preceq x \preceq \mathbf { 1 } }$ , i.e., the solution of 2n linear inequalities
$$ \begin{array} { c c c } { { - x _ { i } } } & { { \leq } } & { { 0 , i = 1 , . . . , n } } \ { { x _ { i } } } & { { \leq } } & { { 1 , i = 1 , . . . , n . } } \end{array} $$
Note that as in part (c) the set S was given as an intersection of an infinite number of halfspaces. The diference is that here most of the linear inequalities are redundant, and only a finite number are needed to characterize $S .$
None of these sets are afine sets or subspaces, except in some trivial cases. For example, the set defined in part (a) is a subspace (hence an afine set), if $a _ { 1 } = a _ { 2 } = 0 ;$ ; the set defined in part (b) is an afine set if $n = 1$ and $S = { 1 } ;$ ; etc.
2.9 Voronoi sets and polyhedral decomposition. Let $x _ { 0 } , \dotsc , x _ { K } \in \mathbf { R } ^ { n }$ . Consider the set of points that are closer (in Euclidean norm) to x0 than the other $x _ { i } , i . e .$ ,
$$ V = { x \in \mathbf { R } ^ { n } \mid | x - x _ { 0 } | _ { 2 } \leq | x - x _ { i } | _ { 2 } , i = 1 , \ldots , K } . $$
V is called the Voronoi region around $x _ { 0 }$ with respect to $x _ { 1 } , \ldots , x _ { K }$
(a) Show that V is a polyhedron. Express V in the form $V = { x \mid A x \preceq b }$
(b) Conversely, given a polyhedron $P$ with nonempty interior, show how to find $x _ { 0 } , \ldots , x _ { K }$ so that the polyhedron is the Voronoi region of $x _ { 0 }$ with respect to $x _ { 1 } , \ldots , x _ { K }$
(c) We can also consider the sets
$$ \begin{array} { r } { V _ { k } = { x \in \mathbf { R } ^ { n } \mid | x - x _ { k } | _ { 2 } \leq | x - x _ { i } | _ { 2 } , \ i \neq k } . } \end{array} $$
The set $V _ { k }$ consists of points in $\mathbf { R } ^ { n }$ for which the closest point in the set ${ x _ { 0 } , \ldots , x _ { K } }$ is $x _ { k }$
The sets $V _ { 0 } , \ldots , V _ { K }$ give a polyhedral decomposition of $\mathbf { R } ^ { n }$ . More precisely, the sets $V _ { k }$ are polyhedra, $\textstyle \bigcup _ { k = 0 } ^ { K } V _ { k } = \mathbf { R } ^ { n }$ , and int $V _ { i } \cap$ int $V _ { j } = \emptyset$ for $i \neq j , i . e . , V _ { i }$ and $V _ { j }$ intersect at most along a boundary.
Suppose that $P _ { 1 } , \ldots , P _ { m }$ are polyhedra such that $\bigcup _ { i = 1 } ^ { m } P _ { i } \ = \ \mathbf { R } ^ { n }$ , and int $P _ { i } \cap$ int $P _ { j } = \emptyset$ for $i \neq j$ . Can this polyhedral decomposition of $\mathbf { R } ^ { n }$ be described as the Voronoi regions generated by an appropriate set of points?
Solution.
(a) x is closer to x0 than to $x _ { i }$ if and only if
$$ \begin{array} { l l l } { | x - x _ { 0 } | _ { 2 } \leq | x - x _ { i } | _ { 2 } } & { \iff } & { ( x - x _ { 0 } ) ^ { T } ( x - x _ { 0 } ) \leq ( x - x _ { i } ) ^ { T } ( x - x _ { i } ) } \ & { \iff } & { x ^ { T } x - 2 x _ { 0 } ^ { T } x + x _ { 0 } ^ { T } x _ { 0 } \leq x ^ { T } x - 2 x _ { i } ^ { T } x + x _ { i } ^ { T } x _ { i } } \ & { \iff } & { 2 ( x _ { i } - x _ { 0 } ) ^ { T } x \leq x _ { i } ^ { T } x _ { i } - x _ { 0 } ^ { T } x _ { 0 } , } \end{array} $$
which defines a halfspace. We can express V as $V = { x \mid A x \preceq b }$ with
$$ \boldsymbol { A } = 2 \left[ \begin{array} { c } { x _ { 1 } - x _ { 0 } } \ { x _ { 2 } - x _ { 0 } } \ { \vdots } \ { x _ { K } - x _ { 0 } } \end{array} \right] , \qquad \boldsymbol { b } = \left[ \begin{array} { c } { x _ { 1 } ^ { T } x _ { 1 } - x _ { 0 } ^ { T } x _ { 0 } } \ { x _ { 2 } ^ { T } x _ { 2 } - x _ { 0 } ^ { T } x _ { 0 } } \ { \vdots } \ { x _ { K } ^ { T } x _ { K } - x _ { 0 } ^ { T } x _ { 0 } } \end{array} \right] . $$
Exercises
(b) Conversely, suppose $V = { x \mid A x \preceq b }$ with $A \in \mathbf { R } ^ { K \times n }$ and $b \in \mathbf { R } ^ { K }$ . We can pick any $x _ { 0 } \in \mathsf { \bar { { x \mid A x \mid } } \mathsf { \bar { A } } \mathsf { \bar { x } } \prec b }$ , and then construct K points xi by taking the mirror image of $x _ { 0 }$ with respect to the hyperplanes ${ x \mid a _ { i } ^ { T } x = b _ { i } }$ . In other words, we choose $x _ { i }$ of the form $x _ { i } = x _ { 0 } + \lambda a _ { i }$ , where λ is chosen in such a way that the distance of $x _ { i }$ to the hyperplane defined by $a _ { i } ^ { T } x = b _ { i }$ is equal to the distance of x0 to the hyperplane:
$$ b _ { i } - a _ { i } ^ { T } x _ { 0 } = a _ { i } ^ { T } x _ { i } - b _ { i } . $$
Solving for $\lambda ,$ we obtain $\lambda = 2 ( b _ { i } - a _ { i } ^ { T } x _ { 0 } ) / | a _ { i } | _ { 2 } ^ { 2 }$ , and
$$ x _ { i } = x _ { 0 } + \frac { 2 ( b _ { i } - a _ { i } ^ { T } x _ { 0 } ) } { | a _ { i } | ^ { 2 } } a _ { i } . $$
(c) A polyhedral decomposition of $\mathbf { R } ^ { n }$ can not always be described as Voronoi regions generated by a set of points ${ x _ { 1 } , \ldots , x _ { m } }$ . The figure shows a counterexample in $\breve { \mathbf { R } } ^ { 2 }$
$\mathbf { R } ^ { 2 }$ is decomposed into 4 polyhedra $P _ { 1 } , \ldots , P _ { 4 }$ by 2 hyperplanes $H _ { 1 } , H _ { 2 }$ . Suppose we arbitrarily pick $x _ { 1 } \in P _ { 1 }$ and $x _ { 2 } \in P _ { 2 } . \ x _ { 3 } \in P _ { 3 }$ must be the mirror image of $x _ { 1 }$ and $x _ { 2 }$ with respect to $H _ { 2 }$ and $H _ { 1 }$ , respectively. However, the mirror image of x1 with respect to $H _ { 2 }$ lies in $\tilde { P } _ { 1 }$ , and the mirror image of $x _ { 2 }$ with respect to $H _ { 1 }$ lies in $\tilde { P } _ { 2 }$ , so it is impossible to find such an x3.
2.10 Solution set of a quadratic inequality. Let $C \subseteq \mathbf { R } ^ { n }$ be the solution set of a quadratic inequality,
$$ { \cal C } = { x \in { \bf R } ^ { n } \mid x ^ { T } A x + b ^ { T } x + c \leq 0 } , $$
with $A \in \mathbf { S } ^ { n } , b \in \mathbf { R } ^ { n }$ , and $c \in \mathbf { R }$
(a) Show that $C$ is convex if $A \succeq 0$
(b) Show that the intersection of C and the hyperplane defined by $g ^ { T } x + h = 0$ (where $g \neq 0 )$ is convex if $A + \lambda g g ^ { T } \succeq 0$ for some $\lambda \in \mathbf { R }$
Are the converses of these statements true?
Solution. A set is convex if and only if its intersection with an arbitrary line ${ { \hat { x } } + t v \mid t \in$ R is convex.
(a) We have
$$ \begin{array} { r } { ( \hat { x } + t v ) ^ { T } A ( \hat { x } + t v ) + b ^ { T } ( \hat { x } + t v ) + c = \alpha t ^ { 2 } + \beta t + \gamma } \end{array} $$
where
$$ \alpha = { v ^ { T } } A v , \qquad \beta = { b ^ { T } } v + 2 { \hat { x } } ^ { T } A v , \qquad \gamma = c + { b ^ { T } } { \hat { x } } + { \hat { x } } ^ { T } A { \hat { x } } . $$
2 Convex sets
The intersection of C with the line defined by xˆ and v is the set
$$ { \hat { x } + t v \mid \alpha t ^ { 2 } + \beta t + \gamma \leq 0 } , $$
which is convex if $\alpha \geq 0$ . This is true for any v, if $v ^ { T } A v \geq 0$ for all $v , i . e . , A \succeq 0$ The converse does not hold; for example, take $A = - 1 , b = 0 , c = - 1$ . Then $A \\Zdash 0 ,$ but $C = \mathbf { R }$ is convex.
(b) Let $H = { x \mid g ^ { T } x + h = 0 }$ . We define $\alpha , \beta ,$ and $\gamma$ as in the solution of part $\mathbf { \eta } ( \mathbf { a } ) ,$ and, in addition,
$$ \delta = g ^ { T } v , \qquad \epsilon = g ^ { T } \hat { x } + h . $$
Without loss of generality we can assume that $\hat { x } \in H , i . e . , \epsilon = 0$ . The intersection of $C \cap H$ with the line defined by xˆ and v is
$$ { \hat { x } + t v \mid \alpha t ^ { 2 } + \beta t + \gamma \leq 0 , \ \delta t = 0 } . $$
If $\delta = g ^ { T } v \neq 0 .$ the intersection is the singleton ${ \hat { x } } , { \mathrm { i f ~ } } \gamma \leq 0 .$ or it is empty. In either case it is a convex set. If $\mathbf { \partial } \cdot \mathbf { \partial } \delta = g ^ { T } v = 0$ , the set reduces to
$$ { \hat { x } + t v \mid \alpha t ^ { 2 } + \beta t + \gamma \leq 0 } , $$
which is convex if $\alpha \geq 0 .$ . Therefore $C \cap H$ is convex if
$$ g ^ { T } v = 0 \Longrightarrow v ^ { T } A v \geq 0 .\tag{2.10.A} $$
This is true if there exists λ such that $A + \lambda g g ^ { T } \succeq 0 ;$ then (2.10.A) holds, because then
$$ v ^ { T } A v = v ^ { T } ( A + \lambda g g ^ { T } ) v \geq 0 $$
for all v satisfying $g ^ { T } v = 0$
Again, the converse is not true.
2.11 Hyperbolic sets. Show that the hyperbolic set ${ x \in \mathbf { R } _ { + } ^ { 2 } \mid x _ { 1 } x _ { 2 } \geq 1 }$ is convex. As a generalization, show that ${ x \in \mathbf { R } _ { + } ^ { n } \mid \prod _ { i = 1 } ^ { n } x _ { i } \stackrel { } { \geq } 1 }$ is convex. Hint. If $a , b \geq 0$ and $0 \leq \theta \leq 1$ , then $a ^ { \theta } b ^ { 1 - \theta } \leq \theta a + ( 1 - \theta ) b ;$ see 3.1.9.
(a) We prove the first part without using the hint. Consider a convex combination z of two points $( x _ { 1 } , x _ { 2 } )$ and $( y _ { 1 } , y _ { 2 } )$ in the set. $\mathbb { f } \ x \succeq y .$ then $z = \theta x + ( 1 - \theta ) y \succeq y$ and obviously $z _ { 1 } z _ { 2 } \ge y _ { 1 } y _ { 2 } \ge 1$ . Similar proof if $y \succeq x .$
Suppose $y \not \subseteq 0$ and $x \not \sqgeq y , i . e . , ( y _ { 1 } - x _ { 1 } ) ( y _ { 2 } - x _ { 2 } ) < 0$ . Then
$$ \begin{array} { r l } { ( \theta x _ { 1 } + ( 1 - \theta ) y _ { 1 } ) ( \theta x _ { 2 } + ( 1 - \theta ) y _ { 2 } ) } \ { = } & { \theta ^ { 2 } x _ { 1 } x _ { 2 } + ( 1 - \theta ) ^ { 2 } y _ { 1 } y _ { 2 } + \theta ( 1 - \theta ) x _ { 1 } y _ { 2 } + \theta ( 1 - \theta ) x _ { 2 } y _ { 1 } } \ { = } & { \theta x _ { 1 } x _ { 2 } + ( 1 - \theta ) y _ { 1 } y _ { 2 } - \theta ( 1 - \theta ) ( y _ { 1 } - x _ { 1 } ) ( y _ { 2 } - x _ { 2 } ) } \ { \geq } & { 1 . } \end{array} $$
(b) Assume that $\prod _ { i } x _ { i } \geq 1$ and $\prod _ { i } y _ { i } \geq 1$ . Using the inequality in the hint, we have
$$ \prod _ { i } ( \theta x _ { i } + ( 1 - \theta ) y _ { i } ) \geq \prod x _ { i } ^ { \theta } y _ { i } ^ { 1 - \theta } = ( \prod x _ { i } ) ^ { \theta } ( \prod y _ { i } ) ^ { 1 - \theta } \geq 1 . $$
2.12 Which of the following sets are convex?
(a) A slab, i.e., a set of the form ${ x \in \mathbf { R } ^ { n } \mid \alpha \leq a ^ { T } x \leq \beta }$
(b) A rectangle, i.e., a set of the form ${ x \in \mathbf { R } ^ { n } \mid \alpha _ { i } \leq x _ { i } \leq \beta _ { i } , i = 1 , \ldots , n }$ . A rectangle is sometimes called a hyperrectangle when $n > 2 .$
Exercises
(c) A wedge, i.e., ${ x \in \mathbf { R } ^ { n } \mid a _ { 1 } ^ { T } x \leq b _ { 1 } , a _ { 2 } ^ { T } x \leq b _ { 2 } }$
(d) The set of points closer to a given point than a given set, i.e.,
$$ { x \mid | x - x _ { 0 } | _ { 2 } \leq | x - y | _ { 2 } { \mathrm { ~ f o r ~ a l l ~ } } y \in S } $$
where $S \subseteq \mathbf { R } ^ { n }$
(e) The set of points closer to one set than another, i.e.,
$$ { x \mid \mathbf { d i s t } ( x , S ) \leq \mathbf { d i s t } ( x , T ) } , $$
where $S , T \subseteq \mathbf { R } ^ { n }$ , and
$$ \mathrm { d i s t } ( x , S ) = \operatorname* { i n f } { | x - z | _ { 2 } \mid z \in S } . $$
(f) [HUL93, volume 1, page 93] The set ${ x \mid x + S _ { 2 } \subseteq S _ { 1 } }$ , where $S _ { 1 } , S _ { 2 } \subseteq \mathbf { R } ^ { n }$ with $S _ { 1 }$ convex.
(g) The set of points whose distance to a does not exceed a fixed fraction θ of the distance to $b , \ i . e .$ , the set ${ x \mid | x - a | _ { 2 } \leq \theta | x - b | _ { 2 } }$ . You can assume $a \neq b$ and $0 \leq \theta \leq 1$
Solution.
(a) A slab is an intersection of two halfspaces, hence it is a convex set (and a polyhedron).
(b) As in part (a), a rectangle is a convex set and a polyhedron because it is a finite intersection of halfspaces.
(c) A wedge is an intersection of two halfspaces, so it is convex set. It is also a polyhedron. It is a cone if $b _ { 1 } = 0$ and $b _ { 2 } = 0$
(d) This set is convex because it can be expressed as
$$ \bigcap _ { y \in S } { x \mid | x - x _ { 0 } | _ { 2 } \leq | x - y | _ { 2 } } , $$
$i . e .$ , an intersection of halfspaces. (For fixed y, the set
$$ { x \mid | x - x _ { 0 } | _ { 2 } \leq | x - y | _ { 2 } } $$
is a halfspace; see exercise 2.9).
(e) In general this set is not convex, as the following example in R shows. With $S =$ 1, 1 and $T = { 0 }$ , we have
$$ { x \mid \mathbf { d i s t } ( x , S ) \leq \mathbf { d i s t } ( x , T ) } = { x \in \mathbf { R } \mid x \leq - 1 / 2 \ \mathrm { o r } \ x \geq 1 / 2 } $$
which clearly is not convex.
(f) This set is convex. $x + S _ { 2 } \subseteq S _ { 1 } { \mathrm { ~ i f ~ } } x + y \in S _ { 1 }$ for all $y \in S _ { 2 }$ . Therefore
$$ { x \mid x + S _ { 2 } \subseteq S _ { 1 } } = \bigcap _ { y \in S _ { 2 } } { { x \mid x + y \in S _ { 1 } } } = \bigcap _ { y \in S _ { 2 } } ( S _ { 1 } - y ) , $$
the intersection of convex sets $S _ { 1 } - y$
(g) The set is convex, in fact a ball.
$$ \begin{array} { r l } { { x \mid | x - a | _ { 2 } \leq \theta | x - b | _ { 2 } } } \ { = } & { { x \mid | x - a | _ { 2 } ^ { 2 } \leq \theta ^ { 2 } | x - b | _ { 2 } ^ { 2 } } } \ { = } & { { x \mid ( 1 - \theta ^ { 2 } ) x ^ { T } x - 2 ( a - \theta ^ { 2 } b ) ^ { T } x + ( { a } ^ { T } a - \theta ^ { 2 } { b } ^ { T } b ) \leq 0 } } \end{array} $$
2 Convex sets
预览结束 · 共 302 页