Having worked with optim() and related programs for years, it surprised me
that I haven't noticed this before, but optim() is inconsistent in how it
deals with bounds constraints specified at infinity. Here's an example:
# optim-glitch-Ex.R
x0<-c(1,2,3,4)
fnt <- function(x, fscale=10){
yy <- len
> On 17 Apr 2018, at 01:08 , David Winsemius wrote:
>
>
> Hypothesis: datasets in a ..library/data/Rdata.rds file whose listing does
> not match the name of the dataset from which it is derived will cause the
> behavior in question.
Yes, because data() originally goes looking for a file wi