NO FRAMES

CPXNETgetbase

int CPXPUBLIC CPXNETgetbase(CPXCENVptr env, CPXCNETptr net, int * astat, int * nstat)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETgetbase is used to access the network basis for a network problem object. Either of the arguments astat or nstat may be NULL.

For this function to succeed, a solution must exist for the problem object.

Table 1: Status codes of network arcs
CPX_BASICIf the arc is basic.
CPX_AT_LOWERIf the arc is nonbasic and its flow is on the lower bound.
CPX_AT_UPPERIf the arc is nonbasic and its flow is on the upper bound.
CPX_FREE_SUPERIf the arc is nonbasic but is free.In this case its flow is 0.
Table 2: Status of artificial arcs
CPX_BASICIf the arc is basic.
CPX_AT_LOWERIf the arc is nonbasic and its flow is on the lower bound.

Example

 status = CPXNETgetbase (env, net, astat, nstat);

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.

astat

An array in which the statuses for network arcs are to be written. After termination, astat[i] contains the status assigned to arc i of the network stored in net. The status may be one of the values in Table 1. If NULL is passed, no arc statuses are copied. Otherwise, astat must be an array of a size that is at least CPXNETgetnumarcs.

nstat

An array in which the statuses for artificial arcs from each node to the root node are to be written. After termination, nstat[i] contains the status assigned to the artificial arc from node i to the root node of the network stored in net. The status may be one of values in Table 2. If NULL is passed, no node statuses are copied. Otherwise, nstat must be an array of a size that is at least CPXNETgetnumnodes.

Returns:

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