Interface scipy.optimize for the Rosenbrok test