as.ieqFile {rPorta} | R Documentation |
as.ieqFile
attempts to turn its argument into an ieqFile
object.
as.ieqFile(v, sign=NULL)
v |
argument that should be turned into an ieqFile object |
sign |
vector of signs (-1 for <=, 0 for ==, and 1 for >=). Default is >= |
Constructs an ieqFile
object consisting only of the inequalities with the help of as.ieq
.
Returns an ieqFile
object.
Robin Nunkesser Robin.Nunkesser@tu-dortmund.de
# 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))