Displaying 3 results from an estimated 3 matches for "simplex1".
Did you mean:
simplex
2003 Oct 11
1
Simplex "Out of Bounds" Error
...e of the simplex function to
determine if a point is in the convex hull of another set of points or not):
>a <- c(0, 0)
>A3 <-matrix(c(1,2,3,4,1,1), ncol = 2, byrow = T)
>b3 <-c(1.5, 3.5, 1)
>simplex(a = a, A3 = A3, b3 = b3)
and the following error message appears:
Error in simplex1(out1$a[1:(n + m1 + m2)], out1$A[, 1:(n + m1 + m2)], :
subscript out of bounds
Any advice on why this error is appearing and how to avoid it? (Particularly
the latter?) In terms of the convex hull problem, this error seems to occur
when the point in question (in the convex hull or not...
2002 Jan 25
0
Simplex difficulties
...,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
solution should be a=10, b=1, c=0, d=0, e=7, f=7 to minimize the
objective function at 170. Have I misunderstood the use of the simplex
function h...
2002 Dec 09
0
Re: R-help digest, Vol 1 #10 - 6 msgs
...Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
> The attached test6.r sets up input for simplex from boot package. It's
> input file is short2A.txt.
>
> Running under R 1.6.1 I get the following error message.
>
> Error in simplex1 (out1$a[1:(n + m1 + m2)], out1$A[, 1:(n + m1 + m2)], :
> subscript out of bounds
>
> Other calls to simplex seem to work properly
>
> What am I doing wrong?
>
> --------------060007010402070602040701
> Content-Type: text/plain;
> name="test6.R"
> C...