Overview | Group | Index | Concepts |
The routine CPXchgcoeflist
changes 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, righthand side, range, or bound coefficients.
Duplicate entries, that is, two triplets with identical i
and j
, are not allowed.
When you build or modify your problem with this routine,
you can verify that the results are as you intended
by calling CPXcheckchgcoeflist
during application development.
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 |