Previous Page: CPXcheckcopysosFirst PageNext Page: CPXchgbds

CPXcheckvals


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

int cnt
The length of the indices and values arrays to be examined.

int *rowind
An array containing row indices. May be NULL.

int *colind
An array containing column indices. May be NULL.

double *values
An array of values. May be NULL.

Example

Consider the following call to 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);
Previous Page: CPXcheckcopysosFirst PageNext Page: CPXchgbds