binaryPoints | R Documentation |
Binary (0-1) points in the feasible region (Ax<=b).
binaryPoints(A, b)
A |
Constraint matrix. |
b |
Right hand side. |
A data frame with all binary points inside the feasible region.
Do a simple enumeration of all binary points. Will not work if ncol(A)
large.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.