Initialize Problem Object.
# S4 method for optObj_clpAPI
initProb(lp, to = NULL, ...)# S4 method for optObj_cplexAPI
initProb(lp, to = FALSE, ...)
# S4 method for optObj_glpkAPI
initProb(lp, to = FALSE, ...)
# S4 method for optObj_lpSolveAPI
initProb(lp, to = NULL, nrows, ncols)
A single boolean, numeric or character value, controling the amount of
terminal output of the solver software.
Default: FALSE
or NULL
.
Number of rows (constraints) of the new problem object.
Number of columns (variables) of the new problem object.
Further arguments passed to the initialization function of the solver package.
signature(lp = "optObj_clpAPI")
method to use with package optObj_clpAPI, argument to
can
be a single numeric value: 0
-- “none”,
1
-- “just final”, 2
-- “just factorizations”,
3
-- “as 2 plus a bit more”, code4 -- “verbose”.
See COIN-OR Clp documentation for more details.
signature(lp = "optObj_cplexAPI")
method to use with package optObj_cplexAPI, argument to
can
be TRUE
or FALSE
. Setting CPLEX parameter
CPX_PARAM_SCRIND
to CPX_ON
or CPX_OFF
has the same
effect.
signature(lp = "optObj_glpkAPI")
method to use with package optObj_glpkAPI, argument to
can
be TRUE
or FALSE
, setting GLPK function
termOutGLPK
to GLP_ON
or GLP_OFF
. The amount of
output is controlled by the GLPK parameter MSG_LEV
.
signature(lp = "optObj_lpSolveAPI")
method to use with package optObj_lpSolveAPI, argument to
can
be a single character value, see lpSolveAPI documentation for more
details (lp.control.options
, section verbose
).
Superclass '>optObj
and constructor function
optObj
.