TSobhy
TSobhy

Reputation: 99

Install IPOPT solver to use with pyomo in windows

How can I install IPOPT solver to use it with pyomo in windows. I tried pip install ipopt but I got this error (ERROR: Failed building wheel for ipopt)

I am working on windows 10 and Python 3.7.4

Upvotes: 3

Views: 17609

Answers (1)

Bethany Nicholson
Bethany Nicholson

Reputation: 2828

The easiest way to install a version of Ipopt on Windows is to use Anaconda:

conda install -c conda-forge ipopt

Another approach is to download the appropriate Ipopt binary for your system from this site. Unzip the downloaded file and save the ipopt.exe file to your desired directory. Then just make sure to add the directory containing the executable to your PATH environment variable

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.

Upvotes: 12

Related Questions