Skip to content

Xpress : impossible to get solution if timelimit is set #420

@come-bissuel

Description

@come-bissuel

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions