CPXXNETgetbase and CPXNETgetbase
The routine CPXXNETgetbase/CPXNETgetbase is used to access the network
basis for a network problem object.
int CPXXNETgetbase( CPXCENVptr env, CPXCNETptr net, int * astat, int * nstat )
int CPXNETgetbase( CPXCENVptr env, CPXCNETptr net, int * astat, int * nstat )
Description
The routine CPXXNETgetbase/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.
CPX_BASIC |
If the arc is basic. |
CPX_AT_LOWER |
If the arc is nonbasic and its flow is on the lower bound. |
CPX_AT_UPPER |
If the arc is nonbasic and its flow is on the upper bound. |
CPX_FREE_SUPER |
If the arc is nonbasic but is free.In this case its flow is 0. |
CPX_BASIC |
If the arc is basic. |
CPX_AT_LOWER |
If the arc is nonbasic and its flow is on the lower bound. |
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - net
-
A pointer to a CPLEX network problem object as returned by
CPXXNETcreateprob/CPXNETcreateprob. - astat
-
An array in which the statuses for network arcs are to be written. After termination,
astat[i]contains the status assigned to arciof the network stored innet. The status may be one of the values in Table 1. If NULL is passed, no arc statuses are copied. Otherwise,astatmust be an array of a size that is at leastCPXXNETgetnumarcs/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 nodeito the root node of the network stored innet. The status may be one of values in Table 2. If NULL is passed, no node statuses are copied. Otherwise,nstatmust be an array of a size that is at leastCPXXNETgetnumnodes/CPXNETgetnumnodes.
Return
The routine returns 0 (zero) on success and nonzero if an error occurs.Example
status = CPXNETgetbase (env, net, astat, nstat);