NO FRAMES

CPXchgcolname

public int CPXchgcolname(CPXCENVptr env, CPXLPptr lp, int cnt, const int * indices, char ** newname)
Definition file: cplex.h

The routine CPXchgcolname changes the names of variables in a CPLEX problem object. If this routine is performed on a problem object with no variable names, default names are created before the change is made.

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 variable names to be changed. Thus cnt specifies the length of the arrays indices and newname.

indices

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

newname

An array of length cnt containing the strings of the new variable names for the columns specified in indices.

Returns:

The routine returns zero if successful and nonzero if an error occurs.