Low level interface function to the IBM ILOG CPLEX function
CPXaddindconstr
. Consult the IBM ILOG CPLEX documentation for more
detailed information.
addIndConstrCPLEX(env, lp, indvar, complemented,
nzcnt, rhs, sense, linind, linval, indname = NULL)
An object of class "'>cplexPtr"
as returned by
openEnvCPLEX
. This is basically a pointer to an
IBM ILOG CPLEX environment.
An object of class "'>cplexPtr"
as returned by
initProbCPLEX
. This is basically a pointer to an
IBM ILOG CPLEX problem object.
The binary variable that acts as the indicator for this constraint.
A Boolean value that specifies whether the indicator variable is complemented.
An integer that specifies the number of nonzero coefficients in the linear portion of the indicator constraint.
The righthand side value for the linear portion of the indicator constraint.
The sense of the linear portion of the indicator constraint.
A vector that with linval
defines the linear portion of the indicator
constraint.
A vector that with linind defines the linear portion of the indicator constraint.
The name of the constraint to be added (optional).
Zero if successful, otherwise nonzero.
Interface to the C function addIndConstr
which calls the CPLEX
function CPXaddindconstr
.
The IBM ILOG CPLEX home page at https://www.ibm.com/support/knowledgecenter/SSSA5P.