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
This discussion was converted from issue #1951 on December 07, 2021 12:26.
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
Uh oh!
There was an error while loading. Please reload this page.
-
What version of OR-tools and what language are you using?
Version: source V7.5 stable
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
XPRESS
What operating system (Linux, Windows, ...) and version?
Windows 10
What did you do?
Tried to use mySolver.SetTimeLimit([time in ms]);
What did you expect to see
The solver should use that value as Walltime
What did you see instead?
Xpress crashed
Problem/Solution
The wrong function is being used in xpress_interface.cc
It is assumed that the parameter is a double parameter:
XPRSsetdblcontrol(mLp, XPRS_MAXTIME, -1.0 * solver_->time_limit_in_secs())But, the correct function is the integer:
XPRSsetintcontrol(mLp, XPRS_MAXTIME, -1.0 * solver_->time_limit_in_secs())Beta Was this translation helpful? Give feedback.
All reactions