Install Ipopt solver to use with Pyomo in ubuntu

3.8k views Asked by At

How can I install ipopt solver to use it with pyomo in ubuntu??? I have already download the zip file of ipopt

but I don'n find any specific instructions how to install it and use it with pyomo.

1

There are 1 answers

1
Bethany Nicholson On

If you downloaded a binary then you just have to make sure that the ipopt executable is in your PATH environment variable. If you are trying to install from source code you should follow the instructions here. Your last option is to use anaconda to install an ipopt binary using the command:

conda install -q -y --channel cachemeorg ipopt_bin

I think conda installs an old version of ipopt so be aware.

With any of these installations you will know it is installed correctly when you type ipopt in a terminal window and get the following output:

No stub!
usage: ipopt [options] stub [-AMPL] [<assignment> ...]

Options:
    --  {end of options}
    -=  {show name= possibilities}
    -?  {show usage}
    -e  {suppress echoing of assignments}
    -s  {write .sol file (without -AMPL)}
    -v  {just show version}