Learn R Programming

cplexAPI (version 1.4.0)

copyLpCPLEX: Copy Data Defining an LP Problem to a CPLEX Problem Object.

Description

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

Usage

copyLpCPLEX(env, lp, nCols, nRows, lpdir, objf, rhs, sense,
              matbeg, matcnt, matind, matval, lb, ub, rngval = 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 columns in the constraint matrix.

nRows

Number of rows in the constraint matrix.

lpdir

Single integer value that specifies whether the problem is a minimization or maximization problem.

objf

The objective function coefficients.

rhs

The righthand side values for each constraint in the constraint matrix.

sense

The sense of each constraint in the constraint matrix.

matbeg

Array that defines the constraint matrix. Consult the IBM ILOG CPLEX documentation for more detailed information.

matcnt

Array that defines the constraint matrix. Consult the IBM ILOG CPLEX documentation for more detailed information.

matind

Array that defines the constraint matrix. Consult the IBM ILOG CPLEX documentation for more detailed information.

matval

Array that defines the constraint matrix. Consult the IBM ILOG CPLEX documentation for more detailed information.

lb

Containing the lower bound on each of the variables.

ub

Containing the lower bound on each of the variables.

rngval

Containing the range value of each ranged constraint.

Value

Zero if successful, otherwise nonzero.

Details

Interface to the C function copyLp which calls the CPLEX function CPXcopylp.

References

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