CPXXgetctype and CPXgetctype
The routine CPXXgetctype/CPXgetctype accesses the types for a
range of variables in a problem object.
int CPXXgetctype( CPXCENVptr env, CPXCLPptr lp, char * xctype, CPXDIM begin, CPXDIM end )
int CPXgetctype( CPXCENVptr env, CPXCLPptr lp, char * xctype, int begin, int end )
Description
The routine CPXXgetctype/CPXgetctype accesses the types for a
range of variables in a problem object. The beginning and end of the range
must be specified.
Arguments
- 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 where the specified types are to be returned. This array must be of length (
end-begin+1). The type of variablejis returned inxctype[j-begin]. See the routineCPXXcopyctype/CPXcopyctypefor a list of possible values for the variables inxctype. - begin
- An integer specifying the beginning of the range of types to be returned
- end
- An integer specifying the end of the range of types to be returned.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXgetctype (env, lp, ctype, 0, cur_numcols-1);