[R-sig-eco] Help for the function "Simplex" in R

sherman ren at biochem.mpg.de
Mon Jun 8 17:49:06 CEST 2009


Hello

I am a new user of  R and try to use Simplex to solve the linear programming
problem.

My problem has 47 variable. 
enj is the vector of object function which is 1*47 dimension
M1 and M2 are 2 1000*48 dimension matrixes. The first column in M1 indicated
b1 and 2-48 for the A1 as following  A1%*%x <= b1
and the same for M2 where b2 is the first column and A2 are the left 2-48
columns A2%*%x >= b2

When i run 
simplex(a=enj,A1=M1[,2:48],b1=t(M1[,1]),A2=M2[,2:48],b2=t(M2[,1]),maxi=TRUE)
i got the error message: Error in as.vector(X) %*% t(as.vector(Y)) :
non-conformable arguments

Is anyone knows what is wrong in my statement? 

Thank you.



-- 
View this message in context: http://n2.nabble.com/Help-for-the-function-%22Simplex%22-in-R-tp3043777p3043777.html
Sent from the r-sig-ecology mailing list archive at Nabble.com.



More information about the R-sig-ecology mailing list