slices | R Documentation |
Find all corner points in the slices define for each fixed integer combination.
slices(
A,
b,
type = rep("c", ncol(A)),
nonneg = rep(TRUE, ncol(A)),
collapse = FALSE
)
A |
The constraint matrix. |
b |
Right hand side. |
type |
A character vector of same length as number of variables. If
entry k is 'i' variable |
nonneg |
A boolean vector of same length as number of variables. If entry k is TRUE then variable k must be non-negative. |
collapse |
Collapse list to a data frame with unique points. |
A list with the corner points (one entry for each slice).
A <- matrix( c(3, -2, 1,2, 4, -2,-3, 2, 1), nc = 3, byrow = TRUE)
b <- c(10,12,3)
slices(A, b, type=c("i","c","i"))
A <- matrix(c(9,10,2,4,-3,2), ncol = 2, byrow = TRUE)
b <- c(90,27,3)
slices(A, b, type=c("c","i"), collapse = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.