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

Berend Hasselman bhh at xs4all.nl
Tue Jan 12 20:00:09 CET 2010



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 have I to change in my function to make the minimization succeed?
> Do you think using BBoptim() instead of optim() changes anything?
> 

We need more information.
You can also try the additional argument to optim for tracing  the
optimization.
Use optim(param, fun, method='L-BFGS-B', lower=lo, upper=up
,control=list(trace=6))
to get more information.

Berend
-- 
View this message in context: http://n4.nabble.com/optim-abnormal-termination-in-lnsrch-resend-tp1012255p1012370.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list