CPXgetctype


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 (CPXCENVptr env,
                   CPXCLPptr lp,
                   char *xctype,
                   int begin,
                   int end);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXCLPptr lp

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

char *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.

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);

See Also

CPXcopyctype()

Previous Page: CPXgetcrossppushcnt Return to Top Next Page: CPXgetcutoff