Re: [Rd] Minor glitch in optim()

2018-04-20 Thread Martin Maechler
> J C Nash > on Tue, 17 Apr 2018 10:18:02 -0400 writes: > 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

[Rd] Minor glitch in optim()

2018-04-17 Thread J C Nash
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