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.
Implement
WithMaxSeconds
forGlpkSolver
and recognize when the solution is suboptimal.I used
CbcSolver
as a template but I noticed that itscommand_name
andwith_temp_solution_file
methods setseconds
toNone
instead of copying it from&self
. I don't know if that's intentional but I wasn't expecting it, so forGlpkSolver
I have those methods copyseconds
.