The kernel keeps crashing when I attempt to use the CBC solver from the mip package

58 views Asked by At
import mip
m = mip.Model(solver_name=mip.CBC)

I've tried everything, but it doesn't seem to matter; the kernel still keeps dying after running this code. Reinstalling the package didn't help, although it shows that this package is installed in my Python environment. any ideas?

I attempted to use the CBC solver from the mip package in Python. My expectation was that the solver would function properly, allowing me to optimize a linear programming model without any issues. However, contrary to my expectations, each time I executed the code, the Python kernel crashed unexpectedly. Despite trying various solutions, such as reinstalling the mip package and ensuring it was correctly installed in my Python environment, the problem persisted. The kernel's consistent crashing upon running the code remains unresolved

1

There are 1 answers

0
Tengizi Mtchedlidze On

Solution: After installing a Python version lower than 3.12, the issue with the kernel crashing has been resolved.