NO FRAMES

CPXgetctype

int CPXPUBLIC CPXgetctype(CPXCENVptr env, CPXCLPptr lp, char * xctype, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetctype is used to access the types for a range of variables in a problem object. The beginning and end of the range must be specified.

Example

 status = CPXgetctype (env, lp, ctype, 0, cur_numcols-1);

See Also:

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

xctype

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.

begin

An integer indicating the beginning of the range of types to be returned

end

An integer indicating the end of the range of types to be returned.

Returns:

The routine returns zero on success and nonzero if an error occurs.