Learn R Programming

cplexAPI (version 1.4.0)

addQConstrCPLEX: Add Quadratic Constraint to a Specified CPLEX Problem Object

Description

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

Usage

addQConstrCPLEX(env, lp, lzn, qzn, rhs, sense,
                  lind = NULL, lval = NULL,
                  qrow, qcol, qval, qname = 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.

lzn

Number of nonzero constraint coefficients in the linear part of the constraint.

qzn

Number of nonzero constraint coefficients in the quadratic part of the constraint.

rhs

Righthand side term.

sense

The sense of the constraint to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

lind

Linear part of the quadratic constraint to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

lval

Linear part of the constraint to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

qrow

Quadratic part of the quadratic constraint to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

qcol

Quadratic part of the quadratic constraint to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

qval

Quadratic part of the quadratic constraint to be added. Consult the IBM ILOG CPLEX documentation for more detailed information.

qname

Name of the constraint to be added.

Value

Zero if successful, otherwise nonzero.

Details

Interface to the C function addQConstr which calls the CPLEX function CPXaddqconstr.

References

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