Is there a closed-form solution of the following convex problem:
$$\min_x \| x - u \| + C \| x - v \|^2$$
where $\| \cdot \|$ is the L2 norm.
Is there a closed-form solution of the following convex problem:
$$\min_x \| x - u \| + C \| x - v \|^2$$
where $\| \cdot \|$ is the L2 norm.
With a little knowledge about proximal operators, it's easy to see this is equivalent to projection onto the $l_2$ ball, which has a closed form solution. Let $y = x-u$, $w=v-u$, $f(y) = \frac{1}{2C} \|y\|$. Then the problem is equivalent to:
$$ \DeclareMathOperator*{\argmin}{arg\,min} \DeclareMathOperator{\prox}{prox} x^*-u = y^* = \argmin_y f(y) + \frac{1}{2}\|y-w\|^2 = \prox_f(w) $$ A basic property of proximal operators is: $$ \prox_f(w) + \prox_{f^*}(w) = w $$
The dual function $f^*$ is the indicator of a ball of radius $1/2C$, so the prox operator is just projection onto a ball:
$$ \prox_{f^*}(w) = \min\left(\|w\|, \frac{1}{2 C}\right) \frac{w}{\|w\|} $$
Plugging this in gives:
$$ x^* = v - \min\left(\|v-u\|, \frac{1}{2 C}\right)\frac{v-u}{\|v-u\|} $$
As a sanity check, as $C \rightarrow +\infty$, $x^* \rightarrow v$, and for $C \le \frac{1}{2\|v-u\|}$, $x^* = u$.