Description
This function is used to access double-valued information about the quality of the current solution of an LP problem. A solution, though not necessarily a feasible or optimal one, must be available in the LP problem object. The quality values are returned in the double variables pointed to by the argument quality_p.Return Value
If the operation is successful, CPXgetdblquality() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXgetdblquality (CPXENVptr env,
CPXLPptr lp,
double *quality_p,
int what);
CPXENVptr envThe pointer to the CPLEX environment as returned by
CPXopenCPLEX().
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
double *quality_pA pointer to a double variable in which the requested quality value is to be stored. If an error occurs, the value remains unchanged.
int whatA symbolic constant indicating the quality value to be retrieved. The possible quality values for a solution are listed in Appendix D, Solution Quality Values, Table D.1.
status = CPXgetdblquality (env, lp, &max_x, CPX_MAX_X);