NO FRAMES

CPXcheckaddrows

public int CPXcheckaddrows(CPXCENVptr env, CPXCLPptr lp, int ccnt, int rcnt, int nzcnt, const double * rhs, const char * sense, const int * rmatbeg, const int * rmatind, const double * rmatval, char ** colname, char ** rowname)
Definition file: cplex.h

The routine CPXcheckaddrows validates the arguments of the corresponding CPXaddrows 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 CPXcheckaddrows routine has the same argument list as the CPXaddrows 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 problem. For most user applications, this distinction is unimportant.

Example

 status = CPXcheckaddrows (env, lp, ccnt, rcnt, nzcnt, rhs,
                           sense, rmatbeg, rmatind, rmatval,
                           newcolname, newrowname);

Returns:

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