Learn R Programming

cplexAPI (version 1.4.0)

addRowsCPLEX: Add Constraints to a Specified CPLEX Problem Object

Description

Low level interface function to the IBM ILOG CPLEX function CPXaddrows. Consult the IBM ILOG CPLEX documentation for more detailed information.

Usage

addRowsCPLEX(env, lp, ncols, nrows, nnz, matbeg, matind, matval,
                         rhs = NULL, sense = NULL,
                         cnames = NULL, rnames = NULL)

Arguments

env

An object of class "'>cplexPtr" as returned by openEnvCPLEX. This is basically a pointer to an IBM ILOG CPLEX environment.

lp

An object of class "'>cplexPtr" as returned by initProbCPLEX. This is basically a pointer to an IBM ILOG CPLEX problem object.

ncols

Number of new columns in the constraints being added to the constraint matrix.

nrows

Number of rows.

nnz

Number of nonzero constraint coefficients.

matbeg

An array used with rmatind and rmatval to define the rows to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

matind

An array used with rmatind and rmatval to define the rows to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

matval

An array used with rmatind and rmatval to define the rows to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

rhs

Righthand side term for each constraint to be added.

sense

Sense of each constraint to be added.

cnames

Names of the new columns.

rnames

Names of the new rows.

Value

Zero if successful, otherwise nonzero.

Details

Interface to the C function addCols which calls the CPLEX function CPXaddcols.

References

The IBM ILOG CPLEX home page at https://www.ibm.com/support/knowledgecenter/SSSA5P.

See Also

checkAddRowsCPLEX, addColsCPLEX, copyLpCPLEX, chgRngValCPLEX