Description
This routine changes the names of constraints in an LP problem object. If this routine is performed on an LP problem object with no constraint names, default names will be created before the change is made.Return Value
If the operation is successful, CPXchgrowname() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXchgrowname (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 constraint 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 constraints for which the names are to be changed.
char **newnameAn array of length
cnt containing the strings of the new constraint names specified in indices.