Set lower and upper bounds on a set of variables in one step.
If lb[i] == ub[i]
the type of the bound is set to "B"
,
otherwise lb[i]
is set to "L"
and ub[i]
is set to
"U"
.
chgColsBndsCPLEX(env, lp, j, lb, ub)
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.
An integer that specifies the numeric index of the column in which the coefficient is located.
A vector containing the lower bounds.
A vector containing the upper bounds.
Zero if successful, otherwise nonzero.
Interface to the C function chgColsBnds
which calls the CPLEX
function CPXchgbds
.
The IBM ILOG CPLEX home page at https://www.ibm.com/support/knowledgecenter/SSSA5P.