NO FRAMES

CPXchgrowname

int CPXPUBLIC CPXchgrowname(CPXCENVptr env, CPXLPptr lp, int cnt, const int * indices, char ** newname)
Definition file: cplex.h
Include files: cplex.h

This routine changes the names of linear constraints in a CPLEX problem object. If this routine is performed on a problem object with no constraint names, default names are created before the change is made.

Example

 status = CPXchgrowname (env, lp, cnt, indices, values);
 

See Also:

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

cnt

An integer that indicates the total number of linear constraint names to be changed, and thus specifies the length of the arrays indices and newname.

indices

An array of length cnt containing the numeric indices of the linear constraints for which the names are to be changed.

newname

An array of length cnt containing the strings of the new names for the linear constraints specified in indices.

Returns:

The routine returns zero on success and nonzero if an error occurs.