CPXXNETsolninfo and CPXNETsolninfo

The routine CPXXNETsolninfo/CPXNETsolninfo is used to access solution information computed by the most recent call to CPXXNETprimopt/CPXNETprimopt.

int  CPXXNETsolninfo( CPXCENVptr env, CPXCNETptr net, int * pfeasind_p, int * dfeasind_p )

int  CPXNETsolninfo( CPXCENVptr env, CPXCNETptr net, int * pfeasind_p, int * dfeasind_p )

Description

The routine CPXXNETsolninfo/CPXNETsolninfo is used to access solution information computed by the most recent call to CPXXNETprimopt/CPXNETprimopt. The solution values are maintained in the object as long as no changes are applied to it with one of the routines CPXNETchg..., CPXNETcopy..., or CPXNETadd....

The arguments to CPXXNETsolninfo/CPXNETsolninfo are pointers to locations where data are to be written. The returned values indicate what is known about the primal and dual feasibility of the current solution. If either piece of information represented by an argument to CPXXNETsolninfo/CPXNETsolninfo is not required, a NULL pointer can be passed for that argument.

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.
pfeasind_p
A pointer to an integer variables indicating whether the current solution is known to be primal feasible. Note that a false return value does not necessarily mean that the solution is not feasible. It simply means that the relevant algorithm was not able to conclude that it was feasible when it terminated.
dfeasind_p
A pointer to an integer variables indicating whether the current solution is known to be dual feasible. Note that a false return value does not necessarily mean that the solution is not feasible. It simply means that the relevant algorithm was not able to conclude that it was feasible when it terminated.

Return

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

Example


 status = CPXNETsolninfo (env, lp, &pfeasind, &dfeasind);