CPXXcheckcopyctype and CPXcheckcopyctype
Checks the data about the type of variables copied in a model.
Signature
CPXCHECKLIBAPI
int CPXPUBLIC CPXXcheckcopyctype (CPXCENVptr env,
CPXCLPptr lp,
const char *xctype);
CPXCHECKLIBAPI
int CPXPUBLIC CPXcheckcopyctype (CPXCENVptr env,
CPXCLPptr lp,
const char *xctype);
Description
This routine validates the arguments of the corresponding routine
CPXXcopyctype and CPXcopyctype.
Specifically, when CPXXcopyctype and CPXcopyctype copies
information about variable types in a given model, this routine
checks that copied data.
The source code of this data checking routine
is in the file check.c, provided
as part of the product.
To call this routine, you must compile
and link check.c with your program
as you compile and link with the CPLEX Callable Library.
Arguments
The arguments of this routine are the same as those of
CPXXcopyctype and CPXcopyctype.
The second argument, lp, is technically
a pointer to a constant LP object
of type CPXCLPptr rather than type CPXLPptr,
because this routine does not modify the problem.
For most user applications, this distinction is unimportant.
| Name | Description |
|---|---|
| env |
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
|
| lp |
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.
|
| xctype |
An array of length CPXgetnumcols(env,lp) containing the type of each column in the constraint matrix. Possible values appear in Table 1.
|
Return
The routine returns nonzero if it detects an error in the data; it returns zero if it does not detect any data errors.
Example
status = CPXXcheckcopyctype (env, lp, ctype);