coin-or / coin-or/python-mip

`max_seconds` parameter not working

Open
#253 13 comments 1 reaction 0 assignees View on GitHub
bug cbc
Dominant language
Linear Programming
Stars
600
Forks
108
PR merge metrics
No merged PRs in 30d

Description

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

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.