| # Exercises SOCP > Exercises ## Second-order cones Draw the set of points such that , where . In general, for which values of , if any, is this set an ellipsoid? When is it not empty? When considering a second-order cone constraint, a temptation might be to square it in order to obtain a classical convex quadratic constraint. This might not always work. Consider the convex, second-order cone: If then . Is the corresponding set convex? Discuss. Let and , be given. Consider the following condition on a given : Show that this condition is equivalent to a second-order cone condition on . What is the geometrical interpretation of this condition? Plot the set of that satisfy the condition with , , and . ## Standard forms We would like to minimize the function , with values: with the constraint . Explain precisely how to formulate the problem as an SOCP in standard form. Hint: Remember that , for all , non negative, the constraint is equivalent to a second order cone constraint. Write a CVX code that solves the problem. Hint: use the function `quad_over_lin.m`. Quadratically constrained quadratic programs are minimization problems involving convex quadratic objectives and constraints. This section shows that QCQP's can be expressed as SOCP's. Is the converse true, in other words, can we always write an SOCP as a QCQP? Discuss. Robust least-squares. For a given matrix and a vector , we consider the robust least-squares problem where denotes the largest singular value of the matrix , and is given. This problem arises when we seek to solve a least-squares problem in which the matrix is subject to an additive perturbation, and we would like to find a solution that minimizes the worst-case residual error. Prove that for any given vectors , we have whenever . Show that the bound you found in part (a) is attained, by exhibiting a matrix that achieves the bound. Hint: use a rank-one matrix constructed with . Formulate the robust least-squares problem as an SOCP in standard form. Solve the problem in the case when the bound on the perturbation is a component-wise bound, of the form . ## Applications Consider points in . For a given positive number , we define the -ellipse with radius as the set of points such that the sum of the distances from to the points is equal to . How do -ellipses look like when or ? Express the problem of computing the geometric median, which is the point that minimizes the sum of the distances to the points , , as an SOCP in standard form. Using CVX, write a code with input that plots the corresponding -ellipse.