Previous Page: CPXNETchgbds First PageNext Page: CPXNETchgnodename

CPXNETchgname


Description

This function changes the name of a node or an arc in the network stored in a CPLEX network problem object.

Return Value

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

Synopsis

int CPXNETchgname (CPXENVptr env,
                   CPXNETptr net,
                   int key,
                   int index,
                   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 key
A character to indicate whether an arc name should be changed, or a node name should be changed.

key == 'a'  
Indicates the arc name is to be changed.  
key == 'n'  
Indicates the node name is to be changed.  

int index
The index of the arc or node whose name is to be changed.

char *name
The new name for the arc or node.

Example

status = CPXNETchgname (env, net, 'a', 10, "arc10");

Previous Page: CPXNETchgbds First PageNext Page: CPXNETchgnodename