CPXXNETchgnodename and CPXNETchgnodename

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

int  CPXXNETchgnodename( CPXCENVptr env, CPXNETptr net, CPXDIM cnt, CPXDIM const * indices, char const *const * newname )

int  CPXNETchgnodename( CPXCENVptr env, CPXNETptr net, int cnt, int const * indices, char ** newname )

Description

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

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/CPXNETcreateprob.
cnt
An integer that specifies 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 new names for the nodes specified in indices.

Return

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

Example


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