Re: [R] Problem with convergence in optim

2013-05-15 Thread Luis Felipe Parra
Thanks Rui, i already tried changin the reltol, but it didn't change the outcome On Wed, May 15, 2013 at 1:32 PM, Rui Barradas wrote: > Hello, > > It's impossible to tell what is happening without the function and the > values for the other variables (including the initial parameters) but your

Re: [R] Problem with convergence in optim

2013-05-15 Thread Rui Barradas
Hello, It's impossible to tell what is happening without the function and the values for the other variables (including the initial parameters) but your setting of reltol is too small. Try using the default. It's sqrt(.Machine$double.eps), about 1e-8, you are using 1e-16. Hope this helps, R

[R] Problem with convergence in optim

2013-05-15 Thread Luis Felipe Parra
Hello to all, I have been using an optim with the following call: optim(param_ini,fun_errores2,Precio_mercado=Precio,anos_pagosE2=anos_pagos,control=list(maxit=1,reltol=1e-16)) depending on the intial values I'm getting the same solution but once I get the convergence message=10 (no converge