Description
This function changes the names of a set of arcs in the network stored in a CPLEX network problem object.Return Value
If the operation is successful, CPXNETchgarcname() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETchgarcname (CPXENVptr env,
CPXNETptr net,
int cnt,
int *indices,
char **anames);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
int cntAn integer that indicates the total number of arc names to be changed. Thus
cnt specifies the length of the arrays indices and name.
int *indicesAn array of length
cnt containing the numerical indices of the arcs for which the names are to be changed. Note that, following the C language convention, arc j in the network has an internal index j-1.
char **anamesAn array of length
cnt containing the strings of the new arc names specified in indices.
status = CPXNETchgarcname (env, net, 10, indices, name);