Add new columns (variables) to an optimization problem.
# S4 method for optObj_clpAPI
addColsToProb(lp, j, obj, lb, ub, rind, nzval)# S4 method for optObj_cplexAPI
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
# S4 method for optObj_glpkAPI
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
# S4 method for optObj_lpSolveAPI
addColsToProb(lp, j, obj, lb, ub, rind, nzval)
A numeric vector containing the new column indices.
A numeric vector containing the objective coefficients of the new variables.
A numeric vector containing the lower bounds of the new variables.
A numeric vector containing the upper bounds of the new variables.
A list containing the row indices of the new non-zero elements.
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.
Superclass '>optObj
and constructor function
optObj
.