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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.