Search code examples
pythonoptimizationsolverpyomo

Pyomo CBC solver error: Solver (cbc) returned non-zero return code (3221225781); Solver (cbc) did not exit normally


I'm working on an optimization problem on PyCharm using the CBC solver and I keep having this error:

ERROR: Solver (cbc) returned non-zero return code (3221225781)

and

pyutilib.common._exceptions.ApplicationError: Solver (cbc) did not exit normally

I've added the "keepfiles=True" argument but I can't finde the solver log and solution file, although I can finde the problem files on the path the program returns.

It is worth nothing that this program runs properly on my colleague's computer, (he has 16Gb RAM and I have 8)


Solution

  • I've found a solution by myself and I'll post it here in case is usefull for anyone in the future:

    When installing a solver, you must add the solver.exe file into the system PATH or just place the file in the folder where the python file is placed