Previous Page: CPXNETgetnodearcs First PageNext Page: CPXNETgetnodename

CPXNETgetnodeindex


Description

Given a name lname, this function returns the index of the node with that name (in the network stored in a CPLEX network problem object) to the integer pointed to by index_p.

Return Value

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

Synopsis

int CPXNETgetnodeindex (CPXENVptr env,
                        CPXNETptr net,
                        char *lname,
                        int *index_p);

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().

char *lname
Name of the node to look for.

int *index_p
A pointer to an integer in which the node index will be stored. If the function is successful, *index_p will contain the index number upon function return, otherwise *index_p will be undefined.

Example

status = CPXNETgetnodeindex (env, net, "root", &index);

Previous Page: CPXNETgetnodearcs First PageNext Page: CPXNETgetnodename