CPXXNETchgname and CPXNETchgname

The routine CPXXNETchgname/CPXNETchgname changes the name of a node or an arc in the network stored in a network problem object.

int  CPXXNETchgname( CPXCENVptr env, CPXNETptr net, int key, CPXDIM vindex, char const * name_str )

int  CPXNETchgname( CPXCENVptr env, CPXNETptr net, int key, int vindex, char const * name_str )

Description

The routine CPXXNETchgname/CPXNETchgname changes the name of a node or an arc in the network stored in a network problem object.

Table 1. Values of key in CPXNETchgname
key == 'a' Indicates the arc name is to be changed.
key == 'n' Indicates the node name is to be changed.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/CPXNETcreateprob.
key
A character to indicate whether an arc name should be changed, or a node name should be changed.
vindex
The index of the arc or node whose name is to be changed.
name_str
The new name for the arc or node.

Return

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

Example


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