Description
The function CPXNETchgarcnodes() can be used to change the nodes for a set of arcs in the network stored in a CPLEX network problem object.Return Value
If the operation is successful, CPXNETchgarcnodes() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETchgarcnodes (CPXENVptr env,
CPXNETptr net,
int cnt,
int *index,
int *fromnode,
int *tonode);
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 cntNumber of arcs to change.
int *indexAn array of arc indices that indicate the arcs to be changed. This array must have a length of at least
cnt. All indices must be in the range [0, narcs-1].
int *fromnodeAn array of indices of the "from node" for which the arcs are to be changed. All indices must be in the range [
0, nnodes-1]. The size of the array must be at least cnt.
int *tonodeAn array of indices of the "to node" for which the arcs are to be changed. All indices must be in the range [
0, nnodes-1]. The size of the array must be at least cnt.
status = CPXNETchgarcs (env, net, cnt, index, newfrom, newto);