rust-or / lp-solvers

library implementing interaction with various linear programming solvers
https://docs.rs/lp-solvers/
MIT License
17 stars 9 forks source link

Implement WithMaxSeconds for GlpkSolver #4

Closed mfuhr closed 10 months ago

mfuhr commented 10 months ago

Implement WithMaxSeconds for GlpkSolver and recognize when the solution is suboptimal.

I used CbcSolver as a template but I noticed that its command_name and with_temp_solution_file methods set seconds to None instead of copying it from &self. I don't know if that's intentional but I wasn't expecting it, so for GlpkSolver I have those methods copy seconds.

lovasoa commented 10 months ago

published as v0.0.5