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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
int keyA 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 indexThe index of the arc or node whose name is to be changed.
char *nameThe new name for the arc or node.
status = CPXNETchgname (env, net, 'a', 10, "arc10");