CPXchgctype() is used to change the types of a set of variables of a CPLEX problem object. Several types can be changed at once, with each type specified by the index of the variable with which it is associated.
If a variable is to be changed to binary, a call to
The routine returns a zero on success, and a nonzero if an error occurs.
int CPXchgctype (CPXCENVptr env, CPXLPptr lp, int cnt, const int *indices, const char *xctype);
The pointer to the CPLEX environment as returned by the
A pointer to a CPLEX problem object as returned by
An integer that indicates the total number of types to be changed, and thus specifies the length of the arrays
An array containing the numerical indices of the columns corresponding to the variables the types of which are to be changed.
An array containing characters that represent the new types for the columns specified in indices. Possible values for