Obtaining a valid subgradient

26 Views Asked by At

I have a nonconvex function, which could be non-smooth in some places. I also have the expression for computing the gradient vector of the function. This vector is valid as a gradient wherever the function is smooth. This vector doesn't blow-up when the function is at a non-smooth point. That being the case, could I use this vector as a valid sub-gradient at that non-smooth point?