Previous Page: CPXchgrhsFirst PageNext Page: CPXchgsense

CPXchgrowname


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

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 constraint 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 constraints for which the names are to be changed.

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

Previous Page: CPXchgrhsFirst PageNext Page: CPXchgsense