HiGHS
HiGHS copied to clipboard
mip_improving_solution_save should flush file after each update
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.
Good point. I'll review your PR in due course.
Thanks