Depends on the function you're trying to optimize.