NO FRAMES

CPXcheckchgcoeflist

int CPXPUBLIC CPXcheckchgcoeflist(CPXCENVptr env, CPXCLPptr lp, int numcoefs, const int * rowlist, const int * collist, const double * vallist)
Definition file: cplex.h
Include files: cplex.h

The routine CPXcheckchgcoeflist validates the arguments of the corresponding CPXchgcoeflist routine. This data checking routine is found in source format in the file check.c which is provided with the standard CPLEX distribution. To call this routine, you must compile and link check.c with your program as well as the CPLEX Callable Library.

The CPXcheckchgcoeflist routine has the same argument list as the CPXchgcoeflist routine. The second argument, lp, is technically a pointer to a constant LP object of type CPXCLPptr rather than type CPXLPptr, as this routine will not modify the model. For most user applications, this distinction is unimportant.

Example

 status = CPXcheckchgcoeflist (env, lp, numcoefs, rowlist,
                               collist, vallist);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

numcoefs

The number of coefficients to check, or, equivalently, the length of the arrays rowlist, collist, and vallist.

rowlist

An array of length numcoefs that with collist and vallist indicates the coefficients to check.

collist

An array of length numcoefs that with rowlist and vallist indicates the coefficients to check.

vallist

An array of length numcoefs that with rowlist and collist indicates the coefficients to change. The entries rowlist[k], collist[k], and vallist[k] indicate that the matrix coefficient in row rowlist[k] and column collist[k] should be checked with respect to the value vallist[k].

Returns:

The routine returns nonzero if it detects an error in the data; it returns zero if it does not detect any data errors.