Skip to content
Prev 6363 / 398498 Next

convergence value in optim

Dear all,


I have a problem with the value of the function optim 

optim(startingvalues,fct,NULL,method="BFGS",
control=list(maxit=300,trace=TRUE,REPORT=1))

In the helpfile for it is said that

$convergence

is an integer code and 
0 indicates successful convergence
1 indicates that the iteration limit maxit had been reached

 
So while using it, I played with different values for maxit and even if
I'm setting 
maxit=2 ( so the algorithm can't be converged) the value of $convergence
is 0.

Can anyone give me a hint what's going wrong..
 and is there another parameter who is indicating the convergence oof
the algorithm?

I am confused. Thanks for any help. 


Brigitta Voss