addQConstrCPLEX: Add Quadratic Constraint to a Specified CPLEX Problem Object

Description Usage Arguments Details Value Author(s) References

View source: R/cplexAPI.R

Description

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

Usage

1
2
3
  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.

Details

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

Value

Zero if successful, otherwise nonzero.

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

References

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


cplexAPI documentation built on Oct. 23, 2020, 5:45 p.m.