NO FRAMES

CPXchgname

int CPXPUBLIC CPXchgname(CPXCENVptr env, CPXLPptr lp, int key, int ij, const char * newname_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXchgname changes the name of a constraint or the name of a variable in a CPLEX problem object. If this routine is performed on a problem object with no row or column names, default names are created before the change is made.

Example

 status = CPXchgname (env, lp, 'c', 10, "name10");
 
Values of key
key = 'r'change row name
key = 'c'change column name

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.

key

A character to indicate whether a row name or a column name should be changed. Possible values appear in the table.

ij

An integer that indicates the numeric index of the column or row for which the name is to be changed.

newname_str

A pointer to a character string containing the new name.

Returns:

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