XPRS_msp_getintattribprobextreme
XPRS_msp_getintattribprobextreme |
Purpose
Retrieves the extreme value of an integer 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 count of column bound infeasibilities for solutions of the problem taken across solutions stored in the MIP solution pool that have at least one column bound infeasibility for the problem.
Synopsis
int XPRS_CC XPRS_msp_getintattribprobextreme(XPRSmipsolpool msp, XPRSprob prob_to_rank_against, const int bGet_Max_Otherwise_Min, int * const iSolutionId, const int iAttribId, int * 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 an integer where the value of the attribute will be returned.
|
Further information
1. 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 count 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_getintattribprobsol. That is, integer attributes relating to a problem and solution pair, e.g., the count of column bound infeasibilities for solutions of 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