Simple internal function to check that the optimisation didn't hit bounds. Based on code that used to live in detfct.fit.opt
.
check.bounds(lt, lowerbounds, upperbounds, ddfobj, showit, setlower, setupper)
optimisation object
current lower bounds
current upper bounds
ddf object
debug level
were lower bounds set by the user
were upper bounds set by the user
TRUE
if bounded (ie parameters close to bound), else FALSE