search for: smplx

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

Did you mean: cmplx
2005 Mar 11
1
Simplex(boot) returning invalid answer
...s, which does not satisfy the constraints I passed in. A small example: > ubMatrix <- matrix(c(1,1,-1,0,-1,-1), 3, 2) > ubVector <- c(2,1,-1) > objective <- c(0,1) > ubMatrix [,1] [,2] [1,] 1 0 [2,] 1 -1 [3,] -1 -1 > ubVector [1] 2 1 -1 > smplx <- simplex( a = objective, A1 = ubMatrix, b1 = ubVector) > smplx$solved [1] 1 > smplx$soln x1 x2 0 0 > ubMatrix %*% smplx$soln <= ubVector [,1] [1,] TRUE [2,] TRUE [3,] FALSE The correct answer to the problem, which also has a value of 0, but satisfies the constrai...