If you are using a derivative based optimization, smooth derivatives of your function need to exist.
Trying to use a derivative based optimization where a smooth derivative doesn't exist will likely result in getting stuck at a cliff where there's no change to either the function value or to the gradient.
Trying to use a derivative based optimization where a smooth derivative doesn't exist will likely result in getting stuck at a cliff where there's no change to either the function value or to the gradient.