PuLP solvers do not respond to options fed to them #402
Replies: 4 comments 1 reply
-
I answered at https://stackoverflow.com/questions/66114805/pulp-solvers-do-not-respond-to-options-fed-to-them |
Beta Was this translation helpful? Give feedback.
-
Thanks @AlexFleischerParis. I'm still curious on why the arguments do not work. Could you share your problem data in python code, mps file or json file? more info on how to export a model: https://coin-or.github.io/pulp/guides/how_to_export_models.html |
Beta Was this translation helpful? Give feedback.
-
Thanks. I had seen that variation but figured it was from a much earlier version of PuLP. |
Beta Was this translation helpful? Give feedback.
-
I was experiencing the same/similar issue. It turned out that my (massive 2GB + ) pulp model was taking in dummy data I'd created, that made the problem infeasible/malformed - and correctly so. I had to keep manually killing the process (sometimes after letting it run for 20 hours with no solution/feedback). I tried running with a smaller input size. This did finish running after about 40-50 seconds, but the After a good night's sleep, I realised my problem with the data. But after an additional good night's sleep, I realised I should have run my toy model (which I knew was correct) with the It is interesting that this behaviour occurs though. I hope this reply can aid in pointing to the root cause. |
Beta Was this translation helpful? Give feedback.
-
Crossposted on stackoverflow: https://stackoverflow.com/questions/66114805/pulp-solvers-do-not-respond-to-options-fed-to-them
So I've got a fairly large optimization problem and I'm trying to solve it within a sensible amount of time. Ive set it up as:
And then alternatively
It runs in each case. However, the solver does not repond to the timeLimit or gapRel instructions. If I use timelimit it does warn this is depreciated for timeLimit. Same for fracgap: it tells me I should use relGap. So somehow I am talking to the solver. However, nor matter what values i pick for timeLimit and relGap, it always returns the exact same answer and takes the exact same amount of time (several minutes). Also, I have tried alternative solvers, and I cannot get any one of them to accept their variants of time limits or optimization gaps. In each case, the problem solves and returns an status: optimal message. But it just ignores the time limit and gap instructions.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions