cornerPoints | R Documentation |
Calculate the corner points for the polytope Ax<=b.
cornerPoints(A, b, type = rep("c", ncol(A)), nonneg = rep(TRUE, ncol(A)))
A |
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. |
A data frame with a corner point in each row.
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)
cornerPoints(A, b, type = c("c", "c", "c"))
cornerPoints(A, b, type = c("i", "i", "i"))
cornerPoints(A, b, type = c("i", "c", "c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.