Description Usage Arguments Methods Note Author(s) See Also
Add new columns (variables) to an optimization problem.
1 2 3 4 5 6 7 8 9 10 11 | ## S4 method for signature 'optObj_clpAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
## S4 method for signature 'optObj_cplexAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
## S4 method for signature 'optObj_glpkAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
## S4 method for signature 'optObj_lpSolveAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
|
lp |
An object extending class |
j |
A numeric vector containing the new column indices. |
obj |
A numeric vector containing the objective coefficients of the new variables. |
lb |
A numeric vector containing the lower bounds of the new variables. |
ub |
A numeric vector containing the upper bounds of the new variables. |
rind |
A list containing the row indices of the new non-zero elements. |
nzval |
A list containing the new non-zero elements. |
signature(lp = "optObj_clpAPI")
method to use with package optObj_clpAPI.
signature(lp = "optObj_cplexAPI")
method to use with package optObj_cplexAPI.
signature(lp = "optObj_glpkAPI")
method to use with package optObj_glpkAPI.
signature(lp = "optObj_lpSolveAPI")
method to use with package optObj_lpSolveAPI.
Arguments j
, obj
, lb
, lu
, rind
and
nzval
must have the same length.
Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>
Maintainer: Mayo Roettger <mayo.roettger@hhu.de>
Superclass optObj
and constructor function
optObj
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.