Previous Page: CPXNETcheckcopynet First PageNext Page: CPXNETchgarcnodes

CPXNETchgarcname


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX() routines.

CPXNETptr net
A pointer to a CPLEX network problem object as returned by CPXNETcreateprob().

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

int *indices
An 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 **anames
An array of length cnt containing the strings of the new arc names specified in indices.

Example

status = CPXNETchgarcname (env, net, 10, indices, name);

Previous Page: CPXNETcheckcopynet First PageNext Page: CPXNETchgarcnodes