Full CPU utilization with python-MIP

176 views
Skip to first unread message

Manuel Parati

unread,
Apr 27, 2022, 1:52:37 PM4/27/22
to Python-MIP
Hi everyone,
I am using python-mip with CBC as a solver to find the optimal solution to a MIP problem on large instances. The problem is that it is too slow and looking at the CPU usage statistics I notice that the process uses only 13/14% of the CPU while the rest remains unused. I also tried adding model.threads = -1 but the CPU remains mostly unused. Is there any way to fully utilize the CPU?

I am using:
- Arch Linux latest version with linux kernel
- Python 3.10.4
- MIP 1.13.0

Luciano Rigolin de Almeida

unread,
May 2, 2022, 7:46:43 AM5/2/22
to Manuel Parati, Python-MIP
Hi.

I've also always been slow using CBC. I prefer to use the Gurobi solver. You can try Gurobi with an academic license.

Att,

Luciano

--
You received this message because you are subscribed to the Google Groups "Python-MIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-mip+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-mip/4824d4e7-8613-41b5-9295-066303b81671n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages