Description
This routine checks an array of indices and a corresponding array of values for input errors. The routine is useful for checking the arguments of problem modification routines such as CPXchgbds(), CPXchgobj(), and CPXchgrhs().Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXcheckvals (CPXENVptr env
CPXLPptr lp,
int cnt,
int *rowind,
int *colind,
double *values);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int cntThe length of the indices and values arrays to be examined.
int *rowindAn array containing row indices. May be
NULL.
int *colindAn array containing column indices. May be
NULL.
double *valuesAn array of values. May be
NULL.
CPXchgobj():
status = CPXchgobj (env, lp, cnt, indices, values);The parameters to this routine could be checked with a call to
CPXcheckvals() as follows:
status = CPXcheckvals (env, lp, cnt, NULL, indices, values);