Previous Page: CPXgetcrossppushcntFirst PageNext Page: CPXgetcutoff

CPXgetctype


Usage

Mixed Integer Users Only

Description

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.

Return Value

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

Synopsis

int CPXgetctype (CPXENVptr env,
                 CPXLPptr lp,
                 char *ctype,
                 int begin,
                 int end);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

char *ctype
An array where the specified types are to be returned. This array must be of length(end-begin+1). The type of variable j will be returned in ctype[j-begin].

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

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

Example

status = CPXgetctype (env, lp, ctype, 0, cur_numcols-1);
Previous Page: CPXgetcrossppushcntFirst PageNext Page: CPXgetcutoff