General-purpose minimisation of fn from the starting point par. Equivalent to R's optim(). The same methods
with the same iterations, so the same results and counts, except CG: after an accepted step it tries the minimum of
the parabola through the start and the accepted point, where R's cgmin always tries the midpoint (so CG's path,
results and counts differ from R's).
General-purpose minimisation of
fnfrom the starting pointpar. Equivalent to R'soptim(). The same methods with the same iterations, so the same results and counts, except CG: after an accepted step it tries the minimum of the parabola through the start and the accepted point, where R's cgmin always tries the midpoint (so CG's path, results and counts differ from R's).