as.ieqFile {rPorta}R Documentation

Coerce to ieqFile object

Description

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

Usage

as.ieqFile(v, sign=NULL)

Arguments

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

Details

Constructs an ieqFile object consisting only of the inequalities with the help of as.ieq.

Value

Returns an ieqFile object.

Author(s)

Robin Nunkesser Robin.Nunkesser@tu-dortmund.de

See Also

as.ieq, "ieqFile"

Examples

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

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

[Package rPorta version 0.1-9 Index]