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
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