Previous Page: CPXNETchgname First PageNext Page: CPXNETchgobj

CPXNETchgnodename


Description

This function changes the names of a set of nodes in the network stored in a CPLEX network problem object.

Return Value

If the operation is successful, CPXNETchgnodename() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXNETchgnodename (CPXENVptr env,
                       CPXNETptr net,
                       int cnt,
                       int *indices,
                       char **name);

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 node 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 nodes for which the names are to be changed. Note that node i in the network has an internal index i-1.

char **name
An array of length cnt containing the strings of the new node names specified in indices.

Example

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

Previous Page: CPXNETchgname First PageNext Page: CPXNETchgobj