as.ieq {rPorta}R Documentation

Coerce to ieq object

Description

as.ieq attempts to turn its argument into an ieq object.

Usage

as.ieq(v, sign=NULL)

Arguments

v argument that should be turned into an ieq object
sign vector of signs (-1 for <=, 0 for ==, and 1 for >=). Default is >=

Details

Handles the same inputs as as.poi but the input has to be a matrix with at least two columns.

Value

Returns an ieq object.

Author(s)

Robin Nunkesser Robin.Nunkesser@tu-dortmund.de

See Also

as.poi, "ieq"

Examples

# x1,x2,x3>=0
as.ieq(cbind(diag(3),rep(0,3)))

# x1,x2,x3==0
as.ieq(cbind(diag(3),rep(0,3)),sign=rep(0,3))

[Package rPorta version 0.1-9 Index]