Install Ipopt solver to use with Pyomo in ubuntu

2019-08-04 11:36发布

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条回答
看我几分像从前
2楼-- · 2019-08-04 11:55

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}
查看更多
登录 后发表回答