Playing around with alternate optimzers, I've found that both nlminb & the nls.lm Levenberg-Marquadt optimizer in minpack.lm both work with my objective function without crashing, and minimize the function as I'd expect them to.
Using optim for amoeba sampling would be nice, but I think I'll just have to chalk up its crashing with my external code library as a problem I won't be able to solve for now. I'll use nlminb or nls.lm for optimization & a hand-coded MCMC algorithm for characterization of local minima. -- View this message in context: http://r.789695.n4.nabble.com/optim-C-Crashing-on-run-tp4648325p4648419.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.