Appsi需求compileDextension
我一直在使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对您来说可能太晚了,但我希望该解决方案将来对其他人有所帮助!
只需在Python环境中运行以下命令即可。这安装了您持续的CPLEX库使用所需的C ++求解器版本。
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.