HiGHS icon indicating copy to clipboard operation
HiGHS copied to clipboard

mip_improving_solution_save should flush file after each update

Open few opened this issue 1 year ago • 1 comments

When setting

mip_improving_solution_save=true mip_improving_solution_file=solution.sol

each new solution is written to solution.sol. The problem is that the solution can be incomplete while highs is still running or when it gets killed. To allow other programs to read the latest solution while the solver is still running, highs should flush the file after each solution is written.

I'll soon prepare a pull request.

few avatar Aug 17 '24 19:08 few

Good point. I'll review your PR in due course.

Thanks

jajhall avatar Aug 17 '24 19:08 jajhall