You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of OR-tools and what language are you using?
Version: v7.1
Language: C++
**Which solver are you using: xpress
referring to Xprsgetbasis doc, the second parameter corresponds to the rows while the third corresponds to the columns. The parameters are inversed in the xpressinterface.
CHECK_STATUS(XPRSgetbasis(mLp, 0, mRstat.get()));
should be replaced with CHECK_STATUS(XPRSgetbasis(mLp, mRstat.get(), 0));
and CHECK_STATUS(XPRSgetbasis(mLp, mCstat.get(), 0));
should be replaced with CHECK_STATUS(XPRSgetbasis(mLp, 0, mCstat.get()));
I noticed this while working on a code that uses xpress but I don't have access to an xpress license to test it correctly.
The code attached can be used to check the bug if you have access to xpress. basisStatus.cc.txt
This discussion was converted from issue #2057 on December 07, 2021 13:07.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What version of OR-tools and what language are you using?
Version: v7.1
Language: C++
**Which solver are you using: xpress
referring to Xprsgetbasis doc, the second parameter corresponds to the rows while the third corresponds to the columns. The parameters are inversed in the xpressinterface.
CHECK_STATUS(XPRSgetbasis(mLp, 0, mRstat.get()));
should be replaced with
CHECK_STATUS(XPRSgetbasis(mLp, mRstat.get(), 0));
and
CHECK_STATUS(XPRSgetbasis(mLp, mCstat.get(), 0));
should be replaced with
CHECK_STATUS(XPRSgetbasis(mLp, 0, mCstat.get()));
I noticed this while working on a code that uses xpress but I don't have access to an xpress license to test it correctly.
The code attached can be used to check the bug if you have access to xpress.
basisStatus.cc.txt
Beta Was this translation helpful? Give feedback.
All reactions