optObj
). Use this method to generate problem
objects.## S3 method for class 'optObj_clpAPI':
loadLPprob(lp,
nCols, nRows, mat, ub, lb, obj, rlb, rtype,
lpdir = "max", rub = NULL, ctype = NULL)## S3 method for class 'optObj_cplexAPI':
loadLPprob(lp,
nCols, nRows, mat, ub, lb, obj, rlb, rtype,
lpdir = "max", rub = NULL, ctype = NULL)
## S3 method for class 'optObj_glpkAPI':
loadLPprob(lp,
nCols, nRows, mat, ub, lb, obj, rlb, rtype,
lpdir = "max", rub = NULL, ctype = NULL)
## S3 method for class 'optObj_lpSolveAPI':
loadLPprob(lp,
nCols, nRows, mat, ub, lb, obj, rlb, rtype,
lpdir = "max", rub = NULL, ctype = NULL)
optObj_clpAPI
,
optObj_cplexAPI
,
Matrix
. The constraint matrix of the
problem object. The number of columns in mat
must be nCols
and the number of rows in mat
must be n
nCols
giving the upper bounds of the
variables of the problem object.nCols
giving the lower bounds of the
variables of the problem object.nCols
giving the objective coefficients
of the variables of the problem object.nRows
giving the right hand side of the
problem object. If argument rub
is not NULL
, rlb
contains the lower bounds of the constraints of the problem object.nRows
giving the constraint type:
"F"
: free variable, no upper or lower bound $-\infty < x < \infty$
"L"
: variable with lower bound "min"
or "max"
.
Default: "max"
.nRows
giving the right hand side of the
problem object. If not NULL
, it contains the upper bounds of the
constraints of the problem object.
Default: NULL
.nCols
giving the variable type. If set
to NULL
, no specific variable type is set, which usually means, all
variables are treated as continous variables.
Default: NULL
.
loadLPprob
can be used any time after a problem object is
initialized by initProb
.optObj
and constructor function
optObj
.