[R] simplex (boot): solving A2 %*% x >= b2 not possible
Wolfram Fischer - Z/I/M
wolfram at fischer-zim.ch
Tue May 28 08:00:01 CEST 2002
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list