Previous Page: CPXNETgetslack First PageNext Page: CPXNETgetsupply

CPXNETgetstat


Description

At any time after the creation of a CPLEX network problem object, the function CPXNETgetstat() can be called to access the solution status for that object.

Return Value

If no solution is available for the CPLEX network problem object, CPXNETgetstat() returns 0. When a solution exists, the possible return values are:

CPX_OPTIMAL  
Optimal solution found.  
CPX_INFEASIBLE  
Problem is infeasible.  
CPX_UNBOUNDED  
Problem is unbounded.  
CPX_INForUNB  
Problem is infeasible or unbounded.  
CPX_IT_LIM_FEAS  
Iteration limit is exceeded when a feasible solution is available.  
CPX_IT_LIM_INFEAS  
Iteration limit is exceeded when an infeasible solution is available.  
CPX_TIME_LIM_FEAS  
Time limit is exceeded when a feasible solution is available.  
CPX_TIME_LIM_INFEAS  
Time limit is exceeded when an infeasible solution is available.  
CPX_ABORT_FEAS  
Aborted when a feasible solution is available.  
CPX_ABORT_INFEAS  
Aborted when an infeasible solution is available.  

Synopsis

int CPXNETgetstat (CPXENVptr env,
                   CPXNETptr net);

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

Example

netstatus = CPXNETgetstat (env, net);

Previous Page: CPXNETgetslack First PageNext Page: CPXNETgetsupply