Re: [R] optim: abnormal termination in lnsrch (resend)

2010-01-12 Thread Berend Hasselman
Mario Valle wrote: > > [sorry, forgot some details...] > > I'm using optim(param, fun, method='L-BFGS-B', lower=lo, upper=up) to > minimize a certain function. > Often the minimization ends with the message: > ERROR: ABNORMAL_TERMINATION_IN_LNSRCH > > What is optim() trying to say? > What hav

Re: [R] optim: abnormal termination in lnsrch (resend)

2010-01-12 Thread Ravi Varadhan
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Mario Valle Sent: Tuesday, January 12, 2010 12:45 PM To: R-help@r-project.org Subject: [R] optim: abnormal termination in lnsrch (resend) Attached a script that reproduces

[R] optim: abnormal termination in lnsrch (resend)

2010-01-12 Thread Mario Valle
Attached a script that reproduces the problem. My function is fold.val() and at the end seems the curve contained in lnsrch.dat is fitted quite well, but optim generates the error. Thanks again! mario - I'm using optim(param, fun, method='L-BFGS-B', lowe

Re: [R] optim: abnormal termination in lnsrch (resend)

2010-01-12 Thread Ravi Varadhan
dhan.h tml -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Mario Valle Sent: Tuesday, January 12, 2010 11:53 AM To: R-help@r-project.org Subject: [R] optim: abnormal termination in lnsrch (resend) [sor

[R] optim: abnormal termination in lnsrch (resend)

2010-01-12 Thread Mario Valle
[sorry, forgot some details...] I'm using optim(param, fun, method='L-BFGS-B', lower=lo, upper=up) to minimize a certain function. Often the minimization ends with the message: ERROR: ABNORMAL_TERMINATION_IN_LNSRCH What is optim() trying to say? What have I to change in my function to make the

[R] optim: abnormal termination in lnsrch

2010-01-12 Thread Mario Valle
I'm using optim() to minimize a certain function. Often the minimization ends with the message: ERROR: ABNORMAL_TERMINATION_IN_LNSRCH What is optim() trying to say? What have I to change in my function to make the minimization succeed? Do you think using BBoptim() instead of optim() changes anyth