Replies: 3 comments 3 replies
-
HiGHS being killed by memory limitations is a very rare occurrence, so we don't do anything when this happens. When you mention "an incumbent solution", I'm guessing that you're solving a mixed-integer problem, and know that an integer feasible solution has been found. Is this the case? If you're only solving an LP, it's unlikely that there is any useful incumbent solution to be recovered. Do you have an example of a problem where HiGHS is killed in this way? Sorry for not replying sooner: I don't get notifications of discussion items. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. I think I see how to limit the memory available to a simple Linux process, allowing me to experiment. Of course I have to cover all possible places where the memory limit might be reached. An alternative, simple fix is to have an option that, when set, writes any integer feasible solution to a file if it's the best so far. This would also be a fix for people who want a pool of integer feasible solutions - something that we'll not be implementing internally any time soon. In the case of solving an LP using simplex, if you re-started from the saved basis, you'd probably hit the memory limit again very soon. |
Beta Was this translation helpful? Give feedback.
-
I've started implementing code to save and report improving solutions found by the MIP solver. |
Beta Was this translation helpful? Give feedback.
-
In limited testing with the command line interface, I've found that if in the process of solving HiGHS is killed due to memory limitations, HiGHS currently does not write an incumbent solution to a specified solution file (--solution _file solution.sol).
Is it (as of v1.5.0) possible to recover an incumbent solution if the solver is killed because of insufficient memory? If not, are there plans to incorporate something like this?
For context, I'm testing via Docker containers (alpine:latest as base container, layered with necessary bits for cmake to build HiGHS) on a linux host.
This is a super cool project, I'm very excited to see a new version! Thanks for everything y'all are doing!
Beta Was this translation helpful? Give feedback.
All reactions