I have a function $f:\mathbb{R}^{50} \rightarrow \mathbb{R}$ and I need to compute the Lipschitz constant of $f$ to solve an optimization problem using a specific algorithm. Does any one have suggestions on how to estimate such Lipschitz constants?

Suggestions are greatly appreciated. Thanks!