Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXchgcoeflist
is used to change a list of
matrix coefficients of a CPLEX problem object. The list is prepared as a set
of triples (i, j, value
), where i
is the row
index, j
is the column index, and value
is the new
value. The list may be in any order.
The corresponding rows and columns must already exist in the CPLEX problem object.
This routine cannot be used to change objective, right-hand side, range, or bound coefficients.
Duplicate entries, that is, two triplets with identical i
and j
, are not allowed.
Example
status = CPXchgcoeflist (env, lp, numcoefs, rowlist, collist, vallist);
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
numcoefs | The number of coefficients to change, or, equivalently, the length of the arrays |
rowlist | An array of length |
collist | An array of length |
vallist | An array of length |