Add New Rows (Constraints) to an Optimization Problem
Add new rows (constraints) to an optimization problem.
## S4 method for signature 'optObj_clpAPI' addRowsToProb(lp, i, type, lb, ub, cind, nzval, rnames = NULL) ## S4 method for signature 'optObj_cplexAPI' addRowsToProb(lp, i, type, lb, ub, cind, nzval, rnames = NULL) ## S4 method for signature 'optObj_glpkAPI' addRowsToProb(lp, i, type, lb, ub, cind, nzval, rnames = NULL) ## S4 method for signature 'optObj_lpSolveAPI' addRowsToProb(lp, i, type, lb, ub, cind, nzval, rnames = NULL)
lp |
An object extending class |
i |
A numeric vector containing the new row indices. |
type |
A character vector giving the constraint type:
|
lb |
A numeric vector containing the lower bound of the new constraints. |
ub |
A numeric vector containing the upper bound of the new constraints. |
cind |
A list containing the column indices of the new non-zero elements. |
nzval |
A list containing the new non-zero elements. |
rnames |
A character vector containing names for the new rows/constraints. |
signature(lp = "optObj_clpAPI")
method to use with package optObj_clpAPI. Parameter rnames
is
currently unused.
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 i
, type
, lb
, cind
, nzval
and
rnames
(if not NULL
) must have the same length.
Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>
Maintainer: Mayo Roettger <mayo.roettger@hhu.de>
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.