Can anyone explain to me how we can retrieve a number of iteration after running optim()?
init<-c(1,0.05)
res<-optim(init, x_y_density,method="BFGS", control=list(fnscale=-1))
res
$counts
function gradient
16 6
Is it a number of calls of the function? Or I have to add number of calls of the function
and it's gradient? Or I have to look for it somewhere else?
Thanks!
Sincerely,
Olena Ageyeva
_________________________________________________________________
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009