Character string giving direction of optimization: "min"
(default) or "max."
objective.in
Numeric vector of coefficients of objective
function
const.mat
Matrix of numeric constraint coefficients, one row per
constraint, one column per variable (unless
transpose.constraints = FALSE; see below).
const.dir
Vector of character strings giving the direction of the
constraint: each value should be one of "<," "<=," "=," "==,"
">," or ">=". (In each pair the two values are identical.)
const.rhs
Vector of numeric values for the right-hand sides of the
constraints.
free.var
Vector of numeric values for indicating free
variables. If this argument is NULL, no free variables is included.
Details
lp2 extends lpSolve::lp() to incorporate free variables easily.