Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
come-bissuel opened this issue Feb 19, 2025 · 0 comments · May be fixed by #421
Open

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

come-bissuel opened this issue Feb 19, 2025 · 0 comments · May be fixed by #421

Comments

@come-bissuel
Copy link

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 come-bissuel linked a pull request Feb 20, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant