NO FRAMES

CPXNETchgname

int CPXPUBLIC CPXNETchgname(CPXCENVptr env, CPXNETptr net, int key, int vindex, const char * name_str)
Definition file: cplex.h
Include files: cplex.h

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

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.

Example

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

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.

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.

Returns:

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