NO FRAMES

CPXgetintquality

public int CPXgetintquality(CPXCENVptr env, CPXCLPptr lp, int * quality_p, int what)
Definition file: cplex.h

The routine CPXgetintquality accesses 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 int variable pointed to by the argument quality_p.

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

quality_p

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

what

A symbolic constant specifying the quality value to be retrieved. The possible quality values for a solution are listed in the group optim.cplex.callable.solutionquality in the ILOG CPLEX Reference Manual.

Returns:

The routine returns zero if successful and nonzero if an error occurs.