powered by
Binary (0-1) points in the feasible region (Ax<=b).
binaryPoints(A, b)
A data frame with all binary points inside the feasible region.
Constraint matrix.
Right hand side.
Lars Relund lars@relund.dk.
A <- matrix( c(3,-2, 1, 2, 4,-2,-3, 2, 1), nc = 3, byrow = TRUE) b <- c(10, 12, 3) binaryPoints(A, b) A <- matrix(c(9, 10, 2, 4, -3, 2), ncol = 2, byrow = TRUE) b <- c(90, 27, 3) binaryPoints(A, b)
Run the code above in your browser using DataLab