Replies: 3 comments 1 reply
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
I'm a giant fan of the proposed change! 🥇
Having a status |
Beta Was this translation helpful? Give feedback.
-
That would be much more intuitive. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
There's lately been several comments on the way PuLP handles solution statuses when solving. The fact is that I've never been happy with how it handles them. Last year I added a not-very-documented
LpProblem.sol_status
property that gives the actual status of the solution but there's still theLpProblem.status
ambiguous codes. My objective is to report the following two status types in PuLP:LpProblem.getSolverStatus()
, will return the reason why the solver stopped: optimal, time limit, not solved, node limit, memory limit, undefined, unbounded, unfeasible, etc.LpProblem.getSolutionStatus()
will return the status of the solution when the solver stopped: optimal, feasible, unfeasible, no solution found, etc.I hope this change will make it more clear and it will also better match the codes returned by the solvers.
This implies:
LpProblem.status
with a warning.Despite the soft deprecating of
LpProblem.status
, this will probably break some things in people's code becauseLpProblem.status
will now return slightly different information (now it returns 1 = "Optimal" when it found at least one feasible solution).Beta Was this translation helpful? Give feedback.
All reactions