小编ZHE*_*HAO的帖子

应用程序错误:在 Pyomo 中找不到解算器“ipopt”的可执行文件

我正在学习 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:\Anacondo\lib\site-packages\pyomo\opt\base\solvers.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:\Anacondo\lib\site-packages\pyomo\opt\solver\shellcmd.py in available(self, exception_flag) …
Run Code Online (Sandbox Code Playgroud)

python executable ipopt pyomo

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

executable ×1

ipopt ×1

pyomo ×1

python ×1