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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int cntAn integer that indicates the total number of variable names to be changed. Thus
cnt specifies the length of the arrays indices and newname.
int *indicesAn array of length
cnt containing the numerical indices of the variables for which the names are to be changed.
char **newnameAn array of length
cnt containing the strings of the new variable names specified in indices.