Consider an even-sized set of numbers $X = \{x_k\}$, such as $X = \{1, 2, 7, 10\}$.
The median $m$ is defined as:
$$m = \mathrm{arg \min_x} \sum_k \lvert x_k - x\rvert^1$$
Any $m \in [2, 7]$ is a minimizer of this function, and is therefore "a" median of this list.
Now, it is common practice to take the average of 2 and 7 and call it "the" median.
But that's lame, and I think I have invented (?) a more logical way to find a unique median $m^*$:
$$m^* = \lim_{\epsilon \to 0^+} \mathrm{arg \min_x} \sum_k \left\lvert x_k - x\right\rvert^{1+\epsilon}$$
Differentiation to find the minimum only gets us so far:
$$\sum_k \mathrm{sgn}{\left(x_k - m^*\right)}\left\lvert x_k - m^*\right\rvert^{\epsilon} = 0$$ This expression can be solved numerically for smaller and smaller $\epsilon$ to give $m^* \approx 4.85$ in this example, and I suspect the "correct" median is in fact $m^* = 34/7$, but I don't know how to prove it.
I have 3 questions:
First of all, is this a well-known and/or useful approach? Does it have a name?
I came up with the new formulation myself, but I've never seen it used anywhere.Is there some way to directly find the exact value of $m^*$, without numerical optimization?
If not, is there a better/faster approach than brute-force numerical optimization techniques?Is this a (convex?) optimization problem, and if not, can it be reformulated as one?
The trouble here is that I can't find any objective function that has a unique minimum at $m^*$.
The best I can do is to find a generalized function (i.e., the limit of another function), but when I do that, I don't think the problem is a convex optimization problem anymore.
Is there another way to pose the problem that conforms better to existing optimization frameworks?