Previous Page: CPXNETcreateprob First PageNext Page: CPXNETdelnodes

CPXNETdelarcs


Description

The function CPXNETdelarcs() is used to remove a range of arcs from the network stored in a CPLEX network problem object. The remaining arcs are renumbered starting at zero; their order is preserved. Even if removing arcs will disconnect some nodes from the rest of the network, these nodes will remain part of the network.

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

Return Value

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

Synopsis

int CPXNETdelarcs (CPXENVptr env,
                   CPXNETptr net,
                   int begin,
                   int end);

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 begin
Index of the first arc to delete.

int end
Index of the last arc to delete.

Example

status = CPXNETdelarcs (env, net, 10, 20);

Previous Page: CPXNETcreateprob First PageNext Page: CPXNETdelnodes