getBoundParam: getBoundParam Computes the possible bounds for a parameter p...

Description Usage Arguments Value Examples

View source: R/getBoundParam.R

Description

getBoundParam Computes the possible bounds for a parameter p of a polytope defined by+A.x<=b and C.x=v

Usage

1
getBoundParam(A, b, p, C = NULL, v = NULL)

Arguments

A

the matrix of inequality A.x<=b

b

the vector A.x<=b

p

the index of the parameter for which the bounds should be computed

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

Value

a vector with lower bounds and upper bounds

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 <- getBoundParam(A,b,1)

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