linopy icon indicating copy to clipboard operation
linopy copied to clipboard

Xpress : impossible to get solution if timelimit is set

Open come-bissuel opened this issue 8 months ago • 0 comments

Hello, If using Xpress, when a timelimit is set and when the optimal solution is not found before this timelimit, it is not possible to retrieve the solution from Xpress, because the problem is in a presolved state. This is stated it this documentation, more precisely : "A problem might be left in a presolved state if the solve was interrupted, for example due to the Ctrl-C key combination, or if a time limit (set by MAXTIME) was reached. In such a case, the matrix can always be returned to its original state by calling XPRSpostsolve (POSTSOLVE). If the matrix is already in the original state then XPRSpostsolve (POSTSOLVE) will return without doing anything."

To overcome this issue, I suggest adding a control to see in which state the solver is after the solve, and to postsolve the problem if necessary.

come-bissuel avatar Feb 19 '25 12:02 come-bissuel