Previous Page: CPXNETchgarcname First PageNext Page: CPXNETchgbds

CPXNETchgarcnodes


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.

Any solution information that may be stored in the CPLEX network problem object will be lost.

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);

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

int cnt
Number of arcs to change.

int *index
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].

int *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.

int *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.

Example

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

Previous Page: CPXNETchgarcname First PageNext Page: CPXNETchgbds