Description
Any time after a network problem has been copied to a CPLEX network problem object, the function CPXNETprimopt() can be called to find a solution to that problem using the primal network simplex method. When this function is called, the CPLEX primal network algorithm attempts to optimize the problem. The results of the optimization are recorded in the CPLEX network problem object and can be retrieved by calling the appropriate solution functions for that object.Return Value
The CPXNETprimopt() function returns a value of 0 if successful, i.e. it terminates such that a solution exists, although not necessarily an optimal or feasible solution. The error code CPXERR_BOUNDS_INFEAS indicates that the problem is trivially infeasible. In this case, no solution information is available.CPXNETprimopt() returns one of the following non-zero return values:
CPXERR_BOUNDS_INFEAS
|
which indicates that there are contradicting bounds.
|
CPXERR_NET_IMBALANCE
|
which indicates that the supply values are not balanced.
|
In these cases, the network solution status as returned by
CPXNETgetstat() is CPX_INFEASIBLE and a solution is available.Synopsis
int CPXNETprimopt (CPXENVptr env,
CPXNETptr net);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
status = CPXNETprimopt (env, net);