Appsi需求compileDextension

发布于 2025-01-23 18:43:59 字数 218 浏览 0 评论 0原文

我一直在使用PYOMO运行迭代优化问题,并指出使用其AppSI求解器减少迭代之间的读取时间。 当我尝试运行求解器时,我会收到以下错误消息:

solver< class'pyomo.contrib.appsi.solvers.cplex.cplex'>不可用(需求compiledextension)。

我不确定要删除此错误需要做些什么,因为我对这个空间很新。

谢谢!

I've been running an iterative optimization problem using pyomo, and was pointed to using their appsi solvers to reduce read/write time between iterations.
When I attempt to run the solver, I receive the following error message:

Solver <class 'pyomo.contrib.appsi.solvers.cplex.Cplex'> is not available (NeedsCompiledExtension).

I'm not sure what needs to be done to remove this error, as I'm pretty new to this space.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

讽刺将军 2025-01-30 18:44:00

这对您来说可能太晚了,但我希望该解决方案将来对其他人有所帮助!

只需在Python环境中运行以下命令即可。这安装了您持续的CPLEX库使用所需的C ++求解器版本。

pyomo get-extensions

This is probably too late for you but I hope this solution helps others in the future!

Just run the below command in your python environment. This installs the required C++ solver versions that your persistent CPLEX libraries use.

pyomo get-extensions
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文