Re: [Rd] on the optim function

2010-08-06 Thread Christophe Dutang
> > Hope this helps, > Ravi. > > > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] > On Behalf Of Christophe Dutang > Sent: Friday, August 06, 2010 5:15 AM > To: r-devel@r-project.org > Subject: [Rd] on the o

Re: [Rd] on the optim function

2010-08-06 Thread Ravi Varadhan
ect.org] On Behalf Of Christophe Dutang Sent: Friday, August 06, 2010 5:15 AM To: r-devel@r-project.org Subject: [Rd] on the optim function Dear useRs, I have just discovered that the R optim function does not return the number of iterations. I still wonder why line 632-634 of optim C, the iter v

[Rd] on the optim function

2010-08-06 Thread Christophe Dutang
Dear useRs, I have just discovered that the R optim function does not return the number of iterations. I still wonder why line 632-634 of optim C, the iter variable is not returned (for the BFGS method for example) ? Is there any trick to compute the iteration number with function call numbe