NO FRAMES

CPXNETchgarcnodes

int CPXPUBLIC CPXNETchgarcnodes(CPXCENVptr env, CPXNETptr net, int cnt, const int * indices, const int * fromnode, const int * tonode)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETchgarcnodes can be used to change the nodes for a set of arcs in the network stored in a network problem object.

Any solution information stored in the problem object is lost.

Example

 status = CPXNETchgarcs (env, net, cnt, indices, newfrom, newto);

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.

cnt

Number of arcs to change.

indices

An 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].

fromnode

An 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.

tonode

An 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.

Returns:

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