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 routine returns a zero on success, and a nonzero if an error occurs.
int CPXchgcoeflist (CPXCENVptr env, CPXLPptr lp, int numcoefs, const int *rowlist, const int *collist, const double *vallist);
The pointer to the CPLEX environment as returned by
A pointer to a CPLEX problem object as returned by
The number of coefficients to change, or, equivalently, the length of the arrays
Arrays of length
numcoefs that describe the list of coefficients to change. The entries
vallist[k] indicate that the matrix coefficient in row
rowlist[k] and column
collist[k] should be changed to the value