Fix dimension queries.

We must always query the dimensions of the original model.
This commit is contained in:
Daniel Junglas
2022-11-25 10:07:54 +01:00
parent 980468d5fc
commit 9e816ece63

View File

@@ -67,13 +67,13 @@ void printError(const XPRSprob& mLp, int line) {
int XPRSgetnumcols(const XPRSprob& mLp) {
int nCols = 0;
XPRSgetintattrib(mLp, XPRS_COLS, &nCols);
XPRSgetintattrib(mLp, XPRS_ORIGINALCOLS, &nCols);
return nCols;
}
int XPRSgetnumrows(const XPRSprob& mLp) {
int nRows = 0;
XPRSgetintattrib(mLp, XPRS_ROWS, &nRows);
XPRSgetintattrib(mLp, XPRS_ORIGINALROWS, &nRows);
return nRows;
}