plotPolytope2D | R Documentation |
Plot the polytope (bounded convex set) of a linear mathematical program
plotPolytope2D(
A,
b,
obj = NULL,
type = rep("c", ncol(A)),
nonneg = rep(TRUE, ncol(A)),
crit = "max",
faces = rep("c", ncol(A)),
plotFaces = TRUE,
plotFeasible = TRUE,
plotOptimum = FALSE,
latex = FALSE,
labels = NULL,
...
)
A |
The constraint matrix. |
b |
Right hand side. |
obj |
A vector with objective coefficients. |
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. |
crit |
Either max or min (only used if add the iso-profit line) |
faces |
A character vector of same length as number of variables. If
entry k is 'i' variable |
plotFaces |
If |
plotFeasible |
If |
plotOptimum |
Show the optimum corner solution point (if alternative solutions only one is shown) and add the iso-profit line. |
latex |
If |
labels |
If |
... |
Further arguments passed on the the
|
A ggplot
object.
In general use plotPolytope()
instead of this function. The feasible region defined by the constraints must be bounded otherwise you may see
strange results.
Lars Relund lars@relund.dk
plotPolytope()
for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.