After producing the objective function and gradient with TMB, and calling the optim
function, I get a sequence of reports printed in my console that seems to of the form "outer mgc: ":
outer mgc: 56.54273
outer mgc: 56.51064
outer mgc: 56.96065
outer mgc: 57.13384
outer mgc: 29.01959
outer mgc: 27.08267
outer mgc: 25.99866
outer mgc: 25.79068
outer mgc: 25.58621
outer mgc: 21.91722
outer mgc: 21.73952
outer mgc: 21.56449
outer mgc: 21.52924
outer mgc: 21.52189
outer mgc: 21.19551
outer mgc: 20.7331
outer mgc: 16.39087
outer mgc: 11.35111
outer mgc: 10.61466
outer mgc: 6.748524
outer mgc: 1.420802
outer mgc: 0.1197647
It seems that smaller numbers indicate quicker convergence and better convergence results. But I am not entirely sure what these are so it would be nice to know in order to diagnose the convergence properties of the algorithm.