Hi,
I'm using the L-BFGS optimiser as follows:
Code:
double epsg = 0.01;
double epsf = 0.01;
double epsx = 0.01;
double diffstep = 1.0e-5;
int maxits = 10;
alglib.minlbfgsstate state;
alglib.minlbfgsreport rep;
alglib.minlbfgscreatef(1, x, diffstep, out state);
alglib.minlbfgssetcond(state, epsg, epsf, epsx, maxits);
alglib.minlbfgssetprecscale(state);
alglib.minlbfgssetstpmax(state, 1.0);
alglib.minlbfgsoptimize(state, func, null, null);
alglib.minlbfgsresults(state, out x, out rep);
I would like to stop the optimisation after a given number of iterations, but passing different values of 'maxits' to the minlbfgs state using minlbfgssetcond() seems to have no effect. Any suggestions on how to limit the number of iterations would be appreciated.
Thanks
Ernest