简体   繁体   English

Pyomo CBC求解器错误:求解器(cbc)返回非零返回码(3221225781); Solver (cbc) 没有正常退出

[英]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:我正在使用 CBC 求解器解决 PyCharm 的优化问题,但我一直遇到此错误:

ERROR: Solver (cbc) returned non-zero return code (3221225781)错误:求解器 (cbc) 返回非零返回码 (3221225781)

and

pyutilib.common._exceptions.ApplicationError: Solver (cbc) did not exit normally pyutilib.common._exceptions.ApplicationError: Solver (cbc)没有正常退出

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.我添加了“keepfiles=True”参数,但我找不到求解器日志和解决方案文件,尽管我可以在程序返回的路径上找到问题文件。

It is worth nothing that this program runs properly on my colleague's computer, (he has 16Gb RAM and I have 8)该程序在我同事的计算机上正常运行毫无价值,(他有 16Gb RAM,我有 8 个)

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安装求解器时,必须将solver.exe文件添加到系统PATH中或者直接将文件放在python文件所在的文件夹中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM