Dear list,

The following example of constrOptim() where the initial point is the solution 
shows that the component counts is not a two-element vector as documented in 
the man page. 

constrOptim(c(1,1), fr, grr, ui = diag(2), ci = c(0,0))

Does anyone have the same behavior?

A possible solution is to put line 69 in constrOptim.R before the first 
possible break line 67.

Regards, Christophe


> sessionInfo()
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] nlstools_1.0-2     fitdistrplus_1.0-7 survival_2.38-3    MASS_7.3-45       

loaded via a namespace (and not attached):
[1] tools_3.2.4   splines_3.2.4
---------------------------------------
Christophe Dutang
LMM, UdM, Le Mans, France
web: http://dutangc.free.fr <http://dutangc.free.fr/>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to