Overview | Group | Index | Concepts |
The routine CPXsolninfo
accesses solution
information produced by the routines
CPXlpopt
, CPXprimopt
, CPXdualopt
, CPXbaropt
, CPXhybbaropt
, CPXhybnetopt
, CPXqpopt
, CPXfeasopt
, or CPXmipopt
.
This information
is maintained until the CPLEX problem object is freed by a call to
CPXfreeprob
or until the solution is rendered invalid because of a
call to one of the problem modification routines.
The arguments to CPXsolninfo
are pointers to locations
where data are to be written. Such data can include the optimization method
used to produce the current solution, the type of solution available, and
what is known about the primal and dual feasibility of the current solution.
If any piece of information represented by an argument to
CPXsolninfo
is not required, a NULL pointer can
be passed for that argument.
Example
status = CPXsolninfo (env, lp, &solnmethod, &solntype, &pfeasind, &dfeasind);
See also the topic Interpreting Solution Quality in the ILOG CPLEX User's Manual for information about how CPLEX determines primal or dual infeasibility.
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
solnmethod_p | A pointer to an integer specifying the method used to produce the current solution. The specific values which |
solntype_p | A pointer to an integer variable specifying the type of solution currently available. Possible return values are |
pfeasind_p | A pointer to integer variables specifying 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 it was feasible when it terminated. |
dfeasind_p | A pointer to integer variables specifying 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 it was feasible when it terminated. |
The routine returns zero if successful and it returns nonzero if an error occurs.