NO FRAMES

CPXgetctype

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

The routine CPXgetctype accesses 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 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.

Returns:

The routine returns zero if successful and nonzero if an error occurs.