CPXXgetsolnpoolintquality and CPXgetsolnpoolintquality
The routine CPXXgetsolnpoolintquality/CPXgetsolnpoolintquality accesses
integer-valued information about the quality of a solution in
the solution pool.
int CPXXgetsolnpoolintquality( CPXCENVptr env, CPXCLPptr lp, int soln, CPXDIM * quality_p, int what )
int CPXgetsolnpoolintquality( CPXCENVptr env, CPXCLPptr lp, int soln, int * quality_p, int what )
Description
The routine CPXXgetsolnpoolintquality/CPXgetsolnpoolintquality accesses
integer-valued information about the quality of a solution in
the solution pool.
The quality values are returned in the int
variable pointed to by the argument quality_p.
For documentation of the quality symbols, see Solution Quality Symbols the CPLEX Callable Library (C API), which lists the symbols with links to further documentation of each one in the Callable Library (C API) Reference Manual..
Arguments
- env
-
A pointer to the CPLEX environment as returned by the
CPXXopenCPLEX/CPXopenCPLEXroutine. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob. - soln
- An integer specifying the index of the solution pool member for which the quality measure is to be computed. A value of -1 specifies that the incumbent should be used instead of a member of the solution pool.
- quality_p
-
A pointer to an
intvariable in which the requested quality value is to be stored. If an error occurs, the quality-value remains unchanged. - what
- A symbolic constant specifying the quality value to be retrieved.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs. If an error occurs, the quality-value remains unchanged.
Example
status = CPXgetsolnpoolintquality (env, lp, soln, &max_x, CPX_MAX_X);