plotPolytope2D: plotPolytope2D polt the possible values of a multimensional...

Description Usage Arguments Value Examples

View source: R/plotPolytope2D.R

Description

plotPolytope2D polt the possible values of a multimensional convex polytope by A.x<=b and C.x=v for 2 dimensions

Usage

1
plotPolytope2D(A, b, C = NULL, v = NULL, params = c(1, 2))

Arguments

A

the matrix of inequality A.x<=b

b

the vector A.x<=b

C

the matrix of equality C.x=v (default NULL for no equality)

v

the vector of equality C.x=v (default NULL for no equality

params

a vector of length 2 corresponding to the index of the parameters

Value

a ggplot

Examples

1
2
3
4
5
6
7
8
n <- 20
A1 <- -diag(n)
b1 <- as.matrix(rep(0,n))
A2 <- diag(n)
b2 <- as.matrix(rep(1,n))
A <- rbind(A1,A2)
b <- rbind(b1,b2)
X0 <- plotPolytope2D(A,b)

Irstea/cpgsR documentation built on Jan. 25, 2020, 5:36 p.m.