as.ieq {rPorta} | R Documentation |
as.ieq
attempts to turn its argument into an ieq
object.
as.ieq(v, sign=NULL)
v |
argument that should be turned into an ieq object |
sign |
vector of signs (-1 for <=, 0 for ==, and 1 for >=). Default is >= |
Handles the same inputs as as.poi
but the input has to be a matrix with at least two columns.
Returns an ieq
object.
Robin Nunkesser Robin.Nunkesser@tu-dortmund.de
# 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))