简体   繁体   English

安装IPOPT求解器以在Windows中与pyomo一起使用

[英]Install IPOPT solver to use with pyomo in windows

How can I install IPOPT solver to use it with pyomo in windows.如何安装IPOPT求解器以将其与Windows中的pyomo一起使用。 I tried pip install ipopt but I got this error (ERROR: Failed building wheel for ipopt)我尝试了 pip install ipopt,但出现此错误(错误:ipopt 的构建轮失败)

I am working on windows 10 and Python 3.7.4我正在使用 Windows 10 和 Python 3.7.4

The easiest way to install a version of Ipopt on Windows is to use Anaconda:在 Windows 上安装 Ipopt 版本的最简单方法是使用 Anaconda:

conda install -c conda-forge ipopt

Another approach is to download the appropriate Ipopt binary for your system from this site .另一种方法是从该站点下载适合您系统的 Ipopt 二进制文件。 Unzip the downloaded file and save the ipopt.exe file to your desired directory.解压缩下载的文件并将ipopt.exe文件保存到您想要的目录。 Then just make sure to add the directory containing the executable to your PATH environment variable然后只需确保将包含可执行文件的目录添加到您的 PATH 环境变量中

Note that both of these options will install Ipopt compiled with the MUMPS linear solver which is fine for small, well-conditioned problems but is not as performant as other linear solvers like MA27 or MA57 from the Harwell Subroutine Library.请注意,这两个选项都将安装使用 MUMPS 线性求解器编译的 Ipopt,这适用于小型、条件良好的问题,但性能不如 Harwell 子程序库中的 MA27 或 MA57 等其他线性求解器。

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

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