The routine returns a zero on success, and a nonzero if an error occurs.
int CPXgetctype (CPXCENVptr env, CPXCLPptr lp, char *xctype, int begin, int end); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
An array where the specified types are to be returned. This array must be of length (end
-begin+1
). The type of variable j
is returned in ctype[j-begin]
. See the routine CPXcopyctype()
for a list of possible values for the variables in ctype
.
An integer indicating the beginning of the range of types to be returned
An integer indicating the end of the range of types to be returned.
status = CPXgetctype (env, lp, ctype, 0, cur_numcols-1); |