Table 2.1. Methods for Getting Solution Information from OSI
Purpose | Name | Notes |
---|---|---|
Primal column solution | const double * getColSolution() | The OSI method will return the best solution found thus far, unless none has been found. It is safer to use CbcModel version, CbcModel::bestSolution() |
Dual row solution | const double * getRowPrice() | Identical CbcModel version available, CbcModel::getRowPrice(). |
Primal row solution | const double * getRowActivity() | Identical CbcModel version available, CbcModel::getRowActivity(). |
Dual column solution | const double * getReducedCost() | Identical CbcModel version available, CbcModel::gtReducedCost(). |
Number of rows in model | int getNumRows() | Identical CbcModel version available, CbcModel::getNumRows(). Note: the number of rows can change due to cuts. |
Number of columns in model | int getNumCols() | Identical CbcModel version available, CbcModel::getNumCols(). |