coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
514 stars 89 forks source link

Bug when number of threads is given to model #311

Open brechtwillems99 opened 1 year ago

brechtwillems99 commented 1 year ago

Since MIP 1.14, I get an issue with the number of threads. With version 1.13 there was no problem.

I run on a Windows OS with Python version 3.9.10 I use CBC as solver.

Hereby I uploaded an example of the source code. It is a txt-file, as Python-files are not supported here.

On line 89 the number of threads is defined to the model. When the value is >0, the optimization fails somewhere. When the value is -1, there is no issue. mainPlainText.txt