The routine CPXcheckaddcols()
validates the arguments of the corresponding CPXaddcols()
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.
int CPXcheckaddcols (CPXCENVptr env, CPXCLPptr lp, int ccnt, int nzcnt, const double *obj, const int *cmatbeg, const int *cmatind, const double *cmatval, const double *lb, const double *ub, char **colname); |
The CPXcheckaddcols()
routine has the same argument list as the CPXaddcols
()
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.
status = CPXcheckaddcols (env, lp, ccnt, nzcnt, obj, cmatbeg, cmatind, cmatval, lb, ub, newcolname); |