CPXXNETgetnodeindex and CPXNETgetnodeindex
The routine CPXXNETgetnodeindex/CPXNETgetnodeindex returns the index of the
specified node (in the network stored in a network problem object) in the
integer pointed to by index_p.
int CPXXNETgetnodeindex( CPXCENVptr env, CPXCNETptr net, char const * lname_str, CPXDIM * index_p )
int CPXNETgetnodeindex( CPXCENVptr env, CPXCNETptr net, char const * lname_str, int * index_p )
Description
The routine CPXXNETgetnodeindex/CPXNETgetnodeindex returns the index of the
specified node (in the network stored in a network problem object) in the
integer pointed to by index_p.
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. - lname_str
- Name of the node to look for.
- index_p
-
A pointer to an integer to hold the node index. If the routine is successful,
*index_pcontains the index number; otherwise,*index_pis undefined.
Return
The routine returns 0 (zero) on success and nonzero if an error occurs.Example
status = CPXNETgetnodeindex (env, net, "root", &index);