maxcycles in optimisation.