search for: consrhs

Displaying 1 result from an estimated 1 matches for "consrhs".

Did you mean: condrhs
2002 Jan 25
0
Simplex difficulties
...+ f = 14 a + d = 10 b + e = 8 c + f = 7 I've implemented this in R (1.4.0 (2001-12-19), SunOS 5.7) as: require(boot) costs = c(8,6,10,9,5,7) constraints = c( 1,1,1,0,0,0, 0,0,0,1,1,1, 1,0,0,1,0,0, 0,1,0,0,1,0, 0,0,1,0,0,1 ) consmat = matrix(constraints, nrow=5, ncol=6, byrow=T) consrhs = c(11,14,10,8,7) simpres = simplex(a=costs, A3=consmat, b3=consrhs, maxi=F) where I get the error from the simplex function: Error in simplex1(out1$a[1:(n + m1 + m2)], out1$A[, 1:(n + m1 + m2)], : subscript out of bounds According to Gass (An Illustrated Guide to Linear Programming) the s...