`max_seconds` parameter not working
See original GitHub issueDescribe the bug
max_seconds
doesn’t work for me currently, it leads to:
Starting MIP optimization
Unrecognized parameter - maxSavedSolutions=10, exiting...
This is with:
Welcome to the CBC MILP Solver
Version: devel
Build Date: Mar 8 2022
compiled from master as indicated above on a Mac M1.
I can provide a minimal example, however I’m pretty sure this is a simple oversight. The only difference between my code working and not working is addition of the max_seconds
parameter in the optimize()
call. Let me know if you need any other info.
To Reproduce
model.optimize(max_seconds=1234)
In the same code base, calling optimize()
without any parameters works perfectly.
Expected behavior
Solver terminates after at most 1234 seconds.
Desktop (please complete the following information):
- Operating System, version: macOS Monterey Version 12.1 (21C52)
- Python version: 3.9.9
- Python-MIP version (we recommend you to test with the latest version): 1.13.0
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
How can I limit the running time of COIN-CBC ... - Stack Overflow
However, the maxSeconds argument does not seem to work for me. For an example instance, I call the solver without time limit this...
Read more >Enhance the SendTransactedMsg job to add a maxSeconds ...
The existing job parameter numOfMessages can be used to limit the concurrency by specifying a maximum number of messages to be processed by...
Read more >pulp.apis Interface to Solvers - COIN-OR Documentation
function that loads the DLL useful for debugging installation problems ... msg=True, timeLimit=None, fracGap=None, maxSeconds=None, gapRel=None, gapAbs=None ...
Read more >Tuning CBC solver parameters in PuLP - Google Groups
This question is about changing CBC solver parameters using PuLP. ... is unable to find initial feasible solution for my milp problem even...
Read more >pulp.solvers Interface to Solvers — PuLP v1.4.6 documentation
... solvers that require a compiled extension may not work in the current version ... strong=None, options=[], fracGap=None, maxSeconds=None, threads=None)¶.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m not actually a maintainer here. I did assign the ticket to you, which I can do, but I would leave it to the maintainers to add you to the project. That’s not required to submit a PR, however.
@gewesp You can easily fork this project in your private space and from there you can create a pull request (PR) into the python-mip repository. You don’t need any rights to the project to create it, only as a maintainer you can merge the PR.