Re: [R] stop criteria when L-BFGS-B needs finite values of 'fn' in optim

2007-07-31 Thread Ben Bolker
Dae-Jin Lee dae-jin.lee at uc3m.es writes: I would like to know how to include and if condition when this happen, could it be something like: myfun - optim() # run my function if(myfun == ERROR) . # when the error message is L-BFGS-B needs finite values of

[R] stop criteria when L-BFGS-B needs finite values of 'fn' in optim

2007-07-30 Thread Dae-Jin Lee
Hi all! I'm running some simulations and I need to estimate some paramaters with optim( ), in some cases optim stops with the next message: L-BFGS-B needs finite values of 'fn' I would like to know how to include and if condition when this happen, could it be