NO FRAMES

CPXNETchgarcname

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

This routine CPXNETchgarcname changes the names of a set of arcs in the network stored in a network problem object.

Example

 status = CPXNETchgarcname (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 arc names to be changed. Thus cnt specifies the length of the arrays indices and anames.

indices

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

newname

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

Returns:

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