Parameters
double
gradientTolerance
double
parameterTolerance
double
functionProgressTolerance
int
memory
Numbers of gradients and steps to store.