ApplicationError: No executable found for solver #39;ipopt#39; in Pyomo(ApplicationError:在Pyomo中找不到求解器的可执行文件)
本文介绍了ApplicationError:在Pyomo中找不到求解器的可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在学习Pyomo,并尝试使用ipopt来解决一个示例问题。但一开始,我已经安装了包,然后总是显示没有找到ipopt。之后,我重新安装了很多次,现在显示
'''WARNING: Could not locate the 'ipopt' executable, which is required for solver
ipopt
---------------------------------------------------------------------------
ApplicationError Traceback (most recent call last)
<ipython-input-2-2e55f87657f9> in <module>
1 model.N=50
2 instance = model.create_instance()
----> 3 results = opt.solve(instance) # solves and updates instance
D:Anacondolibsite-packagespyomooptasesolvers.py in solve(self, *args, **kwds)
514 """ Solve the problem """
515
--> 516 self.available(exception_flag=True)
517 #
518 # If the inputs are models, then validate that they have been
D:Anacondolibsite-packagespyomooptsolvershellcmd.py in available(self, exception_flag)
116 if exception_flag:
117 msg = "No executable found for solver '%s'"
--> 118 raise ApplicationError(msg % self.name)
119 return False
120 return True
ApplicationError: No executable found for solver 'ipopt'
'''**bold**
斜体
报价
我不知道如何修复它,我在D桌安装了蟒蛇,而不是C桌。有谁能帮帮我,我一个月后有一次作业和考试需要它。谢谢。
推荐答案
已通过安装最新版本的Anacondo和3.11版本的IPopt解决此问题
这篇关于ApplicationError:在Pyomo中找不到求解器的可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:ApplicationError:在Pyomo中找不到求解器的可执行文件


基础教程推荐
猜你喜欢
- 修改列表中的数据帧不起作用 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 包装空间模型 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01