Say I want to minimize a real valued, nonsmooth function $f(x)$ (gradient is not defined at some minima).
Further let
$$ g(x, \epsilon) $$
be a smooth approximation of $f(x)$ with
$$ \lim_{\epsilon\rightarrow0} \,g(x,\epsilon) = f(x) \,. $$
Let the minimum of $g$ be a function of $\epsilon$ called $m(\epsilon)$ and lets assume the minimum actually exists.
Question: Is $\lim_{\epsilon \rightarrow 0} m(\epsilon)$ also a minimum of $f$?
Example: Let $f(x) = |x|$. Then a smooth approximation with the properties described above is given by
$$ g(x, \epsilon)=\sqrt{x^2 + \epsilon}\,. $$
The minimum of $g$ is obtained at $x = 0$ and is a function of $\epsilon$ as: $m(\epsilon) = \sqrt{\epsilon}\,$.
Now taking the limit gives
$$ \lim_{\epsilon\rightarrow0}\,m(\epsilon) = \lim_{\epsilon\rightarrow0}\,\sqrt{\epsilon} = 0 $$
which is also the minimum of the original $f(x)$. The question is now if this is always the case.