Previous Page: CPXchgcoeflistFirst PageNext Page: CPXchgctype

CPXchgcolname


Description

This routine changes the names of variables in an LP problem object. If this routine is performed on an LP problem object with no variable names, default names will be created before the change is made.

Return Value

If the operation is successful, CPXchgcolname() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXchgcolname (CPXENVptr env,
                   CPXLPptr lp,
                   int cnt,
                   int *indices,
                   char **newname);

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().

int cnt
An integer that indicates the total number of variable names to be changed. Thus cnt specifies the length of the arrays indices and newname.

int *indices
An array of length cnt containing the numerical indices of the variables for which the names are to be changed.

char **newname
An array of length cnt containing the strings of the new variable names specified in indices.

Previous Page: CPXchgcoeflistFirst PageNext Page: CPXchgctype