Optimization on unit sphere?

A simple trick is to just change variables, to

\min_{y \in \mathbb{R}^n} f(y / \Vert y \Vert_2)