Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`max_seconds` parameter not working

See original GitHub issue

Describe 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


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:open
  • Created 2 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

tkralphscommented, Mar 19, 2022

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.

sebhegercommented, Mar 21, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found