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

mip_improving_solution_save should flush file after each update #1880

Open
few opened this issue Aug 17, 2024 · 1 comment
Open

mip_improving_solution_save should flush file after each update #1880

few opened this issue Aug 17, 2024 · 1 comment
Assignees

Comments

@few
Copy link

few commented Aug 17, 2024

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.

@jajhall
Copy link
Sponsor Member

jajhall commented Aug 17, 2024

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

Thanks

@jajhall jajhall self-assigned this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants