[R] simplex (boot): solving A2 %*% x >= b2 not possible

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue May 28 09:43:06 CEST 2002


This is a bug in the boot package: in the original and not just in the port
to R.  Please report it to the author.


On Tue, 28 May 2002, Wolfram Fischer - Z/I/M wrote:

> When I want to solve a problem of the form A2 %*% x >= b2
> I receive an error message allthough the problem is
> solvable:
>
> library(boot)
> A <- matrix( c(4,8,8,4), 2, 2 )
> b <- c(9,9)
> a <- b
>
> simplex( a=a, A2=A, b2=b, maxi=F )
> #--
> #	Error in rbind(iden(m1), zero(m2 + m3, m1)) :
> #		attempt to set an attribute on NULL
>
>
> #== IN CONTRAST TO A CORRECT RESULT WHEN CALLING:
>
> simplex(a=a, A1=A, b1=b, maxi=T )
> #--
> #	Optimal solution has the following values
> #	  x1   x2
> #	0.75 0.75
> #	The optimal value of the objective  function is 13.5.
>
>
> Wolfram Fischer
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list