XPRS_msp_getdblattribprobextreme
XPRS_msp_getdblattribprobextreme |
Purpose
Retrieves the extreme value of a double attribute associated with the set of solutions stored in the MIP solution pool evaluated with respect to the given problem. For example, the minim of the objective values of feasible solutions for the problem across the solutions stored in the MIP solution pool.
Synopsis
int XPRS_CC XPRS_msp_getdblattribprobextreme(XPRSmipsolpool msp, XPRSprob prob_to_rank_against, const int bGet_Max_Otherwise_Min, int * const iSolutionId, const int iAttribId, double * const ExtremeVal)
Arguments
msp
|
The current MIP solution pool.
|
prob_to_rank_against
|
Problem for which the attribute is required to be evaluated.
|
bGet_Max_Otherwise_Min
|
If set to a non-zero value the routine will return the maximum attribute value; otherwise the minim attribute value will be returned.
|
iAttribId
|
Id of attribute whose value is to be returned. A full list of all available attributes may be found in Chapter
MSP Attributes, or from the list in the
xprs.h header file.
|
iSolutionId
|
The id of the solution for which the returned attribute value was evaluated with the problem
prob_to_rank_against.
|
ExtremeVal
|
Pointer to a double where the value of the attribute will be returned.
|
Further information
1. This function returns objective values only for feasible solutions. For attributes representing infeasibility this function returns a meaningful value only if there any solutions with an infeasibility associated with the attribute. For example, if the attribute represents the sum of column bound infeasibilities for solutions in the MIP solution pool then a meaningful value is only returned if there are any solutions with column bound infeasibilities for the problem.
2. The attributes accessed by this function are the same as those available through
XPRS_msp_getdblattribprobsol. That is, double attributes relating to a problem and solution pair, e.g., the objective function value of a solution to the problem
3. If there is no value returned then the value of
iSolutionId is set to 0; otherwise it will be the positive id of the solution with the returned attribute value.
Related topics