Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXchgctype
is used to change the types of a
set of variables of a CPLEX problem object. Several types can be changed at
once, with each type specified by the index of the variable with which it is
associated.
CPXchgbds
should also be made to change the bounds to 0 and 1.CPX_CONTINUOUS | 'C' | make column indices[j] continuous |
CPX_BINARY | 'B' | make column indices[j] binary |
CPX_INTEGER | 'I' | make column indices[j] general integer |
CPX_SEMICONT | 'S' | make column indices[j] semi-continuous |
CPX_SEMIINT | 'N' | make column indices[j] semi-integer |
Example
status = CPXchgctype (env, lp, cnt, indices, ctype);
env | A pointer to the CPLEX environment as returned by the |
lp | A pointer to a CPLEX problem object as returned by |
cnt | An integer that indicates the total number of types to be changed, and thus specifies the length of the arrays |
indices | An array containing the numeric indices of the columns corresponding to the variables the types of which are to be changed. |
xctype | An array containing characters that represent the new types for the columns specified in indices. Possible values for |