NO FRAMES

CPXNETchgnodename

int CPXPUBLIC CPXNETchgnodename(CPXCENVptr env, CPXNETptr net, int cnt, const int * indices, char ** newname)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETchgnodename changes the names of a set of nodes in the network stored in a network problem object.

Example

 status = CPXNETchgnodename (env, net, 10, indices, newname);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

cnt

An integer that indicates the total number of node names to be changed. Thus cnt specifies the length of the arrays indices and name.

indices

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

newname

An array of length cnt containing the strings of the new node names specified in indices.

Returns:

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