Set constraint types in an lpSolve linear program model object.
Usage
set.constr.type(lprec, types, constraints = 1:m)
Arguments
lprec
an lpSolve linear program model object.
types
either a numeric vector or a character vector containing elements from the set {1 = "<=", 2=">=" 3="=" ,="" }<="" code=""> specifying the types of constraints.=",>
constraints
a numeric vector of unique values from the set {1, ..., m} (where m is the number of constraints in lprec) specifying which constraints to set.
Value
a logical vector indicating whether the constraint types were successfully set is invisibly returned.