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
cntspecifies the length of the arraysindicesandname. - indices
-
An array of length
cntcontaining the numeric indices of the nodes for which the names are to be changed. - newname
-
An array of length
cntcontaining the new names for the nodes specified inindices.
Return
The routine returns 0 (zero) on success and nonzero if an error occurs.Example
status = CPXNETchgnodename (env, net, 10, indices, newname);