CPXgetintquality


Description

The routine CPXgetintquality() is used to access integer-valued information about the quality of the current solution of a problem. A solution, though not necessarily a feasible or optimal one, must be available in the CPLEX problem object. The quality values are returned in the integer variables pointed to by the argument quality_p.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs.

Synopsis

  int CPXgetintquality (CPXCENVptr env,
                        CPXCLPptr lp,
                        int *quality_p,
                        int what);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by the CPXopenCPLEX routine.

CPXCLPptr lp

A pointer to a CPLEX problem object as returned by CPXcreateprob().

int *quality_p

A pointer to an integer variable in which the requested quality value is to be stored.

int what

A symbolic constant indicating the quality value to be retrieved. The possible quality values for a solution are listed in Appendix D, Solution Quality Values.

Example

  status = CPXgetintquality (env, lp, &max_x_ind, CPX_MAX_X);


Previous Page: CPXgetintparam Return to Top Next Page: CPXgetitcnt