XPRS_mse_getsolmetric
XPRS_mse_getsolmetric |
Purpose
Gets the value of a metric for a solution.
Synopsis
int XPRS_CC XPRS_mse_getsolmetric(XPRSmipsolenum mse, int iSolutionId, int * iSolutionIdStatus, int iMetricId, double * dMetric)
Arguments
mse
|
The current MIP solution enumerator.
|
||||||
iSolutionId
|
The id of the solution for which the metric is to be returned.
|
||||||
iSolutionIdStatus
|
Pointer to an
int where the status of the
iSolutionId will be returned. The returned value is one of:
|
||||||
iMetricId
|
Id of metric whose value is to be returned. A full list of all available metrics may be found in Chapter
MSE Attributes, or from the list in the
xprs.h header file.
|
||||||
dMetric
|
Pointer to a double where the value of the metric will be returned.
|
Further information
1. The user will obtain the solution id
iSolutionId from interaction with the MIP solution enumerator via functions such as
XPRS_mse_getsollist and
XPRS_mse_getcullchoice.
2. If
iSolutionId is passed in as less than or equal to zero then the routine returns the worst value of the metric for the current set of solutions.
Related topics