Minimization of a quasidifferentiable function: a method for doing it in practice